From da4257bc32483409af02a06dd342c6981ec786ec Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期一, 17 十一月 2025 17:14:14 +0800
Subject: [PATCH] 更新大屏幕页面和任务信息页面

---
 项目代码/WMS/WMSClient/src/views/inbound/purchaseOrderDetail.vue |  264 ++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 201 insertions(+), 63 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/views/inbound/purchaseOrderDetail.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/views/inbound/purchaseOrderDetail.vue"
index 6161c3a..cf30905 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/views/inbound/purchaseOrderDetail.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/views/inbound/purchaseOrderDetail.vue"
@@ -1,67 +1,205 @@
-<!--
-*Author锛歫xx
- *Contact锛�283591387@qq.com
- *浠g爜鐢辨鏋剁敓鎴�,浠讳綍鏇存敼閮藉彲鑳藉鑷磋浠g爜鐢熸垚鍣ㄨ鐩�
- *涓氬姟璇峰湪@/extension/widesea_wcs/order/Dt_PurchaseOrderDetail.js姝ゅ缂栧啓
- -->
 <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>
-    import extend from "@/extension/inbound/purchaseOrderDetail.js";
-    import { ref, defineComponent } from "vue";
-    export default defineComponent({
-        setup() {
-            const table = ref({
-                key: 'id',
-                footer: "Foots",
-                cnName: '閲囪喘鍗曟槑缁�',
-                name: 'purchaseOrderDetail',
-                url: "/PurchaseOrderDetail/",
-                sortName: "id"
-            });
-            const editFormFields = ref({});
-            const editFormOptions = ref([]);
-            const searchFormFields = ref({});
-            const searchFormOptions = ref([]);
-            const columns = ref([{field:'id',title:'涓婚敭',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
-                       {field:'purchaseOrderId',title:'澶磋〃涓婚敭',type:'int',width:110,require:true,align:'left',sort:true},
-                       {field:'rowNo',title:'琛屽彿',type:'int',width:110,require:true,align:'left'},
-                       {field:'materielCode',title:'鐗╂枡缂栧彿',type:'string',width:110,require:true,align:'left'},
-                       {field:'purchaseDetailStatus',title:'閲囪喘鍗曟槑缁嗙姸鎬�',type:'int',width:110,require:true,align:'left'},
-                       {field:'warehouseId',title:'WarehouseId',type:'int',width:110,require:true,align:'left'},
-                       {field:'purchaseDetailQuantity',title:'PurchaseDetailQuantity',type:'float',width:110,require:true,align:'left'},
-                       {field:'unit',title:'Unit',type:'string',width:110,require:true,align:'left'},
-                       {field:'creater',title:'鍒涘缓鑰�',type:'string',width:110,require:true,align:'left'},
-                       {field:'createDate',title:'鍒涘缓鏃堕棿',type:'datetime',width:150,require:true,align:'left',sort:true},
-                       {field:'codifier',title:'淇敼浜�',type:'string',width:100,align:'left'},
-                       {field:'modifyDate',title:'淇敼鏃ユ湡',type:'datetime',width:150,align:'left',sort:true}]);
-            const detail = ref({
-                cnName: "#detailCnName",
-                table: "#detailTable",
-                columns: [],
-                sortName: "",
-                key: ""
-            });
-            return {
-                table,
-                extend,
-                editFormFields,
-                editFormOptions,
-                searchFormFields,
-                searchFormOptions,
-                columns,
-                detail,
-            };
-        },
-    });
-</script>
+import extend from "@/extension/inbound/purchaseOrderDetail.js";
+import { ref, defineComponent } from "vue";
+export default defineComponent({
+    setup() {
+        const table = ref({
+            key: "id",
+            footer: "Foots",
+            cnName: "浜屾湡閲囪喘鍗曟槑缁�",
+            name: "purchaseOrderDetail",
+            url: "/PurchaseOrderDetail/",
+            sortName: "id",
+        });
+        const editFormFields = ref({
+
+        });
+        const editFormOptions = ref([
+
+        ]);
+        const searchFormFields = ref({
+            purchaseOrderId: "",
+            detailId: "",
+            barCode: "",
+            materielCode: "",
+            materielName: "",
+            purchaseDetailStatus: "",
+        });
+        const searchFormOptions = ref([
+            [
+                { title: "澶磋〃", field: "purchaseOrderId", type: "like" },
+                { title: "涓婃父鏄庣粏Id", field: "detailId", type: "like" },
+                { title: "鐗╂枡鏉$爜", field: "barCode", type: "like" },
+                { title: "鐗╂枡缂栧彿", field: "materielCode", type: "like" },
+            ],
+            [
+                { title: "鐗╂枡鍚嶇О", field: "materielName", type: "like" },
+                { title: "鐘舵��", field: "purchaseDetailStatus", type: "select", dataKey: "inboundState", data: [] },
+            ]
+        ]);
+        const columns = ref([
+            {
+                field: "id",
+                title: "Id",
+                type: "int",
+                width: 90,
+                hidden: true,
+                readonly: true,
+                require: true,
+                align: "left",
+            },
+            {
+                field: "purchaseOrderId",
+                title: "澶磋〃",
+                type: "string",
+                width: 150,
+                align: "left",
+            },
+            {
+                field: "detailId",
+                title: "涓婃父鏄庣粏Id",
+                type: "string",
+                width: 120,
+                align: "left",
+            },
+            {
+                field: "barCode",
+                title: "鐗╂枡鏉$爜",
+                type: "string",
+                width: 150,
+                align: "left",
+            },
+            {
+                field: "materialCode",
+                title: "鐗╂枡缂栧彿",
+                type: "string",
+                width: 150,
+                align: "left",
+            },
+            {
+                field: "materielName",
+                title: "鐗╂枡鍚嶇О",
+                type: "string",
+                width: 150,
+                align: "left",
+            },
+            {
+                field: "materialLot",
+                title: "鐗╂枡鎵规",
+                type: "string",
+                width: 120,
+                align: "left",
+            },
+            {
+                field: "purchaseDetailQuantity",
+                title: "鏁伴噺",
+                type: "int",
+                width: 90,
+                align: "left",
+            },
+            {
+                field: "purchaseDetailWide",
+                title: "骞呭",
+                type: "int",
+                width: 90,
+                align: "left",
+            },
+            {
+                field: "purchaseDetailThickness",
+                title: "鍗峰緞",
+                type: "int",
+                width: 90,
+                align: "left",
+            },
+            {
+                field: "purchaseDetailWeight",
+                title: "閲嶉噺",
+                type: "string",
+                width: 120,
+                align: "left",
+            },
+            {
+                field: "materielSpec",
+                title: "鐗╂枡瑙勬牸",
+                type: "string",
+                width: 150,
+                align: "left",
+            },
+            {
+                field: "purchaseDetailStatus",
+                title: "鏄庣粏鐘舵��",
+                type: "string",
+                width: 90,
+                align: "left",
+                bind: { key: "inboundState", data: [] },
+            },
+            {
+                field: "purchaseDetailInboundQty",
+                title: "宸插叆搴撴暟閲�",
+                type: "int",
+                width: 90,
+                align: "left",
+            },
+            {
+                field: "unit",
+                title: "鍗曚綅",
+                type: "int",
+                width: 90,
+                align: "left",
+            },
+            {
+                field: "creater",
+                title: "鍒涘缓浜�",
+                type: "string",
+                width: 90,
+                align: "left",
+            },
+            {
+                field: "createDate",
+                title: "鍒涘缓鏃堕棿",
+                type: "datetime",
+                width: 160,
+                align: "left",
+
+            },
+            {
+                field: "modifier",
+                title: "淇敼浜�",
+                type: "string",
+                width: 100,
+                align: "left",
+            },
+            {
+                field: "modifyDate",
+                title: "淇敼鏃堕棿",
+                type: "datetime",
+                width: 160,
+                align: "left",
+            },
+        ]);
+        const detail = ref({
+            cnName: "#detailCnName",
+            table: "",
+            columns: [],
+            sortName: "id",
+            key: "id",
+        });
+        return {
+            table,
+            extend,
+            editFormFields,
+            editFormOptions,
+            searchFormFields,
+            searchFormOptions,
+            columns,
+            detail,
+        };
+    },
+});
+</script>
\ No newline at end of file

--
Gitblit v1.9.3