Browse Source

修改采购收货

master
zhaoxuebing 8 months ago
parent
commit
2588f24b3e
  1. 11
      src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

11
src/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/index.vue

@ -143,6 +143,7 @@ const updataTableColumns = (val) => {
//
const searchTableSuccess = (formField, searchField, val, formRef, type, row) => {
nextTick(() => {
console.log("formField:",formField)
if (type == 'tableForm') {
//
row[formField] = val[0][searchField]
@ -152,9 +153,14 @@ const searchTableSuccess = (formField, searchField, val, formRef, type, row) =>
row['poLine'] = val[0]['poLine']
row['uom'] = val[0]['uom']
}
} else {
const setV = {}
setV[formField] = val[0][searchField]
if(formField == 'ppNumber'){
//
tableData.value = [] //
}
formRef.setValues(setV)
}
})
@ -643,6 +649,11 @@ const submitForm = async (formType, data) => {
}
try {
if (formType === 'create') {
if(tableData.value.length <= 0){
message.warning(`子表明细不能为空!`)
formRef.value.formLoading = false
return;
}
await SupplierdeliverRequestMainApi.createSupplierdeliverRequestMain(data)
message.success(t('common.createSuccess'))
} else {

Loading…
Cancel
Save