From 2191824072549f0da35d73686a075e59b0196321 Mon Sep 17 00:00:00 2001
From: ZY <zc857179121@qq.com>
Date: 星期三, 25 九月 2024 15:02:25 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/wms-dev' into wms-dev

---
 zy-asrs-admin/src/views/task/taskLog/index.vue |   55 +++++++++++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 51 insertions(+), 4 deletions(-)

diff --git a/zy-asrs-admin/src/views/task/taskLog/index.vue b/zy-asrs-admin/src/views/task/taskLog/index.vue
index 389d938..2227509 100644
--- a/zy-asrs-admin/src/views/task/taskLog/index.vue
+++ b/zy-asrs-admin/src/views/task/taskLog/index.vue
@@ -1,7 +1,7 @@
 <script setup>
 import { getCurrentInstance, ref, computed, reactive } from 'vue';
 import { useRouter } from "vue-router";
-import { get, post, postBlob } from '@/utils/request.js'
+import { get, post, postBlob, postForm } from '@/utils/request.js'
 import { message, Modal } from 'ant-design-vue';
 import { logout } from '@/config.js';
 import EditView from './edit.vue'
@@ -16,6 +16,14 @@
 let currentPage = 1;
 let pageSize = 10;
 const searchInput = ref("")
+const searchParam = ref({
+  taskNo: null,
+  taskSts: null,
+  taskType: null,
+  originLoc: null,
+  targetLoc: null,
+  barcode: null,
+})
 const editChild = ref(null)
 const showTaskDetlChild = ref(null)
 
@@ -169,7 +177,8 @@
   post('/api/taskLog/page', {
     current: currentPage,
     pageSize: pageSize,
-    condition: searchInput.value
+    condition: searchInput.value,
+    _param: searchParam.value,
   }).then((resp) => {
     let result = resp.data;
     if (result.code == 200) {
@@ -245,6 +254,23 @@
   showTaskDetlChild.value.taskId = record.id;
 }
 
+const taskStsQueryList = ref(null);
+taskStsQuery();
+function taskStsQuery() {
+  postForm('/api/taskSts/query', {}).then(resp => {
+    let result = resp.data;
+    taskStsQueryList.value = result.data;
+  })
+}
+const taskTypeQueryList = ref(null);
+taskTypeQuery();
+function taskTypeQuery() {
+  postForm('/api/taskType/query', {}).then(resp => {
+    let result = resp.data;
+    taskTypeQueryList.value = result.data;
+  })
+}
+
 </script>
 
 <script>
@@ -257,8 +283,29 @@
   <div>
     <EditView ref="editChild" @tableReload="handleTableReload" />
     <div class="table-header">
-      <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '璇疯緭鍏�')"
-        style="width: 200px;" @search="onSearch" />
+      <div>
+        <a-input v-model:value="searchParam.taskNo" :placeholder="formatMessage('page.task.taskNo.input', '璇疯緭鍏ヤ换鍔$紪鍙�')"
+          style="width: 140px;margin-right: 10px;" />
+        <a-select v-model:value="searchParam.taskSts"
+          :placeholder="formatMessage('page.task.taskSts.select', '璇烽�夋嫨浠诲姟鐘舵��')" style="width: 140px;margin-right: 10px;"
+          show-search allowClear :options="taskStsQueryList" optionFilterProp="label" optionLabelProp="label">
+        </a-select>
+        <a-select v-model:value="searchParam.taskType"
+          :placeholder="formatMessage('page.task.taskType.select', '璇烽�夋嫨浠诲姟绫诲瀷')" style="width: 140px;margin-right: 10px;"
+          show-search allowClear :options="taskTypeQueryList" optionFilterProp="label" optionLabelProp="label">
+        </a-select>
+        <a-input v-model:value="searchParam.originLoc"
+          :placeholder="formatMessage('page.task.originLoc.input', '璇疯緭鍏ユ簮搴撲綅')"
+          style="width: 140px;margin-right: 10px;" />
+        <a-input v-model:value="searchParam.targetLoc"
+          :placeholder="formatMessage('page.task.targetLoc.input', '璇疯緭鍏ョ洰鏍囧簱浣�')"
+          style="width: 140px;margin-right: 10px;" />
+        <a-input v-model:value="searchParam.barcode" :placeholder="formatMessage('page.task.barcode.input', '璇疯緭鍏ユ墭鐩樼爜')"
+          style="width: 140px;margin-right: 10px;" />
+
+        <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '璇疯緭鍏�')"
+          style="width: 200px;" @search="onSearch" />
+      </div>
       <div class="table-header-right">
         <!-- <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '娣诲姞') }}</a-button> -->
         <a-button @click="handleExport">{{ formatMessage('page.export', '瀵煎嚭') }}</a-button>

--
Gitblit v1.9.1