From 4acb88b7afaab5b18a1c9ca8a78ce346297c382f Mon Sep 17 00:00:00 2001
From: IPC-610 <IPC-610@DESKTOP-6LEOOS3>
Date: 星期四, 02 一月 2025 10:59:38 +0800
Subject: [PATCH] 修改问题

---
 HTML/views/HouseWithinSetting/CRLogTask.html |   46 +++++++++++++++++++++++++++++++++++++++++-----
 1 files changed, 41 insertions(+), 5 deletions(-)

diff --git a/HTML/views/HouseWithinSetting/CRLogTask.html b/HTML/views/HouseWithinSetting/CRLogTask.html
index 349212a..6d90927 100644
--- a/HTML/views/HouseWithinSetting/CRLogTask.html
+++ b/HTML/views/HouseWithinSetting/CRLogTask.html
@@ -130,7 +130,7 @@
 					}}
 					{{ GetBtn1(d) }}
 				</script>
-
+				
 				<!-- 浠诲姟绫诲瀷 -->
 				<script type="text/html" id="TypeButton">
 					{{# 
@@ -141,6 +141,26 @@
 							html = `<p>鍑哄簱</p>`; 
 						} else if(d.Type=='2') { 
 							html = `<p>绉诲簱</p>`; 
+						} else {
+							
+						}
+						return html;
+						
+					}}
+				</script>
+
+				<!-- 鍗曟嵁绫诲瀷 -->
+				<script type="text/html" id="OrderTypeButton">
+					{{# 
+						var html = ``;
+						if(d.OrderType=='0'){ 
+							html = `<p>鍏ュ簱鍗�</p>`; 
+						} else if(d.OrderType=='1') { 
+							html = `<p>鍑哄簱鍗�</p>`; 
+						} else if(d.OrderType=='2') { 
+							html = `<p>鐩樼偣鍗�</p>`; 
+						} else if(d.OrderType=='3') { 
+							html = `<p>绉诲簱鍗�</p>`; 
 						} else {
 							
 						}
@@ -271,6 +291,12 @@
 						width: 95,
 						align: 'center',
 						templet: '#TypeButton',
+					}, {
+						field: 'OrderType',
+						title: '鍗曟嵁绫诲瀷',
+						width: 95,
+						align: 'center',
+						templet: '#OrderTypeButton',
 					}, {
 						field: 'IsSuccess',
 						title: '鏄惁涓嬪彂鎴愬姛',
@@ -618,9 +644,14 @@
 				if (obj.event === 'cancel') {
 					layer.confirm('纭畾鍙栨秷閫変腑鐨勫嚭搴撲换鍔★紵', function (index) {
 						var param = {
-							taskNo: data.TaskNo
+							taskNo: data.TaskNo,
+							receiver: data.Receiver
 						};
-						sendData(IP + "/BllCheck/CancelCheckTask", param, 'post', function (res) {
+						var postUrl="/BllCheck/CancelCheckTask"
+						if(data.OrderType=='3'){
+							postUrl='/BllCheck/CancelMoveTask'
+						}
+						sendData(IP + postUrl, param, 'post', function (res) {
 							console.log(res);
 							if (res.code == 0) { //鎴愬姛
 								layer.msg(res.msg, {
@@ -646,7 +677,11 @@
 						var param = {
 							taskNo: data.TaskNo,
 						};
-						sendData(IP + "/BllCheck/FinishCheckTask", param, 'post', function (res) {
+						var postUrl="/BllCheck/FinishCheckTask"
+						if(data.OrderType=='3'){
+							postUrl='/BllCheck/FinishMoveTask'
+						}
+						sendData(IP + postUrl, param, 'post', function (res) {
 							console.log(res);
 							if (res.code == 0) { //鎴愬姛
 								layer.msg(res.msg, {
@@ -670,7 +705,8 @@
 				} else if (obj.event === 'send') {
 					layer.confirm('纭畾瑕佷笅鍙戦�変腑鐨勫嚭搴撲换鍔★紵', function (index) {
 						var param = {
-							taskNo: data.TaskNo
+							taskNo: data.TaskNo,
+							receiver:data.Receiver
 						};
 						sendData(IP + "/DownApi/AgainSendCheckTask", param, 'get', function (res) {
 							console.log(res);

--
Gitblit v1.8.0