Parcourir la source

🎨 按要求增加填报人联系方式

快乐的梦鱼 il y a 3 semaines
Parent
commit
cb1240416e

+ 0 - 7
src/pages.json

@@ -325,13 +325,6 @@
           }
         },
         {
-          "path": "assessment/evaluation-form-review",
-          "style": {
-            "navigationBarTitleText": "自查评估表审核",
-            "enablePullDownRefresh": false
-          }
-        },
-        {
           "path": "assessment/evaluation-list",
           "style": {
             "navigationBarTitleText": "自查评估表列表",

src/pages/collect/assessment/components/EvaluationFormBlock.vue → src/pages/collect/assessment/components/SelfAssessmentFormBlock.vue


+ 3 - 3
src/pages/collect/assessment/components/SelfAssessmentFormDisplay.vue

@@ -1,6 +1,6 @@
 <template>
   <FlexCol gap="gap.lg">
-    <EvaluationFormBlock
+    <SelfAssessmentFormBlock
       ref="blockRef"
       :current-form="currentForm"
       :form-options="formOptions"
@@ -16,7 +16,7 @@
 import { computed, ref } from 'vue';
 import type { CheckItemInfo, SelfAssessmentCheckItemAnswer, SelfAssessmentDetail } from '@/api/collect/AssessmentContent';
 import type { IDynamicFormOptions } from '@/components/dynamic';
-import EvaluationFormBlock from './EvaluationFormBlock.vue';
+import SelfAssessmentFormBlock from './SelfAssessmentFormBlock.vue';
 import FlexCol from '@/components/layout/FlexCol.vue';
 
 const props = withDefaults(defineProps<{
@@ -30,7 +30,7 @@ const props = withDefaults(defineProps<{
   readonly: false,
 });
 
-const blockRef = ref<InstanceType<typeof EvaluationFormBlock> | null>(null);
+const blockRef = ref<InstanceType<typeof SelfAssessmentFormBlock> | null>(null);
 
 defineExpose({
   validate: () => blockRef.value?.validate(),

+ 1 - 1
src/pages/collect/assessment/evaluation-form.vue

@@ -95,7 +95,7 @@ import { injectAppConfiguration } from '@/api/system/useAppConfiguration';
 
 /** 评估表下方展示用:各级审核意见(不接数据、禁用) */
 const externalReviewSectionTitles = ref([
-  { title: '1. 项目保护单位意见', suggestion: '', disabled: false },
+  { title: '1. 项目保护单位意见', suggestion: '', disabled: true },
   { title: '2. 县(区)文旅部门审核意见', suggestion: '', disabled: true },
   { title: '3. 设区市文旅部门、省非遗中心审核意见', suggestion: '', disabled: true },
 ]);

+ 24 - 8
src/pages/collect/assessment/evaluation-list.vue

@@ -63,6 +63,7 @@ import SearchBar from '@/components/form/SearchBar.vue';
 import Touchable from '@/components/feedback/Touchable.vue';
 import SimplePageListLoader from '@/components/loader/SimplePageListLoader.vue';
 import Button from '@/components/basic/Button.vue';
+import { confirm, toast } from '@/components/utils/DialogAction';
 
 const search = ref('');
 /** 与接口一致:-100=全部,其余为 progress 精确筛选 */
@@ -112,14 +113,29 @@ function openEdit(item: InheritorCheckListRow) {
 function openReview(item: InheritorCheckListRow) {
   const cid = item.checkId;
   const uid = item.userId;
-  if (!cid || uid == null) {
-    return;
-  }
-  navTo('./evaluation-form-review', {
-    id: cid,
-    userId: uid,
-    progress: item.progress ?? '',
-  });
+  confirm({
+    title: '提示',
+    content: '管理员请登录电脑版,审核浏览更方便, 地址 https://zycj.wenlvti.net/',
+    confirmText: '确认',
+    cancelText: '取消',
+  }).then((res) => {
+    if (!res) {
+      uni.setClipboardData({
+        data: 'https://zycj.wenlvti.net/',
+        toast: false,
+        success: () => {
+          toast('已复制网址到剪贴板,请在电脑上打开!');
+        },
+      })
+      return;
+    } else {
+      navTo('./evaluation-form-review', {
+        id: cid,
+        userId: uid,
+        progress: item.progress ?? '',
+      });
+    }
+  })
 }
 
 const loader = useSimplePageListLoader(20, async (page, pageSize) => {

+ 11 - 0
src/pages/collect/assessment/evaluationFormOptions.ts

@@ -250,6 +250,17 @@ export function buildSelfAssessmentFormOptions(
               },
             } as SignatureFieldProps,
           },
+          {
+            label: '填报人联系方式',
+            name: 'contactMobile',
+            type: 'text',
+            formProps: {
+              extraMessage: '用于消息通知,若有审核回退或通过,会以短信方式通知您',
+            },
+            additionalProps: {
+              placeholder: '请填写手机号',
+            },
+          },
         ],
       },
     ],