Browse Source

更新任务设置

hella_online_20241114
zhaoxuebing 2 weeks ago
parent
commit
70a059c17a
  1. 5
      src/api/wms/productreceiptJobMain/index.ts
  2. 13
      src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue

5
src/api/wms/productreceiptJobMain/index.ts

@ -163,3 +163,8 @@ export const closeProductreceiptMain = async (id) => {
export const executeProductreceiptMain = async (data) => {
return await request.put({ url: `/wms/productreceipt-job-main/execute`, data})
}
// 更新任务配置
export const updateProductreceiptJobConfig = () => {
return request.put({ url: '/wms/productreceipt-job-main/updateProductreceiptJobConfig'})
}

13
src/views/wms/productionManage/productreceipt/productreceiptJobMain/index.vue

@ -181,6 +181,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:productreceipt-job-main:export'}), //
defaultButtons.defaultUpdateTaskSettingBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -198,6 +199,18 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => {
if (val == 'export') { //
handleExport()
}else if(val == 'updateTaskSetting'){
//
try {
// loading
loadStart()
ProductreceiptJobMainApi.updateProductreceiptJobConfig()
buttonBaseClick('refresh',null)
message.success(t('更新成功'))
} catch {
} finally {
loadDone()
}
} else if (val == 'refresh') { //
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({

Loading…
Cancel
Save