From 900e4776223c2a42d8859fc8cd635c13ffcfb3b5 Mon Sep 17 00:00:00 2001 From: 如洲 陈 <1278080563@qq.com> Date: 星期二, 30 九月 2025 11:12:13 +0800 Subject: [PATCH] 出库检优化 --- pages/QC/THJ/List.vue | 39 ++++++++++++++++++++------------------- 1 files changed, 20 insertions(+), 19 deletions(-) diff --git a/pages/QC/THJ/List.vue b/pages/QC/THJ/List.vue index 6b0cd31..b9f0a04 100644 --- a/pages/QC/THJ/List.vue +++ b/pages/QC/THJ/List.vue @@ -99,10 +99,10 @@ <!-- 瀹㈡埛淇℃伅 --> <view class="customer-info"> <view class="uni-title-sub uni-ellipsis-2"> - <view class="form-group"> - <label class="form-label">瀹㈡埛缂栧彿:</label> - <input class="form-input" disabled="true" type="text" v-model="item.customerNo"/> - </view> + <view class="form-group"> + <label class="form-label">瀹㈡埛鍚嶇О:</label> + <input class="form-input" disabled="true" type="text" :value="item.customerName || item.CUSTOMERNAME || ''"/> + </view> </view> </view> @@ -214,10 +214,10 @@ <!-- 瀹㈡埛淇℃伅 --> <view class="customer-info"> <view class="uni-title-sub uni-ellipsis-2"> - <view class="form-group"> - <label class="form-label">瀹㈡埛缂栧彿:</label> - <input class="form-input" disabled="true" type="text" v-model="item.customerNo"/> - </view> + <view class="form-group"> + <label class="form-label">瀹㈡埛鍚嶇О:</label> + <input class="form-input" disabled="true" type="text" :value="item.customerName || item.CUSTOMERNAME || ''"/> + </view> </view> </view> @@ -262,15 +262,9 @@ }, methods: { init() { - let result = ""; - if (this.current === 0) { - // 鏈畬鎴愶細娌℃湁妫�楠岀粨鏋� - result = "鏈畬鎴�"; - } else if (this.current === 1) { - // 宸插畬鎴愶細鏈夋楠岀粨鏋� - result = "宸插畬鎴�"; - } - + // 鏄惁瀹屾垚鐨勫垽鏂細浠� QS_QA_ITEM_THJ.TJ 鏄惁绛変簬 1 涓哄噯 + const tj = this.current === 1 ? 1 : 0; // 0=鏈畬鎴愶紝1=宸插畬鎴� + //椤甸潰鍔犺浇鏃惰皟鐢ㄧ殑浜嬩欢 this.$post({ url: "/THJ/getPage", @@ -278,10 +272,17 @@ pageIndex: 1, limit: 20, statusUser: this.$loginInfo.account, - result: result + tj: tj } }).then(res => { - this.data = res.data.tbBillList; + const list = (res && res.data && res.data.tbBillList) ? res.data.tbBillList : []; + const showDone = this.current === 1; + this.data = list.filter(it => { + const tjRaw = it && (it.tj !== undefined ? it.tj : it.TJ); + const tjVal = tjRaw === undefined || tjRaw === null ? '' : String(tjRaw).trim(); + const isDone = tjVal === '1' || tjVal === 1; + return showDone ? isDone : !isDone; + }); }) }, -- Gitblit v1.9.3