Bläddra i källkod

调度任务页面增加仓库过滤

wangzhengguang 20 timmar sedan
förälder
incheckning
eb4e4f412f
3 ändrade filer med 36 tillägg och 2 borttagningar
  1. 1 1
      bat/publish.bat
  2. 1 1
      package.json
  3. 34 0
      src/customer/TransferTask.vue

+ 1 - 1
bat/publish.bat

@@ -1,5 +1,5 @@
 set current_path="%~dp0"
 cd %current_path%
 cd ..
-npm publish --registry http://wuzhixin.vip:4873/
+npm publish --registry https://npm.leanwo.com --tag yd
 pause

+ 1 - 1
package.json

@@ -1,7 +1,7 @@
 {
   "name": "client-wms-v5",
   "description": "Leanwo Prodog Client",
-  "version": "1.0.0-yd.5",
+  "version": "1.0.0-yd.7",
   "author": "yangzhijie1488 <yangzhijie1488@163.com>",
   "scripts": {
     "dev": "cross-env webpack serve --config ./webpack.dev.js",

+ 34 - 0
src/customer/TransferTask.vue

@@ -9,6 +9,12 @@
             placeholder="请选择任务类型" @change="searchDatas"
           />
         </a-form-item>
+        <a-form-item label="仓库" class="horizontal-form-item">
+          <a-select
+            v-model:value="formData.warehouseId" class="w-full" :options="warehouseOptions" allow-clear
+            placeholder="请选择仓库" @change="searchDatas"
+          />
+        </a-form-item>
         <a-form-item label="起始货位编号" class="horizontal-form-item">
           <a-input
             v-model:value="formData.positionBeginNo" class="w-full" placeholder="请输入起始货位编号"
@@ -95,6 +101,7 @@ const formData = ref({
   executeStatus: null,
   agvNo: null,
   success: null,
+  warehouseId: null,
 });
 
 const totalSize = ref(0);
@@ -106,6 +113,7 @@ const pagination = ref({
 const workTypes = ref(workOptions);
 const successTypes = ref(successOptions);
 const executeStatus = ref(executeOptions);
+const warehouseOptions = ref([]);
 
 // 获取分页参数后查询
 const getPageParams = (page, pageSize) => {
@@ -144,11 +152,37 @@ const clearFilter = () => {
     executeStatus: null,
     agvNo: null,
     success: null,
+    warehouseId: null,
   };
   searchDatas();
 };
 
+const getWarehouseOptions = () => {
+  $.ajax({
+    url: Common.getApiURL('WarehouseResource/queryUserManageWarehouse'),
+    type: 'get',
+    dataType: 'json',
+    beforeSend: function (request) {
+      Common.addTokenToRequest(request);
+    },
+    success: function (res) {
+      if (res && res.length > 0) {
+        warehouseOptions.value = res.map(item => ({
+          label: item.name,
+          value: item.id,
+        }));
+      } else {
+        warehouseOptions.value = [];
+      }
+    },
+    error: function (XMLHttpRequest, textStatus, errorThrown) {
+      console.error(XMLHttpRequest, textStatus, errorThrown);
+    },
+  });
+};
+
 onMounted(() => {
+  getWarehouseOptions();
   getTableDatas();
 });