From cde45cf5ee69b5e34abd33dc2657ae5f2f9e13e1 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Mon, 3 Jun 2024 11:50:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=86=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E5=8F=8A=E8=B7=AF=E7=94=B1=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=8F=90?= =?UTF-8?q?=E5=8D=87=E4=BA=86=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E9=AB=98=E4=BA=86=E6=93=8D=E4=BD=9C=E6=95=88=E7=8E=87?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/assessSubordinates/edit.vue | 317 ++++++------------------ src/views/jxgl_temp/edit.vue | 317 ++++++------------------ src/views/jxgl_temp/index.vue | 4 +- src/views/selfEvaluation/edit.vue | 333 +++++++------------------- src/views/selfEvaluation/index.vue | 4 +- 5 files changed, 233 insertions(+), 742 deletions(-) diff --git a/src/views/assessSubordinates/edit.vue b/src/views/assessSubordinates/edit.vue index 3658b9f..cf2ee27 100644 --- a/src/views/assessSubordinates/edit.vue +++ b/src/views/assessSubordinates/edit.vue @@ -1,204 +1,68 @@ @@ -219,16 +83,14 @@ defineProps({ type: Object as PropType>, default: () => ({}) }, - deptList: Array }) const emit = defineEmits(['success', 'close']) const formRef = shallowRef() const popupRef = shallowRef>() const mode = ref('add') -const showDialog = ref(false) -const showDialog1 = ref(false) -const showDialog2 = ref(false) -const personnel = ref(null) +const useStore = useUserStore().userInfo + + // 弹窗标题 const popupTitle = computed(() => { @@ -238,39 +100,17 @@ const popupTitle = computed(() => { // 表单数据 const formData = reactive({ id: '', - project_name: '', nature: '', - industry: '', - build_unit: '', - build_unit_name: '', - build_area: '', - address: '', - project_level: '', - total_investment: '', - engineering_status: '', - contract_content: '', - project_overview: '', - project_requirements: '', - planned_start_date: '', - planned_end_date: '', - actual_start_date: '', - actual_end_date: '', - implementation_department: '', - supervision_department: '', - project_manager: '', - project_manager_name: '', - initiation_date: '', - project_leader: '', - project_leader_name: '', - project_department: '', - remark: '', - contract: '', - contract_name: '', - part_a_unit: '', - part_a: '', - annex: [], + name: '', + admin: useStore.id, + admin_user: useStore.name, + detail: [] + }) +const handleAdd = () => { + formData.detail.push({}) +} // 表单验证 @@ -332,21 +172,6 @@ const handleClose = () => { } - - - -let value -const userclick = async (val) => { - showDialog.value = true - value = val - await nextTick() - personnel.value.open() -} -const submituser = (e: any) => { - formData[value + '_name'] = e.name - formData[value] = e.id - showDialog.value = false -} defineExpose({ open, setFormData, diff --git a/src/views/jxgl_temp/edit.vue b/src/views/jxgl_temp/edit.vue index 3658b9f..cf2ee27 100644 --- a/src/views/jxgl_temp/edit.vue +++ b/src/views/jxgl_temp/edit.vue @@ -1,204 +1,68 @@ @@ -219,16 +83,14 @@ defineProps({ type: Object as PropType>, default: () => ({}) }, - deptList: Array }) const emit = defineEmits(['success', 'close']) const formRef = shallowRef() const popupRef = shallowRef>() const mode = ref('add') -const showDialog = ref(false) -const showDialog1 = ref(false) -const showDialog2 = ref(false) -const personnel = ref(null) +const useStore = useUserStore().userInfo + + // 弹窗标题 const popupTitle = computed(() => { @@ -238,39 +100,17 @@ const popupTitle = computed(() => { // 表单数据 const formData = reactive({ id: '', - project_name: '', nature: '', - industry: '', - build_unit: '', - build_unit_name: '', - build_area: '', - address: '', - project_level: '', - total_investment: '', - engineering_status: '', - contract_content: '', - project_overview: '', - project_requirements: '', - planned_start_date: '', - planned_end_date: '', - actual_start_date: '', - actual_end_date: '', - implementation_department: '', - supervision_department: '', - project_manager: '', - project_manager_name: '', - initiation_date: '', - project_leader: '', - project_leader_name: '', - project_department: '', - remark: '', - contract: '', - contract_name: '', - part_a_unit: '', - part_a: '', - annex: [], + name: '', + admin: useStore.id, + admin_user: useStore.name, + detail: [] + }) +const handleAdd = () => { + formData.detail.push({}) +} // 表单验证 @@ -332,21 +172,6 @@ const handleClose = () => { } - - - -let value -const userclick = async (val) => { - showDialog.value = true - value = val - await nextTick() - personnel.value.open() -} -const submituser = (e: any) => { - formData[value + '_name'] = e.name - formData[value] = e.id - showDialog.value = false -} defineExpose({ open, setFormData, diff --git a/src/views/jxgl_temp/index.vue b/src/views/jxgl_temp/index.vue index 355d8d6..d135a5f 100644 --- a/src/views/jxgl_temp/index.vue +++ b/src/views/jxgl_temp/index.vue @@ -66,7 +66,7 @@ - @@ -109,7 +109,7 @@ const handleSelectionChange = (val: any[]) => { } // 获取字典数据 -const { dictData } = useDictData('supervision_project_nature,industry,const_area,supervision_project_level,engineering_status') +const { dictData } = useDictData('jxgl_check_type') // 分页相关 const { pager, getLists, resetParams, resetPage } = usePaging({ diff --git a/src/views/selfEvaluation/edit.vue b/src/views/selfEvaluation/edit.vue index 3658b9f..d556c26 100644 --- a/src/views/selfEvaluation/edit.vue +++ b/src/views/selfEvaluation/edit.vue @@ -1,204 +1,83 @@ @@ -219,16 +98,14 @@ defineProps({ type: Object as PropType>, default: () => ({}) }, - deptList: Array }) const emit = defineEmits(['success', 'close']) const formRef = shallowRef() const popupRef = shallowRef>() const mode = ref('add') -const showDialog = ref(false) -const showDialog1 = ref(false) -const showDialog2 = ref(false) -const personnel = ref(null) +const useStore = useUserStore().userInfo + + // 弹窗标题 const popupTitle = computed(() => { @@ -238,39 +115,18 @@ const popupTitle = computed(() => { // 表单数据 const formData = reactive({ id: '', - project_name: '', nature: '', - industry: '', - build_unit: '', - build_unit_name: '', - build_area: '', - address: '', - project_level: '', - total_investment: '', - engineering_status: '', - contract_content: '', - project_overview: '', - project_requirements: '', - planned_start_date: '', - planned_end_date: '', - actual_start_date: '', - actual_end_date: '', - implementation_department: '', - supervision_department: '', - project_manager: '', - project_manager_name: '', - initiation_date: '', - project_leader: '', - project_leader_name: '', - project_department: '', - remark: '', - contract: '', - contract_name: '', - part_a_unit: '', - part_a: '', - annex: [], + name: '', + admin: useStore.id, + admin_user: useStore.name, + month: "", + detail: [] + }) +const handleAdd = () => { + formData.detail.push({}) +} // 表单验证 @@ -332,21 +188,6 @@ const handleClose = () => { } - - - -let value -const userclick = async (val) => { - showDialog.value = true - value = val - await nextTick() - personnel.value.open() -} -const submituser = (e: any) => { - formData[value + '_name'] = e.name - formData[value] = e.id - showDialog.value = false -} defineExpose({ open, setFormData, diff --git a/src/views/selfEvaluation/index.vue b/src/views/selfEvaluation/index.vue index b476e26..8efa99c 100644 --- a/src/views/selfEvaluation/index.vue +++ b/src/views/selfEvaluation/index.vue @@ -71,7 +71,7 @@ - @@ -114,7 +114,7 @@ const handleSelectionChange = (val: any[]) => { } // 获取字典数据 -const { dictData } = useDictData('supervision_project_nature,industry,const_area,supervision_project_level,engineering_status') +const { dictData } = useDictData('jxgl_check_type') // 分页相关 const { pager, getLists, resetParams, resetPage } = usePaging({