Browse Source

制品子件报废申请-更改bom数量之后,编辑展示的数量未更新问题

hella_online_20241226
王宇飞 3 months ago
parent
commit
943017caad
  1. 6
      src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

6
src/views/wms/productionManage/productscrap/productscrapRequestMain/index.vue

@ -346,6 +346,7 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> {
} }
return return
} }
detatableDataBom.params.masterId = row.id
detatableDataBom.params.itemCode = row.itemCode detatableDataBom.params.itemCode = row.itemCode
detatableDataBom.params.bomVersion = row.bomVersion detatableDataBom.params.bomVersion = row.bomVersion
detailQty.value = row.qty detailQty.value = row.qty
@ -384,7 +385,10 @@ const buttonOperationClick = async (row, label, index,isSave = false)=> {
// } // }
// }) // })
// }else { // }else {
if(formType.value != 'update'){
//
item.qty = item.bomQty * row.qty item.qty = item.bomQty * row.qty
}
// } // }
// const obj = await banchBomPage(row.fromLocationCode, item) // const obj = await banchBomPage(row.fromLocationCode, item)
// console.log('obj',obj) // console.log('obj',obj)
@ -871,7 +875,9 @@ const handleHandle = async (id: number) => {
/** 添加/修改操作 */ /** 添加/修改操作 */
const formRef = ref() const formRef = ref()
const formType = ref('')
const openForm =async (type: string, row?: number) => { const openForm =async (type: string, row?: number) => {
formType.value = type
tableData.value = [] // tableData.value = [] //
detatableDataBom.params = []; // Bom detatableDataBom.params = []; // Bom
lsBomSave.value = true lsBomSave.value = true

Loading…
Cancel
Save