lcw
This commit is contained in:
@ -11,6 +11,17 @@
|
||||
<div class="form-content" v-loading="loading">
|
||||
<!-- <div class="form_cnt"> -->
|
||||
<FormMessage :disabled="disabled" v-model="listQuery" :formList="formData" ref="elform" :rules="rules">
|
||||
<template #jbxx>
|
||||
<div>
|
||||
<h3 class="tags-title">报送情况</h3>
|
||||
<div style="display: flex;justify-content:space-between;width: 200%;">
|
||||
<div>录入人:{{ userName }}</div>
|
||||
<div>录入单位:{{ userInfo.deptName }}</div>
|
||||
<div>本年度报送信息量:{{ tjcll.cnl || 0 }}</div>
|
||||
<div>采纳量:{{ tjcll.sbsl || 0 }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</FormMessage>
|
||||
<!-- </div> -->
|
||||
<div class="tags-section" v-if="disabled">
|
||||
@ -109,7 +120,7 @@
|
||||
|
||||
<script setup>
|
||||
import FormMessage from "@/components/aboutTable/FormMessage.vue";
|
||||
import { xxcjAddEntity, xxcjUpdateEntity, xxcjSelectByid, xxcjSelectCzlcList, xxcjSelectListBc, xxcjDeletesBc, addEntity, xxcjXxzhs } from "@/api/xxcj.js"
|
||||
import { xxcjAddEntity, xxcjUpdateEntity, xxcjSelectByid, xxcjSelectCzlcList, xxcjSelectListBc, xxcjDeletesBc, addEntity, xxcjTjcll, xxcjXxzhs } from "@/api/xxcj.js"
|
||||
import { EditPen, Delete } from '@element-plus/icons-vue'
|
||||
import { ref, defineExpose, onMounted, defineEmits, watch, getCurrentInstance } from "vue"
|
||||
import { ElMessage } from 'element-plus';
|
||||
@ -117,6 +128,7 @@ import { getItem } from '@//utils/storage.js'
|
||||
import { useRoute, useRouter } from 'vue-router'
|
||||
import pursueContent from "@/views/backOfficeSystem/HumanIntelligence/components/pursueContent.vue";
|
||||
import * as MOSTY from "@/components/MyComponents/index";
|
||||
|
||||
const { proxy } = getCurrentInstance()
|
||||
const emit = defineEmits(["getList"]);
|
||||
const props = defineProps({
|
||||
@ -138,7 +150,14 @@ const rules = ref({
|
||||
qbnr: [{ required: true, message: "请输入情报内容", trigger: "blur" }],
|
||||
bcnr: [{ required: true, message: "请输入续报内容", trigger: "blur" }],
|
||||
})
|
||||
|
||||
const tjcll = ref({})
|
||||
const getXxcjTjcll = () => {
|
||||
xxcjTjcll({}).then(res => {
|
||||
tjcll.value = res
|
||||
}).catch(error => {
|
||||
console.error('请求失败:', error)
|
||||
})
|
||||
}
|
||||
watch(() => dialogForm.value, (val) => {
|
||||
if (val) {
|
||||
if (formType.value === 'followUpReport') {
|
||||
@ -151,6 +170,9 @@ watch(() => dialogForm.value, (val) => {
|
||||
{ label: "情报标题", prop: "qbmc", type: "input", width: '45%' },
|
||||
{ label: "情报内容", prop: "qbnr", type: "textarea", width: '100%', rows: 100 },
|
||||
{ label: "附件上传", prop: "fjdz", type: "upload", width: '100%', isImg: false },
|
||||
{ label: "", prop: "jbxx", type: "slot", width: '100%', isImg: false },
|
||||
|
||||
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -159,6 +181,7 @@ const fjdz = ref()
|
||||
const listQuery = ref({}); //表单
|
||||
const elform = ref();
|
||||
onMounted(() => {
|
||||
|
||||
})
|
||||
const msgeDat = ref()
|
||||
const title = ref("")
|
||||
@ -166,8 +189,13 @@ const showPj = ref(false)
|
||||
const disabled = ref(false)
|
||||
/** 类型 add 新增 info 详情 edit 编辑 followUpReport 续报*/
|
||||
const formType = ref('add')
|
||||
const userInfo = ref({})
|
||||
const userName = ref('')
|
||||
// 初始化数据
|
||||
const init = (type, row) => {
|
||||
userInfo.value = getItem('deptId') ? getItem('deptId')[0] : {}
|
||||
userName.value = getItem('USERNAME')
|
||||
getXxcjTjcll()
|
||||
const titleObj = {
|
||||
add: "新增",
|
||||
info: "详情",
|
||||
|
||||
Reference in New Issue
Block a user