From 82de02f5d5b50f78176ebdffbe472d66a7d7845c Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期五, 05 四月 2024 20:01:00 +0800 Subject: [PATCH] # --- pages/phyz/order/orderList2.vue | 19 ++----------------- 1 files changed, 2 insertions(+), 17 deletions(-) diff --git a/pages/phyz/order/orderList2.vue b/pages/phyz/order/orderList2.vue index cca8fda..981ae5c 100644 --- a/pages/phyz/order/orderList2.vue +++ b/pages/phyz/order/orderList2.vue @@ -12,6 +12,7 @@ </view> <view class="list" v-for="(item,i) in dataList"> <view class="list-left"> + <view>鍗曞彿锛歿{item.orderNo}}</view> <view>缂栧彿锛歿{item.matnr}}</view> <view>鍚嶇О锛歿{item.maktx}}</view> <view>瑙勬牸锛歿{item.specs}}</view> @@ -91,7 +92,6 @@ if (res.code === 200) { res.data.records _this.dataList = res.data.records - _this.oldDataList = [..._this.dataList] } } @@ -105,25 +105,10 @@ } this.newDataList = [] for (let k in this.dataList) { - if (!this.dataList[k].matnr.includes(this.matnr)) { + if (!this.dataList[k].orderNo.includes(this.matnr)) { count++; } else { this.newDataList.push(this.dataList[k]) - } - } - if (this.matnr != '') { - for (let j in this.dataList) { - if (!this.dataList[j].maktx.includes(this.matnr)) { - } else { - for (let i in this.newDataList) { - if (this.newDataList[i].matnr == this.dataList[j].matnr) { - sign++ - } - } - if (sign == 0) { - this.newDataList.push(this.dataList[j]) - } - } } } this.dataList = this.newDataList -- Gitblit v1.9.1