diff --git a/src/components/popup/index.vue b/src/components/popup/index.vue index 6556b6f..dd97ddd 100644 --- a/src/components/popup/index.vue +++ b/src/components/popup/index.vue @@ -10,6 +10,7 @@ :center="center" :append-to-body="true" :close-on-click-modal="clickModalClose" + :width="width" @closed="close" > @@ -82,6 +83,9 @@ export default defineComponent({ customClass: { type: String, default: '' + }, + width: { + type: String } }, emits: ['confirm', 'cancel', 'close', 'open'], diff --git a/src/layout/components/ChangePwd.vue b/src/layout/components/ChangePwd.vue new file mode 100644 index 0000000..316d9e1 --- /dev/null +++ b/src/layout/components/ChangePwd.vue @@ -0,0 +1,145 @@ + + diff --git a/src/layout/components/Header.vue b/src/layout/components/Header.vue index 28db053..931bbf8 100644 --- a/src/layout/components/Header.vue +++ b/src/layout/components/Header.vue @@ -26,7 +26,7 @@ 退出登录 - +
@@ -43,17 +43,17 @@ diff --git a/src/views/home/components/Daily.vue b/src/views/home/components/Daily.vue index 6ef11e8..2d1af44 100644 --- a/src/views/home/components/Daily.vue +++ b/src/views/home/components/Daily.vue @@ -7,7 +7,7 @@
{{ daily.mailToday }}
今日来信 -
+
{{ daily.completedToday }}
今日办结
@@ -56,7 +56,7 @@ function goMailQuery(key) { } if (key === 'completedToday') { routerParams.setParams({ - mailTime: [moment().format('YYYY-MM-DD') + ' 00:00:00', moment().format('YYYY-MM-DD') + ' 23:59:59'] + completionTime: [moment().format('YYYY-MM-DD') + ' 00:00:00', moment().format('YYYY-MM-DD') + ' 23:59:59'] }) } if (key === 'mailTotal') { diff --git a/src/views/home/components/MailTable.vue b/src/views/home/components/MailTable.vue index 56f3b9d..f440dfb 100644 --- a/src/views/home/components/MailTable.vue +++ b/src/views/home/components/MailTable.vue @@ -14,10 +14,8 @@ diff --git a/src/views/work/Done.vue b/src/views/work/Done.vue index dfcedc6..b63417b 100644 --- a/src/views/work/Done.vue +++ b/src/views/work/Done.vue @@ -140,9 +140,7 @@ @@ -271,6 +269,7 @@ const { dictData } = useDictData(["mail_source", "mail_level", "mail_state"]); const query = ref({ size: 10, current: 1, + contactField: 'name' }); const totalSize = reactive({ total: 0, @@ -303,7 +302,9 @@ function getList() { } function reset() { - query.value = {}; + query.value = { + contactField: 'name' + }; getList(); } diff --git a/src/views/work/Query.vue b/src/views/work/Query.vue index c000d41..5ac02eb 100644 --- a/src/views/work/Query.vue +++ b/src/views/work/Query.vue @@ -109,6 +109,13 @@ + + + + +
@@ -145,9 +152,8 @@ @@ -445,6 +451,11 @@ function getList() { query.value.mailTime = useRouterParams.params.mailTime useRouterParams.removeParams() } + if (useRouterParams.params.completionTime) { + collapse.value = false + query.value.completionTime = useRouterParams.params.completionTime + useRouterParams.removeParams() + } if (useRouterParams.params.mailState) { query.value.mailState = useRouterParams.params.mailState useRouterParams.removeParams() @@ -506,7 +517,9 @@ const { optionsData } = useDictOptions<{ } }) function reset() { - query.value = {} + query.value = { + contactField: 'name' + } getList() } const checkMail = () => { diff --git a/src/views/work/components/InitiateCountersign.vue b/src/views/work/components/InitiateCountersign.vue index 400cd40..b2bea87 100644 --- a/src/views/work/components/InitiateCountersign.vue +++ b/src/views/work/components/InitiateCountersign.vue @@ -8,7 +8,7 @@ style="min-height: 50vh" >

会签具体要求

- +
-

会签部门数量最多3个

- 添加部门 +

会签部门数量最多3个(次责单位无法参与会签)

+

+ 二级主责单位:{{ mail.firstDistributeInfo?.mainDept?.name }} + 二级次责单位1:{{ mail.firstDistributeInfo?.secondDept1?.name }} + 二级次责单位2:{{ mail.firstDistributeInfo?.secondDept2?.name }} +

+

+ 三级主责单位:{{ mail.secondDistributeInfo?.mainDept?.name }} + 三级次责单位1:{{ mail.secondDistributeInfo?.secondDept1?.name }} + 三级次责单位2:{{ mail.secondDistributeInfo?.secondDept1?.name }} +

+
mail.value.id, (val) => { formRef.value?.resetFields(); countersignDeptIds.value = []; + getDeptIds() } ); watch( @@ -118,6 +132,7 @@ function handleChange() { if (arr.length) { form.countersignDeptIds = arr } + getDeptIds() } function handleAddDept() { @@ -138,21 +153,26 @@ function submit() { } }); } + // 所有主责,次责部门id -const deptIds = computed(() => { - const arr = []; - arr.push(mail.value.firstDistributeInfo?.mainDept?.id); - arr.push(mail.value.firstDistributeInfo?.secondDeptId1?.id); - arr.push(mail.value.firstDistributeInfo?.secondDeptId2?.id); - arr.push(mail.value.secondDistributeInfo?.mainDept?.id); - arr.push(mail.value.secondDistributeInfo?.secondDeptId1?.id); - arr.push(mail.value.secondDistributeInfo?.secondDeptId2?.id); - arr.push(...countersignDeptIds.value) - return arr; -}); +function getDeptIds() { + const arr = new Set(); + arr.add(mail.value.firstDistributeInfo?.mainDept?.id); + arr.add(mail.value.firstDistributeInfo?.secondDept1?.id); + arr.add(mail.value.firstDistributeInfo?.secondDept2?.id); + arr.add(mail.value.secondDistributeInfo?.mainDept?.id); + arr.add(mail.value.secondDistributeInfo?.secondDept1?.id); + arr.add(mail.value.secondDistributeInfo?.secondDept2?.id); + countersignDeptIds.value.forEach(item => { + arr.add(item) + }) + deptIds.value = arr; + console.log('mail', mail.value) + console.log('getDeptIds', arr) +} function isDisabled(id) { - return deptIds.value.indexOf(id) > -1; + return deptIds.value.has(id); } \ No newline at end of file diff --git a/src/views/work/components/MailDialog.vue b/src/views/work/components/MailDialog.vue index a1fa411..668952c 100644 --- a/src/views/work/components/MailDialog.vue +++ b/src/views/work/components/MailDialog.vue @@ -225,29 +225,29 @@
- + {{ mail.firstDistributeInfo?.mainDept?.name }}
- + {{ mail.firstDistributeInfo?.secondDept1?.name }}
- + {{ mail.firstDistributeInfo?.secondDept2?.name }}
- + {{ mail.secondDistributeInfo?.mainDept?.name }}
- + {{ mail.secondDistributeInfo?.secondDept1?.name }}
- + {{ mail.secondDistributeInfo?.secondDept2?.name }}
diff --git a/src/views/work/components/MailTodoByChange.vue b/src/views/work/components/MailTodoByChange.vue index 119c9d7..010ecaf 100644 --- a/src/views/work/components/MailTodoByChange.vue +++ b/src/views/work/components/MailTodoByChange.vue @@ -151,7 +151,8 @@ import { Printer, DocumentAdd } from "@element-plus/icons-vue" import { getMailFlowDetail } from "@/api/mail" import { useDictData } from "@/hooks/useDictOptions"; import { mailChange } from "@/api/work"; -import { ElMessage, ElLoading } from "element-plus"; +import { ElMessage } from "element-plus"; +import { getDictLable } from "@/utils/util"; const loading = ref(false); const steps = ref([]); const activeStep = ref(0); @@ -215,9 +216,8 @@ const getDetail = () => { getMailFlowDetail(props.mailId).then((res: any) => { console.log(res) mail.value = res.mail - mail.value.source = dictData.mail_source.filter( - (item) => item.value === mail.value.source - )[0].name + mail.value.source = getDictLable(dictData.mail_source, mail.value.source) + if (mail.value.contactSex) { switch (mail.value.contactSex) { case 'M': diff --git a/src/views/work/components/templates/DeptSelectForm.vue b/src/views/work/components/templates/DeptSelectForm.vue index 1499f22..53342c1 100644 --- a/src/views/work/components/templates/DeptSelectForm.vue +++ b/src/views/work/components/templates/DeptSelectForm.vue @@ -111,6 +111,7 @@ +

备注:次责单位为信件次要责任单位,请勿选择中立单位,如“法制大队”

diff --git a/src/views/work/components/templates/ThreeHandling.vue b/src/views/work/components/templates/ThreeHandling.vue index f4d7a6d..f4fff19 100644 --- a/src/views/work/components/templates/ThreeHandling.vue +++ b/src/views/work/components/templates/ThreeHandling.vue @@ -60,7 +60,7 @@ - +
- {{ formatTimeText(mail.mainDeptSignTime) }} + {{ mail.contactFlag ? formatTimeText(mail.mainDeptSignTime) : '未取得联系'}}