| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
 | | <!-- |  | *Author:jxx |  |  *Contact:283591387@qq.com |  |  *代码由框架生成,任何更改都可能导致被代码生成器覆盖 |  |  *业务请在@/extension/widesea_wms/invoices/Dt_InboundOrderDetail.js此处编写 |  |  --> |  | <template> |  |     <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/widesea_wms/invoices/Dt_InboundOrderDetail.js"; |  |     import { ref, defineComponent } from "vue"; |  |     export default defineComponent({ |  |         setup() { |  |             const table = ref({ |  |                 key: 'orderDetailId', |  |                 footer: "Foots", |  |                 cnName: '入库单明细', |  |                 name: 'invoices/Dt_InboundOrderDetail', |  |                 url: "/Dt_InboundOrderDetail/", |  |                 sortName: "OrderId" |  |             }); |  |             const editFormFields = ref({ |  |                 "inboundNo":"", |  |                 "materialNo":"" |  |             }); |  |             const editFormOptions = ref([ |  |             [ |  |                 { "title": "单据编号", "field": "inboundNo", type: "text" }, |  |                 { "title": "物料编号", "field": "materialNo", type: "text" }, |  |                 { "title": "单据类型", "field": "inboundType", type: "select" ,dataKey:"InOrderType",data:[]}, |  |                 { "title": "单据明细状态", "field": "inboundState", type: "select",dataKey:"InboundState",data:[]}, |  |             ] |  |             ]); |  |             const searchFormFields = ref({ |  |                 "inboundNo":"", |  |                 "materialNo":"" |  |             }); |  |             const searchFormOptions = ref([ |  |             [ |  |                 { "title": "单据编号", "field": "InboundNo", type: "text" }, |  |                 {"title" : "物料编号", "field": "MaterialNo","type":"text"}, |  |                 { "title": "单据类型", "field": "inboundType", type: "select" ,dataKey:"InOrderType",data:[]}, |  |                 { "title": "单据明细状态", "field": "inboundState", type: "select",dataKey:"InboundState",data:[]}, |  |             ] |  |             ]); |  |             const columns = ref([{field:'orderDetailId',title:'入库单明细ID',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'}, |  |                        {field:'orderId',title:'入库单ID',type:'int',width:110,hidden:true,align:'left',sort:true}, |  |                        {field:'inboundNo',title:'单据编号',type:'string',width:110,align:'left'}, |  |                        {field:'batchNo',title:'批次号',type:'string',width:110,align:'left'}, |  |                        {field:'inboundType',title:'单据类型',type:'int',width:110,align:'left', bind: { key: "InOrderType", data: [] },}, |  |                        {field:'inboundState',title:'单据明细状态',type:'int',width:110,align:'left', bind: { key: "InboundState", data: [] },}, |  |                        {field:'materialNo',title:'物料编号',type:'string',width:110,align:'left'}, |  |                        {field:'materialName',title:'物料名称',type:'string',width:110,align:'left'}, |  |                        {field:'preInboundQuantity',title:'预计入库数量',type:'string',width:110,align:'left'}, |  |                        {field:'actualInboundQuantity',title:'实际入库数量',type:'string',width:110,align:'left'}, |  |                        {field:'unit',title:'入库单位',type:'string',width:110,align:'left'}, |  |                        {field:'remark',title:'备注',type:'string',width:120,align:'left'}, |  |                        {field:'createID',title:'创建ID',type:'int',sort:true,width:100,hidden:true,align:'left'}, |  |                        {field:'creater',title:'创建人',type:'string',sort:true,width:110,hidden:true,align:'left'}, |  |                        {field:'createDate',title:'创建时间',type:'datetime',sort:true,width:150,hidden:true,align:'left',sort:true}, |  |                        {field:'modifyID',title:'修改人ID',type:'int',sort:true,width:100,hidden:true,align:'left'}, |  |                        {field:'modifier',title:'修改人',type:'string',sort:true,width:100,hidden:true,align:'left'}, |  |                        {field:'modifyDate',title:'修改时间',type:'datetime',sort:true,width:150,hidden:true,align:'left',sort:true}, |  |                        ]); |  |             const detail = ref({ |  |                 cnName: "#detailCnName", |  |                 table: "#detailTable", |  |                 columns: [], |  |                 sortName: "", |  |                 key: "" |  |             }); |  |             return { |  |                 table, |  |                 extend, |  |                 editFormFields, |  |                 editFormOptions, |  |                 searchFormFields, |  |                 searchFormOptions, |  |                 columns, |  |                 detail, |  |             }; |  |         }, |  |     }); |  | </script> | 
 |