|
@@ -484,7 +484,7 @@ import { CirclePlus, CircleClose } from "@element-plus/icons-vue";
|
|
|
import { recorderInfoType, ChangeReasonType } from "./formData.ts";
|
|
|
import { confirm } from "@/helper/message";
|
|
|
const props = defineProps({ caseId: Number, title: String });
|
|
|
-
|
|
|
+console.log('router.currentRoute', router.currentRoute.value?.params);
|
|
|
const fileId = computed(() => router.currentRoute.value?.params?.fileId);
|
|
|
const caseId = computed(() => router.currentRoute.value?.params?.caseId);
|
|
|
const isDisableExport = ref(false);
|
|
@@ -531,7 +531,7 @@ const data = reactive({
|
|
|
photographNum: 0, //照相数量
|
|
|
photographyMinNum: 0, //摄影数量
|
|
|
photographySecNum: 0, //摄影数量
|
|
|
- recorderInfo: [...recorderInfoType, recorderInfoType[4]],
|
|
|
+ recorderInfo: recorderInfoType,
|
|
|
signatureInfo: [], //现场勘验人员
|
|
|
witnessInfo: [],
|
|
|
remark: "",
|
|
@@ -540,8 +540,8 @@ const signatureInfoNum = 4;
|
|
|
const witnessInfoNum = 2;
|
|
|
const recorderInfoDialogShow = ref(false);
|
|
|
const recorderInfoDialogSelect = ref();
|
|
|
-const initInfo = async () => {
|
|
|
- const res = await getCaseInquestInfoOld(fileId.value);
|
|
|
+const initInfo = async (inquestFileId) => {
|
|
|
+ const res = await getCaseInquestInfoOld(inquestFileId || fileId.value);
|
|
|
console.log('initInfo',res);
|
|
|
if (!res.data) {
|
|
|
isDisableExport.value = true;
|
|
@@ -646,7 +646,7 @@ const handleSave = async () => {
|
|
|
let inquestFileId = fileId.value == -1 ? '' : fileId.value;
|
|
|
let params = { ...data, caseId: caseId.value, inquestFileId };
|
|
|
const res = await saveCaseInquestInfo(params);
|
|
|
- initInfo();
|
|
|
+ initInfo(res.data.inquestFileId);
|
|
|
console.log("saveCaseInquestInfo", res);
|
|
|
if(fileId.value == -1){
|
|
|
router.replace({
|