From e639fde81ee671772b9569f271e73007fe4452aa Mon Sep 17 00:00:00 2001 From: "pref_mail@163.com" <123456> Date: Thu, 14 Sep 2023 14:25:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=85=8D=E9=80=81=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/functions.js | 1 - .../deliverylist/distributionDeliveryList.vue | 32 ++++++++++--------- .../distributionDeliveryListdis.vue | 19 ++++++++++- 3 files changed, 35 insertions(+), 17 deletions(-) diff --git a/src/utils/functions.js b/src/utils/functions.js index bf483f51..de15e3f1 100644 --- a/src/utils/functions.js +++ b/src/utils/functions.js @@ -14,7 +14,6 @@ const utils = { checkcColumnList: (prop, columnList) => { for (var a = 0; a < columnList.length; a++) { if (columnList[a].prop === prop) { - console.log("1111111111111", columnList[a]); return columnList[a]; } } diff --git a/src/views/distribution/deliverylist/distributionDeliveryList.vue b/src/views/distribution/deliverylist/distributionDeliveryList.vue index 69a52361..7f9b5007 100644 --- a/src/views/distribution/deliverylist/distributionDeliveryList.vue +++ b/src/views/distribution/deliverylist/distributionDeliveryList.vue @@ -91,7 +91,7 @@
- + 批量打印
@@ -491,7 +491,6 @@ }, watch: { handler(newVal, oldVal) { - console.log(newVal, oldVal); this.fetchData(); this.onLoad(this.page); }, @@ -600,7 +599,6 @@ po.push(a); }); this.vehicleData = po; - console.log('^^^^^^^^^^^^^^^^', res.data.data); rv(res.data.data.records); }); }); @@ -618,7 +616,6 @@ po.push(a); }); this.driverData = po; - console.log('===============>', res.data.data); rv(res.data.data.records); }); }); @@ -648,14 +645,12 @@ if (value) { this.form.addvalueType = value; } - console.log('>>>>>', this.form); if (value.length < 1) { this.costList = []; this.costListName = []; } this.deliveryWayData.forEach(i => { if (value.includes(i.dictKey)) { - console.log(i); i.pitch = true; this.costListName = value; } @@ -676,6 +671,22 @@ //费用列表 }, + + /** + * 批量打印 + */ + printBatch(){ + if (this.selectionList.length === 0) { + this.$message.warning("请选择至少一条数据"); + return; + } + + this.$message({ + type: 'success', + message: '功能开发中!' + }); + + }, aaa() { let addvalueInfos = []; this.form.addvalueType.forEach((item, index) => { @@ -704,7 +715,6 @@ params.id = this.deliverId; params.addvalue = addvalueInfos; params.relatedId = 2; - console.log('params>>>>>>>>>>>>>>>>>>', params); addIncrement(params).then(res => { this.dialogVisible = false; this.$message({ @@ -715,11 +725,9 @@ this.onLoad(this.page); }, selectionsc(value) { - console.log('进来了>>>>>>>>>>>>>', value); }, editmap(scope) { const { row } = scope; - console.log('row>>>>>>xxxx', row); this.$router.push({ path: '/distribution/reservation/atlas1', query: { @@ -730,7 +738,6 @@ }, delectsolt(scope) { const { row } = scope; - console.log(row); }, handleClose(done) { this.$confirm('确认关闭?') @@ -742,7 +749,6 @@ }, editsolt(scope) { const { row } = scope; - console.log(row); this.$router.push({ path: '/distribution/deliverylist/distributionDeliveryListedt', query: { @@ -753,7 +759,6 @@ }, costadd(scope) { const { row } = scope; - console.log('row>>>>>>>>>>', row); this.deliverId = row.id; //查询订单的增值服务, this.addvalueServeType = []; @@ -765,7 +770,6 @@ // this.orderInfo = row; }, btnsc(index, row) { - console.log(index, row); }, selectsc(index, row) { this.query[row.prop] = index; @@ -781,7 +785,6 @@ this.onLoad(this.page); }, timesc(index, row) { - console.log(index, row); }, inputsc(index, row) { this.query[row.prop] = index; @@ -852,7 +855,6 @@ break; } } - console.log("query-------------->",this.query); this.onLoad(this.page); }, searchReset() { diff --git a/src/views/distribution/deliverylist/distributionDeliveryListdis.vue b/src/views/distribution/deliverylist/distributionDeliveryListdis.vue index b83a0a8a..864722d4 100644 --- a/src/views/distribution/deliverylist/distributionDeliveryListdis.vue +++ b/src/views/distribution/deliverylist/distributionDeliveryListdis.vue @@ -89,7 +89,10 @@ - 新 增 商 配 + 新增商配 + + + 批量打印
@@ -1027,6 +1030,20 @@ export default { }); }, + /** + * 批量打印 + */ + printBatch(){ + if (this.selectionList.length === 0) { + this.$message.warning("请选择至少一条数据"); + return; + } + this.$message({ + type: 'success', + message: '功能开发中!' + }); + }, + onLoad (page, params = {}) { this.loading = true;