|
|
|
@ -0,0 +1,75 @@
|
|
|
|
|
<!--
|
|
|
|
|
*Author:jxx
|
|
|
|
|
*Contact:283591387@qq.com
|
|
|
|
|
*代码由框架生成,任何更改都可能导致被代码生成器覆盖
|
|
|
|
|
*业务请在@/extension/data/produce/Data_Produce.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/data/produce/Data_Produce.js";
|
|
|
|
|
import { ref, defineComponent } from "vue";
|
|
|
|
|
export default defineComponent({
|
|
|
|
|
setup() {
|
|
|
|
|
const table = ref({
|
|
|
|
|
key: 'id',
|
|
|
|
|
footer: "Foots",
|
|
|
|
|
cnName: '生产数据',
|
|
|
|
|
name: 'produce/Data_Produce',
|
|
|
|
|
url: "/Data_Produce/",
|
|
|
|
|
sortName: "id"
|
|
|
|
|
});
|
|
|
|
|
const editFormFields = ref({"standby_time":"","run_time":"","status":"","turnout":"","turnout_one":"","turnout_two":"","turnout_three":""});
|
|
|
|
|
const editFormOptions = ref([[{"title":"待机时长","field":"standby_time","type":"number"},
|
|
|
|
|
{"title":"运行时长","field":"run_time","type":"number"},
|
|
|
|
|
{"dataKey":"produce_status","data":[],"title":"运行状态","field":"status","type":"select"}],
|
|
|
|
|
[{"title":"当班产量","field":"turnout","type":"number"},
|
|
|
|
|
{"title":"工单 1 产量","field":"turnout_one","type":"number"},
|
|
|
|
|
{"title":"工单 2 产量","field":"turnout_two","type":"number"},
|
|
|
|
|
{"title":"工单 3 产量","field":"turnout_three","type":"number"}]]);
|
|
|
|
|
const searchFormFields = ref({"status":"","turnout":"","CreateDate":""});
|
|
|
|
|
const searchFormOptions = ref([[{"dataKey":"produce_status","data":[],"title":"运行状态","field":"status","type":"select"},{"title":"当班产量","field":"turnout","type":"number"}],[{"title":"记录时间","field":"CreateDate","type":"datetime"}]]);
|
|
|
|
|
const columns = ref([{field:'id',title:'ID',type:'int',width:110,hidden:true,readonly:true,require:true,align:'left'},
|
|
|
|
|
{field:'standby_time',title:'待机时长',type:'int',width:110,align:'left',sort:true},
|
|
|
|
|
{field:'run_time',title:'运行时长',type:'int',width:110,align:'left'},
|
|
|
|
|
{field:'status',title:'运行状态',type:'sbyte',bind:{ key:'produce_status',data:[]},width:110,align:'left'},
|
|
|
|
|
{field:'turnout',title:'当班产量',type:'int',width:110,align:'left'},
|
|
|
|
|
{field:'turnout_one',title:'工单 1 产量',type:'int',width:110,align:'left'},
|
|
|
|
|
{field:'turnout_two',title:'工单 2 产量',type:'int',width:110,align:'left'},
|
|
|
|
|
{field:'turnout_three',title:'工单 3 产量',type:'int',width:110,align:'left'},
|
|
|
|
|
{field:'CreateID',title:'CreateID',type:'int',width:100,hidden:true,readonly:true,align:'left'},
|
|
|
|
|
{field:'Creator',title:'Creator',type:'string',width:100,hidden:true,readonly:true,align:'left'},
|
|
|
|
|
{field:'CreateDate',title:'记录时间',type:'datetime',width:180,readonly:true,align:'left',sort:true},
|
|
|
|
|
{field:'ModifyID',title:'ModifyID',type:'int',width:100,hidden:true,readonly:true,align:'left'},
|
|
|
|
|
{field:'Modifier',title:'Modifier',type:'string',width:100,hidden:true,readonly:true,align:'left'},
|
|
|
|
|
{field:'ModifyDate',title:'ModifyDate',type:'datetime',width:150,hidden:true,readonly: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>
|