diff --git a/src/api/sync/spsSyncStatus.js b/src/api/sync/spsSyncStatus.js index b574ece5..af147fa2 100644 --- a/src/api/sync/spsSyncStatus.js +++ b/src/api/sync/spsSyncStatus.js @@ -42,6 +42,22 @@ export function findConfig(query) { }); } +export function getSelectedBussinessType(query) { + return axios({ + url: "/system/param/syncData/selectedBus", + method: "get", + params: query + }); +} + +export function getSelectedToInBussinessType(query) { + return axios({ + url: "/system/param/syncData/selectedToInBus", + method: "get", + params: query + }); +} + export function updateConfig(query) { return axios({ url: "/system/param/syncData/save", diff --git a/src/views/sync/SysUdimsConfig.vue b/src/views/sync/SysUdimsConfig.vue index e85f5467..a1aee431 100644 --- a/src/views/sync/SysUdimsConfig.vue +++ b/src/views/sync/SysUdimsConfig.vue @@ -350,6 +350,24 @@ label="单据(单据类型)" label-style="width: 150px" > +
+ + + + + + + 重置 + 查询 + + + +
+
+ + + + + + + 重置 + 查询 + + + +
+
+ + + + + + + 重置 + 查询 + + + +
选入 @@ -655,6 +709,24 @@ :close-on-press-escape="false" v-if="addBusDialogVisible" > +
+ + + + + + + 重置 + 查询 + + + +
选入 @@ -749,6 +821,8 @@ import { findConfig, testConnect, updateConfig, + getSelectedBussinessType, + getSelectedToInBussinessType } from "@/api/sync/spsSyncStatus"; import store from "@/store"; import {getBussinessType} from "@/api/basic/bussinessType"; @@ -758,6 +832,16 @@ export default { name: "SysUdimsConfig", data() { return { + selectedBusTypesQuery: { + name: null, + page: 1, + limit: null + }, + selectedToInBusTypesQuery: { + name: null, + page: 1, + limit: null + }, activeNames: ["2"], configQuery: { id: null, @@ -806,6 +890,7 @@ export default { checkedToInBusTypes: [], checkedChangeBusTypes: [], busQuery: { + name: null, page: 1, limit: 10, }, @@ -827,6 +912,42 @@ export default { }; }, methods: { + querySeletedBus(){ + getSelectedBussinessType(this.selectedBusTypesQuery) + .then((response) => { + this.checkedBusTypes = response.data.list || []; + }) + .catch(() => { + }); + }, + resetSeletedBus(){ + this.selectedBusTypesQuery = { + name: null + } + this.getConfig() + }, + querySeletedToInBus(){ + getSelectedToInBussinessType(this.selectedToInBusTypesQuery) + .then((response) => { + this.checkedToInBusTypes = response.data.list || []; + }) + .catch(() => { + }); + }, + resetSeletedToInBus(){ + this.selectedToInBusTypesQuery = { + name: null + } + this.getConfig() + }, + resetBus(){ + this.busQuery = { + name: null, + page: 1, + limit: 10, + }, + this.getBusType() + }, getConfig() { findConfig() .then((response) => { @@ -909,11 +1030,13 @@ export default { }, addBusTypeDialog() { + this.resetBus() this.addBusDialogVisible = true; this.multipleSelection = []; }, addToInBusTypeDialog() { + this.resetBus() this.addBusToInDialogVisible = true; this.toInSelecttions = []; },