| 
					
				 | 
			
			
				@@ -23,6 +23,7 @@ Page({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     onLoad(options) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         this.setData({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            options: wx.getStorageSync('auth').worderform.options, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             sa_orderid: options.id, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             order_rebate_used: wx.getStorageSync('siteP').order_rebate_used, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             userrole: wx.getStorageSync('userrole') 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -398,26 +399,27 @@ Page({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /* 特殊订单预提交 */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    presubmission() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    presubmission(e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         let that = this; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        let isrecheck = e.currentTarget.dataset.isrecheck == 1; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         wx.showModal({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             title: '提示', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            content: '是否确认预提交订单?', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            content: `是否确认${isrecheck?'预提交订单':'撤回预提交'}?`, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             complete: (res) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 if (res.confirm) _Http.basic({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     "id": 20230331152503, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     "content": { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        isrecheck: true, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        isrecheck, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         sa_orderid: that.data.sa_orderid 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }).then(s => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                    console.log("提交订单", s) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    console.log("预提交订单", s) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     wx.showToast({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        title: s.msg != '成功' ? s.msg : '预提交成功', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        title: s.msg != '成功' ? s.msg : isrecheck ? '预提交成功' : '撤回预提交成功', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                         icon: "none" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     if (s.msg == '成功') that.setData({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                        "detail.status": "预提交" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        "detail.status": isrecheck ? "预提交" : '新建' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 |