|
@ -116,8 +116,13 @@ |
|
|
fieldTableColumn="poLine" |
|
|
fieldTableColumn="poLine" |
|
|
@detailOpenForm="detailOpenForm" |
|
|
@detailOpenForm="detailOpenForm" |
|
|
@handleSubmitForm="handleDetailSubmitForm" |
|
|
@handleSubmitForm="handleDetailSubmitForm" |
|
|
|
|
|
@detailBasicFormOnChange="detailBasicFormOnChange" |
|
|
|
|
|
|
|
|
/> |
|
|
> |
|
|
|
|
|
<template #boxQty="{row}" > |
|
|
|
|
|
{{ Math.ceil(Number(row.planQty) / Number(row.purchaseStdQty))}} |
|
|
|
|
|
</template> |
|
|
|
|
|
</Detail> |
|
|
<!-- 导入 --> |
|
|
<!-- 导入 --> |
|
|
<ImportFormPlanCSV ref="importFormRef" url="/wms/purchase-plan-main/importCSV" :importTemplateData="importTemplateData" :announcements = "announcements" |
|
|
<ImportFormPlanCSV ref="importFormRef" url="/wms/purchase-plan-main/importCSV" :importTemplateData="importTemplateData" :announcements = "announcements" |
|
|
@success="importSuccess" :updateIsDisable="false" :appendIsDisable="true" :coverIsDisable="true" :mode="1" :coverIsShow="false" :appendIsShow="false"/> |
|
|
@success="importSuccess" :updateIsDisable="false" :appendIsDisable="true" :coverIsDisable="true" :mode="1" :coverIsShow="false" :appendIsShow="false"/> |
|
@ -1068,8 +1073,16 @@ const handleSelectionPublish = async ()=>{ |
|
|
// 数字输入-改变事件 |
|
|
// 数字输入-改变事件 |
|
|
const inputNumberChange = (field, index, row, val) => { |
|
|
const inputNumberChange = (field, index, row, val) => { |
|
|
console.log('inputNumberChange', field, index, row, val) |
|
|
console.log('inputNumberChange', field, index, row, val) |
|
|
row.planQty = row.boxQty * row.purchaseStdQty |
|
|
if (field == 'boxQty') { |
|
|
|
|
|
row.planQty = row.boxQty * row.purchaseStdQty |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
const detailBasicFormOnChange =(field, val) => { |
|
|
|
|
|
if (field == 'boxQty') { |
|
|
|
|
|
detailRef.value.formRef.formRef.formModel.planQty = detailRef.value.formRef.formRef.formModel.boxQty * detailRef.value.formRef.formRef.formModel.purchaseStdQty |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
/** 初始化 **/ |
|
|
/** 初始化 **/ |
|
|
onMounted(async () => { |
|
|
onMounted(async () => { |
|
|
getList() |
|
|
getList() |
|
|