From 9a4d3ad2952c4de1ece6159ab8bdaa4b46045733 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Tue, 18 Feb 2025 14:49:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=BA=A2=E7=82=B9=EF=BC=8C=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=98=BE=E7=A4=BA=E7=A9=BA=E7=99=BD=E7=AD=89=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/images/main/red.png | Bin 0 -> 1027 bytes src/views/main-navbar.vue | 18 ++++++-- .../smartExcel/cpts/acceptingPersonel.vue | 38 +++++++++++++--- .../base/smartExcel/cpts/excel-info.vue | 43 +++++++++++------- .../cpts/excel-template-confirmation.vue | 12 ++--- .../base/smartExcel/cpts/excel-view.vue | 7 +-- .../base/smartExcel/cpts/filling-info.vue | 2 +- 7 files changed, 83 insertions(+), 37 deletions(-) create mode 100644 src/assets/images/main/red.png diff --git a/src/assets/images/main/red.png b/src/assets/images/main/red.png new file mode 100644 index 0000000000000000000000000000000000000000..d94ca9ba6237658d50bc120fda319caf7f2ccb49 GIT binary patch literal 1027 zcmaJ=&ubGw6kZ!`Yp~!!K}(f!Td)PQztZN%lGrBMqz$+=q=Duj*v;-FS=!xMcc;y^ zXf3Thco6*~#G_XQ@dwf(V!?w4K}4iS5k)Trt>SE&q#lfW*m*O2-}k=v=FQFA;)6y@vJ z3q@R%FNi8K7{$Xdu3-^2Ma4#4OHpSb1|?Y0%{cw_(Nh}eTAZF9kvZ8)!Kyy7WW%YY z$%48xt41|?^gM{UA`vhkR)A~FnU3hj>AJ2+V(*xxK^=l;xvjlB@0csf=8K7RXsJHhLZL8Pd zYVExw+HzT9hV^dtubXZjk@4}u*4&a!Yx1E<#@!}!y%p>IK;FbcR!S7ycctA|o14_3 zCu5hoH}2(r>)?xTJ1}#4;>^(p)VJ$>Ck9?T>mIne@+lnr*tHDSf36%E@9^)e9b4`Y z+{1&rTN`72GY5xasT @@ -100,15 +102,13 @@ export default { inject: ['refresh'], data() { return { + dataRed:0, showHeader: true, i18nMessages: messages, updatePassowrdVisible: false, customerName: '', - unreadMsgNum: 0, - noticeList: [], - displayedNoticeList: true }; }, @@ -123,6 +123,7 @@ export default { this.changeCustomerName(); this.pollGetNoticeData(); + this.redDot() }, computed: { userType() { @@ -130,6 +131,15 @@ export default { } }, methods: { + async redDot() { + const url = `/actual/base/communityOneTablePeriodPublish/redDot`; + const { data, code, msg } = await requestGet(url); + if (code == 0) { + this.dataRed=data + } else if (code >= 8000) { + this.$message.error(msg); + } + }, async readClearOne(item) { const url = `/message/intelligentMessage/msg/clearOne/?msgId=${item.id}`; const { data, code, msg } = await requestPost(url); diff --git a/src/views/modules/base/smartExcel/cpts/acceptingPersonel.vue b/src/views/modules/base/smartExcel/cpts/acceptingPersonel.vue index 99a7510bd..7bc9402fe 100644 --- a/src/views/modules/base/smartExcel/cpts/acceptingPersonel.vue +++ b/src/views/modules/base/smartExcel/cpts/acceptingPersonel.vue @@ -36,7 +36,7 @@ - { return item.staffId }) @@ -161,6 +166,9 @@ export default { // this.updateState() } else { + if (!this.formData.completeLimitDay) { + return this.$message.error("完成时限不能为0天") + } const parms = { userIdList: userIdList, id: this.taskId, @@ -328,7 +336,23 @@ export default { computed: { }, - watch: {}, + watch: { + 'formData.taskPeriod': function (newPeriod) { + if (newPeriod === 'once') { + this.formData.completeLimitDay = ''; // 如果是 'once',清空 completeLimitDay 以防止数值冲突 + } else { + this.formData.completeLimitDay = ''; // 如果不是 'once',可以设置一个默认值 + } + }, + 'formData.completeLimitDay': function (newPeriod) { + + if (newPeriod<0) { + console.log(newPeriod,"第一次"); + this.formData.completeLimitDay = ''; // 如果是 'once',清空 completeLimitDay 以防止数值冲突 + } else { + } + } + } } diff --git a/src/views/modules/base/smartExcel/cpts/excel-info.vue b/src/views/modules/base/smartExcel/cpts/excel-info.vue index ecb469139..fb2f77b5a 100644 --- a/src/views/modules/base/smartExcel/cpts/excel-info.vue +++ b/src/views/modules/base/smartExcel/cpts/excel-info.vue @@ -14,8 +14,8 @@
- {{ formData.taskStateName }} - + {{ formData.taskStateName }} +
@@ -36,24 +36,32 @@
{{formData.createByName}}
- +
{{formData.type || '数据填报'}}
-
每周期的第{{formData.completeLimitDay}}天内完成
+
每周期的第{{formData.completeLimitDay}}天内完成 + [修改] +
+
-
{{formData.startTime.slice(0, 10) }}-{{formData.endTime.slice(0, 10) }}
+
{{formData.startTime?formData.startTime.slice(0, 10):formData.startTime }}-{{formData.endTime?formData.endTime.slice(0, 10):formData.endTime }}
-
{{ formData.taskPeriod === 'once' ? '一次性' : formData.taskPeriod === 'weekly' ? '每周' : formData.taskPeriod === 'halfAMonth' ? '每半月' : formData.taskPeriod === 'month' ? '每月' : '每季度' }}
+
{{ formData.taskPeriod === 'once' ? '一次性' : formData.taskPeriod === 'weekly' ? '每周' : + formData.taskPeriod === 'halfAMonth' ? '每半月' : formData.taskPeriod === 'month' ? '每月' : + '每季度' }}
@@ -79,28 +87,31 @@
+ style="width: 70%;margin-left: 3%; margin-top: 30px;"> -