Browse Source

【nev-接口看板】DataExchangeInterfaceConfig添加初始化到关闭状态

ag_report_nev
安虹睿 9 months ago
parent
commit
9f7d107c79
  1. 27
      fe/NEV.Faster.InterFace/src/api/wms-business.js
  2. 31
      fe/NEV.Faster.InterFace/src/views/menuList/DataExchangeInterfaceConfig.vue

27
fe/NEV.Faster.InterFace/src/api/wms-business.js

@ -1,30 +1,11 @@
// 外部业务数据接口 // 外部业务数据接口
import request from '@/utils/request' import request from '@/utils/request'
let businessApi = localStorage.getItem('businessApi') let baseAPI = localStorage.getItem('baseApi') + '/'
// MessageReceive 修改已接受按钮接口 // DataExchangeInterfaceConfig-初始化到关闭状态
export function messageReceiveUpdateStatsById(id) { export function DEInterfaceConfigReSet() {
return request({
method:'get',
url: businessApi + '/api/wms/message-receive/update-stats-by-id/'+id,
})
}
// 重新推送按钮接口
export function resetHandle(params,data,url) {
return request({
method:'post',
url: businessApi + '/'+ url +'/reset',
params:params,
data
})
}
// 重新推送按钮接口-qad-request
export function qadRequestRetryHandle(id) {
return request({ return request({
method:'post', method:'post',
url: businessApi + '/api/wms/qad-request/retry', url: baseAPI + 'api/DataExchangeInterfaceConfig/ReSetAsync',
params:{id:id},
}) })
} }

31
fe/NEV.Faster.InterFace/src/views/menuList/DataExchangeInterfaceConfig.vue

@ -10,7 +10,7 @@
:totalCount="totalCount" :totalCount="totalCount"
:multipleSelection="multipleSelection" :multipleSelection="multipleSelection"
:MaxResultCount="PageListParams.MaxResultCount" :MaxResultCount="PageListParams.MaxResultCount"
@topbutton="topbutton" @topbutton="topbuttonHanlde"
@inlineDialog="inlineDialog" @inlineDialog="inlineDialog"
@sortChange="sortChange" @sortChange="sortChange"
@alertoldSkipCount="alertoldSkipCount" @alertoldSkipCount="alertoldSkipCount"
@ -68,6 +68,7 @@ import { newAndEdiDialogMixins } from "@/mixins/newAndEdiDialogMixins"
import { mixins } from "@/mixins/mixins"; import { mixins } from "@/mixins/mixins";
import { filterSelectMixins } from '@/mixins/filter-Select' import { filterSelectMixins } from '@/mixins/filter-Select'
import { postUpdate } from "@/api/wms-api" import { postUpdate } from "@/api/wms-api"
import { DEInterfaceConfigReSet } from "@/api/wms-business"
export default { export default {
name: "DataExchangeInterfaceConfig", name: "DataExchangeInterfaceConfig",
@ -88,6 +89,14 @@ export default {
isRedundance:true, isRedundance:true,
isDetailExport:true isDetailExport:true
}),// }),//
{
type: "warning",
icon: "el-icon-switch-button",
label: "初始化到关闭状态",
name: "initToClose",
size: "mini",
isNoPermission:true
},
this.defaultFieldSettingBtn(),// this.defaultFieldSettingBtn(),//
this.defaultFreshBtn(),// this.defaultFreshBtn(),//
this.defaultFilterBtn(),// this.defaultFilterBtn(),//
@ -144,6 +153,26 @@ export default {
}).catch(() => { }).catch(() => {
}); });
},
topbuttonHanlde(val,item){
if(val == "initToClose"){
this.$confirm('你确定要执行【初始化到关闭状态】', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.Loading.tableLoading = true
DEInterfaceConfigReSet().then(res => {
this.paging()
}).catch(err => {
this.Loading.tableLoading = false
})
}).catch(() => {
});
}else{
this.topbutton(val,item)
}
} }
} }
} }

Loading…
Cancel
Save