Browse Source

要货计划新增

linshi20240813
wangyufei 3 months ago
parent
commit
5f4156907e
  1. 18
      src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

18
src/views/wms/purchasereceiptManage/supplierdeliver/purchasePlanMain/index.vue

@ -96,6 +96,7 @@
editHasPermi="wms:purchase-plan-main:update"
deleteHasPermi="wms:purchase-plan-main:delete"
:isOpenSearchTable="true"
:mainSubmitCreateApi="true"
fieldTableColumn="poLine"
/>
@ -302,8 +303,23 @@ const getSearchTableData = async (number,formField,searchField)=>{
})
}
//
const searchTableSuccessDetail = (formField, searchField, val, formRef) => {
const searchTableSuccessDetail = (formField, searchField, val, formRef,formModel) => {
console.log('searchTableSuccessDetail',formField, searchField, val, formRef,formModel)
nextTick(async () => {
if(formModel){
console.log(formModel)
//
let data = {...val[0]}
data['planQty'] = val[0]['orderQty']
data['poLine'] = val[0]['lineNumber']
data['number'] = formModel['number']
data['poNumber'] = formModel['poNumber']
console.log('data',data)
await PurchasePlanDetailApi.createPurchasePlanDetail(data)
message.success(t('common.createSuccess'))
detailRef.value.updateList()
return
}
const setV = {}
setV[formField] = val[0][searchField]
setV['poNumber'] = val[0]['number']

Loading…
Cancel
Save