|
|
@@ -3,14 +3,16 @@
|
|
3
|
3
|
<view class="assignrbitrators">
|
|
4
|
4
|
<uni-forms ref="form" :modelValue="formData" :rules="rules">
|
|
5
|
5
|
<uni-section title="案件信息" type="line" padding></uni-section>
|
|
|
6
|
+ <uni-forms-item label="案件压缩包:" name="headZip" label-width="120px">
|
|
|
7
|
+ <uni-file-picker ref="files" file-mediatype="all" return-type='object' v-model="fileListZip"
|
|
|
8
|
+ :auto-upload="false" @select="selectZip" :limit='1' />
|
|
|
9
|
+ </uni-forms-item>
|
|
6
|
10
|
<uni-forms-item label="申请人调解请求:" name="arbitratClaims" label-width="120px" required
|
|
7
|
|
- :rules="[{required: true,errorMessage: '申请人调解请求不能为空'}]"
|
|
8
|
|
- >
|
|
9
|
|
- <uni-easyinput v-model="formData.arbitratClaims" type="textarea" placeholder="请输入申请人调解请求" />
|
|
|
11
|
+ :rules="[{required: true,errorMessage: '申请人调解请求不能为空'}]">
|
|
|
12
|
+ <uni-easyinput v-model="formData.arbitratClaims" type="textarea" placeholder="请输入申请人调解请求" />
|
|
10
|
13
|
</uni-forms-item>
|
|
11
|
14
|
<uni-forms-item label="事实和理由:" name="facts" label-width="120px" required
|
|
12
|
|
- :rules="[{required: true,errorMessage: '事实和理由不能为空'}]"
|
|
13
|
|
- >
|
|
|
15
|
+ :rules="[{required: true,errorMessage: '事实和理由不能为空'}]">
|
|
14
|
16
|
<uni-easyinput v-model="formData.facts" type="textarea" placeholder="请输入事实和理由" />
|
|
15
|
17
|
</uni-forms-item>
|
|
16
|
18
|
<!-- <uni-forms-item label="案件标的:" name="caseSubjectAmount" label-width="120px" required
|
|
|
@@ -24,15 +26,16 @@
|
|
24
|
26
|
<uni-data-select :localdata="templateList" v-model="formData.templateId"></uni-data-select>
|
|
25
|
27
|
</uni-forms-item> -->
|
|
26
|
28
|
<uni-forms-item label="申请人案件证据资料上传:" name="headImage" label-width="120px">
|
|
27
|
|
- <uni-file-picker ref="files" file-mediatype="all" return-type='object' v-model="fileList" :auto-upload="false" @select="select" :limit='1' />
|
|
|
29
|
+ <uni-file-picker ref="files" file-mediatype="all" return-type='object' v-model="fileList"
|
|
|
30
|
+ :auto-upload="false" @select="select" :limit='1' />
|
|
28
|
31
|
</uni-forms-item>
|
|
29
|
|
- <uni-forms-item label="证据:" label-width="120px" v-if="ids">
|
|
|
32
|
+ <uni-forms-item label="证据:" label-width="120px" v-if="ids">
|
|
30
|
33
|
<view class="" v-for="item in formData.caseAttachList">
|
|
31
|
34
|
<uni-link v-if="item.annexType==2" :href="baseUrl+item.annexPath" color="#007BFF"
|
|
32
|
35
|
:text="item.annexName"></uni-link>
|
|
33
|
36
|
</view>
|
|
34
|
37
|
</uni-forms-item>
|
|
35
|
|
- <uni-forms-item label="调解申请书:" label-width="120px" v-if="ids">
|
|
|
38
|
+ <uni-forms-item label="调解申请书:" label-width="120px" v-if="ids">
|
|
36
|
39
|
<view class="" v-for="item in formData.caseAttachList">
|
|
37
|
40
|
<uni-link v-if="item.annexType==3" :href="baseUrl+item.annexPath" color="#007BFF"
|
|
38
|
41
|
:text="item.annexName"></uni-link>
|
|
|
@@ -40,222 +43,215 @@
|
|
40
|
43
|
</uni-forms-item>
|
|
41
|
44
|
<uni-section title="双方信息" type="line" padding></uni-section>
|
|
42
|
45
|
<uni-forms-item label="选择机构或自然人" label-width="120px" name="objectiJuris">
|
|
43
|
|
- <uni-data-checkbox class='checkbox'
|
|
44
|
|
- :disabled="ids?true:false"
|
|
45
|
|
- :localdata="objectiJurisArr"
|
|
46
|
|
- v-model="formData.affiliate.organizeFlag"
|
|
47
|
|
- @change='clearValidate'></uni-data-checkbox>
|
|
|
46
|
+ <uni-data-checkbox class='checkbox' :disabled="ids?true:false" :localdata="objectiJurisArr"
|
|
|
47
|
+ v-model="formData.affiliate.organizeFlag" @change='clearValidate'></uni-data-checkbox>
|
|
48
|
48
|
</uni-forms-item>
|
|
49
|
|
- <uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '申请人':'申请机构'" :rules="rulesappName" name="affiliate.applicationName" label-width="120px" required >
|
|
50
|
|
- <uni-easyinput v-model="formData.affiliate.applicationName" :disabled="disabledApplicat" type="text" :placeholder="formData.affiliate.organizeFlag==0 ? '请输入申请人姓名':'请输入申请机构名称'"/>
|
|
|
49
|
+ <uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '申请人':'申请机构'" :rules="rulesappName"
|
|
|
50
|
+ name="affiliate.applicationName" label-width="120px" required>
|
|
|
51
|
+ <uni-easyinput v-model="formData.affiliate.applicationName" :disabled="disabledApplicat" type="text"
|
|
|
52
|
+ :placeholder="formData.affiliate.organizeFlag==0 ? '请输入申请人姓名':'请输入申请机构名称'" />
|
|
51
|
53
|
</uni-forms-item>
|
|
52
|
|
- <uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '身份证号码':'机构代码'" name="affiliate.code" label-width="120px" required
|
|
53
|
|
- :rules="rulesappNo">
|
|
54
|
|
- <uni-easyinput v-model="formData.affiliate.code" :disabled="disabledApplicat" type="text" :placeholder="formData.affiliate.organizeFlag==0 ? '请输入身份证号码':'请输入统一社会代码'" />
|
|
|
54
|
+ <uni-forms-item :label="formData.affiliate.organizeFlag==0 ? '身份证号码':'机构代码'" name="affiliate.code"
|
|
|
55
|
+ label-width="120px" required :rules="rulesappNo">
|
|
|
56
|
+ <uni-easyinput v-model="formData.affiliate.code" :disabled="disabledApplicat" type="text"
|
|
|
57
|
+ :placeholder="formData.affiliate.organizeFlag==0 ? '请输入身份证号码':'请输入统一社会代码'" />
|
|
55
|
58
|
</uni-forms-item>
|
|
56
|
|
-
|
|
57
|
|
- <uni-forms-item label="申请人邮箱:" v-if="formData.affiliate.organizeFlag==0" name="affiliate.applicationEmail" label-width="120px" required
|
|
58
|
|
-
|
|
59
|
|
- >
|
|
60
|
|
- <uni-easyinput v-model="formData.affiliate.applicationEmail"
|
|
61
|
|
- :disabled="disabledApplicat"
|
|
62
|
|
- type="text" placeholder="请输入申请人邮箱" />
|
|
|
59
|
+
|
|
|
60
|
+ <uni-forms-item label="申请人邮箱:" v-if="formData.affiliate.organizeFlag==0"
|
|
|
61
|
+ name="affiliate.applicationEmail" label-width="120px" required>
|
|
|
62
|
+ <uni-easyinput v-model="formData.affiliate.applicationEmail" :disabled="disabledApplicat"
|
|
|
63
|
+ type="text" placeholder="请输入申请人邮箱" />
|
|
63
|
64
|
</uni-forms-item>
|
|
64
|
|
- <uni-forms-item label="申请人电话:" v-if="formData.affiliate.organizeFlag==0" name="affiliate.applicationPhone" label-width="120px" required
|
|
65
|
|
-
|
|
66
|
|
- >
|
|
67
|
|
- <uni-easyinput v-model="formData.affiliate.applicationPhone" :disabled="disabledApplicat" type="text" placeholder="请输入申请人电话" />
|
|
|
65
|
+ <uni-forms-item label="申请人电话:" v-if="formData.affiliate.organizeFlag==0"
|
|
|
66
|
+ name="affiliate.applicationPhone" label-width="120px" required>
|
|
|
67
|
+ <uni-easyinput v-model="formData.affiliate.applicationPhone" :disabled="disabledApplicat"
|
|
|
68
|
+ type="text" placeholder="请输入申请人电话" />
|
|
68
|
69
|
</uni-forms-item>
|
|
69
|
|
- <uni-forms-item label="法定代表人:" v-if="formData.affiliate.organizeFlag==1" name="affiliate.compLegalPerson" label-width="120px" required
|
|
70
|
|
-
|
|
71
|
|
- >
|
|
|
70
|
+ <uni-forms-item label="法定代表人:" v-if="formData.affiliate.organizeFlag==1"
|
|
|
71
|
+ name="affiliate.compLegalPerson" label-width="120px" required>
|
|
72
|
72
|
<uni-easyinput v-model="formData.affiliate.compLegalPerson" type="text" placeholder="请输入法定代表人" />
|
|
73
|
73
|
</uni-forms-item>
|
|
74
|
74
|
<uni-forms-item label="申请人住所:" name="affiliate.applicantHome" label-width="120px" required
|
|
75
|
|
- :rules="[{required: true,errorMessage: '申请人住所不能为空'}]"
|
|
76
|
|
- >
|
|
|
75
|
+ :rules="[{required: true,errorMessage: '申请人住所不能为空'}]">
|
|
77
|
76
|
<uni-easyinput v-model="formData.affiliate.applicantHome" type="text" placeholder="请输入申请人住所" />
|
|
78
|
77
|
</uni-forms-item>
|
|
79
|
78
|
<uni-forms-item label="申请人联系地址:" name="affiliate.applicantAddress" label-width="120px" required
|
|
80
|
|
- :rules="[{required: true,errorMessage: '申请人联系地址不能为空'}]"
|
|
81
|
|
- >
|
|
|
79
|
+ :rules="[{required: true,errorMessage: '申请人联系地址不能为空'}]">
|
|
82
|
80
|
<uni-easyinput v-model="formData.affiliate.applicantAddress" type="text" placeholder="请输入申请人联系地址" />
|
|
83
|
81
|
</uni-forms-item>
|
|
84
|
|
- <uni-forms-item label="代理人联系电话:" label-width="120px">
|
|
85
|
|
- <uni-easyinput v-model="formData.affiliate.contactTelphoneAgent" :disabled="disabledVal" type="text" placeholder="请输入代理人联系电话" />
|
|
|
82
|
+ <uni-forms-item label="代理人联系电话:" label-width="120px">
|
|
|
83
|
+ <uni-easyinput v-model="formData.affiliate.contactTelphoneAgent" :disabled="disabledVal" type="text"
|
|
|
84
|
+ placeholder="请输入代理人联系电话" />
|
|
86
|
85
|
</uni-forms-item>
|
|
87
|
|
- <uni-forms-item label="代理人姓名:" label-width="120px">
|
|
88
|
|
- <uni-easyinput v-model="formData.affiliate.nameAgent" :disabled="disabledVal" type="text" placeholder="请输入委托代理人姓名" />
|
|
|
86
|
+ <uni-forms-item label="代理人姓名:" label-width="120px">
|
|
|
87
|
+ <uni-easyinput v-model="formData.affiliate.nameAgent" :disabled="disabledVal" type="text"
|
|
|
88
|
+ placeholder="请输入委托代理人姓名" />
|
|
89
|
89
|
</uni-forms-item>
|
|
90
|
|
- <uni-forms-item label="代理人邮箱:" label-width="120px">
|
|
91
|
|
- <uni-easyinput v-model="formData.affiliate.agentEmail" :disabled="disabledVal" type="text" placeholder="请输入代理人邮箱" />
|
|
|
90
|
+ <uni-forms-item label="代理人邮箱:" label-width="120px">
|
|
|
91
|
+ <uni-easyinput v-model="formData.affiliate.agentEmail" :disabled="disabledVal" type="text"
|
|
|
92
|
+ placeholder="请输入代理人邮箱" />
|
|
92
|
93
|
</uni-forms-item>
|
|
93
|
94
|
<uni-forms-item label="被申请人姓名:" name="affiliate.respondentName" label-width="120px" required
|
|
94
|
|
- :rules="[{required: true,errorMessage: '被申请人姓名不能为空'}]"
|
|
95
|
|
- >
|
|
|
95
|
+ :rules="[{required: true,errorMessage: '被申请人姓名不能为空'}]">
|
|
96
|
96
|
<uni-easyinput v-model="formData.affiliate.respondentName" type="text" placeholder="请输入被申请人姓名" />
|
|
97
|
97
|
</uni-forms-item>
|
|
98
|
|
- <uni-forms-item label="被申请人联系电话:" name="affiliate.respondentPhone" label-width="120px" required
|
|
99
|
|
- :rules="[
|
|
|
98
|
+ <uni-forms-item label="被申请人联系电话:" name="affiliate.respondentPhone" label-width="120px" required :rules="[
|
|
100
|
99
|
{required: true,errorMessage: '被申请人联系电话不能为空'},
|
|
101
|
100
|
{pattern:'^[1][3,4,5,6,7,8,9][0-9]{9}$',errorMessage:'被申请人联系电话格式不正确'}
|
|
102
|
|
- ]"
|
|
103
|
|
- >
|
|
|
101
|
+ ]">
|
|
104
|
102
|
<uni-easyinput v-model="formData.affiliate.respondentPhone" type="text" placeholder="请输入被申请人联系电话" />
|
|
105
|
103
|
</uni-forms-item>
|
|
106
|
104
|
<uni-forms-item label="被申请人身份证号:" name="affiliate.respondentIdentityNum" label-width="120px" required
|
|
107
|
|
- :rules="[
|
|
|
105
|
+ :rules="[
|
|
108
|
106
|
{required: true,errorMessage: '被申请人身份证号不能为空'},
|
|
109
|
107
|
{pattern:'^[1-9]\\d{5}(18|19|([23]\\d))\\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$',errorMessage:'被申请人身份证格式错误'}
|
|
110
|
108
|
|
|
111
|
|
- ]"
|
|
112
|
|
- >
|
|
113
|
|
- <uni-easyinput v-model="formData.affiliate.respondentIdentityNum" @blur="handleBlur" type="text" placeholder="请输入被申请人身份证号" />
|
|
|
109
|
+ ]">
|
|
|
110
|
+ <uni-easyinput v-model="formData.affiliate.respondentIdentityNum" @blur="handleBlur" type="text"
|
|
|
111
|
+ placeholder="请输入被申请人身份证号" />
|
|
114
|
112
|
</uni-forms-item>
|
|
115
|
113
|
<uni-forms-item label="被申请人性别" label-width="120px" required>
|
|
116
|
|
- <uni-data-checkbox class='checkbox'
|
|
117
|
|
- :disabled='true'
|
|
118
|
|
- v-model="formData.affiliate.respondentSex"
|
|
|
114
|
+ <uni-data-checkbox class='checkbox' :disabled='true' v-model="formData.affiliate.respondentSex"
|
|
119
|
115
|
:localdata="respondentSexy"></uni-data-checkbox>
|
|
120
|
116
|
</uni-forms-item>
|
|
121
|
117
|
<uni-forms-item label="被申请人出生年月日" label-width="120px">
|
|
122
|
|
- <uni-datetime-picker v-model="formData.affiliate.respondentBirth" :disabled='true' type="date" :clear-icon="false" />
|
|
|
118
|
+ <uni-datetime-picker v-model="formData.affiliate.respondentBirth" :disabled='true' type="date"
|
|
|
119
|
+ :clear-icon="false" />
|
|
123
|
120
|
</uni-forms-item>
|
|
124
|
121
|
<uni-forms-item label="被申请人住所:" name="affiliate.respondentHome" label-width="120px" required
|
|
125
|
|
- :rules="[{required: true,errorMessage: '被申请人住所不能为空'}]"
|
|
126
|
|
- >
|
|
|
122
|
+ :rules="[{required: true,errorMessage: '被申请人住所不能为空'}]">
|
|
127
|
123
|
<uni-easyinput v-model="formData.affiliate.respondentHome" type="text" placeholder="请输入被申请人住所" />
|
|
128
|
124
|
</uni-forms-item>
|
|
129
|
|
- <uni-forms-item label="被申请人邮箱:" name="affiliate.respondentEmail" label-width="120px" required
|
|
130
|
|
- :rules="[
|
|
|
125
|
+ <uni-forms-item label="被申请人邮箱:" name="affiliate.respondentEmail" label-width="120px" required :rules="[
|
|
131
|
126
|
{required: true,errorMessage: '被申请人邮箱不能为空'},
|
|
132
|
127
|
{pattern:'^\\S+?@\\S+?\\.\\S+?$',errorMessage:'邮箱格式不正确'}
|
|
133
|
128
|
|
|
134
|
|
- ]"
|
|
135
|
|
- >
|
|
|
129
|
+ ]">
|
|
136
|
130
|
<uni-easyinput v-model="formData.affiliate.respondentEmail" type="text" placeholder="请输入被申请人邮箱" />
|
|
137
|
131
|
</uni-forms-item>
|
|
138
|
132
|
</uni-forms>
|
|
139
|
133
|
<view class="determine" style="text-align: center;">
|
|
140
|
|
- <button class="mini-btn"
|
|
141
|
|
- type="primary" size="mini"
|
|
142
|
|
- @tap="submitReasont">确定</button>
|
|
143
|
|
- <button style="margin-left:30rpx;" class="mini-btn"
|
|
144
|
|
- type="default" size="mini"
|
|
145
|
|
- @tap="cencalBut">取消</button>
|
|
|
134
|
+ <button class="mini-btn" type="primary" size="mini" @tap="submitReasont">确定</button>
|
|
|
135
|
+ <button style="margin-left:30rpx;" class="mini-btn" type="default" size="mini"
|
|
|
136
|
+ @tap="cencalBut">取消</button>
|
|
146
|
137
|
</view>
|
|
147
|
138
|
</view>
|
|
148
|
|
- </view>
|
|
149
|
|
-</template>
|
|
150
|
|
-
|
|
|
139
|
+ </view>
|
|
|
140
|
+</template>
|
|
|
141
|
+
|
|
151
|
142
|
<script>
|
|
152
|
|
- import {getTemplate,getInfoByIdCard,caseApplicationInsert,updateComfire,caseApplicationSelectById,getUserInfo} from '../../../api/handlecase/index.js'
|
|
|
143
|
+ import {
|
|
|
144
|
+ getTemplate,
|
|
|
145
|
+ getInfoByIdCard,
|
|
|
146
|
+ caseApplicationInsert,
|
|
|
147
|
+ updateComfire,
|
|
|
148
|
+ caseApplicationSelectById,
|
|
|
149
|
+ getUserInfo
|
|
|
150
|
+ } from '../../../api/handlecase/index.js'
|
|
153
|
151
|
import {
|
|
154
|
152
|
getToken
|
|
155
|
153
|
} from '@/utils/auth'
|
|
156
|
154
|
import config from '@/config'
|
|
157
|
155
|
export default {
|
|
158
|
156
|
data() {
|
|
159
|
|
- return {
|
|
160
|
|
- baseUrl : config.baseUrlTJ,
|
|
161
|
|
- formData:{
|
|
162
|
|
- affiliate:{
|
|
163
|
|
- organizeFlag: 0,
|
|
164
|
|
- respondentSex: 0,
|
|
165
|
|
- },
|
|
166
|
|
- columnValueList: [],
|
|
167
|
|
- caseAttachList: [],
|
|
|
157
|
+ return {
|
|
|
158
|
+ baseUrl: config.baseUrlTJ,
|
|
|
159
|
+ formZipData: {},
|
|
|
160
|
+ formData: {
|
|
|
161
|
+ affiliate: {
|
|
|
162
|
+ organizeFlag: 0,
|
|
|
163
|
+ respondentSex: 0,
|
|
168
|
164
|
},
|
|
169
|
|
- getUserInfoList:{},
|
|
170
|
|
- ids:null,
|
|
171
|
|
- tempFilePaths: null,
|
|
172
|
|
- templateList:[],
|
|
173
|
|
- objectiJurisArr: [{
|
|
174
|
|
- text: '自然人',
|
|
175
|
|
- value: 0
|
|
176
|
|
- }, {
|
|
177
|
|
- text: '机构',
|
|
178
|
|
- value: 1
|
|
179
|
|
- }],
|
|
180
|
|
- respondentSexy: [
|
|
181
|
|
- {
|
|
182
|
|
- text: '女',
|
|
183
|
|
- value: 1
|
|
184
|
|
- }, {
|
|
185
|
|
- text: '男',
|
|
186
|
|
- value: 0
|
|
187
|
|
- }
|
|
188
|
|
- ],
|
|
189
|
|
- disabledVal:false,
|
|
190
|
|
- disabledApplicat:false,
|
|
191
|
|
- fileList: {},
|
|
192
|
|
- rules:{},
|
|
193
|
|
- rulesappName: [
|
|
194
|
|
- {
|
|
195
|
|
- required: true,
|
|
196
|
|
- errorMessage: '输入信息不能为空',
|
|
197
|
|
- },{
|
|
198
|
|
-
|
|
199
|
|
- validateFunction: (rule, value, data, callback) => {
|
|
200
|
|
- //判断手机号格式时候正确
|
|
201
|
|
- if (value.length<1) {
|
|
202
|
|
- if(this.formData.affiliate.organizeFlag == 0){
|
|
203
|
|
- callback('请输入申请人姓名')
|
|
204
|
|
- }else{
|
|
205
|
|
- callback('请输入机构名称')
|
|
206
|
|
- }
|
|
207
|
|
- }
|
|
208
|
|
- return true
|
|
|
165
|
+ columnValueList: [],
|
|
|
166
|
+ caseAttachList: [],
|
|
|
167
|
+ },
|
|
|
168
|
+ getUserInfoList: {},
|
|
|
169
|
+ ids: null,
|
|
|
170
|
+ tempFilePaths: null,
|
|
|
171
|
+ tempFilePathsZip: null,
|
|
|
172
|
+ templateList: [],
|
|
|
173
|
+ objectiJurisArr: [{
|
|
|
174
|
+ text: '自然人',
|
|
|
175
|
+ value: 0
|
|
|
176
|
+ }, {
|
|
|
177
|
+ text: '机构',
|
|
|
178
|
+ value: 1
|
|
|
179
|
+ }],
|
|
|
180
|
+ respondentSexy: [{
|
|
|
181
|
+ text: '女',
|
|
|
182
|
+ value: 1
|
|
|
183
|
+ }, {
|
|
|
184
|
+ text: '男',
|
|
|
185
|
+ value: 0
|
|
|
186
|
+ }],
|
|
|
187
|
+ disabledVal: false,
|
|
|
188
|
+ disabledApplicat: false,
|
|
|
189
|
+ fileList: {},
|
|
|
190
|
+ fileListZip: {},
|
|
|
191
|
+ rules: {},
|
|
|
192
|
+ rulesappName: [{
|
|
|
193
|
+ required: true,
|
|
|
194
|
+ errorMessage: '输入信息不能为空',
|
|
|
195
|
+ }, {
|
|
|
196
|
+
|
|
|
197
|
+ validateFunction: (rule, value, data, callback) => {
|
|
|
198
|
+ //判断手机号格式时候正确
|
|
|
199
|
+ if (value.length < 1) {
|
|
|
200
|
+ if (this.formData.affiliate.organizeFlag == 0) {
|
|
|
201
|
+ callback('请输入申请人姓名')
|
|
|
202
|
+ } else {
|
|
|
203
|
+ callback('请输入机构名称')
|
|
209
|
204
|
}
|
|
210
|
|
-
|
|
211
|
205
|
}
|
|
212
|
|
- ],
|
|
213
|
|
- rulesappNo: [
|
|
214
|
|
- {
|
|
215
|
|
- required: true,
|
|
216
|
|
- errorMessage:'输入信息不能为空',
|
|
217
|
|
- },{
|
|
218
|
|
-
|
|
219
|
|
- validateFunction: (rule, value, data, callback) => {
|
|
220
|
|
- //判断手机号格
|
|
221
|
|
- if(this.formData.affiliate.organizeFlag == 0){
|
|
222
|
|
- let pNoReg = /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
|
|
223
|
|
- if(!pNoReg.test(value)){
|
|
224
|
|
- callback('请输入正确的身份证号码')
|
|
225
|
|
- }
|
|
226
|
|
- }else{
|
|
227
|
|
- if(!value){
|
|
228
|
|
- callback('请输入正确的机构信息')
|
|
229
|
|
- }
|
|
230
|
|
- }
|
|
231
|
|
- return true
|
|
|
206
|
+ return true
|
|
|
207
|
+ }
|
|
|
208
|
+
|
|
|
209
|
+ }],
|
|
|
210
|
+ rulesappNo: [{
|
|
|
211
|
+ required: true,
|
|
|
212
|
+ errorMessage: '输入信息不能为空',
|
|
|
213
|
+ }, {
|
|
|
214
|
+
|
|
|
215
|
+ validateFunction: (rule, value, data, callback) => {
|
|
|
216
|
+ //判断手机号格
|
|
|
217
|
+ if (this.formData.affiliate.organizeFlag == 0) {
|
|
|
218
|
+ let pNoReg =
|
|
|
219
|
+ /^[1-9]\d{5}(18|19|([23]\d))\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/
|
|
|
220
|
+ if (!pNoReg.test(value)) {
|
|
|
221
|
+ callback('请输入正确的身份证号码')
|
|
|
222
|
+ }
|
|
|
223
|
+ } else {
|
|
|
224
|
+ if (!value) {
|
|
|
225
|
+ callback('请输入正确的机构信息')
|
|
232
|
226
|
}
|
|
233
|
|
-
|
|
234
|
227
|
}
|
|
235
|
|
- ]
|
|
236
|
|
- }
|
|
237
|
|
-
|
|
238
|
|
-
|
|
|
228
|
+ return true
|
|
|
229
|
+ }
|
|
|
230
|
+
|
|
|
231
|
+ }]
|
|
|
232
|
+ }
|
|
|
233
|
+
|
|
|
234
|
+
|
|
239
|
235
|
},
|
|
240
|
|
- methods:{
|
|
241
|
|
- submitReasont(){
|
|
242
|
|
- this.$refs.form.validate().then(res=>{
|
|
|
236
|
+ methods: {
|
|
|
237
|
+ submitReasont() {
|
|
|
238
|
+ this.$refs.form.validate().then(res => {
|
|
243
|
239
|
console.log(this.ids)
|
|
244
|
|
- if(this.ids){
|
|
245
|
|
- this.modifyData(this.formData)
|
|
246
|
|
- }else{
|
|
247
|
|
- this.insertFn(this.formData)
|
|
248
|
|
- }
|
|
249
|
|
-
|
|
250
|
|
- }).catch(err =>{
|
|
251
|
|
-
|
|
|
240
|
+ if (this.ids) {
|
|
|
241
|
+ this.modifyData(this.formData)
|
|
|
242
|
+ } else {
|
|
|
243
|
+ this.insertFn(this.formData)
|
|
|
244
|
+ }
|
|
|
245
|
+
|
|
|
246
|
+ }).catch(err => {
|
|
|
247
|
+
|
|
252
|
248
|
})
|
|
253
|
249
|
},
|
|
254
|
250
|
// 获取新增默认值
|
|
255
|
|
- getUserInfoNumber(){
|
|
256
|
|
- getUserInfo().then(res =>{
|
|
|
251
|
+ getUserInfoNumber() {
|
|
|
252
|
+ getUserInfo().then(res => {
|
|
257
|
253
|
this.getUserInfoList = res.data
|
|
258
|
|
- if(this.formData.affiliate.organizeFlag == 0){
|
|
|
254
|
+ if (this.formData.affiliate.organizeFlag == 0) {
|
|
259
|
255
|
this.$set(this.formData.affiliate, 'applicationName', res.data.nickName)
|
|
260
|
256
|
this.$set(this.formData.affiliate, 'code', res.data.idCard)
|
|
261
|
257
|
this.$set(this.formData.affiliate, 'applicationEmail', res.data.email)
|
|
|
@@ -263,7 +259,7 @@
|
|
263
|
259
|
// this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName)
|
|
264
|
260
|
this.disabledVal = false
|
|
265
|
261
|
this.disabledApplicat = true
|
|
266
|
|
- }else if(this.formData.affiliate.organizeFlag == 1){
|
|
|
262
|
+ } else if (this.formData.affiliate.organizeFlag == 1) {
|
|
267
|
263
|
console.log(this.formData.affiliate.organizeFlag)
|
|
268
|
264
|
this.$set(this.formData.affiliate, 'nameAgent', res.data.nickName)
|
|
269
|
265
|
this.$set(this.formData.affiliate, 'agentEmail', res.data.email)
|
|
|
@@ -271,138 +267,300 @@
|
|
271
|
267
|
this.disabledVal = true
|
|
272
|
268
|
this.disabledApplicat = false
|
|
273
|
269
|
}
|
|
274
|
|
-
|
|
|
270
|
+
|
|
275
|
271
|
})
|
|
276
|
272
|
},
|
|
277
|
|
- clearValidate(val){
|
|
278
|
|
- if(this.formData.affiliate.organizeFlag == 0){
|
|
|
273
|
+ clearValidate(val) {
|
|
|
274
|
+ if (this.formData.affiliate.organizeFlag == 0) {
|
|
279
|
275
|
this.$set(this.formData.affiliate, 'applicationName', this.getUserInfoList.nickName)
|
|
280
|
276
|
this.$set(this.formData.affiliate, 'code', this.getUserInfoList.idCard)
|
|
281
|
277
|
this.$set(this.formData.affiliate, 'applicationEmail', this.getUserInfoList.email)
|
|
282
|
278
|
this.$set(this.formData.affiliate, 'applicationPhone', this.getUserInfoList.phonenumber)
|
|
283
|
|
- this.$set(this.formData.affiliate, 'nameAgent', null)
|
|
284
|
|
- this.$set(this.formData.affiliate, 'agentEmail', null)
|
|
285
|
|
- this.$set(this.formData.affiliate, 'contactTelphoneAgent', null)
|
|
|
279
|
+ if (this.formZipData.affiliate) {
|
|
|
280
|
+ this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
|
|
|
281
|
+ this.$set(this.formData, 'facts', this.formZipData.facts);
|
|
|
282
|
+ this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
|
|
|
283
|
+ .applicantHome);
|
|
|
284
|
+ this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
|
|
|
285
|
+ .applicantAddress);
|
|
|
286
|
+ this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.formZipData
|
|
|
287
|
+ .affiliate.contactTelphoneAgent);
|
|
|
288
|
+ this.$set(this.formData.affiliate, 'nameAgent', this.formZipData.affiliate
|
|
|
289
|
+ .nameAgent);
|
|
|
290
|
+ this.$set(this.formData.affiliate, 'agentEmail', this.formZipData.affiliate
|
|
|
291
|
+ .agentEmail);
|
|
|
292
|
+ this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
|
|
|
293
|
+ .respondentName);
|
|
|
294
|
+ this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
|
|
|
295
|
+ .respondentPhone);
|
|
|
296
|
+ this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
|
|
|
297
|
+ .affiliate.respondentIdentityNum);
|
|
|
298
|
+ this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
|
|
|
299
|
+ .affiliate.respondentSex));
|
|
|
300
|
+ this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
|
|
|
301
|
+ .respondentBirth);
|
|
|
302
|
+ this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
|
|
|
303
|
+ .respondentHome);
|
|
|
304
|
+ this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
|
|
|
305
|
+ .respondentEmail);
|
|
|
306
|
+ this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
|
|
|
307
|
+ .compLegalPerson);
|
|
|
308
|
+ } else {
|
|
|
309
|
+ this.$set(this.formData.affiliate, 'nameAgent', null)
|
|
|
310
|
+ this.$set(this.formData.affiliate, 'agentEmail', null)
|
|
|
311
|
+ this.$set(this.formData.affiliate, 'contactTelphoneAgent', null)
|
|
|
312
|
+ }
|
|
286
|
313
|
this.disabledVal = false
|
|
287
|
314
|
this.disabledApplicat = true
|
|
288
|
|
- }else if(this.formData.affiliate.organizeFlag == 1){
|
|
|
315
|
+ } else if (this.formData.affiliate.organizeFlag == 1) {
|
|
289
|
316
|
this.$set(this.formData.affiliate, 'nameAgent', this.getUserInfoList.nickName)
|
|
290
|
317
|
this.$set(this.formData.affiliate, 'agentEmail', this.getUserInfoList.email)
|
|
291
|
318
|
this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.getUserInfoList.phonenumber)
|
|
292
|
|
- this.$set(this.formData.affiliate, 'applicationName', null)
|
|
293
|
|
- this.$set(this.formData.affiliate, 'code', null)
|
|
294
|
|
- this.$set(this.formData.affiliate, 'applicationEmail', null)
|
|
295
|
|
- this.$set(this.formData.affiliate, 'applicationPhone', null)
|
|
|
319
|
+ if (this.formZipData.affiliate) {
|
|
|
320
|
+ this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
|
|
|
321
|
+ this.$set(this.formData, 'facts', this.formZipData.facts);
|
|
|
322
|
+ this.$set(this.formData.affiliate, 'applicationName', this.formZipData.affiliate
|
|
|
323
|
+ .applicationName);
|
|
|
324
|
+ this.$set(this.formData.affiliate, 'code', this.formZipData.affiliate.code);
|
|
|
325
|
+ this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
|
|
|
326
|
+ .applicantHome);
|
|
|
327
|
+ this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
|
|
|
328
|
+ .applicantAddress);
|
|
|
329
|
+ this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
|
|
|
330
|
+ .compLegalPerson);
|
|
|
331
|
+ this.$set(this.formData.affiliate, 'applicationEmail', this.formZipData.affiliate
|
|
|
332
|
+ .applicationEmail);
|
|
|
333
|
+ this.$set(this.formData.affiliate, 'applicationPhone', this.formZipData.affiliate
|
|
|
334
|
+ .applicationPhone);
|
|
|
335
|
+ this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
|
|
|
336
|
+ .respondentName);
|
|
|
337
|
+ this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
|
|
|
338
|
+ .respondentPhone);
|
|
|
339
|
+ this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
|
|
|
340
|
+ .affiliate.respondentIdentityNum);
|
|
|
341
|
+ this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
|
|
|
342
|
+ .affiliate.respondentSex));
|
|
|
343
|
+ this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
|
|
|
344
|
+ .respondentBirth);
|
|
|
345
|
+ this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
|
|
|
346
|
+ .respondentHome);
|
|
|
347
|
+ this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
|
|
|
348
|
+ .respondentEmail);
|
|
|
349
|
+ } else {
|
|
|
350
|
+ this.$set(this.formData.affiliate, 'applicationName', null)
|
|
|
351
|
+ this.$set(this.formData.affiliate, 'code', null)
|
|
|
352
|
+ this.$set(this.formData.affiliate, 'applicationEmail', null)
|
|
|
353
|
+ this.$set(this.formData.affiliate, 'applicationPhone', null)
|
|
|
354
|
+ }
|
|
296
|
355
|
this.disabledVal = true
|
|
297
|
356
|
this.disabledApplicat = false
|
|
298
|
357
|
}
|
|
299
|
|
- // this.formData.affiliate.applicationName =null
|
|
300
|
|
- // this.formData.affiliate.code =null
|
|
301
|
|
- this.$refs["form"].clearValidate()
|
|
|
358
|
+ // this.formData.affiliate.applicationName =null
|
|
|
359
|
+ // this.formData.affiliate.code =null
|
|
|
360
|
+ this.$refs["form"].clearValidate()
|
|
302
|
361
|
},
|
|
303
|
362
|
/** 获取裁决书模板 */
|
|
304
|
363
|
getTemplateFn(data) {
|
|
305
|
|
- getTemplate(data).then((res) => {
|
|
306
|
|
- //this.templateList = res.rows;
|
|
307
|
|
- res.rows.forEach(item=>{
|
|
308
|
|
- this.templateList.push({value:item.id,text:item.temName})
|
|
|
364
|
+ getTemplate(data).then((res) => {
|
|
|
365
|
+ //this.templateList = res.rows;
|
|
|
366
|
+ res.rows.forEach(item => {
|
|
|
367
|
+ this.templateList.push({
|
|
|
368
|
+ value: item.id,
|
|
|
369
|
+ text: item.temName
|
|
|
370
|
+ })
|
|
309
|
371
|
})
|
|
310
|
|
- });
|
|
|
372
|
+ });
|
|
|
373
|
+ },
|
|
|
374
|
+ /** 根据案件id获取对应信息 */
|
|
|
375
|
+ caseApplicationSelectByIdFn(data) {
|
|
|
376
|
+ caseApplicationSelectById(data).then(res => {
|
|
|
377
|
+ res.data.affiliate.respondentSex = Number(res.data.affiliate.respondentSex)
|
|
|
378
|
+ this.formData = res.data
|
|
|
379
|
+ console.log(this.formData)
|
|
|
380
|
+ })
|
|
311
|
381
|
},
|
|
312
|
|
- /** 根据案件id获取对应信息 */
|
|
313
|
|
- caseApplicationSelectByIdFn(data) {
|
|
314
|
|
- caseApplicationSelectById(data).then(res=>{
|
|
315
|
|
- res.data.affiliate.respondentSex = Number(res.data.affiliate.respondentSex)
|
|
316
|
|
- this.formData = res.data
|
|
317
|
|
- console.log( this.formData)
|
|
318
|
|
- })
|
|
319
|
|
- },
|
|
320
|
382
|
// 被申请人获取性别出生年月
|
|
321
|
|
- handleBlur(){
|
|
|
383
|
+ handleBlur() {
|
|
322
|
384
|
let idCards = {
|
|
323
|
|
- idCard: this.formData.affiliate.respondentIdentityNum,
|
|
324
|
|
- };
|
|
325
|
|
- getInfoByIdCard(idCards).then(res=>{
|
|
|
385
|
+ idCard: this.formData.affiliate.respondentIdentityNum,
|
|
|
386
|
+ };
|
|
|
387
|
+ getInfoByIdCard(idCards).then(res => {
|
|
326
|
388
|
this.formData.affiliate.respondentSex = Number(res.respondentSex);
|
|
327
|
389
|
this.formData.affiliate.respondentBirth = res.respondentBirth;
|
|
328
|
390
|
})
|
|
329
|
391
|
},
|
|
330
|
392
|
// 新增案件
|
|
331
|
|
- insertFn(data) {
|
|
332
|
|
- caseApplicationInsert(data).then((res) => {
|
|
333
|
|
- uni.showToast({
|
|
334
|
|
- title: '新增成功',
|
|
335
|
|
- icon: 'none',
|
|
336
|
|
- duration: 1000
|
|
337
|
|
- })
|
|
338
|
|
- uni.navigateTo({
|
|
339
|
|
- url:'../index'
|
|
340
|
|
- })
|
|
341
|
|
- // uni.navigateBack({
|
|
342
|
|
- // delta:1
|
|
343
|
|
- // })
|
|
344
|
|
- // this.$router.go(-1)
|
|
345
|
|
- });
|
|
|
393
|
+ insertFn(data) {
|
|
|
394
|
+ caseApplicationInsert(data).then((res) => {
|
|
|
395
|
+ uni.showToast({
|
|
|
396
|
+ title: '新增成功',
|
|
|
397
|
+ icon: 'none',
|
|
|
398
|
+ duration: 1000
|
|
|
399
|
+ })
|
|
|
400
|
+ uni.navigateTo({
|
|
|
401
|
+ url: '../index'
|
|
|
402
|
+ })
|
|
|
403
|
+ // this.$router.go(-1)
|
|
|
404
|
+ });
|
|
346
|
405
|
},
|
|
347
|
406
|
//修改案件
|
|
348
|
|
- modifyData(data) {
|
|
349
|
|
- updateComfire(data).then((res) => {
|
|
350
|
|
- uni.showToast({
|
|
351
|
|
- title: '修改成功',
|
|
352
|
|
- icon: 'none',
|
|
353
|
|
- duration: 1000
|
|
354
|
|
- })
|
|
355
|
|
- // uni.navigateTo({
|
|
356
|
|
- // url:'../index'
|
|
357
|
|
- // })
|
|
358
|
|
- uni.navigateBack({
|
|
359
|
|
- delta:1
|
|
|
407
|
+ modifyData(data) {
|
|
|
408
|
+ updateComfire(data).then((res) => {
|
|
|
409
|
+ uni.showToast({
|
|
|
410
|
+ title: '修改成功',
|
|
|
411
|
+ icon: 'none',
|
|
|
412
|
+ duration: 1000
|
|
|
413
|
+ })
|
|
|
414
|
+ uni.navigateTo({
|
|
|
415
|
+ url: '../index'
|
|
|
416
|
+ })
|
|
|
417
|
+ });
|
|
|
418
|
+ },
|
|
|
419
|
+ // 压缩包上传
|
|
|
420
|
+ selectZip(e) {
|
|
|
421
|
+ if (e.tempFiles[0].extname != 'zip') {
|
|
|
422
|
+ uni.showToast({
|
|
|
423
|
+ title: '上传类型为zip',
|
|
|
424
|
+ icon: 'none',
|
|
|
425
|
+ duration: 1000
|
|
|
426
|
+ })
|
|
|
427
|
+ return
|
|
|
428
|
+ }
|
|
|
429
|
+ // loading
|
|
|
430
|
+ this.tempFilePathsZip = e.tempFilePaths;
|
|
|
431
|
+ uni.showLoading({
|
|
|
432
|
+ title: '上传中'
|
|
|
433
|
+ });
|
|
|
434
|
+ uni.uploadFile({
|
|
|
435
|
+ url: config.baseUrlTJ + "/caseApplication/userIdentify",
|
|
|
436
|
+ filePath: this.tempFilePathsZip[0],
|
|
|
437
|
+ header: {
|
|
|
438
|
+ Authorization: getToken() || '',
|
|
|
439
|
+ },
|
|
|
440
|
+ name: 'file',
|
|
|
441
|
+ success: (res) => {
|
|
|
442
|
+ let result = JSON.parse(res.data)
|
|
|
443
|
+ uni.showToast({
|
|
|
444
|
+ title: '上传成功',
|
|
|
445
|
+ icon: 'none',
|
|
|
446
|
+ duration: 1000
|
|
360
|
447
|
})
|
|
361
|
|
- });
|
|
362
|
|
- },
|
|
363
|
|
- // 文件上传
|
|
364
|
|
- select(e) {
|
|
365
|
|
- this.tempFilePaths = e.tempFilePaths;
|
|
366
|
|
- // loading
|
|
367
|
|
- uni.showLoading({
|
|
368
|
|
- title: '上传中'
|
|
369
|
|
- });
|
|
370
|
|
- uni.uploadFile({
|
|
371
|
|
- url: config.baseUrlTJ + "/common/upload",
|
|
372
|
|
- filePath: this.tempFilePaths[0],
|
|
373
|
|
- header: {
|
|
374
|
|
- Authorization: getToken() || '',
|
|
375
|
|
- },
|
|
376
|
|
- formData: {
|
|
377
|
|
- annexType: 2,
|
|
378
|
|
- id: this.formData.id
|
|
379
|
|
- },
|
|
380
|
|
- name: 'file',
|
|
381
|
|
- success: (res) => {
|
|
382
|
|
- let result = JSON.parse(res.data)
|
|
383
|
|
- this.formData.caseAttachList.push({
|
|
384
|
|
- annexId: result.annexId,
|
|
385
|
|
- annexName: result.fileName
|
|
386
|
|
- });
|
|
387
|
|
- console.log(result.fileName)
|
|
388
|
|
- uni.showToast({
|
|
389
|
|
- title: '上传成功',
|
|
390
|
|
- icon: 'none',
|
|
391
|
|
- duration: 1000
|
|
392
|
|
- })
|
|
393
|
|
- uni.hideLoading();
|
|
394
|
|
- },
|
|
395
|
|
- fail: (err) => {
|
|
396
|
|
- uni.showToast({
|
|
397
|
|
- title: '上传失败',
|
|
398
|
|
- icon: 'none',
|
|
399
|
|
- duration: 1000
|
|
400
|
|
- })
|
|
401
|
|
- uni.hideLoading()
|
|
|
448
|
+ this.formZipData = result.data;
|
|
|
449
|
+ if (this.formData.affiliate.organizeFlag == 0) {
|
|
|
450
|
+ this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
|
|
|
451
|
+ this.$set(this.formData, 'facts', this.formZipData.facts);
|
|
|
452
|
+ this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
|
|
|
453
|
+ .applicantHome);
|
|
|
454
|
+ this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
|
|
|
455
|
+ .applicantAddress);
|
|
|
456
|
+ this.$set(this.formData.affiliate, 'contactTelphoneAgent', this.formZipData
|
|
|
457
|
+ .affiliate.contactTelphoneAgent);
|
|
|
458
|
+ this.$set(this.formData.affiliate, 'nameAgent', this.formZipData.affiliate
|
|
|
459
|
+ .nameAgent);
|
|
|
460
|
+ this.$set(this.formData.affiliate, 'agentEmail', this.formZipData.affiliate
|
|
|
461
|
+ .agentEmail);
|
|
|
462
|
+ this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
|
|
|
463
|
+ .respondentName);
|
|
|
464
|
+ this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
|
|
|
465
|
+ .respondentPhone);
|
|
|
466
|
+ this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
|
|
|
467
|
+ .affiliate.respondentIdentityNum);
|
|
|
468
|
+ this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
|
|
|
469
|
+ .affiliate.respondentSex));
|
|
|
470
|
+ this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
|
|
|
471
|
+ .respondentBirth);
|
|
|
472
|
+ this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
|
|
|
473
|
+ .respondentHome);
|
|
|
474
|
+ this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
|
|
|
475
|
+ .respondentEmail);
|
|
|
476
|
+ this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
|
|
|
477
|
+ .compLegalPerson);
|
|
|
478
|
+ } else if (this.formData.affiliate.organizeFlag == 1) {
|
|
|
479
|
+ this.$set(this.formData, 'arbitratClaims', this.formZipData.arbitratClaims);
|
|
|
480
|
+ this.$set(this.formData, 'facts', this.formZipData.facts);
|
|
|
481
|
+ this.$set(this.formData.affiliate, 'applicationName', this.formZipData.affiliate
|
|
|
482
|
+ .applicationName);
|
|
|
483
|
+ this.$set(this.formData.affiliate, 'code', this.formZipData.affiliate.code);
|
|
|
484
|
+ this.$set(this.formData.affiliate, 'applicantHome', this.formZipData.affiliate
|
|
|
485
|
+ .applicantHome);
|
|
|
486
|
+ this.$set(this.formData.affiliate, 'applicantAddress', this.formZipData.affiliate
|
|
|
487
|
+ .applicantAddress);
|
|
|
488
|
+ this.$set(this.formData.affiliate, 'compLegalPerson', this.formZipData.affiliate
|
|
|
489
|
+ .compLegalPerson);
|
|
|
490
|
+ this.$set(this.formData.affiliate, 'applicationEmail', this.formZipData.affiliate
|
|
|
491
|
+ .applicationEmail);
|
|
|
492
|
+ this.$set(this.formData.affiliate, 'applicationPhone', this.formZipData.affiliate
|
|
|
493
|
+ .applicationPhone);
|
|
|
494
|
+ this.$set(this.formData.affiliate, 'respondentName', this.formZipData.affiliate
|
|
|
495
|
+ .respondentName);
|
|
|
496
|
+ this.$set(this.formData.affiliate, 'respondentPhone', this.formZipData.affiliate
|
|
|
497
|
+ .respondentPhone);
|
|
|
498
|
+ this.$set(this.formData.affiliate, 'respondentIdentityNum', this.formZipData
|
|
|
499
|
+ .affiliate.respondentIdentityNum);
|
|
|
500
|
+ this.$set(this.formData.affiliate, 'respondentSex', Number(this.formZipData
|
|
|
501
|
+ .affiliate.respondentSex));
|
|
|
502
|
+ this.$set(this.formData.affiliate, 'respondentBirth', this.formZipData.affiliate
|
|
|
503
|
+ .respondentBirth);
|
|
|
504
|
+ this.$set(this.formData.affiliate, 'respondentHome', this.formZipData.affiliate
|
|
|
505
|
+ .respondentHome);
|
|
|
506
|
+ this.$set(this.formData.affiliate, 'respondentEmail', this.formZipData.affiliate
|
|
|
507
|
+ .respondentEmail);
|
|
402
|
508
|
}
|
|
403
|
|
- })
|
|
404
|
|
- },
|
|
405
|
|
- cencalBut(){
|
|
|
509
|
+ uni.hideLoading();
|
|
|
510
|
+ },
|
|
|
511
|
+ fail: (err) => {
|
|
|
512
|
+ uni.showToast({
|
|
|
513
|
+ title: '上传失败',
|
|
|
514
|
+ icon: 'none',
|
|
|
515
|
+ duration: 1000
|
|
|
516
|
+ })
|
|
|
517
|
+ uni.hideLoading()
|
|
|
518
|
+ }
|
|
|
519
|
+ })
|
|
|
520
|
+ },
|
|
|
521
|
+ // 文件上传
|
|
|
522
|
+ select(e) {
|
|
|
523
|
+ this.tempFilePaths = e.tempFilePaths;
|
|
|
524
|
+ // loading
|
|
|
525
|
+ uni.showLoading({
|
|
|
526
|
+ title: '上传中'
|
|
|
527
|
+ });
|
|
|
528
|
+ uni.uploadFile({
|
|
|
529
|
+ url: config.baseUrlTJ + "/common/upload",
|
|
|
530
|
+ filePath: this.tempFilePaths[0],
|
|
|
531
|
+ header: {
|
|
|
532
|
+ Authorization: getToken() || '',
|
|
|
533
|
+ },
|
|
|
534
|
+ formData: {
|
|
|
535
|
+ annexType: 2,
|
|
|
536
|
+ id: this.formData.id
|
|
|
537
|
+ },
|
|
|
538
|
+ name: 'file',
|
|
|
539
|
+ success: (res) => {
|
|
|
540
|
+ let result = JSON.parse(res.data)
|
|
|
541
|
+ this.formData.caseAttachList.push({
|
|
|
542
|
+ annexId: result.annexId,
|
|
|
543
|
+ annexName: result.fileName
|
|
|
544
|
+ });
|
|
|
545
|
+ console.log(result.fileName)
|
|
|
546
|
+ uni.showToast({
|
|
|
547
|
+ title: '上传成功',
|
|
|
548
|
+ icon: 'none',
|
|
|
549
|
+ duration: 1000
|
|
|
550
|
+ })
|
|
|
551
|
+ uni.hideLoading();
|
|
|
552
|
+ },
|
|
|
553
|
+ fail: (err) => {
|
|
|
554
|
+ uni.showToast({
|
|
|
555
|
+ title: '上传失败',
|
|
|
556
|
+ icon: 'none',
|
|
|
557
|
+ duration: 1000
|
|
|
558
|
+ })
|
|
|
559
|
+ uni.hideLoading()
|
|
|
560
|
+ }
|
|
|
561
|
+ })
|
|
|
562
|
+ },
|
|
|
563
|
+ cencalBut() {
|
|
406
|
564
|
uni.navigateBack({
|
|
407
|
565
|
delta: 1
|
|
408
|
566
|
})
|
|
|
@@ -410,27 +568,33 @@
|
|
410
|
568
|
},
|
|
411
|
569
|
onLoad(data) {
|
|
412
|
570
|
this.ids = data.id
|
|
413
|
|
- if(this.ids){
|
|
414
|
|
- this.caseApplicationSelectByIdFn({id:data.id})
|
|
415
|
|
- uni.setNavigationBarTitle({title:"案件修改"})
|
|
416
|
|
- }else{
|
|
417
|
|
- uni.setNavigationBarTitle({title:"案件新增"})
|
|
|
571
|
+ if (this.ids) {
|
|
|
572
|
+ this.caseApplicationSelectByIdFn({
|
|
|
573
|
+ id: data.id
|
|
|
574
|
+ })
|
|
|
575
|
+ uni.setNavigationBarTitle({
|
|
|
576
|
+ title: "案件修改"
|
|
|
577
|
+ })
|
|
|
578
|
+ } else {
|
|
|
579
|
+ uni.setNavigationBarTitle({
|
|
|
580
|
+ title: "案件新增"
|
|
|
581
|
+ })
|
|
418
|
582
|
}
|
|
419
|
583
|
this.getTemplateFn()
|
|
420
|
|
- this.getUserInfoNumber()
|
|
|
584
|
+ this.getUserInfoNumber()
|
|
421
|
585
|
},
|
|
422
|
586
|
onReady() {
|
|
423
|
587
|
this.$refs.form.setRules(this.rules)
|
|
424
|
588
|
}
|
|
425
|
589
|
}
|
|
426
|
|
-
|
|
427
|
|
-</script>
|
|
428
|
|
-
|
|
|
590
|
+</script>
|
|
|
591
|
+
|
|
429
|
592
|
<style lang="scss">
|
|
430
|
593
|
page {
|
|
431
|
594
|
background-color: #ffffff;
|
|
432
|
595
|
}
|
|
433
|
|
- .assignrbitrators{
|
|
|
596
|
+
|
|
|
597
|
+ .assignrbitrators {
|
|
434
|
598
|
margin: 30rpx;
|
|
435
|
|
- }
|
|
|
599
|
+ }
|
|
436
|
600
|
</style>
|