|
@@ -336,6 +336,8 @@
|
|
@choose="chooseHotSpot"
|
|
@choose="chooseHotSpot"
|
|
placeholder="请选择热点分类"
|
|
placeholder="请选择热点分类"
|
|
clearable
|
|
clearable
|
|
|
|
+ ref="hotSpotRef"
|
|
|
|
+ @getCurrentData="getCurrentData"
|
|
/>
|
|
/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -567,7 +569,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts" name="orderAccept">
|
|
<script setup lang="ts" name="orderAccept">
|
|
-import { computed, defineAsyncComponent, onMounted, reactive, ref, watch } from 'vue';
|
|
|
|
|
|
+import { computed, defineAsyncComponent, nextTick, onMounted, reactive, ref, watch } from 'vue';
|
|
import type { FormInstance } from 'element-plus';
|
|
import type { FormInstance } from 'element-plus';
|
|
import { ElMessage, ElMessageBox, ElNotification } from 'element-plus';
|
|
import { ElMessage, ElMessageBox, ElNotification } from 'element-plus';
|
|
import { storeToRefs } from 'pinia';
|
|
import { storeToRefs } from 'pinia';
|
|
@@ -1167,6 +1169,7 @@ const loadBaseData = async () => {
|
|
}
|
|
}
|
|
};
|
|
};
|
|
// 如果是修改加载表单内容
|
|
// 如果是修改加载表单内容
|
|
|
|
+const hotSpotRef = ref();
|
|
const loadForm = async () => {
|
|
const loadForm = async () => {
|
|
state.formLoading = true;
|
|
state.formLoading = true;
|
|
if (route.query.createBy) {
|
|
if (route.query.createBy) {
|
|
@@ -1210,6 +1213,7 @@ const loadForm = async () => {
|
|
state.ruleForm.isRepeat = 'false';
|
|
state.ruleForm.isRepeat = 'false';
|
|
}
|
|
}
|
|
if (state.ruleForm.focusOnEvents) {
|
|
if (state.ruleForm.focusOnEvents) {
|
|
|
|
+ // 重点关注事项
|
|
state.ruleForm.focusOnEventsArr = response.result.focusOnEvents.split(',');
|
|
state.ruleForm.focusOnEventsArr = response.result.focusOnEvents.split(',');
|
|
}
|
|
}
|
|
state.ruleForm.channel = {
|
|
state.ruleForm.channel = {
|
|
@@ -1236,6 +1240,13 @@ const loadForm = async () => {
|
|
dicDataValue: state.ruleForm.licenceTypeCode,
|
|
dicDataValue: state.ruleForm.licenceTypeCode,
|
|
dicDataName: state.ruleForm.licenceType,
|
|
dicDataName: state.ruleForm.licenceType,
|
|
};
|
|
};
|
|
|
|
+ if (!state.ruleForm.acceptType) {
|
|
|
|
+ // 外部输入数据没有受理名称和热点名称 需要根据code调用一次change事件获取
|
|
|
|
+ const currentAcceptType = state.acceptTypeOptions.find((item: any) => {
|
|
|
|
+ return item.dicDataValue === state.ruleForm.acceptTypeCode;
|
|
|
|
+ });
|
|
|
|
+ state.ruleForm.acceptType = currentAcceptType?.dicDataName ?? '';
|
|
|
|
+ }
|
|
state.ruleForm.acceptTypeObj = {
|
|
state.ruleForm.acceptTypeObj = {
|
|
// 受理类型
|
|
// 受理类型
|
|
dicDataValue: state.ruleForm.acceptTypeCode,
|
|
dicDataValue: state.ruleForm.acceptTypeCode,
|
|
@@ -1290,10 +1301,18 @@ const loadExtra = async () => {
|
|
extraLoading.value = false;
|
|
extraLoading.value = false;
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
+const getCurrentData = (val: any) => {
|
|
|
|
+ if (!state.ruleForm.hotspotName || !state.ruleForm.hotspotSpliceName) {
|
|
|
|
+ // 外部输入数据没有受理名称和热点名称
|
|
|
|
+ state.ruleForm.hotspotName = val.data.hotSpotName;
|
|
|
|
+ state.ruleForm.hotspotSpliceName = val.data.hotSpotFullName;
|
|
|
|
+ state.ruleForm.hotspotCode = val.data.provinceCode;
|
|
|
|
+ }
|
|
|
|
+};
|
|
loadBaseData();
|
|
loadBaseData();
|
|
-loadForm();
|
|
|
|
|
|
+loadAddress();
|
|
|
|
+loadExtra();
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
- await loadAddress();
|
|
|
|
- await loadExtra();
|
|
|
|
|
|
+ await loadForm();
|
|
});
|
|
});
|
|
</script>
|
|
</script>
|