Browse Source

更新任务设置

hella_online_20241114
zhaoxuebing 2 weeks ago
parent
commit
c59ce2b3c6
  1. 5
      src/api/wms/productredressJobMain/index.ts
  2. 13
      src/views/wms/productionManage/productredress/productredressJobMain/index.vue

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

@ -102,3 +102,8 @@ export const exportProductredressJobMain = async (params) => {
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/productredress-job-main/get-import-template' }) return request.download({ url: '/wms/productredress-job-main/get-import-template' })
} }
// 更新任务配置
export const updateProductredressJobConfig = () => {
return request.put({ url: '/wms/productredress-job-main/updateProductredressJobConfig'})
}

13
src/views/wms/productionManage/productredress/productredressJobMain/index.vue

@ -88,6 +88,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:productredress-job-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:productredress-job-main:export'}), //
defaultButtons.defaultUpdateTaskSettingBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -97,6 +98,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()
ProductredressJobMainApi.updateProductredressJobConfig()
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