Browse Source

bug修复

hella_online_20240829
wangyufei 2 months ago
parent
commit
fefd9ebd28
  1. 11
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

11
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -120,12 +120,17 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
row['itemCode'] = val[0]['componentItemCode'] row['itemCode'] = val[0]['componentItemCode']
row['uom'] = val[0]['componentUom'] row['uom'] = val[0]['componentUom']
} else if(formField == 'workStation'){ } else if(formField == 'workStation'){
if(isShowButton.value){
val.forEach(item=>{ val.forEach(item=>{
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow[formField] = item[searchField] newRow[formField] = item[searchField]
newRow['toLocationCode'] = item['rawLocationCode'] newRow['toLocationCode'] = item['rawLocationCode']
tableData.value.push(newRow) tableData.value.push(newRow)
}) })
}else{
row[formField] = val[0][searchField]
}
console.log(77,formField) console.log(77,formField)
console.log(66,searchField) console.log(66,searchField)
console.log(88,tableData.value) console.log(88,tableData.value)
@ -142,6 +147,12 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row ) =>
setV['shift'] = val[0]['shift'] setV['shift'] = val[0]['shift']
setV['team'] = val[0]['team'] setV['team'] = val[0]['team']
isShowButton.value = false isShowButton.value = false
PreparetoissueDetail.allSchemas.tableFormColumns.map(item => {
if (item.field == 'workStation') {
item.tableForm.isInpuFocusShow = true
}
})
// getBomDisassemble // getBomDisassemble
PreparetoissueMainApi.getBomDisassemble(val[0]['id']) PreparetoissueMainApi.getBomDisassemble(val[0]['id'])
.then(res => { .then(res => {

Loading…
Cancel
Save