From 423c1948a631cff298e6348cc55626f5149c111a Mon Sep 17 00:00:00 2001
From: qq_41295110 <qq_41295110@noreply.gitcode.com>
Date: 星期四, 26 二月 2026 13:10:19 +0800
Subject: [PATCH] Merge branch 'Dev' of http://101.37.171.70:10101/r/~jhz/STUWMS into Dev

---
 pages/ZLGL/checkFlowList/QC_CheckBillflowList.vue |  217 ++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 209 insertions(+), 8 deletions(-)

diff --git a/pages/ZLGL/checkFlowList/QC_CheckBillflowList.vue b/pages/ZLGL/checkFlowList/QC_CheckBillflowList.vue
index 6dc23a8..575616f 100644
--- a/pages/ZLGL/checkFlowList/QC_CheckBillflowList.vue
+++ b/pages/ZLGL/checkFlowList/QC_CheckBillflowList.vue
@@ -69,8 +69,10 @@
 				<view class="op" v-if="operations == index">
 					<button class="op3" size="mini" plain @tap.stop="audit(item, 0)">瀹℃牳</button>
 					<button class="op3" size="mini" plain @tap.stop="audit(item, 1)">鍙嶅鏍�</button>
-					<button class="op3" size="mini" plain @tap.stop="fileUpload()">鏂囦欢涓婁紶</button>
-					<!-- <button class="op3" size="mini" plain @tap.stop="Reject(item)">椹冲洖</button> -->
+					<button class="op3" size="mini" plain @tap.stop="fileUpload(item)">鏂囦欢涓婁紶</button>
+					<button class="op3" size="mini" plain @tap.stop="getImage(item)">棰勮鍥剧墖</button>
+					<button class="op3" size="mini" plain @tap.stop="Reject(item)">椹冲洖</button>
+					<button class="op3" size="mini" plain @tap.stop="selected(item)">鏌ョ湅鏄庣粏</button>
 					<button class="op5" size="mini" plain @tap.stop="operations = -1">鍙栨秷鎿嶄綔</button>
 				</view>
 			</uni-card>
@@ -98,8 +100,17 @@
             return {
                 showDetail: -1,
 				operations : -1,
+				serverUrl: uni.getStorageSync('serverUrl') || 'http://47.96.97.237/API',
 				//涓婁紶鍙傛暟
-				uploadOptions: {},
+				uploadOptions: {
+					url: CommonUtils.getServerUrl() + "/LMES/UploadFile",
+					formData: {
+					    HBillNo:"",
+					    HRemark: "",
+					    HUserName: getUserInfo()["Czymc"]
+					}
+					
+				},
                 hform: {
                     HSourceBillType:'8505',
 					HSourceBillTypeName: "棣栦欢妫�楠屽崟",
@@ -109,10 +120,13 @@
 				listData: [],
 				showList: [],
 				page: 1,
-				HSourceBillTypeList: {棣栦欢妫�楠屽崟:'8505',鏈欢妫�楠屽崟:'8507'},
+				HSourceBillTypeList: {棣栦欢妫�楠屽崟:'8505',鏈欢妫�楠屽崟:'8507',閲囪喘璁㈠崟:'1102',閿�鍞鍗�:'1401',鐗规壒鍗�:'1422'},
 				arrayHSourceBillTypeName: [
 				    "棣栦欢妫�楠屽崟",
 				    "鏈欢妫�楠屽崟",
+					"閲囪喘璁㈠崟",
+					"閿�鍞鍗�",
+					"鐗规壒鍗�"
 				],
             }
         },
@@ -240,6 +254,30 @@
 					    CurUserName: getUserInfo()["Czymc"],
 						CurUserID:getUserInfo()["Czybm"],
 					}
