liulijun
2026-03-27 1a2e9c7cbab7096222b0b75ada21590877db2cf0
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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<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/inbound/mesProInOrderInfo.js";
import { ref, defineComponent } from "vue";
export default defineComponent({
  setup() {
    const table = ref({
      key: "id",
      footer: "Foots",
      cnName: "MES领料计划单",
      name: "outMESOrder",
      url: "/OutMESOrder/",
      sortName: "id",
    });
    const editFormFields = ref({
 
    });
    const editFormOptions = ref([
 
    ]);
    const searchFormFields = ref({
      warehouseId:"",
      productOrderNo:"",
      mESProOrderType:"",
      mESProOrderStatus:"",
      materialCode:"",
      materialLot:"",
      proPackCode:"",
      createDate:"",
    });
    const searchFormOptions = ref([
      [
        { title: "仓库", field: "warehouseId", type: "select", dataKey: "warehouses", data: [], },
        { title: "出库来源明细ID", field: "outDetailId", type: "like" },
        { title: "生产订单编码", field: "productOrderNo", type: "like" },
        { title: "WMS单据编号", field: "outMESOrderNo", type: "like" },
      ],
      [
        { title: "派单工单编码", field: "sendOrderNo", type: "like" },
        { title: "物料编码", field: "materialCode", type: "like" },
        { title: "加工中心区域", field: "makeArea", type: "like" },
        { title: "加工中心编号(机台)", field: "makeCode", type: "select", dataKey: "makeCodeEnum", data: [] }
      ],
      [
        { title: "生产订单状态", field: "outMESOrderStatus", type: "select", dataKey: "outboundStatusEnum", data: [] },
        { title: "计划领料时间", field: "planPickTime", type: "date" },
        { title: "结束时间", field: "endTime", type: "date" },
      ]
    ]);
    const columns = ref([
      {
        field: "id",
        title: "Id",
        type: "int",
        width: 90,
        hidden: true,
        readonly: true,
        require: true,
        align: "left",
      },
      {
        field: "warehouseId",
        title: "仓库",
        type: "string",
        width: 90,
        align: "left",
        bind: { key: "warehouses", data: [] }
      },
      {
        field: "outDetailId",
        title: "出库来源明细ID",
        type: "int",
        width: 150,
        align: "left",
      },
      {
        field: "outMESOrderNo",
        title: "WMS单据编号",
        type: "string",
        width: 200,
        align: "left",
      },
      {
        field: "productOrderNo",
        title: "生产订单编号(上游)",
        type: "string",
        width: 200,
        align: "left",
      },
      {
        field: "sendOrderNo",
        title: "派单工单编码",
        type: "string",
        width: 150,
        align: "left",
      },
       {
        field: "materialCode",
        title: "物料编号",
        type: "string",
        width: 150,
        align: "left",
      },
      {
        field: "materialLot",
        title: "物料批次",
        type: "string",
        width: 150,
        align: "left",
      },
      {
        field: "gradeCode",
        title: "物料等级",
        type: "string",
        width: 150,
        align: "left",
      },
      {
        field: "reqQuantity",
        title: "物料需求数量",
        type: "decimal",
        width: 120,
        align: "left",
      },
      {
        field: "makeArea",
        title: "加工中心区域",
        type: "string",
        width: 150,
        align: "left",
      },
      {
        field: "makeCode",
        title: "加工中心编号(机台)",
        type: "string",
        width: 200,
        align: "left",
        bind: { key: "", data: [
        {key: "11",value: "一号印刷机(意高发)" },
        {key: "12",value: "二号印刷机(华阳中间)" },
        {key: "13",value: "三号印刷机(华阳北边)" },
        {key: "31",value: "一号织布机" },
        {key: "33",value: "二号织布机" },
        {key: "22",value: "一号中速分切机" },
        {key: "21",value: "二号高速分切机" },
        {key: "25",value: "一号冲切机" },
        {key: "26",value: "二号冲切机" },
        {key: "27",value: "三号冲切机" },
        {key: "26",value: "一号清废码垛模切机" },
        {key: "27",value: "二号清废码垛模切机" },
        {key: "41",value: "一号纸张双面淋膜机" },
        {key: "42",value: "一号无纺布双面淋膜机" },    
        {key: "64",value: "一号纸袋四杯机" },
        {key: "65",value: "二号纸袋四杯机" },
        {key: "66",value: "三号扁绳内折双杯机" },
        {key: "67",value: "五号纸袋双杯机" },
        {key: "68",value: "六号纸袋双杯机" },
        {key: "69",value: "七号纸袋双杯机" },
        {key: "6A",value: "八号纸袋双杯机" },
        {key: "6B",value: "九号纸袋单杯机" },
        {key: "6C",value: "十号纸袋单杯机" },
        {key: "6D",value: "十一号纸袋单杯机" },
        {key: "51",value: "一号无纺布制袋机" },
        {key: "52",value: "二号无纺布制袋机" },
        {key: "53",value: "三号无纺布制袋机" },
        {key: "54",value: "五号无纺布制袋机" },
        {key: "55",value: "六号无纺布制袋机" },
        {key: "56",value: "七号无纺布制袋机" },
        {key: "57",value: "八号无纺布制袋机" },
        {key: "58",value: "九号无纺布制袋机" },
        {key: "59",value: "十号无纺布制袋机" },
        {key: "5A",value: "十一号无纺布制袋机" },
        {key: "81",value: "一号立式纸杯机" },
        {key: "82",value: "二号立式纸杯机" },
        {key: "83",value: "三号立式纸杯机" },
        {key: "84",value: "五号立式纸杯机" },
        {key: "85",value: "六号立式纸杯机" },
        {key: "86",value: "七号立式纸杯机" },
        {key: "87",value: "八号立式纸杯机" },
        {key: "88",value: "九号立式纸杯机" },
        {key: "89",value: "十号立式纸杯机" },
        {key: "8A",value: "十一号立式纸杯机" },
        {key: "8B",value: "十二号立式纸杯机" },
        {key: "8C",value: "一号卧式纸杯机" },
        {key: "8D",value: "一号外套纸杯机" },
        {key: "8E",value: "二号外套纸杯机" },
        {key: "8F",value: "三号外套纸杯机" },
        {key: "8G",value: "五号外套纸杯机" },
        {key: "8H",value: "二号卧式纸杯机" },
        {key: "8I",value: "三号卧式纸杯机" },
        {key: "8J",value: "六号外套纸杯机" },
        {key: "8K",value: "七号外套纸杯机" },
        {key: "8L",value: "八号外套纸杯机" },
        {key: "8M",value: "九号外套纸杯机" },
        {key: "8N",value: "五号卧式纸杯机" },
        {key: "8O",value: "六号卧式纸杯机" },
        {key: "8P",value: "七号卧式纸杯机" },
        {key: "8Q",value: "十三号立式纸杯机" },
        {key: "8R",value: "十五号立式纸杯机" },
        {key: "8S",value: "十六号立式纸杯机" },
        {key: "8T",value: "十七号立式纸杯机" },
        {key: "8U",value: "十八号立式纸杯机" },
        ] },
      },
      {
        field: "outMESOrderStatus",
        title: "生产订单状态",
        type: "int",
        width: 150,
        align: "left",
        bind: { key: "outboundStatusEnum", data: [] },
      },
      {
        field: "planDate",
        title: "计划领料时间",
        type: "datetime",
        width: 160,
        align: "left",
      },
      {
        field: "endDate",
        title: "结束领料时间",
        type: "datetime",
        width: 160,
        align: "left",
      },
         {
          field: "assignTotalUsage",
          title: "已分配需求数量",
          type: "decimal",
          width: 150,
          align: "left",
        },
        {
          field: "outTotalUsage",
          title: "已出需求数量",
          type: "decimal",
          width: 150,
          align: "left",
        },
        {
          field: "remark",
          title: "备注",
          type: "string",
          width: 150,
          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: "",
      table: "",
      columns: [],
      sortName: "",
      key: "",
    });
    return {
      table,
      extend,
      editFormFields,
      editFormOptions,
      searchFormFields,
      searchFormOptions,
      columns,
      detail,
    };
  },
});
</script>