From 04283fafb8216c26d705db21cb0f31a28a5cc68c Mon Sep 17 00:00:00 2001
From: leo <182004222@qq.com>
Date: 星期四, 19 五月 2022 21:54:56 +0800
Subject: [PATCH] 增加派单流程20220519FX
---
GoldC/pages/paiDan/paiDan.js | 20 +++++++-------------
1 files changed, 7 insertions(+), 13 deletions(-)
diff --git a/GoldC/pages/paiDan/paiDan.js b/GoldC/pages/paiDan/paiDan.js
index a430e89..6e74834 100644
--- a/GoldC/pages/paiDan/paiDan.js
+++ b/GoldC/pages/paiDan/paiDan.js
@@ -22,7 +22,8 @@
//
dis: true,
//
- Reported_Remark: ['瀹夊叏闂'],//瀹夊叏闂
+ Reported_Remark: 1,//瀹夊叏闂
+ Reported_RemarkList:['瀹夊叏闂','闈炲畨鍏ㄩ棶棰�'],
Dispost_Question: '',//娲惧崟瀹℃牳鎰忚
shangbao: '',
beizhu: '',
@@ -46,6 +47,7 @@
* 鐢熷懡鍛ㄦ湡鍑芥暟--鐩戝惉椤甸潰鍔犺浇
*/
onLoad: function (options) {
+ console.log(6666,app.onearr)
console.log(JSON.parse(options.data))
this.setData({
firstallArr: app.firstallArr,
@@ -54,20 +56,12 @@
onearr: app.onearr,
youkecenter: app.youkecenter,
shangbao: JSON.parse(options.data).Reported_Question,
- Reported_Remark: JSON.parse(options.data).Reported_Remark ? ['瀹夊叏闂'] : ['瀹夊叏闂'],
+ Reported_Remark: JSON.parse(options.data).Reported_Remark == '瀹夊叏闂' ? 0 : 1,
Dispost_Question: JSON.parse(options.data).Dispost_Question,
- beizhu: JSON.parse(options.data).Reported_Remark ? JSON.parse(options.data).beizhu : '',
+ beizhu: JSON.parse(options.data).Reported_Remark == '瀹夊叏闂' ? JSON.parse(options.data).beizhu : '',
FTimageUrl: JSON.parse(options.data).Reported_Img.replace('..', '').split(","),
listid: JSON.parse(options.data).id
})
- // Reported_Remark: JSON.parse(options.data).Reported_Remark ? ['瀹夊叏闂'] : ['瀹夊叏闂'],
-
- setTimeout(()=>{
- this.setData({
- Reported_Remark:["瀹夊叏闂"]
- })
- console.log('瀹夊叏闂鍒濆鍖�', this.data.Reported_Remark);
- },1000)
// 鍙嶅~娓稿褰掑睘涓績
this.data.youkecenter.forEach((e) => {
if (e.pk_TypeId === JSON.parse(options.data).fk_Role_Type) {
@@ -304,8 +298,8 @@
_Reported_Question: this.data.shangbao,
Dispost_Question: this.data.Dispost_Question,//娲惧崟瀹℃牳鎰忚
_Reported_Address: this.data.detailedaddress,
- _Reported_Remark: this.data.Reported_Remark.length > 0 ? '瀹夊叏闂' : '',
- beizhu: this.data.Reported_Remark.length > 0 ? this.data.beizhu : '',
+ _Reported_Remark: this.data.Reported_Remark === 0 ? '瀹夊叏闂' : '',
+ beizhu: this.data.Reported_Remark === 0 ? this.data.beizhu : '',
Tag: this.data.listid,
_Reported_lnglat: this.data.locmap.latitude + ',' + this.data.locmap.longitude,
_fk_Role_Type: this.data.youkecenter[this.data.youkeindex] ? this.data.youkecenter[this.data.youkeindex].pk_TypeId : '',
--
Gitblit v1.8.0