Преглед на файлове

fix:产品交接和记录导出优化

liziliang преди 1 месец
родител
ревизия
a2cffbc196
променени са 2 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 1 1
      src/views/quality/handover/index.vue
  2. 1 1
      src/views/quality/opRecord/index.vue

+ 1 - 1
src/views/quality/handover/index.vue

@@ -412,7 +412,7 @@ const toShowExcel = (item) => {
 };
 const handleExport = () => {
   if (data.value.length !== 0) {
-    exportOperationRecord({...search.value, operationType: clickOperationType.value, type: 0}).then((response) => {
+    exportOperationRecord({...searchForm.value, operationType: clickOperationType.value, type: 0}).then((response) => {
       try {
         const decoder = new TextDecoder("utf-8");
         const jsonString = decoder.decode(response.data);

+ 1 - 1
src/views/quality/opRecord/index.vue

@@ -593,7 +593,7 @@ option.value = Object.assign(option.value, {
 });
 const handleExport = () => {
   exportOperationRecord({
-    ...search.value,
+    ...searchForm.value,
     operationType: clickOperationType.value,
     type: 1,
   }).then((response) => {