From aa117c3b45b0a7770185fceb4d9efefd9642b054 Mon Sep 17 00:00:00 2001
From: dminyi <1301963064@qq.com>
Date: Fri, 13 Sep 2024 11:27:38 +0800
Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/gzzfw/frontEnd/gzDyh into master

---
 gz-wxparty/pages/register/index.js |   36 ++++++++++++++++++++++++++++++++----
 1 files changed, 32 insertions(+), 4 deletions(-)

diff --git a/gz-wxparty/pages/register/index.js b/gz-wxparty/pages/register/index.js
index 25b4afb..dba3d37 100644
--- a/gz-wxparty/pages/register/index.js
+++ b/gz-wxparty/pages/register/index.js
@@ -41,6 +41,16 @@
   });
 }
 
+// 获取案例
+function getCaseApi(submitData) {
+  return $$.request({
+    url: 'case-law/get-case',
+    type: 'post',
+    ai: true,
+    submitData,
+    service: 'mediate',
+  });
+}
 
 function caseRegisterSaveApi(submitData) {
   return $$.request({
@@ -455,6 +465,21 @@
         saveStatus: true
       })
     }
+    const res1 = await getCaseApi({
+      caseDes: params.caseDes,
+      caseClaim: params.caseClaim,
+      caseId: params.id,
+    });
+    if (res1.type) {
+      wx.setStorage({
+        key: 'AICase',
+        data: {
+          caseDes: params.caseDes,
+          caseClaim: params.caseClaim,
+          caseId: params.id,
+        }
+      });
+    }
   },
 
   //选择纠纷类型 、跳转事项概况语音描述,跳转事项申请语音描述
@@ -672,7 +697,9 @@
           perTypeName: '申请方当事人',
           perClass: '09_01001-1',
           perClassName: '自然人',
-          certiNo: data.idcard || ''
+          certiNo: data.idcard || '',
+          certiType: data.certiType || '09_00015-1',
+          certiTypeName: data.certiTypeName || '身份证',
         }]
       })
     };
@@ -798,12 +825,12 @@
       })
     }
 
-    if (this.data.twoData?.title) {
+    if (this.data.twoData?.label) {
       this.setData({
         submitData: {
           ...this.data.submitData,
           caseType: this.data.twoData.value,
-          caseTypeName: this.data.twoData.title,
+          caseTypeName: this.data.twoData.label,
         },
         twoData: {}
       })
@@ -814,8 +841,9 @@
       this.setData({
         submitData: {
           ...this.data.submitData,
-          [this.data.twoKey]: this.data.twoValue
+          [this.data.twoKey]: this.data.twoValue,
         },
+        [this.data.twoKey + 'Num']: this.data.twoValue.length,
         twoValue: '',
         twoKey: ''
       })

--
Gitblit v1.8.0