vue2-client 1.3.20 → 1.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
<!-- 联系人 -->
|
|
169
169
|
<a-form-item label="联系人">
|
|
170
170
|
<a-input v-model="form.contact"></a-input>
|
|
171
|
-
<strong v-show="showContactAlert" style="color: red"
|
|
171
|
+
<strong v-show="showContactAlert" style="color: red">请填写联系人!</strong>
|
|
172
172
|
</a-form-item>
|
|
173
173
|
<!-- 联系方式 -->
|
|
174
174
|
<a-form-item label="联系方式">
|
|
@@ -331,7 +331,10 @@ export default {
|
|
|
331
331
|
computed: {
|
|
332
332
|
// 检查客户名称是否为空
|
|
333
333
|
validCustomerName () {
|
|
334
|
-
|
|
334
|
+
if (this.currUser.ename || this.customerName) {
|
|
335
|
+
return true
|
|
336
|
+
}
|
|
337
|
+
return false
|
|
335
338
|
}
|
|
336
339
|
},
|
|
337
340
|
created () {
|
|
@@ -402,6 +405,18 @@ export default {
|
|
|
402
405
|
Images: this.imageList,
|
|
403
406
|
FilesId: this.fileList
|
|
404
407
|
}
|
|
408
|
+
if (form.customerName.length > 100) {
|
|
409
|
+
this.$message.error('客户名称长度超出限制')
|
|
410
|
+
return
|
|
411
|
+
}
|
|
412
|
+
if (form.problemDetail.length > 300) {
|
|
413
|
+
this.$message.error('问题详情长度超出限制')
|
|
414
|
+
return
|
|
415
|
+
}
|
|
416
|
+
if (form.problemDetail.indexOf('\'')) {
|
|
417
|
+
this.$message.error('问题详情不能包含特殊符号')
|
|
418
|
+
return
|
|
419
|
+
}
|
|
405
420
|
if (!this.form.desc) {
|
|
406
421
|
form.problemDetail = '该用户没有填写描述信息'
|
|
407
422
|
}
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
</a-step>
|
|
33
33
|
<a-step title="工单处理中" >
|
|
34
34
|
<a-step-item-group slot="description">
|
|
35
|
-
<a-step-item v-if="step >= 1" :title="details.name" />
|
|
35
|
+
<a-step-item v-if="step >= 1" :title="details.phone ? `${details.name} (${details.phone})` : details.name" />
|
|
36
36
|
<a-step-item v-if="step >= 1" :title="details.confirmTime"/>
|
|
37
37
|
</a-step-item-group>
|
|
38
38
|
</a-step>
|
|
@@ -77,6 +77,7 @@ export default {
|
|
|
77
77
|
uploader: '',
|
|
78
78
|
status: '',
|
|
79
79
|
name: '',
|
|
80
|
+
phone: '',
|
|
80
81
|
createdTime: '',
|
|
81
82
|
confirmTime: '',
|
|
82
83
|
finishedTime: ''
|
|
@@ -173,6 +174,7 @@ export default {
|
|
|
173
174
|
}
|
|
174
175
|
this.details.createdTime = this.format(res.createdtime, 'yyyy-MM-dd hh:mm:ss')
|
|
175
176
|
this.details.status = res.status
|
|
177
|
+
this.details.phone = res.phone
|
|
176
178
|
}, err => {
|
|
177
179
|
console.log(err)
|
|
178
180
|
})
|