¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <div style="padding: 0 4px; border-top: 10px solid #eee"> |
| | | <h3> |
| | | <i class="ivu-icon ivu-icon-ios-information-circle-outline"></i>å·¥åæç» |
| | | </h3> |
| | | <div style="padding: 10px; background: white; padding-top: 0"> |
| | | <vol-table |
| | | ref="tableList" |
| | | :loadKey="true" |
| | | :columns="columns" |
| | | :pagination-hide="true" |
| | | :height="210" |
| | | :defaultLoadPage="false" |
| | | @loadBefore="loadBefore" |
| | | url="/api/dt_mes_head/getDetailPage" |
| | | :row-index="true" |
| | | :index="false" |
| | | ></vol-table> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import VolTable from "@/components/basic/VolTable.vue"; |
| | | export default { |
| | | components: { |
| | | VolTable, |
| | | }, |
| | | methods: { |
| | | loadBefore(params, callback) { |
| | | return callback(true); |
| | | }, |
| | | }, |
| | | data() { |
| | | return { |
| | | tableData: [], |
| | | //ä»çæç代ç sellorder2.vueé颿æç»é
ç½®å¤å¶è¿æ¥å°±è½ç¨ |
| | | 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: "Status", |
| | | title: "å·¥åç¶æ", |
| | | type: "string", |
| | | width: 110, |
| | | align: "left", |
| | | }, |
| | | { |
| | | field: "FinishTime", |
| | | title: "宿æ¶é´", |
| | | type: "datetime", |
| | | width: 150, |
| | | align: "left", |
| | | }, |
| | | ], |
| | | }; |
| | | }, |
| | | }; |
| | | </script> |
| | | <style scoped> |
| | | h3 { |
| | | font-weight: 500; |
| | | padding-left: 10px; |
| | | background: white; |
| | | margin-top: 8px; |
| | | padding-bottom: 5px; |
| | | } |
| | | </style> |
¶Ô±ÈÐÂÎļþ |
| | |
| | | <template> |
| | | <VolBox v-model="model" title="éæ©æ°æ®" :lazy="true" :height="530" :width="1100" :padding="10"> |
| | | <!-- 设置æ¥è¯¢æ¡ä»¶ --> |
| | | <div style="padding-bottom: 10px"> |
| | | <span style="margin-right: 20px">è¯·éæ©æ°æ®</span> |
| | | <el-input placeholder="å·¥åç¼å·" style="width: 200px" v-model="jobID" /> |
| | | <el-button type="primary" plain style="margin-left: 10px" icon="Search" @click="search">æç´¢</el-button> |
| | | </div> |
| | | <!-- vol-tableé
ç½®çè¿äºå±æ§è§VolTableç»ä»¶apiæä»¶ --> |
| | | <vol-table ref="mytable" :loadKey="true" :columns="columns" :pagination="pagination" :pagination-hide="false" |
| | | :max-height="380" :url="url" :index="true" :single="false" :defaultLoadPage="false" |
| | | @loadBefore="loadTableBefore"></vol-table> |
| | | <template #footer> |
| | | <div> |
| | | <el-button plain type="primary" @click="addRow">éæ©æ°æ®</el-button> |
| | | <el-button @click="model = false">å
³é</el-button> |
| | | </div> |
| | | </template> |
| | | </VolBox> |
| | | </template> |
| | | <script> |
| | | import VolBox from "@/components/basic/VolBox.vue"; |
| | | import VolTable from "@/components/basic/VolTable.vue"; |
| | | export default { |
| | | components: { |
| | | VolBox: VolBox, |
| | | VolTable: VolTable, |
| | | }, |
| | | data() { |
| | | return { |
| | | model: false, |
| | | jobID: "", |
| | | mes_headID:null, |
| | | //ä»åå°æ¥å£å è½½æ°æ®,è¿éçæ¥å£ç¨çæ¡æ¶èªå¸¦çæ¥è¯¢ï¼ä¹å¯ä»¥èªå®ä¹æ¥å£ï¼è§App_ExpertModelBody.vueä¸è°ç¨çåå°getSelectorDemoæ¹æ³ |
| | | url: "api/dt_mes_detail/getPageData", |
| | | 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, |
| | | }, |
| | | ], |
| | | pagination: {}, |
| | | row: {}, //æç»è¡¨éæ©çè¡ |
| | | }; |
| | | }, |
| | | methods: { |
| | | open(row) { |
| | | // this.row = row; |
| | | this.model = true; |
| | | //æå¼å¼¹åºæ¡æ¶ï¼å è½½tableæ°æ® |
| | | this.$nextTick(() => { |
| | | this.$refs.mytable.load(); |
| | | }); |
| | | }, |
| | | search() { |
| | | this.$refs.mytable.load(); |
| | | }, |
| | | addRow() { |
| | | var rows = this.$refs.mytable.getSelected(); |
| | | if (!rows || rows.length == 0) { |
| | | return this.$Message.error("è¯·éæ©è¡æ°æ®"); |
| | | } |
| | | |
| | | //ååæç»è¡¨è¡æ°æ®ï¼è§ææ¡£åç¶ç»ä»¶è°ç¨ä¸è·åæç»è¡¨è¡æ°æ®:http://v2.volcore.xyz/document/api |
| | | this.$emit('parentCall', $parent => { |
| | | |
| | | //è¿éå¯ä»¥åä¸ªå¤ææ¯å¦å·²ç»å卿ç»è¡¨ï¼æ¾å°ä¸åå¨çæ°æ® |
| | | // rows = rows.filter(c => { |
| | | // return !$parent.$refs.detail.rowData.some(r => { return r.xx == c.xx }) |
| | | // }); |
| | | |
| | | //çææ°ç对象 |
| | | rows = rows.map(c => { |
| | | return { |
| | | jobID: c.jobID, |
| | | heatID: c.heatID, |
| | | billetID: c.billetID, |
| | | SN: c.SN, |
| | | heatBatchID:c.heatBatchID |
| | | } |
| | | }) |
| | | |
| | | //å¯ä»¥æ¸
空æç»è¡¨æ°æ® |
| | | //$parent.$refs.detail.rowData.splice(0); |
| | | //ååå°æç»è¡¨æ ¼ |
| | | $parent.$refs.detail.rowData.unshift(...rows); |
| | | }) |
| | | this.model = false; |
| | | }, |
| | | loadTableBefore(params) { |
| | | //æ¥è¯¢åï¼è®¾ç½®æ¥è¯¢æ¡ä»¶ |
| | | params.wheres = [ |
| | | { name: "jobID", value: this.jobID, displayType: "like" }, |
| | | { name: "mes_headID", value: this.mes_headID, displayType: "like" }, |
| | | ]; |
| | | return true; |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | **åå°æä½è§ï¼http://v2.volcore.xyz/document/netCoreDev |
| | | *****************************************************************************************/ |
| | | //æ¤jsæä»¶æ¯ç¨æ¥èªå®ä¹æ©å±ä¸å¡ä»£ç ï¼å¯ä»¥æ©å±ä¸äºèªå®ä¹é¡µé¢æè
éæ°é
ç½®çæç代ç |
| | | |
| | | import gridFooter from "./WorkOrderGridFooter.vue" |
| | | import modelBody from "./WorkOrderModelBody.vue" |
| | | let extension = { |
| | | components: { |
| | | //æ¥è¯¢ç颿©å±ç»ä»¶ |
| | | gridHeader: '', |
| | | gridBody: '', |
| | | gridFooter: '', |
| | | gridFooter: gridFooter, |
| | | //æ°å»ºãç¼è¾å¼¹åºæ¡æ©å±ç»ä»¶ |
| | | modelHeader: '', |
| | | modelBody: '', |
| | | modelBody: modelBody, |
| | | modelFooter: '' |
| | | }, |
| | | tableAction: '', //æå®æå¼ 表çæé(è¿éå¡«å表å,é»è®¤ä¸ç¨å¡«å) |
| | |
| | | methods: { |
| | | //ä¸é¢è¿äºæ¹æ³å¯ä»¥ä¿çä¹å¯ä»¥å é¤ |
| | | onInit() { //æ¡æ¶åå§åé
ç½®åï¼ |
| | | //ç¹å»åå
æ ¼ç¼è¾ä¸ç»æç¼è¾(é»è®¤æ¯ç¹å»åå
æ ¼ç¼è¾ï¼é¼ æ 离å¼ç»æç¼è¾) |
| | | this.detailOptions.clickEdit = true; |
| | | //设置主表å计 |
| | | this.summary = true; |
| | | //示ä¾ï¼å¨æé®çæå颿·»å ä¸ä¸ªæé® |
| | | // this.buttons.unshift({ //ä¹å¯ä»¥ç¨pushæè
spliceæ¹æ³æ¥ä¿®æ¹buttonsæ°ç» |
| | | // name: 'æé®', //æé®åç§° |
| | |
| | | // this.boxOptions.labelWidth = 150; |
| | | }, |
| | | onInited() { |
| | | //è°æ´çé¢tableé«åº¦ |
| | | this.height = this.height - 310; |
| | | this.detailOptions.buttons.unshift({ |
| | | 'name': 'éæ©æ°æ®', |
| | | icon: "el-icon-plus", |
| | | onClick: () => { |
| | | this.$refs.modelBody.open(); |
| | | } |
| | | }) |
| | | //æ¡æ¶åå§åé
ç½®å |
| | | //妿è¦é
ç½®æç»è¡¨,卿¤æ¹æ³æä½ |
| | | //this.detailOptions.columns.forEach(column=>{ }); |
| | |
| | | //è¿åfalseï¼åä¸ä¼æ§è¡æ¥è¯¢ |
| | | return true; |
| | | }, |
| | | searchAfter(result) { |
| | | searchAfter(rows) { |
| | | //æ¥è¯¢åï¼resultè¿åçæ¥è¯¢æ°æ®,å¯ä»¥å¨æ¾ç¤ºå°è¡¨æ ¼åå¤çè¡¨æ ¼çå¼ |
| | | if (rows.length) { |
| | | // this.$nextTick(() => { |
| | | this.$refs.gridFooter.$refs.tableList.load({ value: rows[0].mes_id }) |
| | | // }) |
| | | } else { |
| | | //æ²¡ææ°æ®æ¶ï¼æ¸
空æç»æ°æ® |
| | | this.$refs.gridFooter.$refs.tableList.rowData.splice(0) |
| | | } |
| | | return true; |
| | | }, |
| | | addBefore(formData) { |
| | |
| | | return true; |
| | | }, |
| | | rowClick({ row, column, event }) { |
| | | //æ¥è¯¢çé¢ç¹å»è¡äºä»¶ |
| | | // this.$refs.table.$refs.table.toggleRowSelection(row); //åå»è¡æ¶éä¸å½åè¡; |
| | | //åæ¶å
¶ä»è¡éä¸ |
| | | this.$refs.table.$refs.table.clearSelection(); |
| | | //设置éä¸å½åè¡ |
| | | this.$refs.table.$refs.table.toggleRowSelection(row); |
| | | if (this.$refs.gridFooter && this.$refs.gridFooter.$refs.tableList) { |
| | | //loadæ¹æ³å¯åç
§voltableç»ä»¶apiææ¡£ |
| | | this.$refs.gridFooter.$refs.tableList.load({ value: row.mes_id }) |
| | | } |
| | | }, |
| | | modelOpenAfter(row) { |
| | | //ç¹å»ç¼è¾ãæ°å»ºæé®å¼¹åºæ¡åï¼å¯ä»¥å¨æ¤å¤åé»è¾ï¼å¦ï¼ä»åå°è·åæ°æ® |
| | |
| | | *ä¸å¡è¯·å¨@/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> |
| | |
| | | /// </summary> |
| | | /// <param name="pageData"></param> |
| | | /// <param name="propertyInfo"></param> |
| | | private Dictionary<string, QueryOrderBy> GetPageDataSort(PageDataOptions pageData, PropertyInfo[] propertyInfo) |
| | | public Dictionary<string, QueryOrderBy> GetPageDataSort(PageDataOptions pageData, PropertyInfo[] propertyInfo) |
| | | { |
| | | if (base.OrderByExpression != null) |
| | | { |
| | |
| | | |
| | | namespace WIDESEA_Entity.DomainModels |
| | | { |
| | | [Entity(TableCnName = "å·¥å详ç»ä¿¡æ¯", TableName = "dt_mes_detail")] |
| | | [Table("dt_mes_detail")] |
| | | [Entity(TableCnName = "å·¥åæç»", TableName = "dt_mes_detail")] |
| | | public partial class dt_mes_detail : BaseEntity |
| | | { |
| | | /// <summary> |
| | |
| | | [Display(Name = "mes_headID")] |
| | | [Column(TypeName = "uniqueidentifier")] |
| | | [Required(AllowEmptyStrings = false)] |
| | | public Guid mes_headID { get; set; } |
| | | public Guid mes_id { get; set; } |
| | | |
| | | /// <summary> |
| | | ///å·¥ååå· |
| | |
| | | |
| | | namespace WIDESEA_Entity.DomainModels |
| | | { |
| | | [Entity(TableCnName = "å·¥åä¿¡æ¯", TableName = "dt_mes_head")] |
| | | [Table("dt_mes_head")] |
| | | [Entity(TableCnName = "å·¥åä¿¡æ¯", TableName = "dt_mes_head", DetailTable = new Type[] { typeof(dt_mes_detail) }, DetailTableCnName = "å·¥åæç»")] |
| | | public partial class dt_mes_head : BaseEntity |
| | | { |
| | | |
| | |
| | | [Editable(true)] |
| | | public string typeID { get; set; } |
| | | |
| | | /// <summary> |
| | | ///æå
æ°é |
| | | /// </summary> |
| | | [Display(Name = "æå
æ°é")] |
| | | [Column(TypeName = "int")] |
| | | [Editable(true)] |
| | | public int? stackNoRange { get; set; } |
| | | |
| | | /// <summary> |
| | | ///è½®å¾åå·® |
| | |
| | | [Column(TypeName = "nvarchar(15)")] |
| | | public string area { get; set; } |
| | | |
| | | /// <summary> |
| | | ///è§è§æ£æµè®¾å¤1 |
| | | /// </summary> |
| | | [Display(Name = "è§è§æ£æµè®¾å¤1")] |
| | | [Column(TypeName = "bit")] |
| | | [Editable(true)] |
| | | public bool skip_op_1 { get; set; } |
| | | |
| | | /// <summary> |
| | | ///è§è§æ£æµè®¾å¤2 |
| | | /// </summary> |
| | | [Display(Name = "è§è§æ£æµè®¾å¤2")] |
| | | [Column(TypeName = "bit")] |
| | | [Editable(true)] |
| | | public bool skip_op_2 { get; set; } |
| | | |
| | | /// <summary> |
| | | ///龿¡æº |
| | | /// </summary> |
| | | [Display(Name = "龿¡æº")] |
| | | [Column(TypeName = "bit")] |
| | | |
| | | [Editable(true)] |
| | | public bool skip_op_3 { get; set; } |
| | | |
| | | /// <summary> |
| | | ///AGV宿æ°é |
| | |
| | | //client.WriteByOrder("W_i_sourceheat", "", name); |
| | | client.WriteByOrder("W_i_batch_id", Mes_Work.heatBatchID, name); |
| | | |
| | | //å±è½å·¥èº(å±è½è§è§æ£æµ/å±è½æ¶æ²¹) |
| | | if (name != "è¾é䏿æ¥è¯¢è®¢å") |
| | | { |
| | | client.WriteByOrder("W_i_skip_op_SJ1", name == "3åå
è¾é䏿æ¥è¯¢è®¢å" ? true : mes_Head.skip_op_1, name);//å±è½è§è§æ£æµè®¾å¤1 |
| | | client.WriteByOrder("W_i_skip_op_SJ2", name == "3åå
è¾é䏿æ¥è¯¢è®¢å" ? true : mes_Head.skip_op_2, name);//å±è½è§è§æ£æµè®¾å¤2 |
| | | client.WriteByOrder("W_i_skip_op_LT", mes_Head.skip_op_3, name);//å±è½é¾æ¡æº |
| | | } |
| | | client.WriteByOrder("R_oi_on", (byte)0, name); |
| | | #region æ¥å¿è®°å½ |
| | | WriteLog.Write_Log(name, wp_id, "åå
¥ä¿¡æ¯ï¼", $"è¯»åæ¡æ¶ä¿¡æ¯ï¼\n车轮SNï¼{wp_id}\nè½®åIDï¼{wp_type}\n\nåå
¥æ¡æ¶ä¿¡æ¯ï¼\nW_i_statusï¼1" + |
| | | $"\nW_i_job_idï¼{Mes_Work.jobID}\nW_i_drawing_idï¼{Mes_Work.drawingNo}\nW_i_heat_idï¼{Mes_Work.heatID}\nW_i_batch_idï¼{Mes_Work.heatBatchID}" + |
| | | $"\nW_i_skip_op_SJ1ï¼{(name == "3åå
è¾é䏿æ¥è¯¢è®¢å" ? true : mes_Head.skip_op_1)}\nW_i_skip_op_SJ2ï¼{(name == "3åå
è¾é䏿æ¥è¯¢è®¢å" ? true : mes_Head.skip_op_2)}" + |
| | | $"\nW_i_skip_op_LTï¼{mes_Head.skip_op_3}\nR_oi_onï¼0"); |
| | | $"\nW_i_job_idï¼{Mes_Work.jobID}\nW_i_drawing_idï¼{Mes_Work.drawingNo}\nW_i_heat_idï¼{Mes_Work.heatID}\nW_i_batch_idï¼{Mes_Work.heatBatchID}"); |
| | | #endregion |
| | | } |
| | | } |
| | |
| | | heatID = mes_Detail.heatID, |
| | | jobID = mes_Detail.jobID, |
| | | mes_detail_id = mes_Detail.mes_detail_id, |
| | | mes_headID = mes_Detail.mes_headID, |
| | | mes_headID = mes_Detail.mes_id, |
| | | operatetype = string.IsNullOrEmpty(mes_Detail.Status) ? "è¶
æ¶æ¸
ç" : operatetype, |
| | | SN = mes_Detail.SN, |
| | | Status = mes_Detail.Status, |
| | |
| | | operatetype = operatetype, |
| | | processCode = mes_Head.processCode, |
| | | mes_id = mes_Head.mes_id, |
| | | skip_op_1 = mes_Head.skip_op_1, |
| | | skip_op_2 = mes_Head.skip_op_2, |
| | | skip_op_3 = mes_Head.skip_op_3, |
| | | stackNoRange = mes_Head.stackNoRange, |
| | | productDesc = mes_Head.productDesc, |
| | | productName = mes_Head.productName, |
| | | reqID = mes_Head.reqID, |
| | |
| | | using WIDESEA_Core.ManageUser; |
| | | using WIDESEA_Comm.LogInfo; |
| | | using System.Collections.Generic; |
| | | using WIDESEA_Core.Enums; |
| | | using WIDESEA_WCS.Repositories; |
| | | |
| | | namespace WIDESEA_WCS.Services |
| | | { |
| | | public partial class dt_mes_headService |
| | | { |
| | | WebResponseContent webResponse = new WebResponseContent(); |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | private readonly Idt_mes_headRepository _repository;//è®¿é®æ°æ®åº |
| | | |
| | |
| | | //å¤ç§æ·ä¼ç¨å°è¿init代ç ï¼å
¶ä»æ
åµå¯ä»¥ä¸ç¨ |
| | | //base.Init(dbRepository); |
| | | } |
| | | public override object GetDetailPage(PageDataOptions pageData) |
| | | { |
| | | pageData.Sort = pageData.Sort ?? typeof(dt_mes_detail).GetKeyName(); |
| | | Dictionary<string, QueryOrderBy> orderBy = GetPageDataSort(pageData, typeof(dt_mes_detail).GetProperties()); |
| | | ////æç»è¡¨èªå®ä¹æ¥è¯¢æ¹å¼ä¸ï¼EF |
| | | var query = dt_mes_detailRepository.Instance.IQueryablePage<dt_mes_detail>( |
| | | pageData.Page, |
| | | pageData.Rows, |
| | | out int count, |
| | | x => x.mes_id == pageData.Value.GetGuid(), |
| | | orderBy: x => new Dictionary<object, QueryOrderBy>() { { x.heatID, QueryOrderBy.Desc } } |
| | | ); |
| | | PageGridData<dt_mes_detail> detailGrid = new PageGridData<dt_mes_detail>(); |
| | | detailGrid.rows = query.GetIQueryableOrderBy(orderBy).ToList(); |
| | | detailGrid.total = count; |
| | | |
| | | return detailGrid; |
| | | } |
| | | /// <summary> |
| | | /// åæ¶å·¥ååºåºå¤å |
| | | /// </summary> |
| | |
| | | quantity = workInfo.quantity, |
| | | reqID = workInfo.reqID, |
| | | reqIDLineNo = workInfo.reqIDLineNo, |
| | | stackNoRange = 5, |
| | | //stackNoRange = workInfo.stackNoRange, |
| | | typeID = workInfo.typeID, |
| | | workOrder = workInfo.workOrder, |
| | | processCode = workInfo.processCode, |
| | | finishNum = 0, |
| | | skip_op_1 = false, |
| | | skip_op_2 = false, |
| | | skip_op_3 = false, |
| | | }; |
| | | freeDB.Add(mes_Head); |
| | | |
| | |
| | | dt_mes_detail mes_Detail = new dt_mes_detail |
| | | { |
| | | mes_detail_id = Guid.NewGuid(), |
| | | mes_headID = head, |
| | | mes_id = head, |
| | | jobID = item.jobID, |
| | | billetID = item.billetID, |
| | | heatBatchID = item.heatBatchID, |
| | |
| | | "Connection": { |
| | | "DBType": "MsSql", //MySql/MsSql/PgSql //æ°æ®åºç±»åï¼å¦æä½¿ç¨çæ¯sqlserveræ¤å¤åºè®¾ç½®ä¸ºMsSql |
| | | //sqlserverè¿æ¥å符串P@ssw0rd |
| | | "DbConnectionString": "Data Source=192.168.12.101;Initial Catalog=WIDESEA_DB;Persist Security Info=True;User ID=sa;Password=123456;Connect Timeout=500;", |
| | | //"DbConnectionString": "Data Source=.;Initial Catalog=WIDESEA_DB_TY_TY;Persist Security Info=True;User ID=sa;Password=123456;Connect Timeout=500;", |
| | | //"DbConnectionString": "Data Source=192.168.12.101;Initial Catalog=WIDESEA_DB;Persist Security Info=True;User ID=sa;Password=123456;Connect Timeout=500;", |
| | | "DbConnectionString": "Data Source=.;Initial Catalog=WIDESEA_DB_TY_TY;Persist Security Info=True;User ID=sa;Password=P@ssw0rd;Connect Timeout=500;", |
| | | |
| | | //mysqlè¿æ¥å符串(å级EFCore3.1å°æ¶å·²å°mysqlè¿æ¥å符串修æ¹,2019-12-20) |
| | | // "DbConnectionString": " Data Source=127.0.0.1;Database=netcoredev;AllowLoadLocalInfile=true;User ID=root;Password=123456;allowPublicKeyRetrieval=true;pooling=true;CharSet=utf8;port=3306;sslmode=none;", |