|
|
@ -75,6 +75,7 @@ |
|
|
|
import { SupplierdeliverRequestMain, SupplierdeliverRequestMainRules, SupplierdeliverRequestDetail, SupplierdeliverRequestDetailRules } from './supplierdeliverRequestMain.data' |
|
|
|
import * as SupplierdeliverRequestMainApi from '@/api/wms/supplierdeliverRequestMain' |
|
|
|
import * as SupplierdeliverRequestDetailApi from '@/api/wms/supplierdeliverRequestDetail' |
|
|
|
import * as PurchasePlanDetailApi from '@/api/wms/purchasePlanDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import point from '@/views/wms/purchasereceiptManage/supplierdeliver/supplierdeliverRequestMain/point.vue' |
|
|
|
// import * as PackageApi from '@/api/wms/package' |
|
|
@ -105,6 +106,12 @@ |
|
|
|
} else { |
|
|
|
const setV = {} |
|
|
|
setV[formField] = val[0][searchField] |
|
|
|
|
|
|
|
if(formField=='ppNumber'){ |
|
|
|
// 获取子表数据 getBomDisassemble |
|
|
|
PurchasePlanDetailApi.getPurchasePlanDetailList({
poNumber: val[0]['number']}).then(res => {
if (res) tableData.value = res;
tableData.value.forEach(item=>{
item.batch = item.toBatch
})
}).catch(err => {
console.log(err)
}) |
|
|
|
} |
|
|
|
|
|
|
|
formRef.setValues(setV) |
|
|
|
} |
|
|
|
}) |
|
|
|