|
|
@ -39,11 +39,8 @@ |
|
|
|
</Table> |
|
|
|
</ContentWrap> |
|
|
|
<!-- :vLoading="formLoadingPlan" --> |
|
|
|
<Dialog title="预览要货计划" |
|
|
|
v-model="dialogVisiblePlan" |
|
|
|
width="80%" |
|
|
|
:close-on-click-modal="false" |
|
|
|
> |
|
|
|
<Dialog title="预览要货计划" v-model="dialogVisiblePlan" width="80%" :close-on-click-modal="false" > |
|
|
|
<div v-loading="formLoadingPlan"> |
|
|
|
<Table |
|
|
|
ref="tablePlanRef" |
|
|
|
:selection="true" |
|
|
@ -55,13 +52,15 @@ |
|
|
|
v-model:sort="tableObjectPlan.sort" |
|
|
|
@getSelectionRows="getSelectionRowsPlan" |
|
|
|
/> |
|
|
|
<template #footer> |
|
|
|
<div style="padding-top: 20px;text-align: right;"> |
|
|
|
<slot name="foorter"></slot> |
|
|
|
<ButtonBase :Butttondata="[ |
|
|
|
defaultButtons.formSaveBtn(null), // 保存 |
|
|
|
defaultButtons.formCloseBtn(null) // 关闭 |
|
|
|
]" @button-base-click="buttonBaseClickPlan" /> |
|
|
|
</template> |
|
|
|
]" |
|
|
|
@button-base-click="buttonBaseClickPlan" /> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</Dialog> |
|
|
|
|
|
|
|
|
|
|
@ -94,7 +93,7 @@ const updataTableColumns = (val) => { |
|
|
|
orginTableColumns.value = val |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const formLoadingPlan = ref(false) |
|
|
|
|
|
|
|
// 查询页面返回 |
|
|
|
const searchQueryTableSuccess = (formField, searchField, val, formRef, type, row ) => { |
|
|
@ -292,7 +291,8 @@ const handlePreviewPlan = async ()=>{ |
|
|
|
const buttonBaseClickPlan = async (val)=>{ |
|
|
|
if (val == 'save') { |
|
|
|
// 保存 |
|
|
|
dialogVisiblePlan.value = false |
|
|
|
formLoadingPlan.value =true |
|
|
|
try { |
|
|
|
let rows: any = [] |
|
|
|
selectionPlanRows.value.forEach((item) => { |
|
|
|
rows = [...rows, ...item.selectionRows.map((item1) => item1.id)] |
|
|
@ -302,7 +302,12 @@ const buttonBaseClickPlan = async (val)=>{ |
|
|
|
let res = await DemandforecastingDetailApi.generateOrderPlan(rows) |
|
|
|
message.success(t('common.submitSuccess')) |
|
|
|
buttonBaseClick('refresh', null) |
|
|
|
dialogVisiblePlan.value = false |
|
|
|
console.log('保存',res) |
|
|
|
} finally { |
|
|
|
formLoadingPlan.value =false |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
// 关闭 |
|
|
|
else if (val == 'close') { |
|
|
|