From 587a747a56f076457f6d9839cbe874b60f6f696c Mon Sep 17 00:00:00 2001
From: Junjie <540245094@qq.com>
Date: 星期四, 01 八月 2024 13:40:40 +0800
Subject: [PATCH] #

---
 zy-asrs-admin/src/views/in/waitPakin/index.vue |  194 +++++++++++++++++++++++++-----------------------
 1 files changed, 102 insertions(+), 92 deletions(-)

diff --git a/zy-asrs-admin/src/views/in/waitPakin/index.vue b/zy-asrs-admin/src/views/in/waitPakin/index.vue
index a9e94fa..04f5cf7 100644
--- a/zy-asrs-admin/src/views/in/waitPakin/index.vue
+++ b/zy-asrs-admin/src/views/in/waitPakin/index.vue
@@ -7,6 +7,7 @@
 import EditView from './edit.vue'
 import { formatMessage } from '@/utils/localeUtils.js';
 import useTableSearch from '@/utils/tableUtils.jsx';
+import GenerateTaskView from '@/components/task/generateTask/index.vue';
 const context = getCurrentInstance()?.appContext.config.globalProperties;
 
 const router = useRouter();
@@ -16,6 +17,7 @@
 let pageSize = 10;
 const searchInput = ref("")
 const editChild = ref(null)
+const generateTaskChild = ref(null)
 
 let tableData = ref([]);
 getPage();
