1 line
26 KiB
JavaScript
1 line
26 KiB
JavaScript
|
webpackJsonp([146],{"V7/5":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("BO1k"),n=a.n(s),o=a("d7EF"),r=a.n(o),i=a("//Fk"),l=a.n(i),c=a("mvHQ"),p=a.n(c),d=a("GKmE"),u=a("bzuE"),h=a("OG67"),m=a("lbHh"),g=a.n(m),f={components:{dialogChooseSingleParts:h.a},name:"production_planManagement",data:function(){return{concatList:[],concatListVisible:!1,chooseMaterielVisible:!1,planList:[],drawerTitle:"工序明细",total:0,total_drawer:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,proName:"",deptId:"",startTime:"",endTime:"",status:""},planCountTotal:0,drawer:!1,drawerLoading:!1,btnDelDisabled:!0,btnOtherDisabled:!0,rowIds:[],tableData:[],bodyList:[],depOptions:[],selectDeptId:"",producePlan:{},config:u.a,search_data_drawer:{pageno:1,pagesize:10,planId:""},columnSetDialogVisible:!1,columnSetDialogTitle:"设置显示字段列表",tableId:"planManagement_working_procedure_table",pictLoading:!1,showTableColumnsDefault:[{title:"工序计划单编号",prop_:"planNo",select:!0},{title:"单据状态",prop_:"planStatusName",select:!0},{title:"下达人",prop_:"audituserName",select:!0},{title:"客户",prop_:"clientName",select:!0},{title:"交货期",prop_:"deliveryDate",select:!0},{title:"产品代码",prop_:"materialSerialNo",select:!0},{title:"产品名称",prop_:"materialName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"主计量单位",prop_:"unitUomName",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"主单位数量",prop_:"planCount",select:!0},{title:"计划生产数量",prop_:"planCountSupport",select:!0},{title:"生产计划单号",prop_:"productionPlanNo",select:!0}],showTableColumns:[{title:"工序计划单编号",prop_:"planNo",select:!0},{title:"单据状态",prop_:"planStatusName",select:!0},{title:"下达人",prop_:"audituserName",select:!0},{title:"客户",prop_:"clientName",select:!0},{title:"交货期",prop_:"deliveryDate",select:!0},{title:"产品代码",prop_:"materialSerialNo",select:!0},{title:"产品名称",prop_:"materialName",select:!0},{title:"规格型号",prop_:"specification",select:!0},{title:"主计量单位",prop_:"unitUomName",select:!0},{title:"辅助单位",prop_:"supportUomName",select:!0},{title:"主单位数量",prop_:"planCount",select:!0},{title:"计划生产数量",prop_:"planCountSupport",select:!0},{title:"生产计划单号",prop_:"productionPlanNo",select:!0}],showTableColumnsTemp:[],formTableData:[],userInfo:{}}},created:function(){this.initData(),this.getList();var e=this;document.onkeydown=function(t){"Enter"===t.key&&e.search()}},beforeRouteLeave:function(e,t,a){this.drawer=!1,a()},mounted:function(){this.userInfo=JSON.parse(g.a.get("userInfo")),this.showTableColumns=JSON.parse(p()(this.showTableColumns)),this.showTableColumnsTemp=JSON.parse(p()(this.showTableColumns)),this.getShowColumns()},methods:{showColumnSetDialog:function(){this.columnSetDialogVisible=!0,this.showTableColumnsTemp=JSON.parse(p()(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(p()(this.showTableColumnsDefault)),this.$forceUpdate()},saveAndCloseColumnSetDialog:function(){var e=this,t=this.tableId,a=p()(this.showTableColumns);this.columnSetDialogVisible=!1,this.$api.tableColumnAPI.saveShowColumns({tableNo:t,tableColumns:a}).then(function(t){var a=JSON.parse(p()(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)}
|