From 3ed63b68ceed91a86d999f488599efe35572c46c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=96=9B=E5=AE=87?= <2433098676@qq.com> Date: Wed, 19 Jul 2023 17:05:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=BA=E8=AE=AE=E5=9C=A8=E2=80=9C=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E8=AE=BE=E7=BD=AE=E2=80=9D=E9=A1=B5=E9=9D=A2=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=89=AB=E7=A0=81=E5=8D=95=E6=8D=AE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E5=8A=9F=E8=83=BD=E6=A8=A1=E5=9D=97=EF=BC=9A=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E4=B8=80=E4=B8=AA=20=E6=90=9C=E7=B4=A2=E6=A1=86?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/sync/spsSyncStatus.js | 16 ++++ src/views/sync/SysUdimsConfig.vue | 123 ++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) 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 = []; },