diff --git a/src/views/sync/SysUdimsConfig.vue b/src/views/sync/SysUdimsConfig.vue
index 059df4e1..61563bde 100644
--- a/src/views/sync/SysUdimsConfig.vue
+++ b/src/views/sync/SysUdimsConfig.vue
@@ -54,7 +54,8 @@
-
@@ -160,7 +161,8 @@
-
@@ -209,8 +211,8 @@
-
- 待校验
+
+ 待校验
待核对
待审核
已审核
@@ -219,7 +221,47 @@
- 移除
+ 移除
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 添加业务单据类型
+
+
+
+
+
+
+
+
+
+ 待校验
+ 待核对
+ 待审核
+ 已审核
+
+
+
+
+
+ 移除
+
@@ -269,6 +311,48 @@
>
+
+
+
+
+ 选入
+
+
+
+
+
+
+
+
+
+
+
@@ -276,6 +360,7 @@
import {findConfig, testConnect, updateConfig} from "@/api/sync/spsSyncStatus";
import store from "@/store";
import {getBussinessType} from "@/api/basic/bussinessType";
+import {getBusTypeChangeList} from "@/api/basic/busTypeChange";
export default {
name: "SysUdimsConfig",
@@ -306,6 +391,7 @@ export default {
orderSyncDlTime: null,
delaySyncTime: null,
busTypes: [],
+ changeBusTypes: [],
companyCert: null,
manufacturerCert: null,
productCert: null,
@@ -313,6 +399,7 @@ export default {
},
checkedBusTypes: [],
+ checkedChangeBusTypes: [],
busQuery: {
page: 1,
limit: 10,
@@ -322,6 +409,14 @@ export default {
addBusDialogVisible: false,
total: 0,
testLoading: false,
+ addChangeBusDialogVisible: false,
+ changeBusQuery: {
+ page: 1,
+ limit: 10,
+ },
+ changeBusTypeTotal: 0,
+ changeBusTypes: [],
+ changeBusTypeSelection: []
}
},
methods: {
@@ -331,6 +426,7 @@ export default {
this.configQuery = response.data;
this.checkedBusTypes = this.configQuery.busTypes;
+ this.checkedChangeBusTypes = this.configQuery.changeBusTypes;
if (this.configQuery.busTypes != null) {
// for (let i = 0; i < this.configQuery.busTypes.length; i++) {
//
@@ -365,6 +461,9 @@ export default {
// this.configQuery.busTypes.push(this.checkedBusTypes);
// }
}
+ if (this.checkedChangeBusTypes != null) {
+ this.configQuery.changeBusTypes = this.checkedChangeBusTypes;
+ }
updateConfig(this.configQuery)
.then((response) => {
this.loading = false;
@@ -436,8 +535,6 @@ export default {
});
this.addBusDialogVisible = false;
},
-
-
remveBus(index, row) {
this.checkedBusTypes.splice(index, 1);
},
@@ -447,7 +544,51 @@ export default {
handleCurrentChange(val) {
this.busQuery.page = val;
this.getBusType();
-
+ },
+ addChangeBusType() {
+ let selectData = this.changeBusTypeSelection;
+ selectData.forEach((obj) => {
+ obj.outChange = false;
+ obj.orderStatus = 7;
+ let isPut = true;
+ for (let i = 0; i < this.checkedBusTypes.length; i++) {
+ if (this.checkedChangeBusTypes[i].action == obj.action) {
+ isPut = false;
+ }
+ }
+ if (isPut)
+ this.checkedChangeBusTypes.push(obj);
+ });
+ this.addChangeBusDialogVisible = false;
+ },
+ addChangeBusTypeDialog() {
+ this.addChangeBusDialogVisible = true;
+ this.changeBusTypeSelection = [];
+ this.changeBusQuery.page = 1;
+ },
+ getChangeBusType() {
+ getBusTypeChangeList(this.changeBusQuery).then((res) => {
+ if (res.data.list.length > 0) {
+ res.data.list.forEach((item) => {
+ let changeBusType = {
+ action: item.originAction,
+ name: item.originName
+ };
+ this.changeBusTypes.push(changeBusType);
+ });
+ }
+ this.changeBusTypeTotal = res.data.total || 0;
+ })
+ },
+ handleCurrentChangePage(val) {
+ this.changeBusQuery.page = val;
+ this.getChangeBusType();
+ },
+ handleCheckedChangeBus(val) {
+ this.changeBusTypeSelection = val;
+ },
+ checkSelectableChange(row) {
+ return !row.isSelect;
},
},
created() {
@@ -457,6 +598,7 @@ export default {
};
this.getBusType();
+ this.getChangeBusType();
this.getConfig();
},
}