Browse Source

缺陷:HL-4998更新配置

hella_online_20241107
zhaoxuebing 3 weeks ago
parent
commit
87c4678421
  1. 5
      src/api/wms/purchasereturnJobMain/index.ts
  2. 13
      src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue

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

@ -106,3 +106,8 @@ export const acceptPurchasereturnJobMain = (id: number) => {
export const abandonPurchasereturnJobMain = (id: number) => { export const abandonPurchasereturnJobMain = (id: number) => {
return request.put({ url: '/wms/purchasereturn-job-main/abandon?id=' + id }) return request.put({ url: '/wms/purchasereturn-job-main/abandon?id=' + id })
} }
// 更新任务配置
export const updatePurchasereturnJobConfig = () => {
return request.put({ url: '/wms/purchasereceipt-job-main/updatePurchasereturnJobConfig'})
}

13
src/views/wms/purchasereceiptManage/purchasereturn/purchasereturnJobMain/index.vue

@ -141,6 +141,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereturn-job-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereturn-job-main:export'}), //
defaultButtons.defaultUpdateTaskSettingBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -158,6 +159,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()
PurchasereturnJobMainApi.updatePurchasereturnJobConfig()
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