From 02fddd9eb7a2b4df590d363781e6104290d48eab Mon Sep 17 00:00:00 2001 From: whycq <whycq> Date: 星期一, 14 二月 2022 19:28:08 +0800 Subject: [PATCH] # --- pages/basics/comb.vue | 12 +++--------- 1 files changed, 3 insertions(+), 9 deletions(-) diff --git a/pages/basics/comb.vue b/pages/basics/comb.vue index 5134fac..fd35c02 100644 --- a/pages/basics/comb.vue +++ b/pages/basics/comb.vue @@ -12,7 +12,7 @@ <uni-table border stripe emptyText="鏆傛棤鏇村鏁版嵁"> <uni-tr> <uni-th width="50">鏁伴噺</uni-th> - <uni-th width="100">浜у搧浠e彿</uni-th> + <uni-th width="100">浜у搧ID</uni-th> <uni-th width="100">浜у搧鍚嶇О</uni-th> </uni-tr> <uni-tr v-for="(item, index) in matData" :key="index" @input="tabRender()"> @@ -113,10 +113,8 @@ // 鏍规嵁浜у搧浠e彿鏌ヨ浜у搧璇︽儏 find(){ let that = this - console.log(that.matNo) let thatId = that.matNo if(that.matNo.length===0){ - console.log(1) return; } uni.request({ @@ -130,7 +128,6 @@ }, method:'POST', success:function(res){ - console.log(res) let data = res.data.data if(res.data.code === 200){ @@ -156,20 +153,17 @@ matName:that.matName, count:that.count } - that.addTbaleData(data) + that.addTableData(data) }, // 娣诲姞琛ㄦ牸鏁版嵁 - addTbaleData(data){ - console.log(data.matName) + addTableData(data){ if(data.matName===''){ - this.messageToggle('error') return } this.$refs.popup.close() - console.log(this.matData.length) for(var i=0;i<this.matData.length;i++){ if(data.matNo === this.matData[i].matNo){ this.matData[i].count = Number(this.matData[i].count) + Number(data.count); -- Gitblit v1.9.1