From 4877e08598e8c860d65e49c7e0cf9e59c29abc4d Mon Sep 17 00:00:00 2001
From: yangys <y_ys79@sina.com>
Date: 星期日, 31 八月 2025 14:36:58 +0800
Subject: [PATCH] 任务计划机床改为树状选择

---
 src/views/tasks/machinereturnfileop.vue |   90 ++++++++++++++++++++++++++------------------
 1 files changed, 53 insertions(+), 37 deletions(-)

diff --git a/src/views/tasks/machinereturnfileop.vue b/src/views/tasks/machinereturnfileop.vue
index c066d5e..6be9474 100644
--- a/src/views/tasks/machinereturnfileop.vue
+++ b/src/views/tasks/machinereturnfileop.vue
@@ -1,7 +1,7 @@
 <!--
  * @Date: 2025-06-18 09:17:09
  * @LastEditors: gaoshp
- * @LastEditTime: 2025-07-20 12:27:48
+ * @LastEditTime: 2025-08-13 21:23:34
  * @FilePath: /mdmweb/src/views/tasks/machinereturnfileop.vue
 -->
 <template>
@@ -11,7 +11,7 @@
             @size-change="sizeChange" @refresh-change="refreshChange" @on-load="onLoad" @selection-change="selectionChange">
             <template #menu-left>
                 <el-button type="primary" plain @click="exportWebSite">瀵煎嚭鍥炰紶娑夊瘑缃�</el-button>
-                <el-button type="primary" plain @click="reassign">鎸傝浇杞﹀簥绋嬪簭搴�</el-button>
+                <!--<el-button type="primary" plain @click="reassign">鎸傝浇杞﹀簥绋嬪簭搴�</el-button>-->
                 <el-button type="primary" plain @click="exportExcel">瀵煎嚭鍒癊XCEL</el-button>
             </template>
             <template #menu="scope">
@@ -62,45 +62,61 @@
                 menu: false,
                 dialogClickModal: false,
                 column: [
+                    
+					{
+                        label: '鏂囦欢鍚嶇О',
+                        prop: 'name'
+                    },
                     {
+                        label: '鍥炰紶鏈哄簥',
+                        prop: 'machineCode',
+                    },
+                    {
+                        label: '绋嬪簭鐘舵��',
+                        prop: 'programStatus',
+                        render: ({ row,value }) => {
+                            var txt = '鏈煡';
+                            switch(row.programStatus){
+                                case 1:
+                                txt = '璇曞垏';
+                                break;
+                                case 2:
+                                txt = '鍥哄寲';
+                                break;
+                                case 3:
+                                txt = '鍋忕';
+                                break;
+                                default:
+                                txt = '鏈煡';
+                            }
+                            return txt;
+                        }
+                    },
+                    {
+                        label: '鏂囦欢鍒拌揪鏃堕棿',
+                        prop: 'fileCreateTime',
+                        type: 'datetime',
+                        format: 'YYYY-MM-DD HH:mm:ss',
+                        valueFormat: 'YYYY-MM-DD HH:mm:ss',
+                    },
+					{
                         label: '纭鏃堕棿',
-                        prop: 'confirmTime',
+                        prop: 'determineTime',
                         type: 'datetime',
                         format: 'YYYY-MM-DD HH:mm:ss',
                         valueFormat: 'YYYY-MM-DD HH:mm:ss',
                         search: true,
                         searchRange: true,
                         searchSpan: 8,
-                        hide: true,
-                    },
-
+                        hide: false,
+                    }/*,
                     {
-                        label: '绋嬪簭缂栧彿',
-                        prop: 'code',
-                    },
-                    {
-                        label: '鍥炰紶鏈哄簥',
-                        prop: 'machineCode',
-                    },
-
-                    {
-                        label: '鏂囦欢鍚嶇О',
-                        prop: 'name'
-                    },
-                    {
-                        label: '鏂囦欢鍥哄寲鐘舵��',
-                        prop: 'isCured',
-                        formatter: (val, value, label) => {
-                            return `${val==0?'鏈浐鍖�':"宸插浐鍖�"}`;
-                        },
-                    },
-                    {
-                        label: '鏂囦欢鍒拌揪鏃堕棿',
-                        prop: 'arrivedTime',
+                        label: '鎺ユ敹x鏃堕棿',
+                        prop: 'determineTime',
                         type: 'datetime',
                         format: 'YYYY-MM-DD HH:mm:ss',
                         valueFormat: 'YYYY-MM-DD HH:mm:ss',
-                    }
+                    }*/
                 ],
                 selectedList: [],
             }
@@ -122,12 +138,12 @@
             }).then(() => {
                 NProgress.start();
                 exportBlob(
-                    `/blade-mdm/machineback/filehandle/export-to-inner`,
+                    `/blade-mdm/machinefile/filehandle/export-to-inner`,
                     {
                         ids: this.selectedList.map(item => item.id).join(','),
                     }
                 ).then(res => {
-                    downloadXls(res.data, `瀵煎嚭鍥炰紶娑夊瘑缃�${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`);
+                    downloadXls(res.data, `宸ユ帶缃戝洖浼犵▼搴�${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.zip`);
                     NProgress.done();
                 });
             });
@@ -144,9 +160,9 @@
             }).then(() => {
                 NProgress.start();
                 exportBlob(
-                    `/blade-mdm/machineback/filehandle/export-excel?${this.website.tokenHeader}=${getToken()}`
+                    `/blade-mdm/machinefile/filehandle/export-excel?${this.website.tokenHeader}=${getToken()}`
                 ).then(res => {
-                    downloadXls(res.data, `瀵煎嚭鏈哄簥鍥炰紶绋嬪簭${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`);
+                    downloadXls(res.data, `鏈哄簥鍥炰紶绋嬪簭鍒楄〃${this.$dayjs().format('YYYY-MM-DD HH:mm:ss')}.xlsx`);
                     NProgress.done();
                 });
             });
@@ -156,8 +172,8 @@
             this.query = params;
             this.page.currentPage = 1;
             console.log('searchChange', params);
-            params.confirmTimeBegin = params?.confirmTime?.[0] || '';
-            params.confirmTimeEnd = params?.confirmTime?.[1] || '';
+            params.confirmTimeBegin = params?.determineTime?.[0] || '';
+            params.confirmTimeEnd = params?.determineTime?.[1] || '';
             console.log(params);
             // data = {
             //     createTimeBegin: dayjs(params.createTimeBegin).isValid() ? dayjs(params.createTimeBegin).format('YYYY-MM-DD') : '',
@@ -177,8 +193,8 @@
             this.query = params;
             this.page.currentPage = 1;
             data = {
-                createTimeBegin: params.createTimeBegin,
-                createTimeEnd: params.createTimeEnd,
+                createTimeBegin: params.confirmTimeBegin,
+                createTimeEnd: params.confirmTimeEnd,
                 keyword: params.keyword || ''
             }
             this.onLoad(this.page, data);

--
Gitblit v1.9.3