|
@@ -5,9 +5,9 @@
|
|
|
<descriptions-item label="所在城市:">{{
|
|
|
activeRow.city || ""
|
|
|
}}</descriptions-item>
|
|
|
- <descriptions-item label="机构名称:">{{
|
|
|
+ <!-- <descriptions-item label="机构名称:">{{
|
|
|
activeRow.name || ""
|
|
|
- }}</descriptions-item>
|
|
|
+ }}</descriptions-item> -->
|
|
|
<descriptions-item label="申请时间:">{{
|
|
|
activeRow.createTime || ""
|
|
|
}}</descriptions-item>
|
|
@@ -15,7 +15,7 @@
|
|
|
activeRow.linkman || ""
|
|
|
}}</descriptions-item>
|
|
|
<descriptions-item label="联系电话:">{{
|
|
|
- activeRow.phone || ""
|
|
|
+ activeRow.mobileNo || ""
|
|
|
}}</descriptions-item>
|
|
|
</descriptions>
|
|
|
<el-alert
|
|
@@ -47,7 +47,8 @@
|
|
|
append-to-body
|
|
|
>
|
|
|
<el-form :model="form" ref="ruleForm">
|
|
|
- <el-form-item label="沟通时间" label-width="120PX" prop="createTime">
|
|
|
+ <el-form-item label="沟通时间" label-width="120PX" prop="createTime"
|
|
|
+ :rules="[{ required: true, message: '请选择沟通日期', trigger: 'change' }]">
|
|
|
<el-date-picker
|
|
|
type="datetime"
|
|
|
style="width: 100% !important"
|
|
@@ -59,7 +60,8 @@
|
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="沟通内容" label-width="120PX" prop="callBackLog">
|
|
|
+ <el-form-item label="沟通内容" label-width="120PX" prop="callBackLog"
|
|
|
+ :rules="[{ required: true, message: '请输入沟通沟通内容', trigger: 'blur' }]">
|
|
|
<el-input
|
|
|
type="textarea"
|
|
|
:rows="3"
|
|
@@ -100,20 +102,24 @@ export default {
|
|
|
this.recordVisible = true;
|
|
|
},
|
|
|
async submitRecode() {
|
|
|
- try {
|
|
|
- const res = await addCallRecord({
|
|
|
- tenantApplyId: this.activeRow.id,
|
|
|
- ...this.form,
|
|
|
- });
|
|
|
- this.recordVisible = false;
|
|
|
- this.form = {
|
|
|
- createTime: "",
|
|
|
- callBackLog: "",
|
|
|
- };
|
|
|
- this.getRecode();
|
|
|
- } catch (e) {
|
|
|
- console.log(e);
|
|
|
- }
|
|
|
+ this.$refs['ruleForm'].validate(async (_) => {
|
|
|
+ if(_) {
|
|
|
+ try {
|
|
|
+ const res = await addCallRecord({
|
|
|
+ tenantApplyId: this.activeRow.id,
|
|
|
+ ...this.form,
|
|
|
+ });
|
|
|
+ this.recordVisible = false;
|
|
|
+ this.form = {
|
|
|
+ createTime: "",
|
|
|
+ callBackLog: "",
|
|
|
+ };
|
|
|
+ this.getRecode();
|
|
|
+ } catch (e) {
|
|
|
+ console.log(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
},
|
|
|
async getRecode() {
|
|
|
try {
|