fix: BUG修改
This commit is contained in:
parent
4ff223d302
commit
56cb274fd7
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="origin-table">
|
<div class="origin-table">
|
||||||
<div class="table-head-one">审图单位服务考核评分表</div>
|
<div class="table-head-one">{{ formData.enterpriseTypeName }}服务考核评分表</div>
|
||||||
<div class="table-head-two">
|
<div class="table-head-two">
|
||||||
<div><span>服务单位名称</span></div>
|
<div><span>服务单位名称</span></div>
|
||||||
<div class="form-element">
|
<div class="form-element">
|
||||||
@ -15,13 +15,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<div><span>填表时间</span></div>
|
<div><span>填表时间</span></div>
|
||||||
<div class="form-element-date">
|
<div class="form-element-date">
|
||||||
<el-date-picker
|
<!-- <el-date-picker
|
||||||
type="date"
|
type="date"
|
||||||
format="YYYY-MM-DD"
|
format="YYYY-MM-DD"
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD"
|
||||||
v-model="formData.scoreTime"
|
v-model="formData.scoreTime"
|
||||||
placeholder="请选择"
|
placeholder="请选择"
|
||||||
/>
|
/> -->
|
||||||
|
<span>{{ formData.scoreTime }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-head-three">
|
<div class="table-head-three">
|
||||||
@ -128,6 +129,7 @@ import { onMounted, ref, watch, reactive } from "vue";
|
|||||||
import { ElMessage, ElMessageBox } from "element-plus";
|
import { ElMessage, ElMessageBox } from "element-plus";
|
||||||
import type { FormInstance, UploadProps } from "element-plus";
|
import type { FormInstance, UploadProps } from "element-plus";
|
||||||
import { scoreSubItemList, scoreDetail, noScoreDetail, addScoreDetail, updateScoreDetail } from "@/api/modules/huizhou";
|
import { scoreSubItemList, scoreDetail, noScoreDetail, addScoreDetail, updateScoreDetail } from "@/api/modules/huizhou";
|
||||||
|
import dayjs from "dayjs";
|
||||||
const formData = ref({});
|
const formData = ref({});
|
||||||
const emits = defineEmits(["confirm"]);
|
const emits = defineEmits(["confirm"]);
|
||||||
const props = defineProps(["relativeInfo"]);
|
const props = defineProps(["relativeInfo"]);
|
||||||
@ -297,6 +299,7 @@ onMounted(async () => {
|
|||||||
if (formData.value.startTime) {
|
if (formData.value.startTime) {
|
||||||
formData.value.timeRange = [formData.value.startTime, formData.value.endTime];
|
formData.value.timeRange = [formData.value.startTime, formData.value.endTime];
|
||||||
}
|
}
|
||||||
|
formData.value.scoreTime = dayjs().format("YYYY-MM-DD");
|
||||||
console.log(formData.value);
|
console.log(formData.value);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<!-- <div class="report"> -->
|
<!-- <div class="report"> -->
|
||||||
<el-dialog class="report" :title="title" style="min-width: 1680px" v-model="visible1" @close="closeMain">
|
<el-dialog class="report" :title="title" style="min-width: 1390px" v-model="visible1" @close="closeMain">
|
||||||
<Steps class="steps" :datas="datas" :active="active" />
|
<Steps class="steps" :datas="datas" :active="active" />
|
||||||
|
|
||||||
<keep-alive>
|
<keep-alive v-if="visible1">
|
||||||
<component :is="Components[active]" @next="next" @prev="active--"></component>
|
<component :is="Components[active]" @next="next" @prev="active--"></component>
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
|
|||||||
@ -247,7 +247,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { ref, onMounted, onUnmounted, nextTick, onActivated, onDeactivated } from "vue";
|
import { ref, onMounted, onUnmounted, onActivated, onDeactivated } from "vue";
|
||||||
import { form, reset, rules } from "./overview";
|
import { form, reset, rules } from "./overview";
|
||||||
import { getDicList } from "@/api/modules/jxjview";
|
import { getDicList } from "@/api/modules/jxjview";
|
||||||
import { getEngineeringName } from "@/api/modules/project";
|
import { getEngineeringName } from "@/api/modules/project";
|
||||||
@ -337,8 +337,8 @@ const next = async (formEl: FormInstance | undefined, params: any) => {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
ruleFormRef.value?.clearValidate();
|
||||||
// const res2 = await getEngineeringName();
|
// const res2 = await getEngineeringName();
|
||||||
// form.value.projectName = res2.result.projectName; //获取项目名称
|
// form.value.projectName = res2.result.projectName; //获取项目名称
|
||||||
const data = await getDicList({ dictType: "engineering_type" });
|
const data = await getDicList({ dictType: "engineering_type" });
|
||||||
@ -347,10 +347,18 @@ onMounted(async () => {
|
|||||||
engineeringPurpose.value = res.result;
|
engineeringPurpose.value = res.result;
|
||||||
const res1 = await getDicList({ dictType: "structural_style" });
|
const res1 = await getDicList({ dictType: "structural_style" });
|
||||||
structuralStyle.value = res1.result;
|
structuralStyle.value = res1.result;
|
||||||
if (store.Message) {
|
// if (store.Message) {
|
||||||
form.value = store.Message;
|
// form.value = store.Message;
|
||||||
addressList.value = store.Message;
|
// addressList.value = store.Message;
|
||||||
}
|
// } else {
|
||||||
|
// form.value = {};
|
||||||
|
// addressList.value = {
|
||||||
|
// province: "",
|
||||||
|
// city: "",
|
||||||
|
// area: "",
|
||||||
|
// district: ""
|
||||||
|
// };
|
||||||
|
// }
|
||||||
});
|
});
|
||||||
onUnmounted(() => {
|
onUnmounted(() => {
|
||||||
ruleFormRef.value?.clearValidate();
|
ruleFormRef.value?.clearValidate();
|
||||||
@ -360,9 +368,6 @@ onUnmounted(() => {
|
|||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "./overview.scss";
|
@import "./overview.scss";
|
||||||
.test :deep(.el-input__wrapper) {
|
|
||||||
box-shadow: 0 0 0 0;
|
|
||||||
}
|
|
||||||
.test :deep(.el-input__inner) {
|
.test :deep(.el-input__inner) {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -170,6 +170,7 @@ const confirmReform = () => {
|
|||||||
};
|
};
|
||||||
// 新增项目
|
// 新增项目
|
||||||
const handleAddItem = () => {
|
const handleAddItem = () => {
|
||||||
|
store.Message = null;
|
||||||
approvalTitle.value = "新增";
|
approvalTitle.value = "新增";
|
||||||
detailsDialog.value = true;
|
detailsDialog.value = true;
|
||||||
};
|
};
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user