刘洋 1 anno fa
parent
commit
99fd947728

+ 1 - 1
src/config/constants.js

@@ -240,5 +240,5 @@ export const DEVICE_SEND_STATUS = {
   UN_DELIVER: '待发货',
   DELIVER: '已发货',
   RECEIVE: '已签收',
-  CANCEL: '作废',
+  // CANCEL: '作废',
 };

+ 8 - 2
src/views/sop/sop-manage/office-sop/index.vue

@@ -82,12 +82,12 @@
         :selected-row-keys="selectedRowKeys"
         @select-change="selectChange"
       >
-        <template #sopNo="{ col, row }">
+        <!-- <template #sopNo="{ col, row }">
           <more-content
             :content="row[col.colKey]"
             @action="editSopFlowHandle(row, 'view')"
           ></more-content>
-        </template>
+        </template> -->
         <!-- <template #beginTime="{ col, row }">
           {{ timestampFilter(row[col.colKey]) }}
         </template>
@@ -107,7 +107,13 @@
           v-for="field in formWidgetMetadataViewList"
           #[field.fieldId]="{ col, row }"
         >
+          <more-content
+            v-if="col.colKey === 'sopNo'"
+            :content="row[col.colKey]"
+            @action="editSopFlowHandle(row, 'view')"
+          ></more-content>
           <metadata-content
+            v-else
             :value="row[col.colKey]"
             :config="{
               code: col.colKeyCode,

+ 8 - 2
src/views/sop/sop-manage/student-sop/index.vue

@@ -82,12 +82,12 @@
         :selected-row-keys="selectedRowKeys"
         @select-change="selectChange"
       >
-        <template #sopNo="{ col, row }">
+        <!-- <template #sopNo="{ col, row }">
           <more-content
             :content="row[col.colKey]"
             @action="editSopFlowHandle(row, 'view')"
           ></more-content>
-        </template>
+        </template> -->
         <!-- <template #beginTime="{ col, row }">
           {{ timestampFilter(row[col.colKey]) }}
         </template>
@@ -107,7 +107,13 @@
           v-for="field in formWidgetMetadataViewList"
           #[field.fieldId]="{ col, row }"
         >
+          <more-content
+            v-if="col.colKey === 'sopNo'"
+            :content="row[col.colKey]"
+            @action="editSopFlowHandle(row, 'view')"
+          ></more-content>
           <metadata-content
+            v-else
             :value="row[col.colKey]"
             :config="{
               code: col.colKeyCode,