From e24f1eef344fc0c9502c1d8fce9ad158c845ed22 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期三, 13 八月 2025 14:31:41 +0800
Subject: [PATCH] 表单弹出组件 工序流转卡弹出组件 添加 未查询到单据时清空缓存

---
 components/ProcExchListPopup/ProcExchListPopup.vue |    4 ++++
 pages/zhijiediaobo/form.vue                        |   15 ++++-----------
 manifest.json                                      |    4 ++--
 components/BillListPopup/BillListPopup.vue         |    5 ++++-
 pages/index/index.vue                              |   17 ++++++++++++-----
 5 files changed, 26 insertions(+), 19 deletions(-)

diff --git a/components/BillListPopup/BillListPopup.vue b/components/BillListPopup/BillListPopup.vue
index a6c45b0..e5aa0c9 100644
--- a/components/BillListPopup/BillListPopup.vue
+++ b/components/BillListPopup/BillListPopup.vue
@@ -121,6 +121,10 @@
 				// this.exit()
 			},
 			getBillList() {
+				this.HBillList = []
+				this.length = 0
+				this.page = 0
+				this.curPage = 1
 				CommonUtils.doRequest(
 					"/WEBSController/GetSourceBillList_Json", {
 						HBilltype: this.HBillType,
@@ -145,7 +149,6 @@
 							}
 							this.HBillList = result
 							this.page = result.length
-							console.log(this.page)
 						} else {
 							uni.showToast({
 								icon: 'none',
diff --git a/components/ProcExchListPopup/ProcExchListPopup.vue b/components/ProcExchListPopup/ProcExchListPopup.vue
index 39b7d0b..763d9a1 100644
--- a/components/ProcExchListPopup/ProcExchListPopup.vue
+++ b/components/ProcExchListPopup/ProcExchListPopup.vue
@@ -218,6 +218,10 @@
 				// this.exit()
 			},
 			getBillList() {
+				this.HBillList = []
+				this.length = 0
+				this.page = 0
+				this.curPage = 1
 				CommonUtils.doRequest(
 					"/WEBSController/GetMES_ProcessExchangeBillList_APP_HaiCheng", {
 						HBillNo: this.HBillNo || '',
diff --git a/manifest.json b/manifest.json
index 4bdc899..943d82f 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
     "name" : "鏅轰簯LMES",
     "appid" : "__UNI__B002F49",
     "description" : "",
-    "versionName" : "1.0.52",
-    "versionCode" : 152,
+    "versionName" : "1.0.53",
+    "versionCode" : 153,
     "transformPx" : false,
     /* 5+App鐗规湁鐩稿叧 */
     "app-plus" : {
diff --git a/pages/index/index.vue b/pages/index/index.vue
index d5effa6..b4843fe 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -14,11 +14,11 @@
 			</view>
 			<view :enable-hidden="item.hidden" v-if="canEdit" class="box edit" v-for="(item,index) in itemData"
 				:key="index" @tap="switchHidden(index)">
-				<uni-icons class="edit-mark" color="red" type="closeempty"></uni-icons>
-				<image :src="item.img" mode=""></image>
-				<view class="texts">
-					{{item.text}}
-				</view>
+					<uni-icons class="edit-mark" color="red" type="closeempty"></uni-icons>
+					<image :src="item.img" mode=""></image>
+					<view class="texts">
+						{{item.text}}
+					</view>	
 			</view>
 		</view>
 
@@ -403,6 +403,12 @@
 			this.getHiddenItem()
 		},
 		methods: {
+			checkCardShow(item) {
+				if(item.HMaker && item.HMaker != getUserInfo()['Czymc'] && item.hidden == true){
+					return false
+				}
+				return true
+			},
 			async getHiddenItem() {
 				// let itemCache = uni.getStorageSync('HIndexItemData') || ''
 				// console.log('itemCache: ',itemCache);
@@ -415,6 +421,7 @@
 				})
 				Array.from(data).forEach(e => {
 					this.itemData[e["HIndex"]].hidden = !CommonUtils.stringToBoolean(e["HShowMode"]) 
+					this.itemData[e["HIndex"]].HMaker = e["HMaker"]
 				})
 			},
 			switchHidden(index) {
diff --git a/pages/zhijiediaobo/form.vue b/pages/zhijiediaobo/form.vue
index b9b16de..63d0845 100644
--- a/pages/zhijiediaobo/form.vue
+++ b/pages/zhijiediaobo/form.vue
@@ -792,14 +792,14 @@
 			// 璋冨叆浠撳簱璧勬枡
 			getHWarehouseInList(Organizaiton) {
 				Organizaiton = Organizaiton || uni.getStorageSync("Organization")
-				uni.request({
-					url: this.serverUrl + '/Gy_Warehouse/list',
+				CommonUtils.doRequest2({
+					url: '/Gy_Warehouse/list',
 					data: {
 						sWhere: "",
 						user: uni.getStorageSync('HUserName'),
 						Organization: Organizaiton
 					},
-					success: (res) => {
+					resFunction: (res) => {
 						console.log('璋冨叆浠撳簱 res: ', res.data.data);
 						if (res.data.count == 1) {
 							this.HWHInNameList = []
@@ -815,14 +815,7 @@
 								icon: 'none'
 							})
 						}
-					},
-					fail: (res) => {
-						console.log(res);
-						uni.showToast({
-							title: '鎺ュ彛璇锋眰澶辫触',
-							icon: 'none'
-						})
-					},
+					}
 				});
 				
 				uni.request({

--
Gitblit v1.9.1