From d842fb603597a5db23c4359081a4e564ce716892 Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期一, 17 十一月 2025 11:41:31 +0800
Subject: [PATCH] 更新前端页面
---
项目代码/WMS/WMSClient/src/views/inbound/purchaseOrder.vue | 285 +++++++++++++-------------------------------------------
1 files changed, 69 insertions(+), 216 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/views/inbound/purchaseOrder.vue" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/views/inbound/purchaseOrder.vue"
index 5d3a627..0e91bd6 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/views/inbound/purchaseOrder.vue"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSClient/src/views/inbound/purchaseOrder.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/inbound/purchaseOrder.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
@@ -21,67 +12,64 @@
const table = ref({
key: "id",
footer: "Foots",
- cnName: "閲囪喘鍗�",
+ cnName: "浜屾湡閲囪喘鍗�",
name: "purchaseOrder",
url: "/PurchaseOrder/",
sortName: "id",
});
const editFormFields = ref({
- // orderType: "",
- // inboundOrderNo: "",
- // upperOrderNo: "",
- // remark: "",
+ orderType: "",
+ inboundOrderNo: "",
+ upperOrderNo: "",
+ remark: "",
});
const editFormOptions = ref([
- // [
- // {
- // title: "鍗曟嵁绫诲瀷",
- // required: true,
- // field: "orderType",
- // type: "select",
- // dataKey: "inOrderType",
- // data: [],
- // },
- // {
- // field: "inboundOrderNo",
- // title: "鍗曟嵁缂栧彿",
- // type: "string",
- // },
- // {
- // title: "涓婃父鍗曟嵁缂栧彿",
- // field: "upperOrderNo",
- // type: "string",
- // },
- // {
- // title: "澶囨敞",
- // field: "remark",
- // type: "textarea",
- // },
- // ],
+ [
+ {
+ title: "鍗曟嵁绫诲瀷",
+ required: true,
+ field: "orderType",
+ type: "select",
+ dataKey: "inOrderType",
+ data: [],
+ },
+ {
+ field: "inboundOrderNo",
+ title: "鍗曟嵁缂栧彿",
+ type: "string",
+ },
+ {
+ title: "涓婃父鍗曟嵁缂栧彿",
+ field: "upperOrderNo",
+ type: "string",
+ },
+ {
+ title: "澶囨敞",
+ field: "remark",
+ type: "textarea",
+ },
+ ],
]);
const searchFormFields = ref({
- purchaseOrderNo: "",
- purchaseOrderType: "",
- purchaseOrderStatus: "",
+ inboundOrderNo: "",
+ upperOrderNo: "",
+ orderType: "",
+ orderStatus: "",
+ createType: "",
+ creater: "",
+ createDate: "",
});
const searchFormOptions = ref([
[
- { title: "閲囪喘鍗曞彿", field: "purchaseOrderNo", type: "like" },
- {
- title: "鍗曟嵁绫诲瀷",
- field: "purchaseOrderType",
- type: "select",
- dataKey: "purchaseType",
- data: [],
- },
- {
- title: "鍗曟嵁鐘舵��",
- field: "purchaseOrderStatus",
- type: "select",
- dataKey: "purchaseOrderStatus",
- data: [],
- },
- ]
+ { title: "浠撳簱", field: "warehouseId", type: "select", dataKey: "warehouses", data: [], },
+ { title: "鍗曟嵁缂栧彿", field: "inboundOrderNo", type: "like" },
+ { title: "涓婃父鍗曞彿", field: "upperOrderNo", type: "like" },
+ { title: "鐘舵��", field: "orderStatus", type: "select", dataKey: "inboundState", data: [], },
+ ],
+ [
+ {title: "鍒涘缓鏃堕棿",field: "createDate",type: "datetime",},
+ ],
+
]);
const columns = ref([
{
@@ -95,49 +83,47 @@
align: "left",
},
{
+ field: "warehouseId",
+ title: "浠撳簱",
+ type: "string",
+ width: 150,
+ align: "left",
+ bind: { key: "warehouses", data: [] },
+ },
+ {
field: "purchaseOrderNo",
title: "閲囪喘鍗曞彿",
type: "string",
width: 150,
align: "left",
- link: true,
},
- {
- field: "purchaseOrderType",
- title: "鍗曟嵁绫诲瀷",
- type: "string",
- width: 150,
- align: "left",
- bind: { key: "", data: [{key:'S',value:"鏍囧噯鍏ュ簱"},{key:'V',value:"瀵勫敭琛ョ粰鍏ュ簱"}] },
- },
-
{
field: "supplierCode",
title: "渚涘簲鍟嗙紪鍙�",
type: "string",
- width: 120,
+ width: 150,
align: "left",
},
{
field: "orderQuantity",
title: "閲囪喘鏁伴噺",
- type: "decimal",
+ type: "int",
width: 90,
align: "left",
},
{
field: "purchaseOrderStatus",
- title: "閲囪喘鍗曠姸鎬�",
+ title: "鐘舵��",
type: "string",
width: 90,
align: "left",
- bind: { key: "purchaseOrderStatus", data: [] },
+ bind: { key: "inboundState", data: [] },
},
{
- field: "orderDate",
- title: "涓嬪崟鏃ユ湡",
+ field: "remark",
+ title: "澶囨敞",
type: "string",
- width: 160,
+ width: 200,
align: "left",
},
{
@@ -153,7 +139,6 @@
type: "datetime",
width: 160,
align: "left",
-
},
{
field: "modifier",
@@ -178,140 +163,9 @@
},
]);
const detail = ref({
- cnName: "閲囪喘鍗曟槑缁�",
- table: "InboundOrderDetail",
- columns: [
- {
- field: "id",
- title: "Id",
- type: "int",
- width: 90,
- hidden: true,
- readonly: true,
- require: true,
- align: "left",
- },
- {
- field: "purchaseOrderId",
- title: "閲囪喘鍗曚富閿�",
- type: "string",
- width: 90,
- align: "left",
- hidden: true,
- },
- {
- field: "rowNo",
- title: "琛屽彿",
- type: "string",
- width: 150,
- align: "left"
- },
- {
- field: "materielCode",
- title: "鐗╂枡缂栧彿",
- type: "select",
- width: 150,
- align: "left",
- edit: { type: "" },
- required: true,
- },
- {
- field: "materielName",
- title: "鐗╂枡鍚嶇О",
- type: "string",
- width: 100,
- align: "left"
- },
- {
- field: "materielSpec",
- title: "鐗╂枡瑙勬牸",
- type: "select",
- type: "string",
- width: 100,
- align: "left",
- },
- // {
- // field: "batchNo",
- // title: "鎵规鍙�",
- // type: "decimal",
- // width: 90,
- // align: "left",
- // edit: { type: "" },
- // required: true,
- // },
- {
- field: "purchaseDetailQuantity",
- title: "鍗曟嵁鏁伴噺",
- type: "decimal",
- width: 100,
- align: "left",
- },
- {
- field:"purchaseDetailReceiveQty",
- title: "宸叉敹鏁伴噺",
- type: "decimal",
- width: 100,
- align: "left",
- },
- {
- field: "unit",
- title: "鍗曚綅",
- type: "string",
- width: 120,
- align: "left",
- },
- {
- field: "warehouseId",
- title: "浠撳簱",
- type: "string",
- width: 100,
- align: "left",
- bind: { key: "warehouses", data: [] },
- },
- {
- field: "purchaseDetailStatus",
- title: "璁㈠崟鏄庣粏鐘舵��",
- type: "string",
- width: 180,
- align: "left",
- bind: { key: "purchaseOrderStatus", data: [] },
- },
- {
- 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",
- },
- {
- field: "remark",
- title: "澶囨敞",
- type: "string",
- width: 100,
- align: "left",
- },
- ],
+ cnName: "#detailCnName",
+ table: "",
+ columns: [],
sortName: "id",
key: "id",
});
@@ -327,5 +181,4 @@
};
},
});
-</script>
-
\ No newline at end of file
+</script>
\ No newline at end of file
--
Gitblit v1.9.3