diff --git a/src/api/wms/productputawayJobMain/index.ts b/src/api/wms/productputawayJobMain/index.ts index d9379684f..32a1874b6 100644 --- a/src/api/wms/productputawayJobMain/index.ts +++ b/src/api/wms/productputawayJobMain/index.ts @@ -129,4 +129,9 @@ export const closeProductputawayMain = async (id) => { // 执行发料任务 export const executeProductputawayMain = async (data) => { return await request.put({ url: `/wms/productputaway-job-main/execute`, data}) -} \ No newline at end of file +} + +// 更新任务配置 +export const updateProductputawayJobConfig = () => { + return request.put({ url: '/wms/productputaway-job-main/updateProductputawayJobConfig'}) +} diff --git a/src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue b/src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue index 0fc3c3863..563a1d1bc 100644 --- a/src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue +++ b/src/views/wms/productionManage/productputaway/productputawayJobMain/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', @@ -157,7 +158,19 @@ const HeadButttondata = computed(()=>{ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() - } else if (val == 'refresh') { // 刷新 + } else if(val == 'updateTaskSetting'){ + // 更新任务设置 + try { + // loading开始 + loadStart() + ProductputawayJobMainApi.updateProductputawayJobConfig() + buttonBaseClick('refresh',null) + message.success(t('更新成功')) + } catch { + } finally { + loadDone() + } + }else if (val == 'refresh') { // 刷新 if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { searchFormClick({ filters: tableObject.params.filters