Parcourir la source

返工记录卡。

jiaxiaoqiang il y a 8 mois
Parent
commit
aeadaa4f71
2 fichiers modifiés avec 26 ajouts et 8 suppressions
  1. 1 1
      public/version.json
  2. 25 7
      src/views/quality/rework/index.vue

+ 1 - 1
public/version.json

@@ -1,3 +1,3 @@
 {
-  "version": "3.1"
+  "version": "3.2"
 }

+ 25 - 7
src/views/quality/rework/index.vue

@@ -66,6 +66,15 @@
           >返工完成</el-button
         >
       </template>
+
+      <template #menu-right="{}">
+        <el-button
+          class="ml-3"
+          @click="exportData('/api/v1/rework/record/export')"
+        >
+          <template #icon> <i-ep-download /> </template>导出
+        </el-button>
+      </template>
     </avue-crud>
     <el-dialog
       v-model="dialog.visible"
@@ -203,6 +212,21 @@ option.value = Object.assign(option.value, {
       display: false,
     },
     {
+      label: "返工原因",
+      prop: "reason",
+      width: 160,
+      search: true,
+      overHidden: true,
+      type: "textarea",
+    },
+    {
+      label: "产品规格",
+      prop: "materialModel",
+      width: 160,
+      search: true,
+      overHidden: true,
+    },
+    {
       label: "返工内容",
       prop: "remark",
       width: 160,
@@ -229,13 +253,7 @@ option.value = Object.assign(option.value, {
         },
       ],
     },
-    {
-      label: "返工原因",
-      prop: "reason",
-      width: 160,
-      overHidden: true,
-      type: "textarea",
-    },
+
     {
       label: "返工提出者",
       prop: "creator",