chenyong
4 天以前 867793e0bd4d8e84b8ae98e31d5d722fdb73cee9
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
<!--
*Author:jxx
 *Contact:283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/widesea_wms/taskinfo/Dt_Task.js此处编写
 -->
 <template>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields"
        :editFormOptions="editFormOptions" 
        :table="table" />
</template>
<script>
import extend from "@/extension/widesea_wms/taskinfo/Dt_Task_Hty.jsx";
import { ref, defineComponent } from "vue";
export default defineComponent({
    setup() {
        const table = ref({
            key: 'taskId',
            footer: "Foots",
            cnName: '产量统计',
            name: 'taskinfo',
            url: "/Task/Getproductionstatistics",
            sortName: "TaskId"
        });
        const editFormFields = ref({
            "taskNum": "",
            "palletCode": ""
        });
        const editFormOptions = ref([
          
        ]);
        const searchFormFields = ref({
        });
        const searchFormOptions = ref([
            [
               
              
                { "title": "任务类型", "field": "taskType", "type": "select", dataKey: "TaskType", data: [] },
                { "title": "任务状态", "field": "taskState", "type": "select", dataKey: "TaskStatus", data: [] },
 
            ],
            [
                { "title": "起始位置", "field": "sourceAddress", type: "text" },
                { "title": "当前位置", "field": "currentAddress", type: "text" },
                { "title": "下一位置", "field": "nextAddress", type: "text" },
                { "title": "目标位置", "field": "targetAddress", type: "text" },
            ],
            [
                { "title": "巷道", "field": "roadway", type: "text" },
                { "title": "生产产线", "field": "productionLine", type: "select", dataKey: "ProductionLine", data: [] },
                { "title": "创建人", "field": "creater", type: "text" },
                { "title": "创建时间", "field": "createDate", type: "datetime" },
            ],
        ]);
        const columns = ref([{ field: 'TaskId', title: '主键', type: 'string', width: 110, hidden: true, readonly: true, require: true, align: 'left' },
        { field: 'hour', title: '日期', type: 'int', width: 110, align: 'left', sort: true },
        { field: 'roadway', title: '库', type: 'string', width: 110, align: 'left' },
        { field: 'taskType100Count', title: '实框出库', type: 'string', width: 150, align: 'left' },
        { field: 'taskType104Count', title: '空框出库', type: 'string', width: 110, align: 'left' },
        { field: 'taskType200Count', title: '实框入库', type: 'string', width: 110, align: 'left' },
        { field: 'taskType204Count', title: '空框入库', type: 'string', width: 110, align: 'left' },
       ]);
        const detail = ref({
            cnName: "#detailCnName",
            table: "#detailTable",
            columns: [],
            sortName: "",
            key: ""
        });
        return {
            table,
            extend,
            editFormFields,
            editFormOptions,
            searchFormFields,
            searchFormOptions,
            columns,
            detail,
        };
    },
});
</script>