Commit 908a02abc172ca7e31df720ba58c432aa9234384
1 parent
20239b4f
1.订单生成工单 增加sProductTechnologyVer
Showing
1 changed file
with
8 additions
and
1 deletions
src/components/Manufacture/WorkOrderPackTableTreeNew/index.js
| ... | ... | @@ -290,14 +290,21 @@ const WorkOrderPackTableTreeNewEvent = props => { |
| 290 | 290 | if (bCkxCopyFromTechnology === "1" && !bCopyFromProcessCard) { |
| 291 | 291 | const sCustomerId = commonUtils.isEmptyStr(copyTo.masterData.sCustomerId) ? copyTo.slaveData[0].sCustomerId : copyTo.masterData.sCustomerId; |
| 292 | 292 | const sProductIdArray = []; |
| 293 | + const sVerArray = []; | |
| 293 | 294 | copyTo.slaveData.forEach(slaveItem => { |
| 294 | 295 | const sProductId = slaveItem.sProductId; |
| 295 | 296 | if (commonUtils.isNotEmptyStr(sProductId)) { |
| 296 | 297 | sProductIdArray.push(sProductId); |
| 297 | 298 | } |
| 299 | + const sVerStr = slaveItem.sProductTechnologyVer; | |
| 300 | + if (commonUtils.isNotEmptyStr(sVerStr)) { | |
| 301 | + sVerArray.push(sVerStr); | |
| 302 | + } | |
| 298 | 303 | }); |
| 304 | + console.log('copyTo', copyTo, sVerArray); | |
| 299 | 305 | const sProductIds = sProductIdArray.toString(); |
| 300 | - const condition = { sCustomerId, sProductIds }; | |
| 306 | + const sProductTechnologyVer =sVerArray.toString(); | |
| 307 | + const condition = { sCustomerId, sProductIds, sProductTechnologyVer }; | |
| 301 | 308 | const dataUrl = `${commonConfig.server_host}salesorder/getProcessCardDataByCustomIdProductId/?sModelsId=${sModelsId}`; |
| 302 | 309 | const dataReturn = (await commonServices.postValueService(token, condition, dataUrl)).data; |
| 303 | 310 | if (dataReturn.code === 1) { | ... | ... |