@@ -26,97 +28,97 @@
 } = useTableSearch();
 
 const columns = [
-        {
-            title: formatMessage('db.man_wait_pakin.order_id', '璁㈠崟ID'),
-            dataIndex: 'orderId$',
-            width: 140,
-            ellipsis: true,
-            ...getColumnSearchProps('orderId$'),
-        },
-        {
-            title: formatMessage('db.man_wait_pakin.order_no', '璁㈠崟缂栧彿'),
-            dataIndex: 'orderNo',
-            width: 140,
-            ellipsis: true,
-            ...getColumnSearchProps('orderNo'),
-        },
-        {
-            title: formatMessage('db.man_wait_pakin.barcode', '鎵樼洏鐮�'),
-            dataIndex: 'barcode',
-            width: 140,
-            ellipsis: true,
-            ...getColumnSearchProps('barcode'),
-        },
-        {
-            title: formatMessage('db.man_wait_pakin.matnr', '鐗╂枡鍙�'),
-            dataIndex: ['detl$','mat$','matnr'],
-            width: 140,
-            ellipsis: true,
-            ...getColumnSearchProps('detl$.matnr'),
-        },
-        {
-            title: formatMessage('db.man_wait_pakin.batch', '鎵瑰彿'),
-            dataIndex: ['detl$','batch'],
-            width: 140,
-            ellipsis: true,
-            ...getColumnSearchProps('detl$.matnr'),
-        },
-        {
-            title: formatMessage('db.man_wait_pakin.anfme', '缁勬墭鏁伴噺'),
-            dataIndex: 'anfme',
-            width: 140,
-            ellipsis: true,
-            ...getColumnSearchProps('anfme'),
-        },
-        {
-            title: formatMessage('db.man_wait_pakin.io_status', '缁勬墭鐘舵��'),
-            dataIndex: 'ioStatus$',
-            width: 140,
-            ellipsis: true,
-            ...getColumnSearchProps('ioStatus$'),
-        },
-        {
-            title: formatMessage('db.man_wait_pakin.status', '鐘舵��'),
-            dataIndex: 'status$',
-            width: 140,
-            ellipsis: true,
-            ...getColumnSearchProps('status$'),
-        },
-        {
-            title: formatMessage('db.man_wait_pakin.create_time', '娣诲姞鏃堕棿'),
-            dataIndex: 'createTime$',
-            width: 140,
-            ellipsis: true,
-            ...getColumnSearchProps('createTime$'),
-        },
-        {
-            title: formatMessage('db.man_wait_pakin.create_by', '娣诲姞浜哄憳'),
-            dataIndex: 'createBy$',
-            width: 140,
-            ellipsis: true,
-            ...getColumnSearchProps('createBy$'),
-        },
-        {
-            title: formatMessage('db.man_wait_pakin.update_time', '淇敼鏃堕棿'),
-            dataIndex: 'updateTime$',
-            width: 140,
-            ellipsis: true,
-            ...getColumnSearchProps('updateTime$'),
-        },
-        {
-            title: formatMessage('db.man_wait_pakin.update_by', '淇敼浜哄憳'),
-            dataIndex: 'updateBy$',
-            width: 140,
-            ellipsis: true,
-            ...getColumnSearchProps('updateBy$'),
-        },
-        {
-            title: formatMessage('db.man_wait_pakin.memo', '澶囨敞'),
-            dataIndex: 'memo',
-            width: 140,
-            ellipsis: true,
-            ...getColumnSearchProps('memo'),
-        },
+  {
+    title: formatMessage('db.man_wait_pakin.order_id', '璁㈠崟ID'),
+    dataIndex: 'orderId$',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('orderId$'),
+  },
+  {
+    title: formatMessage('db.man_wait_pakin.order_no', '璁㈠崟缂栧彿'),
+    dataIndex: 'orderNo',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('orderNo'),
+  },
+  {
+    title: formatMessage('db.man_wait_pakin.barcode', '鎵樼洏鐮�'),
+    dataIndex: 'barcode',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('barcode'),
+  },
+  {
+    title: formatMessage('db.man_wait_pakin.matnr', '鐗╂枡鍙�'),
+    dataIndex: ['detl$', 'mat$', 'matnr'],
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('detl$.matnr'),
+  },
+  {
+    title: formatMessage('db.man_wait_pakin.batch', '鎵瑰彿'),
+    dataIndex: ['detl$', 'batch'],
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('detl$.matnr'),
+  },
+  {
+    title: formatMessage('db.man_wait_pakin.anfme', '缁勬墭鏁伴噺'),
+    dataIndex: 'anfme',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('anfme'),
+  },
+  {
+    title: formatMessage('db.man_wait_pakin.io_status', '缁勬墭鐘舵��'),
+    dataIndex: 'ioStatus$',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('ioStatus$'),
+  },
+  {
+    title: formatMessage('db.man_wait_pakin.status', '鐘舵��'),
+    dataIndex: 'status$',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('status$'),
+  },
+  {
+    title: formatMessage('db.man_wait_pakin.create_time', '娣诲姞鏃堕棿'),
+    dataIndex: 'createTime$',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('createTime$'),
+  },
+  {
+    title: formatMessage('db.man_wait_pakin.create_by', '娣诲姞浜哄憳'),
+    dataIndex: 'createBy$',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('createBy$'),
+  },
+  {
+    title: formatMessage('db.man_wait_pakin.update_time', '淇敼鏃堕棿'),
+    dataIndex: 'updateTime$',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('updateTime$'),
+  },
+  {
+    title: formatMessage('db.man_wait_pakin.update_by', '淇敼浜哄憳'),
+    dataIndex: 'updateBy$',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('updateBy$'),
+  },
+  {
+    title: formatMessage('db.man_wait_pakin.memo', '澶囨敞'),
+    dataIndex: 'memo',
+    width: 140,
+    ellipsis: true,
+    ...getColumnSearchProps('memo'),
+  },
 
   {
     title: formatMessage('common.operation', '鎿嶄綔'),
@@ -218,6 +220,10 @@
   getPage()
 }
 
+const generateTask = () => {
+  generateTaskChild.value.open = true;
+}
+
 </script>
 
 <script>
@@ -233,6 +239,7 @@
       <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '璇疯緭鍏�')"
         style="width: 200px;" @search="onSearch" />
       <div class="table-header-right">
+        <a-button @click="generateTask()" type="primary">{{ formatMessage('page.generateTask', '鐢熸垚浠诲姟') }}</a-button>
         <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '娣诲姞') }}</a-button>
         <a-button @click="handleExport">{{ formatMessage('page.export', '瀵煎嚭') }}</a-button>
       </div>
@@ -251,12 +258,15 @@
         </template>
 
         <template v-if="column.dataIndex === 'ioStatus$'">
-          <a-switch :checked="record.ioStatus == 1" :checked-children="formatMessage('waitPakin.switch.open','鍏ュ簱涓�')" :un-checked-children="formatMessage('waitPakin.switch.close','寰呭叆搴�')" :disabled="true" />
+          <a-switch :checked="record.ioStatus == 1" :checked-children="formatMessage('waitPakin.switch.open', '鍏ュ簱涓�')"
+            :un-checked-children="formatMessage('waitPakin.switch.close', '寰呭叆搴�')" :disabled="true" />
         </template>
 
       </template>
     </a-table>
   </div>
+
+  <GenerateTaskView ref="generateTaskChild" @tableReload="handleTableReload" />
 </template>
 
 <style></style>

--
Gitblit v1.9.1