|
@ -96,6 +96,7 @@ |
|
|
editHasPermi="wms:purchase-plan-main:update" |
|
|
editHasPermi="wms:purchase-plan-main:update" |
|
|
deleteHasPermi="wms:purchase-plan-main:delete" |
|
|
deleteHasPermi="wms:purchase-plan-main:delete" |
|
|
:isOpenSearchTable="true" |
|
|
:isOpenSearchTable="true" |
|
|
|
|
|
:mainSubmitCreateApi="true" |
|
|
fieldTableColumn="poLine" |
|
|
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 () => { |
|
|
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 = {} |
|
|
const setV = {} |
|
|
setV[formField] = val[0][searchField] |
|
|
setV[formField] = val[0][searchField] |
|
|
setV['poNumber'] = val[0]['number'] |
|
|
setV['poNumber'] = val[0]['number'] |
|
|