Browse Source

缺陷:HL-4998更新配置

hella_online_20241107
赵雪冰 6 months 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

@ -106,3 +106,8 @@ export const closeIssueMain = async (id) => {
export const executeIssueMain = async (data) => { export const executeIssueMain = async (data) => {
return await request.put({ url: `/wms/productionreceipt-job-main/execute`, 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 = [ const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:productionreceipt-job-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:productionreceipt-job-main:export'}), //
defaultButtons.defaultUpdateTaskSettingBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -127,6 +128,18 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'export') { // if (val == 'export') { //
handleExport() handleExport()
}else if(val == 'updateTaskSetting'){
//
try {
// loading
loadStart()
ProductionreceiptJobMainApi.updateProductionreceiptJobConfig()
buttonBaseClick('refresh',null)
message.success(t('更新成功'))
} catch {
} finally {
loadDone()
}
} else if (val == 'refresh') { // } else if (val == 'refresh') { //
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({ searchFormClick({

Loading…
Cancel
Save