Browse Source

缺陷:HL-4998更新配置

hella_online_20241107
zhaoxuebing 3 weeks ago
parent
commit
0e8ff11936
  1. 10
      src/api/wms/productionreturnJobMain/index.ts
  2. 22
      src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue

10
src/api/wms/productionreturnJobMain/index.ts

@ -125,4 +125,14 @@ export const closeProductionreturnMain = async (id) => {
// 执行发料任务
export const executeProductionreturnMain = async (data) => {
return await request.put({ url: `/wms/productionreturn-job-main/execute`, data})
}
// 更新任务配置
export const updateProductionreturnJobConfig = () => {
return request.put({ url: '/wms/productionreturn-job-main/updateProductionreturnJobConfig'})
}
// 更新任务配置-隔离收货任务
export const updateProductionreturnJobHoldConfig = () => {
return request.put({ url: '/wms/productionreturn-job-main/updateProductionreturnJobHoldConfig'})
}

22
src/views/wms/issueManage/productionreturn/productionreturnJobMain/index.vue

@ -129,6 +129,7 @@ const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:productionreturn-job-main:export'}), //
defaultButtons.defaultUpdateTaskSettingBtn(null), //
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), //
@ -138,6 +139,27 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => {
if (val == 'export') { //
handleExport()
}else if(val == 'updateTaskSetting'){
//
try {
// loading
loadStart()
console.log(routeName.value)
if('ProductionreturnJobMain'==routeName.value){
// 退
ProductionreturnJobMainApi.updateProductionreturnJobConfig()
buttonBaseClick('refresh',null)
message.success(t('更新成功'))
}else{
// 退
ProductionreturnJobMainApi.updateProductionreturnJobHoldConfig()
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