+				}else if(this.hform.HSourceBillType=='1102'){
+					url = 'Cg_POOrderBill/AuditCg_POOrderBill_Flow',
+					ajaxData= {
+						HInterID: item["hmainid"],
+					    IsAudit: mode,
+					    CurUserName: getUserInfo()["Czymc"],
+						CurUserID:getUserInfo()["Czybm"],
+					}
+				}else if(this.hform.HSourceBillType=='1401'){
+					url = 'Xs_SeOrderBill/AuditXs_SeOrderBill_Flow',
+					ajaxData= {
+						HInterID: item["hmainid"],
+					    IsAudit: mode,
+					    CurUserName: getUserInfo()["Czymc"],
+						CurUserID:getUserInfo()["Czybm"],
+					}
+				}else if(this.hform.HSourceBillType=='1422'){
+					url = 'Xs_ExceptiveCheckRequestBill/AuditXs_ExceptiveCheckRequestBill',
+					ajaxData= {
+						HInterID: item["hmainid"],
+					    IsAudit: mode,
+					    CurUserName: getUserInfo()["Czymc"],
+						//CurUserID:getUserInfo()["Czybm"],
+					}
 				}
                 try{
                     let res = await CommonUtils.doRequest2Sync({
@@ -255,13 +293,19 @@
                     let {count, data, Message} = res.data
                     
                     if(count == 1) {
+						
                         CommonUtils.showTips({
                             message: `瀹℃牳鎴愬姛`
                         })
+						if(mode==1){
+							this.showDialog(item["hmainid"]);
+						}else{
+							setTimeout(() => {
+								this.cmdSearch()
+							}, 2000)
+						}
                         this.$forceUpdate()
-                        setTimeout(() => {
-                            this.cmdSearch()
-                        }, 2000)
+                        
                     }else {
                         CommonUtils.showTips({
                             title: '娓╅Θ鎻愮ず',
@@ -287,6 +331,18 @@
 					}
 				}else if(this.hform.HSourceBillType=='8507'){
 					url = 'QC_ProcessCheckBill/RejectCheckFlow',
+					ajaxData= {
+						HInterID: item["hmainid"],
+						CurUserID:getUserInfo()["Czybm"],
+					}
+				}else if(this.hform.HSourceBillType=='1401'){
+					url = 'Xs_SeOrderBill/RejectCheckFlow_POOrderBill',
+					ajaxData= {
+						HInterID: item["hmainid"],
+						CurUserID:getUserInfo()["Czybm"],
+					}
+				}else if(this.hform.HSourceBillType=='1102'){
+					url = 'Cg_POOrderBill/RejectCheckFlow_POOrderBill',
 					ajaxData= {
 						HInterID: item["hmainid"],
 						CurUserID:getUserInfo()["Czybm"],
@@ -337,8 +393,153 @@
                 })
 
             },
-            
+            //鍙嶅鏍告彁浜ゆ剰瑙�
+			async showDialog(HInterID) {
+			  uni.showModal({
+				title: '璇锋彁浜ゅ弽瀹℃牳鎰忚',
+				editable: true,
+				placeholderText: '璇疯緭鍏ュ唴瀹�',
+				success: async (result) => {
+				  if (result.confirm) {
+					try {
+					    let res = await CommonUtils.doRequest2Sync({
+					        url: '/LMES/AuditFlowOpinion',
+					        data: {
+					            "sWhere": result.content,
+								"billType":this.hform.HSourceBillType,
+								"HInterID":HInterID,
+								"type":1,
+					            "user": getUserInfo()["Czymc"]
+					        },
+					    })
+					    if (!res) {
+					        return
+					    }
+					    let {
+					        data,
+					        count,
+					        Message
+					    } = res.data
+					    if (count > 0) {
+					        uni.showToast({
+					            icon: 'none',
+					            title: "鎰忚鎻愪氦鎴愬姛"
+					        })
+					        this.cmdSearch();
+					    } else {
+					        uni.showToast({
+					            icon: 'none',
+					            title: Message
+					        })
+					    }
+					} catch (err) {
+					    console.warn(err);
+					    uni.showToast({
+					        title: '鎺ュ彛璇锋眰澶辫触:' + err,
+					        icon: 'none'
+					    })
+					}
+				  }
+				}
+			  })
+			},
+			async selected(item)
+			{
+				if(this.hform.HSourceBillType=='1401')  //閿�鍞�
+				{
+					console.log(item)
+					uni.navigateTo({
+						url: '/pages/xiaoshoudingdan/xiaoshoudingdanListEdit?linterid=' + item.hmainid + '&HBillNo=' + item.鍗曟嵁鍙�
+					})
+				}else if(this.hform.HSourceBillType=='1102') //閲囪喘
+				{
+					console.log(item)
+					uni.navigateTo({
+						url: '/pages/caigoudingdan/caigoudingdanListEdit?linterid=' + item.hmainid + '&HBillNo=' + item.鍗曟嵁鍙�
+					})
+				}else if(this.hform.HSourceBillType=='1422') //閲囪喘
+				{
+					console.log(item)
+					uni.navigateTo({
+						url: '/pages/tepidan/TePiDanEdit?linterid=' + item.hmainid + '&HBillNo=' + item.鍗曟嵁鍙�
+					})
+				}
+				
+			},
+			// 涓婁紶鏂囦欢
+			fileUpload(item) {
+				this.uploadOptions.formData.HBillNo = item.鍗曟嵁鍙�
+			    this.$refs.XeUpload.upload('image', {});// image, video, file
+			},
+			handleUploadCallback(e) { // 鏂囦欢涓婁紶鍥炶皟
+			    console.log('file: ', e);
+			    if (['choose', 'success'].includes(e.type)) {
+			      // 鏍规嵁鎺ュ彛杩斿洖淇敼瀵瑰簲鐨剅esponse鐩稿叧鐨勯�昏緫
+			      const tmpFiles = (e.data || []).map(({ response, tempFilePath, name, fileType }) => {
+			        
+					if(response.code=="1"){
+						CommonUtils.showTips({
+						    message: "涓婁紶鎴愬姛"
+						})
+					}else{
+						CommonUtils.showTips({
+						    message: "涓婁紶澶辫触"+response.Message
+						})
+					}
+			      });
+			    }
+			},
+			async getImage(item) {//棰勮鍥剧墖
+				try {
+				    let res = await CommonUtils.doRequest2Sync({
+				        url: '/LMES/Filelist',
+				        data: {
+				            "HBillNo": item.鍗曟嵁鍙�,
+				        },
+				    })
+				    if (!res) {
+				        return
+				    }
+				    let {
+				        data,
+				        count,
+				        Message
+				    } = res.data
+				    if (count > 0) {
+						if(data.length>0){
+							
+							const imageUrl = res.data.data[0]["url"];
+							//姝e垯琛ㄨ揪寮忚幏鍙栨湇鍔″櫒璺緞鍊掓暟绗簩涓唴瀹�
+							const regex = /^(.*\/)[^\/]+\/[^\/]*\/?$/;
+							const match = this.serverUrl.match(regex);
+							console.log(match[1],imageUrl)
+							// 鎴栬�呯洿鎺ラ瑙堝浘鐗�
+							uni.previewImage({
+								urls: [match[1]+imageUrl]
+							})
+						}else{
+							CommonUtils.showTips({
+							    message: "鏃犲浘鐗囪鍏堜笂浼犲浘鐗�"
+							})
+						}
+				        
+				        
+				    } else {
+				        uni.showToast({
+				            icon: 'none',
+				            title: Message
+				        })
+				    }
+				} catch (err) {
+				    console.warn(err);
+				    uni.showToast({
+				        title: '鎺ュ彛璇锋眰澶辫触:' + err,
+				        icon: 'none'
+				    })
+				}
+			}
         },
+		
         onShow() {
             this.$nextTick(() => {
                 this.cmdSearch()

--
Gitblit v1.9.1