diff --git a/src/api/wms/productputawayJobMain/index.ts b/src/api/wms/productputawayJobMain/index.ts index 32a1874b6..657ab6f95 100644 --- a/src/api/wms/productputawayJobMain/index.ts +++ b/src/api/wms/productputawayJobMain/index.ts @@ -135,3 +135,8 @@ export const executeProductputawayMain = async (data) => { export const updateProductputawayJobConfig = () => { return request.put({ url: '/wms/productputaway-job-main/updateProductputawayJobConfig'}) } + +// 更新任务配置装配 +export const updateProductputawayJobAssembleConfig = () => { + return request.put({ url: '/wms/productputaway-job-main/updateProductputawayJobAssembleConfig'}) +} diff --git a/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue b/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue index 41ebf2409..51066971a 100644 --- a/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue +++ b/src/views/wms/productionManage/productputawayAssemble/productputawayAssembleJobMain/index.vue @@ -138,6 +138,7 @@ const getSwitchStatus = async ()=>{ const HeadButttondata = computed(()=>{ return [ defaultButtons.defaultExportBtn({hasPermi:'wms:productputaway-job-main:export'}), // 导出 + defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 { label: '待处理状态全部打印', name: 'printAllPending', @@ -159,6 +160,18 @@ const HeadButttondata = computed(()=>{ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() + }else if(val == 'updateTaskSetting'){ + // 更新任务设置 + try { + // loading开始 + loadStart() + ProductputawayJobMainApi.updateProductputawayJobAssembleConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } catch { + } finally { + loadDone() + } } else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({