webpackJsonp([442],{"+BFS":function(t,e,a){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=a("d7EF"),n=a.n(i),s=a("//Fk"),o=a.n(s),r=a("BO1k"),l=a.n(r),c=a("mvHQ"),p=a.n(c),u=a("GKmE"),d=a("bzuE"),h=a("ysqt"),m=a("OG67"),f=a("iGlD"),g=a("UoGq"),v=a("S8x/"),b=(a("TExn"),{name:"",props:{printDetail:{type:Object,default:{}},printList:{type:Array,default:[]},printForm:{type:Array,default:[]},printTotal:{}},data:function(){return{config:d.a,pageHeight:"",pageWidth:"",list1_last_page_height:0}},component:{},mounted:function(){this.printDirection?(this.pageHeight=this.config.printHeightDirection0,this.pageWidth=this.config.printWidthDirection0):(this.pageHeight=this.config.printHeightDirection1,this.pageWidth=this.config.printWidthDirection1)},watch:{printList:{handler:function(t,e){Object(v.a)(t,this.printForm,this.printTotal,this.printDirection)},deep:!0}}}),_={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"print_content",style:{width:t.pageWidth+"px"}},[t._m(0),t._v(" "),a("div",{staticClass:"footer_out"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:5}},[t._v("制单人:"+t._s(t.printDetail.createByName))]),t._v(" "),a("el-col",{attrs:{span:7}},[t._v("制单时间:"+t._s(t.printDetail.createTimePrint))]),t._v(" "),a("el-col",{attrs:{span:5}},[t._v("车间主任:")]),t._v(" "),a("el-col",{attrs:{span:7}},[t._v("审批时间:")])],1)],1)])},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"print_top"},[e("div",{staticClass:"head_out"},[e("h1",{staticStyle:{"text-align":"center"}},[this._v("生产计划")])]),this._v(" "),e("div",{staticClass:"table_content"})])}]},y=a("VU/8")(b,_,!1,null,null,null).exports,w=a("lbHh"),C=a.n(w),D={components:{btnInput:h.a,dialogChooseSingleParts:m.a,dialogChooseSingleClient:f.a,ExcelImport:g.a,printPlans:y},name:"production_planManagement",data:function(){return{formData:{},advanceQueryDialogVisible:!1,total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10,clientName:"",proName:"",deptId:"",status:"",startTime:"",endTime:""},pictLoading:!1,btnDelDisabled:!0,btnOtherDisabled:!0,rowIds:[],tableData:[],chooseUserVisible:!1,planList:[],depOptions:[],selectDeptId:"",chooseMaterielVisible:!1,chooseClientVisible:!1,producePlan:{},planCounts:0,planCountSupports:0,config:d.a,producePlanVisible:!1,columnSetDialogVisible:!1,columnSetDialogTitle:"设置显示字段列表",tableId:"planManagement_productuion_table",showTableColumnsDefault:[{title:"生产计划单号",prop_:"planNo",select:!0},{title:"单据状态",prop_:"planStatusName",select:!0},{title:"下达人",prop_:"auditorName",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_:"batchNo",select:!0},{title:"计划开工日期",prop_:"planStartTime",select:!0},{title:"计划完工日期",prop_:"planEndTime",select:!0},{title:"BOM单号",prop_:"bomSerialno",select:!0},{title:"BOM版本",prop_:"bomVersion",select:!0},{title:"工艺编号",prop_:"tecRouteCode",select:!0},{title:"工艺版本",prop_:"tecRouteVersion",select:!0},{title:"制单日期",prop_:"createTime",select:!0},{title:"下达时间",prop_:"giveTime",select:!0},{title:"结案时间",prop_:"actualFinishTime",select:!0},{title:"源单类型",prop_:"sourceTypeName",select:!0},{title:"源单号",prop_:"sourceNo",select:!0},{title:"客户名称",prop_:"clientName",select:!0}],showTableColumns:[{title:"生产计划单号",prop_:"planNo",select:!0},{title:"单据状态",prop_:"planStatusName",select:!0},{title:"下达人",prop_:"auditorName",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_:"batchNo",select:!0},{title:"计划开工日期",prop_:"planStartTime",select:!0},{title:"计划完工日期",prop_:"planEndTime",select:!0},{title:"BOM单号",prop_:"bomSerialno",select:!0},{title:"BOM版本",prop_:"bomVersion",select:!0},{title:"工艺编号",prop_:"tecRouteCode",select:!0},{title:"工艺版本",prop_:"tecRouteVersion",select:!0},{title:"制单日期",prop_:"createTime",select:!0},{title:"下达时间",prop_:"giveTime",select:!0},{title:"结案时间",prop_:"actualFinishTime",select:!0},{title:"源单类型",prop_:"sourceTypeName",select:!0},{title:"源单号",prop_:"sourceNo",select:!0},{title:"客户名称",prop_:"clientName",select:!0}],showTableColumnsTemp:[],formTableData:[],printTotal:{count:"",amount:""},printList:[],printDetail:{createByName:"",createTimePrint:""},printForm:[{title:"产品代码",prop_:"materialSerialNo"},{title:"产品名称",prop_:"materialName"},{title:"规格",prop_:"specification"},{title:"主计量单位",prop_:"unitUomName"},{title:"计划生产数量",prop_:"planCount"},{title:"生产部门",prop_:"proDeptName"},{title:"批号",prop_:"batchNo"},{title:"生产计划单号",prop_:"planNo"},{title:"计划开工日期",prop_:"planStartTime"},{title:"计划完工日期",prop_:"planEndTime"}],userInfo:{}}},created:function(){this.initData(),this.getList();var t=this;document.onkeydown=function(e){"Enter"===e.key&&t.search()}},mounted:function(){this.userInfo=JSON.parse(C.a.get("userInfo")),this.showTableColumns=JSON.parse(p()(this.showTableColumns)),this.showTableColumnsTemp=JSON.parse(p()(this.showTableColumns)),this.getShowColumns()},methods:{print:function(){document.getElementById("print_content").style.display="block",this.printList=JSON.parse(p()(this.printList)),this.$nextTick(function(){var t=document.getElementById("print_content").innerHTML;return document.body.innerHTML="打印"+t+"",window.print(),window.location.reload(),!1})},showColumnSetDialog:function(){this.columnSetDialogVisible=!0,this.showTableColumnsTemp=JSON.parse(p()(this.showTableColumns))},toUp:function(t){if(0==t.$index)return!1;for(var e=void 0,a=0;a2&&void 0!==arguments[2]?arguments[2]:[];if(!t)return[];var i=!0,n=!1,s=void 0;try{for(var o,r=l()(t);!(i=(o=r.next()).done);i=!0){var c=o.value;if(a.push(c.id),e(c))return a;if(c.children){var p=this.treeFindPath(c.children,e,a);if(p.length)return p}a.pop()}}catch(t){n=!0,s=t}finally{try{!i&&r.return&&r.return()}finally{if(n)throw s}}return[]},setDeptList:function(t){var e=!0,a=!1,i=void 0;try{for(var n,s=l()(t);!(e=(n=s.next()).done);e=!0){var o=n.value;o.hasChildren?this.setDeptList(o.children):o.children=void 0}}catch(t){a=!0,i=t}finally{try{!e&&s.return&&s.return()}finally{if(a)throw i}}},setDefaultDept:function(){if(this.depOptions.length>0&&this.search_data.deptId){var t=p()(this.search_data.deptId),e=this.treeFindPath(this.depOptions,function(e){return e.id===t});this.selectDeptId=JSON.parse(p()(e))}},handleChange:function(t){this.search_data.deptId=t.length>0?t[t.length-1]:"",this.selectDeptId=t},initData:function(){var t=this;o.a.all([this.$api.dictAPI.getDictsByType("plan_type"),this.$api.commonAPI.getDeptsTree()]).then(function(e){var a=n()(e,3),i=a[0],s=a[1];a[2];0===i.code&&(t.planList=i.datas),0===s.code&&(t.depOptions=s.data.children,t.setDefaultDept(),t.setDeptList(t.depOptions))}).catch(function(t){console.log(t)})},clickRow:function(t){this.$refs.tb.toggleRowSelection(t)},getPart:function(t){t?this.$set(this.search_data,"proName",t.name):this.$set(this.search_data,"proName","")},getClient:function(t){t?this.$set(this.formData,"clientName",t.client_name):this.$set(this.formData,"clientName","")},getList:function(){var t=this;this.pictLoading=!0,this.search_data.time?(this.search_data.startTime=Object(u.b)(this.search_data.time[0]),this.search_data.endTime=Object(u.b)(this.search_data.time[1])):(this.search_data.startTime="",this.search_data.endTime=""),this.$api.planManagementAPI.productionList(this.search_data).then(function(e){t.pictLoading=!1,e.data?(t.total=e.data.totalRows,t.planCounts=e.count.planCounts,t.planCountSupports=e.count.planCountSupports,t.tableData=e.data.datas?e.data.datas:[],t.tableData.forEach(function(t){t.createTime=t.createTime.substr(0,10),t.deliveryDate=t.deliveryDate.substr(0,10),t.planStartTime=t.planStartTime.substr(0,10),t.planEndTime=t.planEndTime.substr(0,10)}),t.printList=t.tableData,t.printDetail.createByName=C.a.get("userName"),t.printDetail.createTimePrint=Object(u.i)(new Date,"{y}-{m}-{d}")):(t.total=0,t.tableData=[])}).catch(function(e){t.pictLoading=!1,console.log(e)})},search:function(){this.search_data.pageno=1,this.getList()},handleCurrentChange:function(t){this.search_data.pageno=t,this.getList()},handleSizeChange:function(t){this.search_data.pagesize=t,this.getList()},add:function(){this.$router.push({path:"/planManagement/production_add",query:{t:Date.now()}})},viewDetail:function(t){this.$router.push({path:"/planManagement/production_add",query:{id:t.id,t:Date.now()}})},viewDetailOne:function(t){this.$router.push({path:"/sales/salesContract_detail",query:{id:t.id,t:Date.now()}})},remove:function(){var t=this,e=[];this.rowIds.forEach(function(t){e.push(t.id)});this.$confirm("确认删除选中的生产计划吗?","提示",{type:"warning"}).then(function(){t.$api.planManagementAPI.productionPlanBatchRemove({ids:e}).then(function(e){0===e.code?(t.$message({message:e.msg,type:"success"}),t.getList()):t.$message({message:e.msg?e.msg:"删除失败,请重试",type:"error"})}).catch(function(e){t.$message({message:"删除失败,请重试",type:"error"})})})},give:function(t){var e=this;console.log(this.userInfo);var a=this.rowIds[0],i=a.id,n=[];if(this.rowIds.forEach(function(t){n.push(t.id)}),0==t)this.$confirm("确认下达选中的生产计划吗?","提示",{type:"warning"}).then(function(){e.$api.planManagementAPI.batchIssuedPlan({ids:n}).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getList()):e.$message({message:t.msg?t.msg:"操作失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"操作失败,请重试",type:"error"})})});else if(1==t){if(a.auditorName!=this.userInfo.name)return void this.$message({message:"该项目无权限反下达",type:"error"});this.$confirm("确认反下达选中的生产计划吗?","提示",{type:"warning"}).then(function(){e.$api.planManagementAPI.productionPlanreverseIssuedPlan({id:i}).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getList()):e.$message({message:t.msg?t.msg:"操作失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"操作失败,请重试",type:"error"})})})}},putup:function(t){var e=this,a=this.rowIds[0].id;0==t?this.$confirm("确认挂起选中的生产计划吗?","提示",{type:"warning"}).then(function(){e.$api.planManagementAPI.productionPlanPutUpPlan({id:a}).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getList()):e.$message({message:t.msg?t.msg:"操作失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"操作失败,请重试",type:"error"})})}):1==t&&this.$confirm("确认反挂起选中的生产计划吗?","提示",{type:"warning"}).then(function(){e.$api.planManagementAPI.productionPlanReversePutUpPlan({id:a}).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getList()):e.$message({message:t.msg?t.msg:"操作失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"操作失败,请重试",type:"error"})})})},close:function(t){var e=this,a=this.rowIds[0].id,i=this;0==t?this.$confirm("确认结案选中的生产计划吗?","提示",{type:"warning"}).then(function(){e.$api.planManagementAPI.productionPlanCloseCase({id:a}).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getList()):1===t.code?e.$confirm(t.msg,"提示",{confirmButtonText:"查看工序计划详情",cancelButtonText:"取消",type:"warning"}).then(function(){for(var e in i.producePlanVisible=!0,i.producePlan=t.data.data,i.producePlan)null==i.producePlan[e]&&(i.producePlan[e]=0)}).catch(function(){}):e.$message({message:t.msg?t.msg:"操作失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"操作失败,请重试",type:"error"})})}):1==t&&this.$confirm("确认反结案选中的生产计划吗?","提示",{type:"warning"}).then(function(){e.$api.planManagementAPI.productionPlanReverseCloseCase({id:a}).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getList()):e.$message({message:t.msg?t.msg:"操作失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"操作失败,请重试",type:"error"})})})},alteration:function(){var t=this,e=this.rowIds[0],a=e.id;231==e.planStatus?this.$router.push({path:"/planManagement/production_add",query:{id:a,t:Date.now()}}):234==e.planStatus?this.$message({message:"结案状态不可以变更",type:"error"}):233==e.planStatus?this.$message({message:"挂起状态不可以变更",type:"error"}):232==e.planStatus&&this.$api.planManagementAPI.productionPlanisAlterationPlan({id:a}).then(function(e){0===e.code?t.$router.push({path:"/planManagement/production_add",query:{id:a,from:"alteration",t:Date.now()}}):t.$message({message:e.msg?e.msg:"操作失败,请重试",type:"error"})}).catch(function(e){t.$message({message:"操作失败,请重试",type:"error"})})},follow:function(){var t=this.rowIds[0],e=t.id;this.$router.push({path:"/planManagement/production_follow",query:{id:e,planNo:t.planNo,t:Date.now()}})},alterationRecord:function(){var t=this.rowIds[0].id;this.$router.push({path:"/planManagement/production_alteration",query:{id:t,t:Date.now()}})},handleSelectionChange:function(t){this.rowIds=t,this.setBtn(t)},setBtn:function(t){var e=!0,a=!0;t.length>0?(a=!1,1==t.length&&(e=!1)):(e=!0,a=!0),this.btnDelDisabled=a,this.btnOtherDisabled=e}}},T={render:function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"sys-task sys-box"},[a("div",{staticClass:"sys-operate sys-tabs"},[a("el-button",{directives:[{name:"has",rawName:"v-has",value:"plan:productionPlan:add",expression:"'plan:productionPlan:add'"}],staticStyle:{"margin-bottom":"5px"},attrs:{type:"primary"},on:{click:function(e){return t.add()}}},[t._v("新增\n ")]),t._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"plan:productionPlan:delete",expression:"'plan:productionPlan:delete'"}],attrs:{type:"primary",disabled:t.btnDelDisabled},on:{click:function(e){return t.remove()}}},[t._v("删除\n ")]),t._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"plan:productionPlan:give",expression:"'plan:productionPlan:give'"}],attrs:{type:"primary",disabled:t.btnDelDisabled},on:{click:function(e){return t.give(0)}}},[t._v("下达\n ")]),t._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"plan:productionPlan:reverseGive",expression:"'plan:productionPlan:reverseGive'"}],attrs:{type:"primary",disabled:t.btnOtherDisabled},on:{click:function(e){return t.give(1)}}},[t._v("\n 反下达\n ")]),t._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"plan:productionPlan:putUp",expression:"'plan:productionPlan:putUp'"}],attrs:{type:"primary",disabled:t.btnOtherDisabled},on:{click:function(e){return t.putup(0)}}},[t._v("挂起\n ")]),t._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"plan:productionPlan:reversePutUp",expression:"'plan:productionPlan:reversePutUp'"}],attrs:{type:"primary",disabled:t.btnOtherDisabled},on:{click:function(e){return t.putup(1)}}},[t._v("反挂起\n ")]),t._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"plan:productionPlan:close",expression:"'plan:productionPlan:close'"}],attrs:{type:"primary",disabled:t.btnOtherDisabled},on:{click:function(e){return t.close(0)}}},[t._v("结案\n ")]),t._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"plan:productionPlan:reverseClose",expression:"'plan:productionPlan:reverseClose'"}],attrs:{type:"primary",disabled:t.btnOtherDisabled},on:{click:function(e){return t.close(1)}}},[t._v("反结案\n ")]),t._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"plan:productionPlan:alteration",expression:"'plan:productionPlan:alteration'"}],attrs:{type:"primary",disabled:t.btnOtherDisabled},on:{click:function(e){return t.alteration()}}},[t._v("变更\n ")]),t._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"plan:productionPlan:follow",expression:"'plan:productionPlan:follow'"}],attrs:{type:"primary",disabled:t.btnOtherDisabled},on:{click:function(e){return t.follow()}}},[t._v("跟踪\n ")]),t._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"plan:productionPlan:alterationRecord",expression:"'plan:productionPlan:alterationRecord'"}],attrs:{type:"primary",disabled:t.btnOtherDisabled},on:{click:function(e){return t.alterationRecord()}}},[t._v("变更记录\n ")]),t._v(" "),a("ExcelImport",{attrs:{roleLink:"production:plan:import",tmpLink:"/static/muban/productionPlan.xlsx"},on:{finish:function(e){return t.getList()}}}),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.showColumnSetDialog}},[t._v(t._s(t.config.configureBtnName))]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.print()}}},[t._v("打印")])],1),t._v(" "),a("div",{staticClass:"sys-search"},[a("el-form",{staticClass:"form_item_search_out",attrs:{inline:""}},[a("div",{staticClass:"form_item_input_out"},[a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"34%"},attrs:{label:"日期"}},[a("el-date-picker",{attrs:{type:"daterange",format:"yyyy-MM-dd","range-separator":"—","start-placeholder":"开始日期","end-placeholder":"截止日期"},model:{value:t.search_data.time,callback:function(e){t.$set(t.search_data,"time",e)},expression:"search_data.time"}})],1),t._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"24%"},attrs:{label:"产品名称"}},[a("btn-input",{attrs:{valueText:t.search_data.proName,valueId:t.search_data.proName,chooseVisible:t.chooseMaterielVisible},on:{"update:valueText":function(e){return t.$set(t.search_data,"proName",e)},"update:value-text":function(e){return t.$set(t.search_data,"proName",e)},"update:valueId":function(e){return t.$set(t.search_data,"proName",e)},"update:value-id":function(e){return t.$set(t.search_data,"proName",e)},"update:chooseVisible":function(e){t.chooseMaterielVisible=e},"update:choose-visible":function(e){t.chooseMaterielVisible=e}}})],1),t._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"22%"},attrs:{label:"生产部门"}},[a("el-cascader",{attrs:{clearable:"",options:t.depOptions,props:{expandTrigger:"hover",label:"text",value:"id",checkStrictly:!0}},on:{change:t.handleChange},model:{value:t.selectDeptId,callback:function(e){t.selectDeptId=e},expression:"selectDeptId"}})],1),t._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"20%"},attrs:{label:"状态"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:t.search_data.status,callback:function(e){t.$set(t.search_data,"status",e)},expression:"search_data.status"}},t._l(t.planList,function(t){return a("el-option",{key:t.value,attrs:{label:t.name,value:t.id}})}),1)],1)],1),t._v(" "),a("div",{staticClass:"form_item_btn_out"},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.search()}}},[t._v("查询")])],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.moreSearch()}}},[t._v("高级查询")])],1)],1)])],1),t._v(" "),a("div",{staticClass:"sys-table"},[t.formTableData.length>0?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.pictLoading,expression:"pictLoading"}],ref:"tb",attrs:{border:"",fit:"",data:t.tableData,"summary-method":t.getSummaries,"show-summary":"","header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"sort-change":t.sortChange,"row-click":t.clickRow,"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),t._v(" "),t._l(t.formTableData,function(e,i){return a("el-table-column",{key:i,attrs:{prop:e.prop_,label:e.title,align:"center","show-overflow-tooltip":"",sortable:("deliveryDate"==e.prop_||"planStartTime"==e.prop_||"planEndTime"==e.prop_)&&"custom"},scopedSlots:t._u([{key:"default",fn:function(i){return[a("div",["planNo"==e.prop_?a("div",[a("el-link",{attrs:{type:"primary"},on:{click:function(e){return e.stopPropagation(),t.viewDetail(i.row)}}},[t._v(t._s(i.row.planNo))])],1):"sourceNo"==e.prop_?a("div",[a("el-link",{attrs:{type:"primary"},on:{click:function(e){return e.stopPropagation(),t.viewDetailOne(i.row)}}},[t._v(t._s(i.row.sourceNo))])],1):a("div",[a("div",{staticStyle:{overflow:"hidden"}},[t._v(t._s(i.row[e.prop_]))])])])]}}],null,!0)})})],2):t._e()],1),t._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":t.search_data.pageno,"page-sizes":t.pageSizes,"page-size":t.search_data.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1),t._v(" "),a("el-dialog",{attrs:{title:t.columnSetDialogTitle,center:"",visible:t.columnSetDialogVisible,width:"531px","before-close":t.handleClose},on:{"update:visible":function(e){t.columnSetDialogVisible=e}}},[a("el-table",{key:Math.random(),staticStyle:{width:"100%"},attrs:{border:"",data:t.showTableColumns,"max-height":"350"}},[a("el-table-column",{attrs:{prop:"title",label:"列表名称",width:"180",fixed:""}}),t._v(" "),a("el-table-column",{attrs:{prop:"select",label:"是否显示",width:"180"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-switch",{model:{value:e.row.select,callback:function(a){t.$set(e.row,"select",a)},expression:"scope.row.select"}})]}}])}),t._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.toUp(e)}}},[t._v("前移")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.toDown(e)}}},[t._v("后移")])]}}])})],1),t._v(" "),a("el-row",{staticClass:"row-bg",staticStyle:{"margin-top":"10px"},attrs:{type:"flex",justify:"center"}},[a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"primary",size:"middle"},on:{click:t.saveAndCloseColumnSetDialog}},[t._v("完成")])],1),t._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"primary",size:"middle"},on:{click:t.toDefault}},[t._v("恢复默认")])],1)],1)],1),t._v(" "),a("el-dialog",{attrs:{center:"",title:"工序计划",width:"800px",visible:t.producePlanVisible},on:{"update:visible":function(e){t.producePlanVisible=e}}},[a("el-table",{attrs:{data:t.producePlan,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}}},[a("el-table-column",{attrs:{prop:"workOrderNo",label:"工序计划单编号",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"materialSerialNo",label:"产品代码",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"materialName",label:"产品名称",align:"center"}}),t._v(" "),a("el-table-column",{attrs:{prop:"planStartTime",label:"计划开工日期",align:"center","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"planEndTime",label:"计划完工日期",align:"center","show-overflow-tooltip":""}}),t._v(" "),a("el-table-column",{attrs:{prop:"completionCount",label:"完工数量",align:"center"}})],1),t._v(" "),a("el-form",{staticStyle:{display:"flex","justify-content":"center","margin-top":"10px"}},[a("el-button",{staticStyle:{margin:"auto"},attrs:{type:"primary"},on:{click:function(e){t.producePlanVisible=!1}}},[t._v("关闭")])],1)],1),t._v(" "),a("el-dialog",{attrs:{title:"高级查询",center:"",visible:t.advanceQueryDialogVisible,width:"670px"},on:{"update:visible":function(e){t.advanceQueryDialogVisible=e}}},[a("el-form",{ref:"form",staticClass:"dialog-form",staticStyle:{width:"620px"},attrs:{inline:!0,"label-width":"80px"}},[a("div",{staticClass:"dialog-line"},[a("el-form-item",{attrs:{label:"客户"}},[a("btn-input",{attrs:{valueText:t.formData.clientName,valueId:t.formData.clientName,chooseVisible:t.chooseClientVisible},on:{"update:valueText":function(e){return t.$set(t.formData,"clientName",e)},"update:value-text":function(e){return t.$set(t.formData,"clientName",e)},"update:valueId":function(e){return t.$set(t.formData,"clientName",e)},"update:value-id":function(e){return t.$set(t.formData,"clientName",e)},"update:chooseVisible":function(e){t.chooseClientVisible=e},"update:choose-visible":function(e){t.chooseClientVisible=e}}})],1)],1)]),t._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:t.save}},[t._v("确定")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){t.advanceQueryDialogVisible=!1}}},[t._v("关闭")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.clear}},[t._v("清空")])],1)],1),t._v(" "),a("dialogChooseSingleParts",{attrs:{visible:t.chooseMaterielVisible},on:{"update:visible":function(e){t.chooseMaterielVisible=e},change:t.getPart}}),t._v(" "),a("dialogChooseSingleClient",{attrs:{visible:t.chooseClientVisible},on:{"update:visible":function(e){t.chooseClientVisible=e},change:t.getClient}}),t._v(" "),a("div",{staticStyle:{margin:"0 auto",display:"none"},attrs:{id:"print_content"}},[a("printPlans",{attrs:{printDetail:t.printDetail,printList:t.printList,printForm:t.printForm,printTotal:t.printTotal,printDirection:!0}})],1)],1)},staticRenderFns:[]};var S=a("VU/8")(D,T,!1,function(t){a("Y/PX")},null,null);e.default=S.exports},"Y/PX":function(t,e){}});