(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9eb5e1a0","chunk-20a44e36","chunk-2d0b9fa4"],{"10da":function(e,t,r){"use strict";var i=r("918f"),n=r.n(i);n.a},"34f3":function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a-modal",{attrs:{title:e.title,width:800,ok:!1,visible:e.visible,confirmLoading:e.confirmLoading,okButtonProps:{props:{disabled:e.disableSubmit}},cancelText:"关闭"},on:{ok:e.handleOk,cancel:e.handleCancel}},[r("a-spin",{attrs:{spinning:e.confirmLoading}},[r("a-form-model",{ref:"form",attrs:{model:e.model,rules:e.validatorRules}},[r("a-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"车间编码",prop:"productionCode",hidden:!1,hasFeedback:""}},[r("a-input",{attrs:{id:"productionCode",placeholder:"请输入产线/车间编号"},model:{value:e.model.productionCode,callback:function(t){e.$set(e.model,"productionCode",t)},expression:"model.productionCode"}})],1),r("a-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"车间名称",prop:"productionName",hidden:!1,hasFeedback:""}},[r("a-input",{attrs:{id:"departName",placeholder:"请输入产线/车间名称"},model:{value:e.model.productionName,callback:function(t){e.$set(e.model,"productionName",t)},expression:"model.productionName"}})],1),r("a-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,hidden:e.seen,label:"上级车间",hasFeedback:""}},[r("a-tree-select",{staticStyle:{width:"100%"},attrs:{dropdownStyle:{maxHeight:"200px",overflow:"auto"},treeData:e.departTree,placeholder:"请选择上级车间",disabled:e.condition},model:{value:e.model.parentId,callback:function(t){e.$set(e.model,"parentId",t)},expression:"model.parentId"}})],1),r("a-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"排序"}},[r("a-input-number",{model:{value:e.model.productionOrder,callback:function(t){e.$set(e.model,"productionOrder",t)},expression:"model.productionOrder"}})],1),r("a-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"备注"}},[r("a-textarea",{attrs:{placeholder:"请输入备注"},model:{value:e.model.memo,callback:function(t){e.$set(e.model,"memo",t)},expression:"model.memo"}})],1)],1)],1)],1)},n=[],o=r("0fea"),a=r("4ec3"),s=(r("88bc"),{name:"ProductionModal",components:{},data:function(){return{departTree:[],orgTypeData:[],phoneWarning:"",departName:"",title:"操作",seen:!1,visible:!1,condition:!0,disableSubmit:!1,model:{},menuhidden:!1,menuusing:!0,labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},confirmLoading:!1,validatorRules:{productionName:[{required:!0,message:"请输入产线/车间名称!"}]},url:{add:"/mdc/mdcProduction/add"},dictDisabled:!0}},created:function(){},methods:{loadTreeData:function(){var e=this;Object(a["D"])().then((function(t){if(t.success){e.departTree=[];for(var r=0;r0?g+y:""}},4328:function(e,t,r){"use strict";var i=r("4127"),n=r("9e6a"),o=r("b313");e.exports={formats:o,parse:n,stringify:i}},"918f":function(e,t,r){},"9a95":function(e,t,r){"use strict";r.r(t);var i=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("a-card",{attrs:{bordered:!1}},[this.productionId?[r("div",{staticClass:"table-page-search-wrapper"},[r("a-form",{attrs:{layout:"inline"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.searchQuery(t)}}},[r("a-row",{attrs:{gutter:24}},[r("a-col",{attrs:{md:6,sm:12}},[r("a-form-item",{attrs:{label:"设备编号"}},[r("a-input",{attrs:{placeholder:"请输入设备编号"},model:{value:e.queryParam.equipmentId,callback:function(t){e.$set(e.queryParam,"equipmentId",t)},expression:"queryParam.equipmentId"}})],1)],1),r("a-col",{attrs:{md:6,sm:8}},[r("a-button",{attrs:{type:"primary",icon:"search"},on:{click:e.searchQuery}},[e._v("查询")]),r("a-button",{staticStyle:{"margin-left":"8px"},attrs:{type:"primary",icon:"reload"},on:{click:e.searchReset}},[e._v("重置")])],1)],1)],1)],1),r("div",{staticClass:"table-operator",staticStyle:{"border-top":"5px"}},[e.selectedRowKeys.length>0?r("a-dropdown",[r("a-menu",{attrs:{slot:"overlay"},on:{click:e.handleMenuClick},slot:"overlay"},[r("a-menu-item",{key:"1"},[r("a-icon",{attrs:{type:"delete"},on:{click:e.batchDel}}),e._v("\n 批量移除\n ")],1)],1),r("a-button",{staticStyle:{"margin-left":"8px"}},[e._v("\n 批量操作\n "),r("a-icon",{attrs:{type:"down"}})],1)],1):e._e()],1),r("a-table",{ref:"table",attrs:{bordered:"",size:"middle",rowKey:"id",scroll:{x:500},columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,loading:e.loading,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange}},on:{change:e.handleTableChange},scopedSlots:e._u([{key:"action",fn:function(t,i){return r("span",{},[r("a-popconfirm",{attrs:{title:"确定移除吗?"},on:{confirm:function(){return e.handleDelete(i.id)}}},[r("a",[e._v("移除")])])],1)}}],null,!1,3254967262)})]:r("a-card",{staticStyle:{height:"200px"},attrs:{bordered:!1}},[r("a-empty",[r("span",{attrs:{slot:"description"},slot:"description"},[e._v(" 请先选择一个部门! ")])])],1)],2)},n=[],o=r("ca00"),a=(r("4ec3"),r("b65a")),s=r("0fea"),l=r("4328"),c=r.n(l),d={name:"ProductionEquipment",mixins:[a["a"]],data:function(){return{queryParam:{},columns:[{title:"#",dataIndex:"",key:"rowIndex",width:60,align:"center",customRender:function(e,t,r){return parseInt(r)+1}},{title:"设备编号",align:"center",dataIndex:"equipmentId",width:120},{title:"设备名称",align:"center",width:150,dataIndex:"equipmentName"},{title:"设备类型",align:"center",width:120,dataIndex:"equipmentType"},{title:"驱动类型",align:"center",width:80,dataIndex:"driveType"},{title:"操作",dataIndex:"action",scopedSlots:{customRender:"action"},align:"center",width:120}],disableMixinCreated:!0,productionId:"",title:"部门权限配置",visible:!1,loading:!1,url:{list:"/mdc/mdcEquipment/equipmentListByProduction",removeEquipmentForDepart:"/mdc/mdcEquipment/removeEquipmentForProduction",serachEquipment:"/mdc/mdcEquipment/equipmentListByProduction",removeEquipmentsForProduction:"/mdc/mdcEquipment/removeEquipmentsForProduction"}}},methods:{show:function(e){this.productionId=e,this.loadData()},close:function(){this.reset(),this.$emit("close"),this.visible=!1},searchReset:function(){this.queryParam={},this.loadData()},searchQuery:function(){var e=this;this.queryParam.equipmentId;this.loading=!0;var t=this.getQueryParams();t.pageNo=this.ipagination.current,t.pageSize=this.ipagination.pageSize,Object(s["c"])(this.url.serachEquipment,{equipmentId:this.queryParam.equipmentId,productionId:this.productionId,pageNo:t.pageNo,pageSize:t.pageSize}).then((function(t){t.success?(e.dataSource=t.result.records||t.result,t.result.total?e.ipagination.total=t.result.total:e.ipagination.total=0):e.$notification.warning({message:"消息",description:t.message})})).finally((function(){e.loading=!1}))},handleTableChange:function(e,t,r){Object.keys(r).length>0&&(this.isorter.column=r.field,this.isorter.order="ascend"==r.order?"asc":"desc"),this.ipagination=e,this.loadData()},loadData:function(){var e=this,t=this.getQueryParams();t.pageNo=this.ipagination.current,t.pageSize=this.ipagination.pageSize,this.loading=!0,Object(s["c"])(this.url.list,t).then((function(t){t.success?(e.dataSource=t.result.records||t.result,t.result.total?e.ipagination.total=t.result.total:e.ipagination.total=0):e.$notification.warning({message:"消息",description:t.message})})).finally((function(){e.loading=!1}))},getQueryParams:function(){var e={};this.superQueryParams&&(e["superQueryParams"]=encodeURI(this.superQueryParams),e["superQueryMatchType"]=this.superQueryMatchType);var t=Object.assign(e,this.queryParam,this.isorter,this.filters);return t.field=this.getQueryField(),t.pageNo=this.ipagination.current,t.pageSize=this.ipagination.pageSize,t.productionId=this.productionId,!(this.getCustomQueryParams&&(t=this.getCustomQueryParams(t),!t))&&Object(o["d"])(t)},handleDelete:function(e){var t=this;Object(s["i"])(this.url.removeEquipmentForDepart,c.a.stringify({productionId:this.productionId,equipmentId:e})).then((function(e){e.success?(t.$notification.success({message:"消息",description:e.message}),t.loadData(t.productionId)):t.$notification.warning({message:"消息",description:e.message})})).finally((function(){}))},handleMenuClick:function(e){1==e.key&&this.batchDel()},batchDel:function(){if(this.url.removeEquipmentsForProduction)if(this.selectedRowKeys.length<=0)this.$notification.warning({message:"消息",description:"请选择一条记录"});else{for(var e="",t=0;t-1&&(y=y.split(",")),n.call(c,m)?c[m]=i.combine(c[m],y):c[m]=y}return c},d=function(e,t,r){for(var i=t,n=e.length-1;n>=0;--n){var o,a=e[n];if("[]"===a&&r.parseArrays)o=[].concat(i);else{o=r.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,l=parseInt(s,10);r.parseArrays||""!==s?!isNaN(l)&&a!==s&&String(l)===s&&l>=0&&r.parseArrays&&l<=r.arrayLimit?(o=[],o[l]=i):o[s]=i:o={0:i}}i=o}return i},u=function(e,t,r){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,s=o.exec(i),l=s?i.slice(0,s.index):i,c=[];if(l){if(!r.plainObjects&&n.call(Object.prototype,l)&&!r.allowPrototypes)return;c.push(l)}var u=0;while(null!==(s=a.exec(i))&&u1){var t=e.pop(),r=t.obj[t.prop];if(n(r)){for(var i=[],o=0;o=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122?n+=i.charAt(a):s<128?n+=o[s]:s<2048?n+=o[192|s>>6]+o[128|63&s]:s<55296||s>=57344?n+=o[224|s>>12]+o[128|s>>6&63]+o[128|63&s]:(a+=1,s=65536+((1023&s)<<10|1023&i.charCodeAt(a)),n+=o[240|s>>18]+o[128|s>>12&63]+o[128|s>>6&63]+o[128|63&s])}return n},p=function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],i=0;i0?r("a-button",{on:{click:e.handleDelete}},[e._v("删除")]):e._e(),e.checkedKeys.length>0?r("a-button",{attrs:{title:"删除多条数据"},on:{click:e.batchDel}},[e._v("批量删除")]):e._e()],1),e._v("\n `\n "),r("div",{staticStyle:{background:"#fff","padding-left":"16px",height:"100%","margin-top":"5px"}},[r("a-alert",{attrs:{type:"info",showIcon:!0}},[r("div",{attrs:{slot:"message"},slot:"message"},[e._v("\n 当前选择:"),this.currSelected.title?r("span",[e._v(e._s(e.getCurrSelectedTitle()))]):e._e(),this.currSelected.title?r("a",{staticStyle:{"margin-left":"10px"},on:{click:e.onClearSelected}},[e._v("取消选择")]):e._e()])]),r("a-input-search",{staticStyle:{width:"100%","margin-top":"10px"},attrs:{placeholder:"请输入车间名称"},on:{search:e.onSearch}}),r("a-col",{attrs:{md:10,sm:24}},[r("a-tree",{attrs:{checkable:"",multiple:"",selectedKeys:e.selectedKeys,checkedKeys:e.checkedKeys,treeData:e.departTree,checkStrictly:e.checkStrictly,expandedKeys:e.iExpandedKeys,autoExpandParent:e.autoExpandParent},on:{select:e.onSelect,check:e.onCheck,rightClick:e.rightHandle,expand:e.onExpand}})],1)],1)],1),r("div",{staticClass:"drawer-bottom-button"},[r("a-dropdown",{attrs:{trigger:["click"],placement:"topCenter"}},[r("a-menu",{attrs:{slot:"overlay"},slot:"overlay"},[r("a-menu-item",{key:"1",on:{click:function(t){return e.switchCheckStrictly(1)}}},[e._v("父子关联")]),r("a-menu-item",{key:"2",on:{click:function(t){return e.switchCheckStrictly(2)}}},[e._v("取消关联")]),r("a-menu-item",{key:"3",on:{click:e.checkALL}},[e._v("全部勾选")]),r("a-menu-item",{key:"4",on:{click:e.cancelCheckALL}},[e._v("取消全选")]),r("a-menu-item",{key:"5",on:{click:e.expandAll}},[e._v("展开所有")]),r("a-menu-item",{key:"6",on:{click:e.closeAll}},[e._v("合并所有")])],1),r("a-button",[e._v("\n 树操作\n "),r("a-icon",{attrs:{type:"up"}})],1)],1)],1)],1),r("a-col",{attrs:{md:12,sm:24}},[r("a-tabs",{attrs:{defaultActiveKey:"1"}},[r("a-tab-pane",{key:"1",attrs:{tab:"基本信息"}},[e.selectedKeys.length>0?r("a-card",{attrs:{bordered:!1}},[r("a-form-model",{ref:"form",attrs:{model:e.model,rules:e.validatorRules}},[r("a-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"productionCode",label:"车间编号"}},[r("a-input",{attrs:{placeholder:"请输入产线/车间编号"},model:{value:e.model.productionCode,callback:function(t){e.$set(e.model,"productionCode",t)},expression:"model.productionCode"}})],1),r("a-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,prop:"productionName",label:"车间名称"}},[r("a-input",{attrs:{placeholder:"请输入产线/车间名称"},model:{value:e.model.productionName,callback:function(t){e.$set(e.model,"productionName",t)},expression:"model.productionName"}})],1),r("a-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"上级车间"}},[r("a-tree-select",{staticStyle:{width:"100%"},attrs:{dropdownStyle:{maxHeight:"200px",overflow:"auto"},treeData:e.treeData,disabled:e.disable,placeholder:"无"},model:{value:e.model.parentId,callback:function(t){e.$set(e.model,"parentId",t)},expression:"model.parentId"}})],1),r("a-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"排序"}},[r("a-input-number",{model:{value:e.model.productionOrder,callback:function(t){e.$set(e.model,"productionOrder",t)},expression:"model.productionOrder"}})],1),r("a-form-model-item",{attrs:{labelCol:e.labelCol,wrapperCol:e.wrapperCol,label:"备注"}},[r("a-textarea",{attrs:{placeholder:"请输入备注"},model:{value:e.model.memo,callback:function(t){e.$set(e.model,"memo",t)},expression:"model.memo"}})],1)],1),r("div",{staticClass:"anty-form-btn"},[r("a-button",{attrs:{type:"default",htmlType:"button",icon:"sync"},on:{click:e.emptyCurrForm}},[e._v("重置")]),r("a-button",{attrs:{type:"primary",htmlType:"button",icon:"form"},on:{click:e.submitCurrForm}},[e._v("保存")])],1)],1):r("a-card",[r("a-empty",[r("span",{attrs:{slot:"description"},slot:"description"},[e._v(" 请先选择一个车间! ")])])],1)],1),r("a-tab-pane",{key:"2",attrs:{tab:"设备列表",forceRender:""}},[r("production-equipment",{ref:"departAuth"})],1)],1)],1),r("production-modal",{ref:"departModal",on:{ok:e.loadTree}})],1)},n=[],o=r("9a95"),a=r("4ec3"),s=r("0fea"),l=r("b65a"),c=r("34f3"),d={name:"ProductionManager",mixins:[l["a"]],components:{ProductionEquipment:o["default"],ProductionModal:c["default"]},data:function(){return{iExpandedKeys:[],loading:!1,autoExpandParent:!0,currFlowId:"",currFlowName:"",disable:!0,treeData:[],visible:!1,departTree:[],rightClickSelectedKey:"",rightClickSelectedOrgCode:"",hiding:!0,model:{},dropTrigger:"",depart:{},disableSubmit:!1,checkedKeys:[],selectedKeys:[],autoIncr:1,currSelected:{},allTreeKeys:[],checkStrictly:!0,labelCol:{xs:{span:24},sm:{span:5}},wrapperCol:{xs:{span:24},sm:{span:16}},graphDatasource:{nodes:[],edges:[]},validatorRules:{productionName:[{required:!0,message:"请输入产线/车间名称!"}]},url:{delete:"/mdc/mdcProduction/delete",edit:"/mdc/mdcProduction/edit",deleteBatch:"/mdc/mdcProduction/deleteBatch",exportXlsUrl:"/mdc/mdcProduction/exportXls",importExcelUrl:"/mdc/mdcProduction/importExcel"},orgCategoryDisabled:!1,isIncludesNotLeaf:!1}},computed:{importExcelUrl:function(){return"".concat(window._CONFIG["domianURL"],"/").concat(this.url.importExcelUrl)}},methods:{loadData:function(){this.refresh()},loadTree:function(){var e=this,t=this;t.treeData=[],t.departTree=[],Object(a["M"])().then((function(r){if(r.success){e.allTreeKeys=[];for(var i=0;i0){this.iExpandedKeys.push(e.key);for(var t=0;t0)for(var t=0;t0)for(var t=0;t