Browse Source

缺陷:HL-4998更新配置

hella_online_20241107
zhaoxuebing 3 weeks ago
parent
commit
7a39ebaaa6
  1. 5
      src/api/wms/productionreceiptJobMain/index.ts
  2. 13
      src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue

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

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

13
src/views/wms/issueManage/productionreceipt/productionreceiptJobMain/index.vue

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