| | |
| | | *ä¸å¡è¯·å¨@/extension/widesea_wcs/tomes/dt_mes_head.jsæ¤å¤ç¼å |
| | | --> |
| | | <template> |
| | | <view-grid ref="grid" |
| | | <view-grid |
| | | ref="grid" |
| | | :columns="columns" |
| | | :detail="detail" |
| | | :editFormFields="editFormFields" |
| | |
| | | :searchFormFields="searchFormFields" |
| | | :searchFormOptions="searchFormOptions" |
| | | :table="table" |
| | | :extend="extend"> |
| | | :extend="extend" |
| | | > |
| | | </view-grid> |
| | | </template> |
| | | <script> |
| | | import extend from "@/extension/widesea_wcs/tomes/dt_mes_head.js"; |
| | | import { ref, defineComponent } from "vue"; |
| | | export default defineComponent({ |
| | | setup() { |
| | | const table = ref({ |
| | | key: 'mes_id', |
| | | footer: "Foots", |
| | | cnName: 'å·¥å头表', |
| | | name: 'tomes/dt_mes_head', |
| | | url: "/dt_mes_head/", |
| | | sortName: "CreateTime" |
| | | }); |
| | | const editFormFields = ref({"stackNoRange":"","skip_op_1":"","skip_op_2":"","skip_op_3":""}); |
| | | const editFormOptions = ref([ |
| | | [{"title":"æå
æ°é","field":"stackNoRange","type":"number"}], |
| | | [{ "dataKey": "skip_op_Status", "data": [], "title": "è§è§æ£æµ1", "required": true, "field": "skip_op_1", "type": "select" }], |
| | | [{ "dataKey": "skip_op_Status", "data": [], "title": "è§è§æ£æµ2", "required": true, "field": "skip_op_2", "type": "select" }], |
| | | [{ "dataKey": "skip_op_Status", "data": [], "title": "å·é²éæ¶²", "required": true, "field": "skip_op_3", "type": "select" }], |
| | | // [{ |
| | | // title: "æå®åºåº", field: "area", |
| | | // data: [ |
| | | // { key: 9, value: "å¤ååº" }, |
| | | // { key: 2, value: "åºåº2" }, |
| | | // { key: 3, value: "åºåº3" }, |
| | | // { key: 4, value: "åºåº4" }, |
| | | // //{ key: 3, value: "ä¸å
许" }, |
| | | // ] |
| | | // , type: "radio"//type: "select" |
| | | // }], |
| | | ]); |
| | | const searchFormFields = ref({"jobID":"","processCode":"","CreateTime":""}); |
| | | const searchFormOptions = ref([ |
| | | [{"title":"å·¥ä½ä»¤å·","field":"workOrder","type":"like"},{"title":"å·¥åç¼å·","field":"jobID","type":"like"},{"dataKey":"WorkTypes","data":[],"title":"å·¥åç±»å","field":"processCode","type":"select"}], |
| | | [{"title":"å¾å·","field":"drawingNo","type":"like"},{"title":"å建æ¶é´","field":"CreateTime","type":"datetime"}] |
| | | ]); |
| | | const columns = ref([{field:'mes_id',title:'mes_id',type:'guid',width:110,hidden:true,readonly:true,require:true,align:'left'}, |
| | | {field:'workOrder',title:'å·¥ä½ä»¤å·',type:'string',width:110,align:'left',sort:true}, |
| | | {field:'jobID',title:'å·¥åç¼å·',type:'string',width:110,align:'left'}, |
| | | // {field:'reqID',title:'éæ±åå·',type:'string',width:110,align:'left'}, |
| | | // {field:'reqIDLineNo',title:'éæ±åå·è¡å·',type:'string',width:110,align:'left'}, |
| | | // {field:'materialCode',title:'ç©æç¼ç ',type:'string',width:110,align:'left'}, |
| | | {field:'drawingNo',title:'å¾å·',type:'string',width:110,align:'left'}, |
| | | {field:'drawingNoVer',title:'ææ¯ç¶æ',type:'string',width:110,align:'left'}, |
| | | // {field:'productName',title:'产ååç§°',type:'string',width:110,align:'left'}, |
| | | {field:'processCode',title:'å·¥åç±»å',bind: { key: 'WorkTypes' },type:'string',width:110,align:'left'}, |
| | | {field:'quantity',title:'è®¡åæ°é',type:'int',width:110,align:'left'}, |
| | | {field:'finishNum',title:'宿æ°é',type:'int',width:110,align:'left'}, |
| | | {field:'area',title:'æå®åºåº',type:'string',width:110,align:'left'}, |
| | | // {field:'typeID',title:'è½®å代ç ',type:'string',width:110,align:'left'}, |
| | | {field:'stackNoRange',title:'æå
æ°é',type:'int',width:110,align:'left',sort:true}, |
| | | {field:'skip_op_1',title:'è§è§æ£æµ1',type:'bool',bind:{ key:'skip_op_Status',data:[]},width:110,require:true,align:'left'}, |
| | | {field:'skip_op_2',title:'è§è§æ£æµ2',type:'bool',bind:{ key:'skip_op_Status',data:[]},width:110,require:true,align:'left'}, |
| | | {field:'skip_op_3',title:'å·é²éæ¶²',type:'bool',bind:{ key:'skip_op_Status',data:[]},width:110,require:true,align:'left'}, |
| | | // {field:'maxDiameterDiff',title:'è½®å¾åå·®',type:'decimal',width:110,align:'left'}, |
| | | {field:'expectedStartTime',title:'计åå¼å§æ¶é´',type:'datetime',width:150,align:'left',sort:true}, |
| | | {field:'expectedFinishTime',title:'计å宿æ¶é´',type:'datetime',width:150,align:'left',sort:true}, |
| | | {field:'CreateTime',title:'å建æ¶é´',type:'datetime',width:150,align:'left',sort:true}, |
| | | {field:'creator',title:'å建è
',type:'string',width:100,align:'left'}, |
| | | {field:'productDesc',title:'产åæè¿°',type:'string',width:180,align:'left'}]); |
| | | const detail = ref({ |
| | | cnName: "#detailCnName", |
| | | table: "#detailTable", |
| | | columns: [], |
| | | sortName: "", |
| | | key: "" |
| | | }); |
| | | var vueParam={ |
| | | data() { |
| | | return { |
| | | table, |
| | | extend, |
| | | editFormFields, |
| | | editFormOptions, |
| | | searchFormFields, |
| | | searchFormOptions, |
| | | columns, |
| | | detail, |
| | | table: { |
| | | key: "mes_id", |
| | | footer: "Foots", |
| | | cnName: "å·¥åä¿¡æ¯", |
| | | name: "work/dt_mes_head", |
| | | url: "/dt_mes_head/", |
| | | sortName: "CreateTime", |
| | | }, |
| | | extend: extend, |
| | | editFormFields: { |
| | | workOrder: "", |
| | | jobID: "", |
| | | drawingNo: "", |
| | | productDesc: "", |
| | | CreateTime:"", |
| | | quantity:"", |
| | | }, |
| | | editFormOptions: [ |
| | | [ |
| | | { title: "å·¥ä½ä»¤å·", field: "workOrder", readonly: true }, |
| | | { title: "å·¥åç¼å·", field: "jobID", readonly: true }, |
| | | { title: "å¾å·", field: "drawingNo", readonly: true }, |
| | | ], |
| | | [ |
| | | { title: "å建æ¶é´", field: "CreateTime", disabled: true }, |
| | | { |
| | | title: "产åæè¿°", |
| | | field: "productDesc", |
| | | colSize: 8, |
| | | type: "textarea", |
| | | }, |
| | | ], |
| | | ], |
| | | searchFormFields: { |
| | | workOrder: "", |
| | | jobID: "", |
| | | drawingNo: "", |
| | | productDesc: "", |
| | | processCode:"", |
| | | }, |
| | | searchFormOptions: [ |
| | | [ |
| | | { title: "å·¥ä½ä»¤å·", field: "workOrder" }, |
| | | { title: "å·¥åç¼å·", field: "jobID" }, |
| | | { title: "å¾å·", field: "drawingNo" }, |
| | | ], |
| | | [ |
| | | { |
| | | dataKey: "WorkTypes", |
| | | data: [], |
| | | title: "å·¥åç±»å", |
| | | field: "processCode", |
| | | type: "select", |
| | | }, |
| | | { title: "å建æ¶é´", field: "CreateTime", type: "datetime" }, |
| | | ] |
| | | ], |
| | | columns: [ |
| | | { |
| | | field: "mes_id", |
| | | title: "mes_id", |
| | | type: "guid", |
| | | width: 110, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "workOrder", |
| | | title: "å·¥ä½ä»¤å·", |
| | | type: "string", |
| | | width: 110, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "jobID", |
| | | title: "å·¥åç¼å·", |
| | | type: "string", |
| | | link: true, |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "reqID", |
| | | // title: "éæ±åå·", |
| | | // type: "string", |
| | | // width: 110, |
| | | // align: "left", |
| | | // }, |
| | | // { |
| | | // field: "reqIDLineNo", |
| | | // title: "éæ±åå·è¡å·", |
| | | // type: "string", |
| | | // width: 110, |
| | | // align: "left", |
| | | // }, |
| | | // { |
| | | // field: "materialCode", |
| | | // title: "ç©æç¼ç ", |
| | | // type: "string", |
| | | // width: 110, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "drawingNo", |
| | | title: "å¾å·", |
| | | type: "string", |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "drawingNoVer", |
| | | title: "ææ¯ç¶æ", |
| | | type: "string", |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "productName", |
| | | // title: "产ååç§°", |
| | | // type: "string", |
| | | // width: 110, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "processCode", |
| | | title: "å·¥åç±»å", |
| | | bind: { key: "WorkTypes" }, |
| | | type: "string", |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "quantity", |
| | | title: "è®¡åæ°é", |
| | | type: "int", |
| | | width: 110, |
| | | require: true, |
| | | align: "left", |
| | | },{ |
| | | field: "finishNum", |
| | | title: "宿æ°é", |
| | | type: "int", |
| | | width: 110, |
| | | align: "left", |
| | | },{ |
| | | field: "area", |
| | | title: "æå®åºåº", |
| | | type: "string", |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "typeID", |
| | | // title: "è½®å代ç ", |
| | | // type: "string", |
| | | // width: 110, |
| | | // align: "left", |
| | | // }, |
| | | // { |
| | | // field: "stackNoRange", |
| | | // title: "æå
æ°é", |
| | | // type: "int", |
| | | // width: 110, |
| | | // align: "left", |
| | | // }, |
| | | // { |
| | | // field: "maxDiameterDiff", |
| | | // title: "è½®å¾åå·®", |
| | | // type: "decimal", |
| | | // width: 110, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "expectedStartTime", |
| | | title: "计åå¼å§æ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "expectedFinishTime", |
| | | title: "计å宿æ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "CreateTime", |
| | | title: "å建æ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "creator", |
| | | title: "å建è
", |
| | | type: "string", |
| | | width: 100, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "productDesc", |
| | | title: "产åæè¿°", |
| | | type: "string", |
| | | width: 180, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "FinishTime", |
| | | title: "宿æ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | ], |
| | | detail: { |
| | | cnName: "å·¥åæç»", |
| | | table: "dt_mes_detail", |
| | | columns: [ |
| | | { |
| | | field: "mes_detail_id", |
| | | title: "å·¥åæç»ID", |
| | | type: "guid", |
| | | width: 110, |
| | | hidden: true, |
| | | readonly: true, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "jobID", |
| | | title: "å·¥åç¼å·", |
| | | type: "string", |
| | | width: 110, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | { |
| | | field: "heatID", |
| | | title: "ç代å·", |
| | | type: "string", |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "billetID", |
| | | title: "é¢å¯å·", |
| | | type: "int", |
| | | width: 110, |
| | | require: true, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "SN", |
| | | title: "车轮SNå·", |
| | | type: "string", |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "heatBatchID", |
| | | title: "çå¤çæ¹æ¬¡", |
| | | type: "string", |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | // { |
| | | // field: "mes_headID", |
| | | // title: "å·¥å头表ID", |
| | | // type: "guid", |
| | | // width: 110, |
| | | // align: "left", |
| | | // }, |
| | | { |
| | | field: "Status", |
| | | title: "å·¥åç¶æ", |
| | | type: "string", |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "FinishTime", |
| | | title: "宿æ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | align: "left", |
| | | sort: true, |
| | | }, |
| | | ], |
| | | sortName: "jobID", |
| | | key: "mes_detail_id", |
| | | }, |
| | | }; |
| | | }, |
| | | }); |
| | | }; |
| | | export default vueParam; |
| | | </script> |