Commit 665998b650e00b143b40353139224027f05316f7
1 parent
1c0cc261
1.修复研发工单复制从报错
Showing
3 changed files
with
2 additions
and
6 deletions
src/components/Manufacture/CommonPackEvent.js
| ... | ... | @@ -92,7 +92,7 @@ const CommonPackEvent = props => { |
| 92 | 92 | }; |
| 93 | 93 | returnProps.onGetParamsValue = handleGetParamsValue; |
| 94 | 94 | // 对processData数组进行排序 |
| 95 | - const sortData = (tableData, processData) => { | |
| 95 | + const sortData = (tableData, processData = []) => { | |
| 96 | 96 | processData.sort((g1, g2) => { |
| 97 | 97 | const iIndex1 = tableData.findIndex(item => item.sId === g1.sControlId) === -1 ? 999 : tableData.findIndex(item => item.sId === g1.sControlId); |
| 98 | 98 | if (g1.iOrder === undefined) { | ... | ... |
src/components/Manufacture/WorkOrderPackTableTreeNew/index.js
| ... | ... | @@ -1717,10 +1717,6 @@ const WorkOrderPackTableTreeNewEvent = props => { |
| 1717 | 1717 | let { masterData, slaveSelectedRowKeys } = props; |
| 1718 | 1718 | const bInsertMaterials = selectConfig?.sControlName?.toLowerCase().includes("inserttestmaterials"); |
| 1719 | 1719 | const bTmpInfoBySql = selectConfig?.sControlName?.toLowerCase().includes("tmpinfobysql"); |
| 1720 | - if (name === "productProcessInfo" && !bInsertMaterials) { | |
| 1721 | - message.info("productProcessInfo已废弃,请改成TmpInfoBySql!"); | |
| 1722 | - return; | |
| 1723 | - } | |
| 1724 | 1720 | /* 插入测试材料 */ |
| 1725 | 1721 | if(bInsertMaterials) { |
| 1726 | 1722 | let iSlaveIndex = -1; | ... | ... |
src/utils/config.js
| ... | ... | @@ -9,7 +9,7 @@ const API = process.env.API; |
| 9 | 9 | const bHttps = localStorage.ipAddress ? false : location.protocol === 'https:'; |
| 10 | 10 | export const webSite = { |
| 11 | 11 | faceAddress: isDev ? '//km5cjx.gnway.cc:36867/xlyFace' : '//' + location.host + '/xlyFace', |
| 12 | - ipAddress: localStorage.ipAddress ? localStorage.ipAddress : isDev ? '//km5cjx.gnway.cc:37845/xlyEntry/' : '//' + location.host + '/xlyEntry/', | |
| 12 | + ipAddress: localStorage.ipAddress ? localStorage.ipAddress : isDev ? '//km5cjx.gnway.cc:36867/xlyEntry/' : '//' + location.host + '/xlyEntry/', | |
| 13 | 13 | |
| 14 | 14 | // ipAddress: localStorage.ipAddress ? localStorage.ipAddress : isDev ? '//118.178.19.35:8088/xlyEntry/' : '//' + location.host + '/xlyEntry/', |
| 15 | 15 | // ipAddress: localStorage.ipAddress ? localStorage.ipAddress : isDev ? '//km5cjx.gnway.cc:36867/xlyEntry/' : '//' + location.host + '/xlyEntry/', | ... | ... |