Browse Source

缺陷:HL-4998更新配置

hella_online_20241107
zhaoxuebing 4 weeks ago
parent
commit
3f02b74432
  1. 5
      src/api/wms/purchasereceiptJobMain/index.ts
  2. 4
      src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue
  3. 15
      src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue

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

@ -144,3 +144,8 @@ export const refusalPurchasereceiptJobMain = (data) => {
export const updatePurchasereceiptJobConfig = () => { export const updatePurchasereceiptJobConfig = () => {
return request.put({ url: '/wms/purchasereceipt-job-main/updatePurchasereceiptJobConfig'}) return request.put({ url: '/wms/purchasereceipt-job-main/updatePurchasereceiptJobConfig'})
} }
// 维修备件更新任务配置
export const updatePurchasereceiptJobConfigSpare = () => {
return request.put({ url: '/wms/purchasereceipt-job-main/updatePurchasereceiptJobConfigSpare'})
}

4
src/views/wms/purchasereceiptManage/purchasereceipt/purchasereceiptJobMain/index.vue

@ -176,8 +176,8 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), //
defaultButtons.defaultUpdateTaskSettingBtn(null), // defaultButtons.defaultUpdateTaskSettingBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //

15
src/views/wms/purchasereceiptManage/sparereceipt/sparereceiptJobMain/index.vue

@ -142,6 +142,7 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:purchasereceipt-job-main:export'}), //
defaultButtons.defaultUpdateTaskSettingBtn(null), //
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -151,7 +152,19 @@ const HeadButttondata = [
const buttonBaseClick = (val, item) => { const buttonBaseClick = (val, item) => {
if (val == 'export') { // if (val == 'export') { //
handleExport() handleExport()
} else if (val == 'refresh') { // } else if(val == 'updateTaskSetting'){
//
try {
// loading
loadStart()
PurchasereceiptJobMainApi.updatePurchasereceiptJobConfigSpare()
buttonBaseClick('refresh',null)
message.success(t('更新成功'))
} catch {
} finally {
loadDone()
}
}else if (val == 'refresh') { //
if (tableObject.params.filters && tableObject.params.filters.length > 0 ) { if (tableObject.params.filters && tableObject.params.filters.length > 0 ) {
searchFormClick({ searchFormClick({
filters: tableObject.params.filters filters: tableObject.params.filters

Loading…
Cancel
Save