1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
|
webpackJsonp([374],{DT2Q:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("BO1k"),o=a.n(s),i=a("mvHQ"),r=a.n(i),l=a("GKmE"),n=a("bzuE"),c=a("ysqt"),h=a("o4dX"),u=a("G9gL"),d=a("S4un"),p={components:{btnInput:c.a,dialogChooseSingleUsers:h.a,dialogChooseSingleDevice:u.a,dialogChooseSingleProcess:d.a},name:"start_work_list",data:function(){return{advanceQueryDialogVisible:!1,formData:{},total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,sign:0},btnDelDisabled:!0,btnOtherDisabled:!0,rowIds:[],config:n.a,tableData:[],totalManHour:0,chooseUserVisible:!1,chooseDevicesVisible:!1,chooseProcessVisible:!1,columnSetDialogVisible:!1,columnSetDialogTitle:"设置显示字段列表",tableId:"jobShop_put_up_work_table",pictLoading:!1,showTableColumnsDefault:[{title:"派工单号",prop_:"code",select:!0},{title:"工序计划单号",prop_:"workOrderNo",select:!0},{title:"工序名",prop_:"processName",select:!0},{title:"工序类型",prop_:"typeName",select:!0},{title:"挂起人",prop_:"startHangName",select:!0},{title:"挂起原因",prop_:"pendingReason",select:!0},{title:"挂起开始时间",prop_:"startTime",select:!0},{title:"挂起结束时间",prop_:"hungTime",select:!0},{title:"挂起时长(小时)",prop_:"manHour",select:!0},{title:"操作工",prop_:"operatorName",select:!0},{title:"生产设备",prop_:"deviceName",select:!0}],showTableColumns:[{title:"派工单号",prop_:"code",select:!0},{title:"工序计划单号",prop_:"workOrderNo",select:!0},{title:"工序名",prop_:"processName",select:!0},{title:"工序类型",prop_:"typeName",select:!0},{title:"挂起人",prop_:"startHangName",select:!0},{title:"挂起原因",prop_:"pendingReason",select:!0},{title:"挂起开始时间",prop_:"startTime",select:!0},{title:"挂起结束时间",prop_:"hungTime",select:!0},{title:"挂起时长(小时)",prop_:"manHour",select:!0},{title:"操作工",prop_:"operatorName",select:!0},{title:"生产设备",prop_:"deviceName",select:!0}],showTableColumnsTemp:[],formTableData:[]}},created:function(){this.initData(),this.getList();var e=this;document.onkeydown=function(t){"Enter"===t.key&&e.search()}},mounted:function(){this.showTableColumns=JSON.parse(r()(this.showTableColumns)),this.showTableColumnsTemp=JSON.parse(r()(this.showTableColumns)),this.getShowColumns()},methods:{showColumnSetDialog:function(){this.columnSetDialogVisible=!0,this.showTableColumnsTemp=JSON.parse(r()(this.showTableColumns))},toUp:function(e){if(0==e.$index)return!1;for(var t=void 0,a=0;a<this.showTableColumns.length;a++)this.showTableColumns[a].prop_==e.row.prop_&&(t=a);var s=this.showTableColumns[t];this.showTableColumns[t]=this.showTableColumns[t-1],this.showTableColumns[t-1]=s,this.$forceUpdate()},toDown:function(e){if(e.$index==this.showTableColumns.length-1)return!1;for(var t=void 0,a=0;a<this.showTableColumns.length;a++)this.showTableColumns[a].prop_==e.row.prop_&&(t=a);var s=this.showTableColumns[t];this.showTableColumns[t]=this.showTableColumns[t+1],this.showTableColumns[t+1]=s,this.$forceUpdate()},toDefault:function(){this.showTableColumns=JSON.parse(r()(this.showTableColumnsDefault)),this.$forceUpdate()},saveAndCloseColumnSetDialog:function(){var e=this,t=this.tableId,a=r()(this.showTableColumns);this.columnSetDialogVisible=!1,this.$api.tableColumnAPI.saveShowColumns({tableNo:t,tableColumns:a}).then(function(t){var a=JSON.parse(r()(e.showTableColumns));e.formTableData=[];for(var s=0;s<a.length;s++)a[s].select&&e.formTableData.push(a[s])}).catch(function(e){console.log(e)})},handleClose:function(){this.showTableColumns=JSON.parse(r()(this.showTableColumnsTemp)),this.columnSetDialogVisible=!1},getShowColumns:function(){var e=this,t=this.tableId;this.formTableData=[],this.$api.tableColumnAPI.getShowColumns({tableNo:t}).then(function(t){if(0==t.code)if(t.results){e.showTableColumns=JSON.parse(t.results);for(var a=JSON.parse(r()(e.showTableColumns)),s=0;s<a.length;s++)a[s].select&&e.formTableData.push(a[s]);e.$forceUpdate()}else{for(var o=JSON.parse(r()(e.showTableColumnsDefault)),i=0;i<o.length;i++)o[i].select&&e.
|