From fe25b9d9dc98187a0b885631bc39dfd5daa15163 Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期四, 20 十一月 2025 17:26:04 +0800
Subject: [PATCH] 工位改为默认查询所有状态

---
 src/views/mdc/first-workpiece.vue |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/views/mdc/first-workpiece.vue b/src/views/mdc/first-workpiece.vue
index d1ba450..aec3104 100644
--- a/src/views/mdc/first-workpiece.vue
+++ b/src/views/mdc/first-workpiece.vue
@@ -2,7 +2,7 @@
  * @Author: lzhe lzhe@example.com
  * @Date: 2024-04-26 09:36:18
  * @LastEditors: lzhe lzhe@example.com
- * @LastEditTime: 2024-12-09 13:39:49
+ * @LastEditTime: 2024-12-20 15:10:08
  * @FilePath: /smart-web/src/views/mdc/status-record.vue
  * @Description: 杩欐槸榛樿璁剧疆,璇疯缃甡customMade`, 鎵撳紑koroFileHeader鏌ョ湅閰嶇疆 杩涜璁剧疆: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 -->
@@ -88,12 +88,16 @@
                                 </template>
                             </el-table-column>
                             <el-table-column prop="amount" label="鏁伴噺" width="60"></el-table-column>
+                            <el-table-column label="鎿嶄綔" width="100">
+                                <template #default="scope">
+                                    <el-button type="primary" @click="exportBtn(scope)">杈撳嚭</el-button>
+                                </template>
+                            </el-table-column>
                         </el-table>
                         <el-pagination background layout="total, prev, pager, next" :total="total" style="margin-top: 12px;" @current-change="handleCurrentChange"></el-pagination>
                     </el-main>
                     <el-footer>
                         <el-button type="primary" @click="goFirstWorkDetail">璇︽儏</el-button>
-                        <el-button type="primary">杈撳嚭</el-button>
                     </el-footer>
                 </el-container>
             </el-container>
@@ -141,6 +145,13 @@
         this.getTableData();
     },
     methods: {
+        exportBtn(scope) {
+            this.$HTTP.get(`/api/workinghour/export?id=${scope.row.id}`).then(res => {
+                if (res.code == 200) {
+                    this.$TOOL.downFile(res.data.link,res.data.originalName);
+                }
+            })
+        },
         setDate() {
             var date = new Date();
             var threeDaysInMilliseconds = 3 * 24 * 60 * 60 * 1000;

--
Gitblit v1.9.3