huanghongfeng
2024-12-09 19e5b7583a2aa1968c674b4b35f618cc6c2e29ef
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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
<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/stock/vv_StockInfoDet.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
  setup() {
    const table = ref({
      key: "id",
      footer: "Foots",
      cnName: "库存信息展示",
      name: "vv_StockInfoDet",
      url: "/vv_StockInfoDet/",
      sortName: "id",
    });
    const searchFormFields = ref({
      palletCode: "",
      materialType: "",
      stockStatus: "",
      materielCode:"",
 
      materielName:"",
      orderNo:"",
      batchNoName:"",
      stockQuantity:"",
      createDate:"",
      });
    const searchFormOptions = ref([
      [
        { title: "托盘编号", field: "palletCode",type:"like"},
        
        // {
        //   title: "物料类型",
        //   field: "materialType",
        //   type: "selectList",
        //   dataKey: "InventoryMaterialType",
        //   data: [],
        // },{
        //   title: "库存状态",
        //   field: "stockStatus",
        //   type: "select",
        //   dataKey: "stockStatusEmun",
        //   data: [],
        // },
      ],
      [
      { title: "物料编号", field: "materielCode",type:"like" },
      // { title: "物料名称", field: "materielName",type:"like" },
      // { title: "物料详情", field: "orderNo",type:"like" },
      ],
      // [
      // { title: "物料批次", field: "batchNo",type:"like" },
      //   { title: "物料批次详情", field: "batchNoName",type:"like" },
      //   { title: "重量", field: "stockQuantity",type:"like" },
      // ],
      [
      
      { title: "创建时间", field: "createDate", type: "datetime" },
      ]
    ]);
    const columns = ref([
    {
          field: "palletCode",
          title: "托盘编号",
          type: "string",
          width: 90,
          align: "left",
          DisplayType:"link",
          sort:true,
        },{
          field: "materialType",
          title: "物料类型",
          type: "string",
          width: 100,
          align: "left",
          bind: { key: "InventoryMaterialType", data: [] },
          sort:true,
        },
        {
          field: "stockStatus",
          title: "库存状态",
          type: "string",
          width: 100,
          align: "left",
          bind: { key: "stockStatusEmun", data: [] },
          sort:true,
        },
      {
        field: "materielCode",
        title: "物料编号",
        type: "string",
        width: 120,
        align: "left",
        sort:true,
      },
      {
        field: "materielName",
        title: "物料名称",
        type: "string",
        width: 150,
        align: "left",
        sort:true,
      },
      {
        field: "orderNo",
        title: "物料详情",
        type: "decimal",
        width: 90,
        align: "left",
        sort:true,
      },
      {
        field: "batchNo",
        title: "物料批次",
        type: "string",
        width: 120,
        align: "left",
        sort:true,
      },
      {
        field: "batchNoName",
        title: "物料批次详情",
        type: "int",
        width: 120,
        align: "left",
        sort:true,
      },
      {
        field: "stockQuantity",
        title: "重量",
        type: "string",
        width: 100,
        align: "left",
        sort:true,
      },
      {
        field: "createDate",
        title: "创建时间",
        type: "datetime",
        width: 160,
        align: "left",
        sort:true,
      },
    ]);
    const detail = ref({
      cnName: "#detailCnName",
      table: "",
      columns: [],
      sortName: "",
    });
    return {
      table,
      extend,
      searchFormFields,
      searchFormOptions,
      columns,
      detail,
    };
  },
});
</script>