diff --git a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue index 8f9c31ca3..9cd07b365 100644 --- a/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue +++ b/src/views/wms/productionManage/productdismantle/productdismantleRequestMain/index.vue @@ -286,12 +286,15 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) => row['bomVersion'] = res.list[0].version } }) - } else { + } else if(formField == 'productionLineCode'){ val.forEach(item=>{ const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) newRow[formField] = item[searchField] tableData.value.push(newRow) }) + }else{ + row[formField] = val[0][searchField] + } } else { const setV = {} diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue index e9a80a163..c053bb4b0 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/index.vue @@ -220,7 +220,7 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro row['bomVersion'] = res.list[0].version } }) - }else{ + }else if(formField == 'productionLineCode'){ //添加明细 val.forEach(item=>{ const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) @@ -228,6 +228,9 @@ const searchTableSuccess = async (formField, searchField, val, formRef, type, ro newRow[formField] = item[searchField] tableData.value.push(newRow) }) + }else{ + row[formField] = val[0][searchField] + } } else { const setV = {} diff --git a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts index 668c03dbc..95d6f73fa 100644 --- a/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts +++ b/src/views/wms/productionManage/productreceiptscrap/productreceiptscrapRequestMain/productreceiptscrapRequestMain.data.ts @@ -523,8 +523,9 @@ export const ProductreceiptRequestDetail = useCrudSchemas(reactive width: 150 }, tableForm:{ + disabled:true, multiple: true, - isInpuFocusShow: true, + // isInpuFocusShow: true, searchListPlaceholder: '请选择生产线代码', searchField: 'code', searchTitle: '生产线信息',