From e91b83a895a9521d2b7a426417fdff73368aafed Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期二, 26 三月 2024 16:11:15 +0800
Subject: [PATCH] #
---
pages/phyz/order/purchaseOrder.vue | 55 ++-----------------------------------------------------
1 files changed, 2 insertions(+), 53 deletions(-)
diff --git a/pages/phyz/order/purchaseOrder.vue b/pages/phyz/order/purchaseOrder.vue
index 5daa42a..2aed4e8 100644
--- a/pages/phyz/order/purchaseOrder.vue
+++ b/pages/phyz/order/purchaseOrder.vue
@@ -53,7 +53,6 @@
onShow() {
this.baseUrl = uni.getStorageSync('baseUrl');
this.token = uni.getStorageSync('token');
- this.oldDataList = [...this.dataList]
this.getOrderList()
},
@@ -64,25 +63,10 @@
this.dataList = [...this.oldDataList]
this.newDataList = []
for (let k in this.dataList) {
- if (!this.dataList[k].matnr.includes(this.matnr)) {
+ if (!this.dataList[k].orderNo.includes(this.searchValue)) {
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
@@ -131,6 +115,7 @@
res = res.data
if (res.code === 200) {
_this.dataList = res.data.records
+ _this.oldDataList = [..._this.dataList]
}
}
})
@@ -164,40 +149,4 @@
<style>
@import url('../../../static/css/common/order.css');
- .card-status-1 {
- position: absolute;
- right: 20rpx;
- top: 30rpx;
- padding: 4rpx 20rpx;
- text-align: center;
- font-size: 10px;
- color: #f5222d;
- background-color: #fff1f0;
- border: 1px solid #ffa39e;
- border-radius: 6rpx;
- }
- .card-status-2 {
- position: absolute;
- right: 20rpx;
- top: 30rpx;
- padding: 4rpx 20rpx;
- text-align: center;
- font-size: 10px;
- color: #52c41a;
- background-color: #f6ffed;
- border: 1px solid #b7eb8f;
- border-radius: 6rpx;
- }
- .card-status-4 {
- position: absolute;
- right: 20rpx;
- top: 30rpx;
- padding: 4rpx 20rpx;
- text-align: center;
- font-size: 10px;
- color: #1890ff;
- background-color: #e6f7ff;
- border: 1px solid #91d5ff;
- border-radius: 6rpx;
- }
</style>
\ No newline at end of file
--
Gitblit v1.9.1