刘洋 8 сар өмнө
parent
commit
51b4db7e30

+ 24 - 0
src/views/report/service-analysis/index.vue

@@ -104,6 +104,30 @@ const _getProjectProgress = (serviceUnitId) => {
     loading2.value = false;
 
     table2data.value = res || [];
+    if (!table2data.value.length) {
+      table2data.value = [
+        {
+          process: 'PREPARE',
+          sopNum: 0,
+        },
+        {
+          process: 'SCAN',
+          sopNum: 0,
+        },
+        {
+          process: 'MARK',
+          sopNum: 0,
+        },
+        {
+          process: 'FINAL',
+          sopNum: 0,
+        },
+        {
+          process: 'FINISH',
+          sopNum: 0,
+        },
+      ];
+    }
   });
 };
 const loading3 = ref(false);

+ 2 - 0
src/views/service-unit/dispatch/dispatch-manage/create-sop-item.vue

@@ -92,8 +92,10 @@ const fields = computed(() => {
       label: '考生人数',
       labelWidth: 120,
       colSpan: 12,
+      type: 'number',
       attrs: {
         clearable: true,
+        min: 0,
       },
     },
     props.isCloud

+ 1 - 0
src/views/sop/components/dynamic-form-item/TEXT.vue

@@ -2,6 +2,7 @@
   <t-input
     v-model="valueData"
     :disabled="!config.writable"
+    :maxlength="config.maxlength || undefined"
     @change="emitChange"
   ></t-input>
 </template>

+ 1 - 0
src/views/sop/components/dynamic-form-item/TEXTAREA.vue

@@ -3,6 +3,7 @@
     v-model="valueData"
     :disabled="!config.writable"
     @change="emitChange"
+    :maxlength="config.maxlength || undefined"
     autosize
   ></t-textarea>
 </template>