Browse Source

缺陷:HL-4998更新配置

hella_online_20241107
zhaoxuebing 3 weeks ago
parent
commit
80b1d34eb5
  1. 5
      src/api/wms/repleinshJobMain/index.ts
  2. 13
      src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue

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

@ -103,4 +103,9 @@ export const closeRepleinshMain = async (id) => {
// 执行发料任务
export const executeRepleinshMain = async (data) => {
return await request.put({ url: `/wms/repleinsh-job-main/execute`, data})
}
// 更新任务配置
export const updateRepleinshJobConfig = () => {
return request.put({ url: '/wms/repleinsh-job-main/updateRepleinshJobConfig'})
}

13
src/views/wms/issueManage/repleinsh/repleinshJobMain/index.vue

@ -126,6 +126,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:repleinsh-job-main:export'}), //
defaultButtons.defaultUpdateTaskSettingBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -143,6 +144,18 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => {
if (val == 'export') { //
handleExport()
}else if(val == 'updateTaskSetting'){
//
try {
// loading
loadStart()
RepleinshJobMainApi.updateRepleinshJobConfig()
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