Explorar el Código

公装主管任务

zhujindu hace 7 meses
padre
commit
57661674ed
Se han modificado 2 ficheros con 18 adiciones y 18 borrados
  1. 8 12
      src/views/week/VisitSummaryAdd.vue
  2. 10 6
      src/views/week/componVisitSummary.vue

+ 8 - 12
src/views/week/VisitSummaryAdd.vue

@@ -19,8 +19,7 @@
           <div v-if="item.answerType == 'sz'" class="formLabel z-cell">
             <van-cell>
               <template #title>
-                <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.customName
-                }}<span style="font-size: 12px; color: #888">{{ item.remark }}</span>
+                <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.customName }}
               </template>
             </van-cell>
             <van-field
@@ -28,12 +27,14 @@
               :placeholder="item.customName"
               type="number"
               @input="numberFn(item, index)"></van-field>
+            <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
+              {{ item.remark }}
+            </p>
           </div>
           <div v-if="item.answerType == 'rq'" class="formLabel z-cell">
             <van-cell>
               <template #title>
-                <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.customName
-                }}<span style="font-size: 14px; color: #ccc">{{ item.remark }}</span>
+                <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.customName }}
               </template>
             </van-cell>
             <van-field
@@ -43,14 +44,9 @@
               placeholder="点击选择日期"
               readonly
               @click="showCalendarClick(index)" />
-            <p
-              style="
-                color: #444;
-                font-size: 12px;
-                margin: 0;
-                padding: 10px 0;
-                text-align: right;
-              "></p>
+            <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
+              {{ item.remark }}
+            </p>
           </div>
           <div v-if="item.answerType == 'zp'" class="formLabel z-cell">
             <van-cell>

+ 10 - 6
src/views/week/componVisitSummary.vue

@@ -5,22 +5,24 @@
         <div v-if="item.answerType == 'sz'" class="formLabel z-cell">
           <van-cell>
             <template #title>
-              <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.customName
-              }}<span style="font-size: 12px; color: #888">{{ item.remark }}</span>
+              <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.customName }}
             </template>
           </van-cell>
+          <!-- allowWriteAgain 是否允许补填 true/false -->
           <van-field
             v-model="item.answerValue"
             :placeholder="item.customName"
             type="number"
             :disabled="!item.allowWriteAgain"
             @input="numberFn(item, index)"></van-field>
+          <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
+            {{ item.remark }}
+          </p>
         </div>
         <div v-if="item.answerType == 'rq'" class="formLabel z-cell">
           <van-cell>
             <template #title>
-              <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.customName
-              }}<span style="font-size: 14px; color: #ccc">{{ item.remark }}</span>
+              <span v-if="item.isMust == 0" class="van-f-red">*</span>{{ item.customName }}
             </template>
           </van-cell>
           <van-field
@@ -31,8 +33,9 @@
             readonly
             :disabled="!item.allowWriteAgain"
             @click="showCalendarClick(index)" />
-          <p
-            style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right"></p>
+          <p style="color: #444; font-size: 12px; margin: 0; padding: 10px 0; text-align: right">
+            {{ item.remark }}
+          </p>
         </div>
         <div v-if="item.answerType == 'zp'" class="formLabel z-cell">
           <van-cell>
@@ -270,6 +273,7 @@ export default {
   },
   methods: {
     showCalendarClick(val) {
+      if (!val.allowWriteAgain) return;
       this.dateIndex = val;
       this.showCalendar = true;
     },