|
|
@ -27,9 +27,12 @@ |
|
|
|
</ContentWrap> |
|
|
|
|
|
|
|
<!-- 表单弹窗:添加/修改 --> |
|
|
|
<BasicForm ref="formRef" @success="getList" :rules="PurchasePlanMainRules" |
|
|
|
:formAllSchemas="PurchasePlanMain.allSchemas" :tableAllSchemas="PurchasePlanDetail.allSchemas" |
|
|
|
:tableFormRules="PurchasePlanDetailRules" :tableData="tableData" |
|
|
|
<BasicForm ref="formRef" @success="getList" |
|
|
|
:rules="PurchasePlanMainRules" |
|
|
|
:formAllSchemas="PurchasePlanMain.allSchemas" |
|
|
|
:tableAllSchemas="PurchasePlanDetail.allSchemas" |
|
|
|
:tableFormRules="PurchasePlanDetailRules" |
|
|
|
:tableData="tableData" |
|
|
|
:apiUpdate="PurchasePlanMainApi.updatePurchasePlanMain" |
|
|
|
:apiCreate="PurchasePlanMainApi.createPurchasePlanMain" |
|
|
|
:isBusiness="true" |
|
|
@ -68,7 +71,6 @@ |
|
|
|
import * as PurchasePlanDetailApi from '@/api/wms/purchasePlanDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import * as PurchaseDetailApi from '@/api/wms/purchaseDetail' |
|
|
|
import {mainListPurchasePlanModBtn} from "@/utils/disposition/defaultButtons"; |
|
|
|
|
|
|
|
// 要货计划 |
|
|
|
defineOptions({ name: 'PurchasePlanMain' }) |
|
|
@ -108,6 +110,19 @@ |
|
|
|
setV['itemCode'] = val[0]['code'] |
|
|
|
setV['poNumber'] = val[0]['number'] |
|
|
|
setV['poLine'] = val[0]['lineNumber'] |
|
|
|
if(formField == 'supplierCode'){ |
|
|
|
setV['supplierCode'] = val[0]['code'] |
|
|
|
await PurchasePlanMainApi.queryPurchasePlan(val[0]['code']).then(res => { |
|
|
|
let beginTime = res.beginTime |
|
|
|
var ms = beginTime.substring(0, 2) |
|
|
|
var me = beginTime.substring(3) |
|
|
|
setV['beginTime'] = new Date(2024, 1, 1, Number(ms), Number(me)) |
|
|
|
let endTime = res.endTime |
|
|
|
var ms = endTime.substring(0, 2) |
|
|
|
var me = endTime.substring(3) |
|
|
|
setV['endTime'] = new Date(2024, 1, 1, Number(ms), Number(me)) |
|
|
|
}) |
|
|
|
} |
|
|
|
if (formField == 'poLine') { |
|
|
|
setV['itemCode'] = val[0]['itemCode'] |
|
|
|
setV['uom'] = val[0]['uom'] |
|
|
|