From bfcd7f5b405e431a5c07fe3fa77d74c892d4e66b Mon Sep 17 00:00:00 2001
From: xiazhengtongxue <133085197+xiazhengtongxue@users.noreply.github.com>
Date: 星期四, 19 三月 2026 15:52:42 +0800
Subject: [PATCH] fix: 修复出入库冲突拦截,系统位置与实际位置的映射和修复
---
项目代码/WMS/WIDESEA_WMSClient/src/views/taskinfo/task.vue | 122 +++++++++++++++++++++++-----------------
1 files changed, 71 insertions(+), 51 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/taskinfo/task.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/taskinfo/task.vue"
index 545ea62..16fdd2b 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/taskinfo/task.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSClient/src/views/taskinfo/task.vue"
@@ -1,19 +1,10 @@
-
<template>
- <view-grid
- ref="grid"
- :columns="columns"
- :detail="detail"
- :editFormFields="editFormFields"
- :editFormOptions="editFormOptions"
- :searchFormFields="searchFormFields"
- :searchFormOptions="searchFormOptions"
- :table="table"
- :extend="extend"
- >
+ <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
+ :editFormOptions="editFormOptions" :searchFormFields="searchFormFields" :searchFormOptions="searchFormOptions"
+ :table="table" :extend="extend">
</view-grid>
</template>
- <script>
+<script>
import extend from "@/extension/taskinfo/task.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
@@ -26,9 +17,7 @@
url: "/Task/",
sortName: "CreateDate",
});
- const editFormFields = ref({});
- const editFormOptions = ref([]);
- const searchFormFields = ref({
+ const editFormFields = ref({
taskNum: "",
palletCode: "",
roadway: "",
@@ -40,22 +29,50 @@
nextAddress: "",
creater: "",
createDate: "",
+ palletType: "",
+ WarehouseId: "",
+ });
+ const editFormOptions = ref([
+ [
+ { title: "浠诲姟鐘舵��", field: "taskStatus", type: "select", dataKey: "taskStatusEnum", data: [], },
+ ],
+ [
+ { title: "璧峰鍦板潃", field: "sourceAddress", type: "string" },
+ { title: "鐩爣鍦板潃", field: "targetAddress", type: "string" },
+ ],
+ [
+ { title: "褰撳墠浣嶇疆", field: "currentAddress", type: "string" },
+ { title: "涓嬩竴浣嶇疆", field: "nextAddress", type: "string" },
+ ]
+ ]);
+ const searchFormFields = ref({
+ taskId: "",
+ taskNum: "",
+ palletCode: "",
+ roadway: "",
+ taskStatus: "",
+ taskType: "",
+ sourceAddress: "",
+ targetAddress: "",
+ currentAddress: "",
+ nextAddress: "",
+ createDate: "",
});
const searchFormOptions = ref([
[
- { title: "浠诲姟鍙�", field: "taskNum", type: "int" },
+ { title: "浠诲姟鍙�", field: "taskId", type: "int" },
+ { title: "MES鍙�", field: "taskNum", type: "like" },
{ title: "鎵樼洏缂栧彿", field: "palletCode", type: "like" },
- { title: "鍒涘缓浜�", field: "creater", type: "like" },
],
[
- { title: "浠诲姟绫诲瀷",field: "taskType",type: "selectList",dataKey: "taskType",data: [],},
- { title: "浠诲姟鐘舵��",field: "taskStatus",type: "selectList",dataKey: "taskStatusEnum",data: [],},
+ { title: "浠诲姟绫诲瀷", field: "taskType", type: "selectList", dataKey: "taskTypeEnum", data: [], },
+ { title: "浠诲姟鐘舵��", field: "taskStatus", type: "selectList", dataKey: "taskStatusEnum", data: [], },
{ title: "宸烽亾鍙�", field: "roadway", type: "like" },
],
[
{ title: "璧峰鍦板潃", field: "sourceAddress", type: "like" },
{ title: "鐩爣鍦板潃", field: "targetAddress", type: "like" },
- { title: "鍒涘缓鏃堕棿", field: "createDate", type: "datetime" },
+ { title: "浠撳簱", field: "warehouseId", type: "selectList", dataKey: "warehouseEnum", data: [], },
],
]);
const columns = ref([
@@ -77,29 +94,42 @@
field: "palletCode",
title: "鎵樼洏缂栧彿",
type: "string",
- width: 160,
+ width: 120,
align: "left",
},
{
field: "palletType",
title: "鎵樼洏绫诲瀷",
type: "string",
- width: 120,
- align: "left",
- bind: { key: "taskpalltype", data: [] },
+ width: 80,
+ align: "center",
+ formatter: (row) => {
+ if (row.warehouseId === 2) {
+ return "鎴愬搧";
+ } else {
+ return row.palletType == 1 ? "甯冩枡" : "鏉惧竷鏂�";
+ }
+ }
},
{
field: "roadway",
title: "宸烽亾鍙�",
type: "string",
- width: 120,
+ width: 70,
align: "left",
+ }, {
+ field: "warehouseId",
+ title: "浠撳簱缂栧彿",
+ type: "int",
+ width: 80,
+ align: "left",
+ bind: { key: "warehouseEnum", data: [] },
},
{
field: "taskType",
title: "浠诲姟绫诲瀷",
type: "int",
- width: 120,
+ width: 90,
align: "left",
bind: { key: "taskTypeEnum", data: [] },
},
@@ -107,7 +137,7 @@
field: "taskStatus",
title: "浠诲姟鐘舵��",
type: "int",
- width: 150,
+ width: 120,
align: "left",
bind: { key: "taskStatusEnum", data: [] },
},
@@ -115,28 +145,28 @@
field: "sourceAddress",
title: "璧峰鍦板潃",
type: "int",
- width: 220,
+ width: 150,
align: "left",
},
{
field: "targetAddress",
title: "鐩爣鍦板潃",
type: "string",
- width: 220,
+ width: 150,
align: "left",
},
{
field: "currentAddress",
title: "褰撳墠浣嶇疆",
type: "string",
- width: 120,
+ width: 150,
align: "left",
},
{
field: "nextAddress",
title: "涓嬩竴浣嶇疆",
type: "string",
- width: 120,
+ width: 150,
align: "left",
},
{
@@ -145,28 +175,19 @@
type: "string",
width: 100,
align: "left",
- hidden: true,
},
- {
- field: "grade",
- title: "浼樺厛绾�",
- type: "int",
- width: 80,
- align: "left",
- },
+ // {
+ // field: "grade",
+ // title: "浼樺厛绾�",
+ // type: "int",
+ // width: 80,
+ // align: "left",
+ // },
{
field: "dispatchertime",
title: "浠诲姟涓嬪彂鏃堕棿",
type: "datetime",
width: 160,
- align: "left",
- hidden:true,
- },
- {
- field: "wMSId",
- title: "WMS浠诲姟涓婚敭",
- type: "int",
- width: 120,
align: "left",
hidden: true,
},
@@ -198,7 +219,7 @@
width: 160,
align: "left",
},
-
+
]);
const detail = ref({
cnName: "#detailCnName",
@@ -218,5 +239,4 @@
};
},
});
-</script>
-
\ No newline at end of file
+</script>
\ No newline at end of file
--
Gitblit v1.9.3