From 4c7af09b18ff4f83c36497f93c97db298964fcf3 Mon Sep 17 00:00:00 2001 From: A0010407 Date: Thu, 28 Sep 2023 15:51:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BD=E5=9D=AF=E8=AE=A2=E5=8D=95=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E6=95=B0=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/plan/whiteOrder/index.vue | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/views/plan/whiteOrder/index.vue b/src/views/plan/whiteOrder/index.vue index f62dadd..8f869d9 100644 --- a/src/views/plan/whiteOrder/index.vue +++ b/src/views/plan/whiteOrder/index.vue @@ -194,6 +194,7 @@ +
合计: {{this.whiteTotal}} 条
@@ -621,6 +622,7 @@ export default { }, data() { return { + whiteTotal:null, // 拆分车数换算值 converCarNum: null, // 拆分-班次 @@ -768,6 +770,10 @@ export default { this.queryParams.planDateStart = moment(this.queryParams.planDateArray[0]).format('YYYY-MM-DD') this.queryParams.planDateEnd = moment(this.queryParams.planDateArray[1]).format('YYYY-MM-DD') listWhiteOrder(this.queryParams).then(response => { + for (let i = 0; i < response.data.length; i++) { + if(response.data[i].parentOrder == '0') + this.whiteTotal += 1; + } this.whiteOrderList = this.handleTree(response.data, "orderCode", "parentOrder"); this.loading = false; }); @@ -1357,13 +1363,17 @@ export default { this.$modal.msgSuccess('新增成功') this.dialogVisible = false this.reset(); - this.getList() + this.getList(); }); }, // 首-查询白坯订单管理列表 getList() { this.loading = true; listWhiteOrder(this.queryParams).then(response => { + for (let i = 0; i < response.data.length; i++) { + if(response.data[i].parentOrder == '0') + this.whiteTotal += 1; + } this.whiteOrderList = this.handleTree(response.data, "orderCode", "parentOrder"); this.loading = false; }); @@ -1382,6 +1392,10 @@ export default { /** 查询白坯订单管理下拉树结构 */ getTreeselect() { listWhiteOrder().then(response => { + for (let i = 0; i < response.data.length; i++) { + if(response.data[i].parentOrder == '0') + this.whiteTotal += 1; + } this.whiteOrderOptions = []; const data = {orderCode: 0, prodDesc: '顶级节点', children: []}; data.children = this.handleTree(response.data, "orderCode", "parentOrder"); @@ -1459,6 +1473,7 @@ export default { this.$modal.confirm('是否确认删除白坯订单管理编号为"' + row.id + '"的数据项?').then(function () { return delWhiteOrder(row.id); }).then(() => { + this.whiteTotal = null; this.getList(); this.$modal.msgSuccess("删除成功"); }).catch(() => {