From d43899492c6a4bea0d18af33992a844aeb035bc4 Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期三, 13 九月 2023 13:15:32 +0800 Subject: [PATCH] 销售订单bug修复 --- src/components/view/sale.vue | 20 +++++++++----------- 1 files changed, 9 insertions(+), 11 deletions(-) diff --git a/src/components/view/sale.vue b/src/components/view/sale.vue index 56b9c32..9c98839 100644 --- a/src/components/view/sale.vue +++ b/src/components/view/sale.vue @@ -402,7 +402,7 @@ delTime: null }, tableData: [], - selects: [], + selects: '', currentPage: 1, countSize: 0, pageSize: 10, @@ -430,9 +430,12 @@ }, methods: { handleSelectionChange(val) { - this.selects = [] - val.forEach(a=>{ - this.selects.push(a.id) + this.selects = '' + val.forEach((a, ai)=>{ + this.selects += a.id + if(ai!=val.length-1){ + this.selects += ',' + } }) }, handleSizeChange(val) { @@ -459,7 +462,7 @@ }) }, clean() { - this.selects = [] + this.selects = '' this.currentPage = 1 this.countSize = 0 this.pageSize = 10 @@ -615,17 +618,12 @@ }) }, delSales(){ - console.log(this.selects); - if(this.selects.length==0) { + if(this.selects=='') { this.$message.warning('璇烽�夋嫨涓�鏉℃暟鎹垹闄�') return } this.axios.post(this.$api.url.delAllSale,{ ids: this.selects - }, { - headers: { - 'Content-Type': 'application/json' - } }).then(res=>{ this.$message.success('鍒犻櫎鎴愬姛') this.selectRawInspectsList() -- Gitblit v1.9.3