gcs-ui-lib 1.2.37 → 1.2.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/gcs-ui-lib.common.js +13804 -13803
- package/lib/gcs-ui-lib.umd.js +13804 -13803
- package/lib/gcs-ui-lib.umd.min.js +98 -98
- package/package.json +1 -1
- package/packages/AutoFillList/src/components/config.js +1 -1
- package/packages/AutoFillService/src/components/paymentCategoryT.vue +3 -28
- package/packages/LazyBank/src/main.vue +23 -2
package/package.json
CHANGED
|
@@ -188,7 +188,7 @@ export default {
|
|
|
188
188
|
} else if (this.type == "paymentCategory") {
|
|
189
189
|
params = {
|
|
190
190
|
activeFlag: 1,
|
|
191
|
-
|
|
191
|
+
directionList: [this.settingSource == '1' ? 1 : 0, 2].join(','),
|
|
192
192
|
resultType: 2,
|
|
193
193
|
};
|
|
194
194
|
} else {
|
|
@@ -198,33 +198,8 @@ export default {
|
|
|
198
198
|
}
|
|
199
199
|
let res = await this.Api(params);
|
|
200
200
|
res = this.tranData(res);
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
this.treeData = this.mergeTree(res, res1);
|
|
204
|
-
} else {
|
|
205
|
-
this.type == "cashflow" && this.handleData(res);
|
|
206
|
-
this.treeData = res;
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
|
|
210
|
-
// 递归合并两棵款项类别树(按paymentCategoryNo去重)
|
|
211
|
-
mergeTree(arr1, arr2) {
|
|
212
|
-
const map = new Map();
|
|
213
|
-
arr1?.forEach((item) => {
|
|
214
|
-
map.set(item.paymentCategoryNo, item);
|
|
215
|
-
});
|
|
216
|
-
arr2?.forEach((item) => {
|
|
217
|
-
if (map.has(item.paymentCategoryNo)) {
|
|
218
|
-
const existing = map.get(item.paymentCategoryNo);
|
|
219
|
-
existing.children = this.mergeTree(
|
|
220
|
-
existing.children,
|
|
221
|
-
item.children
|
|
222
|
-
);
|
|
223
|
-
} else {
|
|
224
|
-
map.set(item.paymentCategoryNo, item);
|
|
225
|
-
}
|
|
226
|
-
});
|
|
227
|
-
return Array.from(map.values());
|
|
201
|
+
this.type == "cashflow" && this.handleData(res);
|
|
202
|
+
this.treeData = res;
|
|
228
203
|
},
|
|
229
204
|
tranData(res) {
|
|
230
205
|
const eachItem = (parent, list) => {
|
|
@@ -68,6 +68,26 @@ export default {
|
|
|
68
68
|
total: 100
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
|
+
watch: {
|
|
72
|
+
value: {
|
|
73
|
+
handler(val) {
|
|
74
|
+
if (!val || (Array.isArray(val) && val.length === 0)) return
|
|
75
|
+
const valArr = Array.isArray(val) ? val : [val]
|
|
76
|
+
const missing = valArr.filter(v => !this.bankList.find(item => item.bankNo === v))
|
|
77
|
+
if (missing.length > 0) {
|
|
78
|
+
this.getBanks(missing)
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
moreParams: {
|
|
83
|
+
handler() {
|
|
84
|
+
this.page.current = 1
|
|
85
|
+
this.searchKey = ''
|
|
86
|
+
this.getBanks()
|
|
87
|
+
},
|
|
88
|
+
deep: true
|
|
89
|
+
}
|
|
90
|
+
},
|
|
71
91
|
async mounted() {
|
|
72
92
|
if (this.value){
|
|
73
93
|
await this.getBanks(this.value)
|
|
@@ -88,10 +108,11 @@ export default {
|
|
|
88
108
|
},
|
|
89
109
|
getBanks(originKey = '') {
|
|
90
110
|
const isArray = Array.isArray(originKey);
|
|
111
|
+
const bankNoList = isArray ? originKey.join(',') : (originKey || '');
|
|
91
112
|
const params = {
|
|
92
|
-
'page.current': this.page.current,
|
|
113
|
+
'page.current': bankNoList ? 1 : this.page.current,
|
|
93
114
|
'page.size': this.page.size,
|
|
94
|
-
|
|
115
|
+
...(bankNoList ? { bankNoList } : { searchKey: this.searchKey }),
|
|
95
116
|
isEnable: 1,
|
|
96
117
|
...this.moreParams,
|
|
97
118
|
}
|