diff --git a/src/api/wms/purchasereceiptJobMain/index.ts b/src/api/wms/purchasereceiptJobMain/index.ts index 0a7b2fcf8..f024ded64 100644 --- a/src/api/wms/purchasereceiptJobMain/index.ts +++ b/src/api/wms/purchasereceiptJobMain/index.ts @@ -143,4 +143,9 @@ export const refusalPurchasereceiptJobMain = (data) => { // 更新任务配置 export const updatePurchasereceiptJobConfig = () => { return request.put({ url: '/wms/purchasereceipt-job-main/updatePurchasereceiptJobConfig'}) +} + +// 维修备件更新任务配置 +export const updatePurchasereceiptJobConfigSpare = () => { + return request.put({ url: '/wms/purchasereceipt-job-main/updatePurchasereceiptJobConfigSpare'}) } \ No newline at end of file diff --git a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue index a8136d188..16b901b6a 100644 --- a/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue @@ -176,8 +176,8 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ -defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), // 导出 -defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 + defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), // 导出 + defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 diff --git a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue index ae96d00d7..52732514f 100644 --- a/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue +++ b/src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue @@ -142,6 +142,7 @@ const { getList, setSearchParams } = tableMethods // 列表头部按钮 const HeadButttondata = [ defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), // 导出 + defaultButtons.defaultUpdateTaskSettingBtn(null), // 更新任务设置 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 @@ -151,7 +152,19 @@ const HeadButttondata = [ const buttonBaseClick = (val, item) => { if (val == 'export') { // 导出 handleExport() - } else if (val == 'refresh') { // 刷新 + } else if(val == 'updateTaskSetting'){ + // 更新任务设置 + try { + // loading开始 + loadStart() + PurchasereceiptJobMainApi.updatePurchasereceiptJobConfigSpare() + 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