Browse Source

bug修复

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

23
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'){
val.forEach(item=>{ if(isShowButton.value){
const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item})) val.forEach(item=>{
newRow[formField] = item[searchField] const newRow = JSON.parse(JSON.stringify({...tableFormKeys,...item}))
newRow['toLocationCode'] = item['rawLocationCode'] newRow[formField] = item[searchField]
tableData.value.push(newRow) newRow['toLocationCode'] = item['rawLocationCode']
}) 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