|
@@ -13,7 +13,7 @@
|
|
|
label-width="110px"
|
|
|
label-position="right"
|
|
|
scroll-to-error
|
|
|
- v-loading="state.historyOrderLoading"
|
|
|
+ v-loading="state.formLoading"
|
|
|
>
|
|
|
<p class="border-title mb10">来电信息</p>
|
|
|
<el-row :gutter="0">
|
|
@@ -204,7 +204,7 @@
|
|
|
</el-col>
|
|
|
<el-col :xs="24" :sm="24" :md="24" :lg="12" :xl="12">
|
|
|
<el-form-item label="" prop="acceptSms" :rules="[{ required: false, message: '请选择', trigger: 'blur' }]">
|
|
|
- <el-checkbox v-model="state.ruleForm.acceptSms" label="受理短信" :disabled="state.ruleForm.needContact"/>
|
|
|
+ <el-checkbox v-model="state.ruleForm.acceptSms" label="受理短信" :disabled="state.ruleForm.needContact" />
|
|
|
<el-checkbox
|
|
|
v-model="state.ruleForm.needContact"
|
|
|
label="无需联系"
|
|
@@ -544,7 +544,7 @@
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<!-- 拓展表单 -->
|
|
|
- <ExpandForm ref="ExpandFormRef" @saveExpandForm="saveExpandForm" />
|
|
|
+ <ExpandForm ref="ExpandFormRef" @saveExpandForm="saveExpandForm" v-if="state.expandFormMouted"/>
|
|
|
<!-- 历史工单 -->
|
|
|
<History ref="HistoryOrderRef" @saveSlect="saveSlect" />
|
|
|
<!-- 提交流程 -->
|
|
@@ -588,8 +588,8 @@ const state = reactive<any>({
|
|
|
duplicateTitle: '',
|
|
|
duplicateId: '',
|
|
|
content: '',
|
|
|
- acceptSms:false,
|
|
|
- needContact:false
|
|
|
+ acceptSms: false,
|
|
|
+ needContact: false,
|
|
|
},
|
|
|
formLoading: false, // 表单加载状态
|
|
|
historyOrderLoading: false, // 历史工单加载状态
|
|
@@ -637,6 +637,7 @@ const state = reactive<any>({
|
|
|
},
|
|
|
knowledgeTotal: 0, // 知识库总条数
|
|
|
fileList: [],
|
|
|
+ expandFormMouted:false,
|
|
|
});
|
|
|
const ruleFormRef = ref();
|
|
|
const queryParamsRef = ref();
|
|
@@ -945,6 +946,7 @@ const onSupplySubmit = () => {
|
|
|
onMounted(async () => {
|
|
|
nextTick(async () => {
|
|
|
if (route.params.id) {
|
|
|
+ state.formLoading = true;
|
|
|
state.historyOrderLoading = true;
|
|
|
state.loading = true;
|
|
|
try {
|
|
@@ -988,6 +990,7 @@ onMounted(async () => {
|
|
|
};
|
|
|
}
|
|
|
});
|
|
|
+ state.expandFormMouted = true;
|
|
|
}
|
|
|
if (response.result.duplicateId) {
|
|
|
// 是否重复
|
|
@@ -1017,14 +1020,17 @@ onMounted(async () => {
|
|
|
};
|
|
|
knowretrievalPaged(state.ruleForm.hotspot);
|
|
|
state.historyOrderLoading = false;
|
|
|
+ state.formLoading = false;
|
|
|
state.loading = false;
|
|
|
} catch (error) {
|
|
|
state.historyOrderLoading = false;
|
|
|
+ state.formLoading = false;
|
|
|
state.loading = false;
|
|
|
}
|
|
|
} else {
|
|
|
ElMessage.warning('参数有误,请重新进入');
|
|
|
state.historyOrderLoading = false;
|
|
|
+ state.formLoading = false;
|
|
|
state.loading = false;
|
|
|
}
|
|
|
});
|