(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3a7ded12"],{"4ba0":function(e,t,o){"use strict";o.r(t);var l=function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"app-container"},[o("el-form",{directives:[{name:"show",rawName:"v-show",value:e.showSearch,expression:"showSearch"}],ref:"queryForm",attrs:{model:e.queryParams,size:"small",inline:!0,"label-width":"68px"}},[o("el-form-item",{attrs:{label:"工位编码",prop:"locationCode"}},[o("el-input",{attrs:{placeholder:"请输入工位编码",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.locationCode,callback:function(t){e.$set(e.queryParams,"locationCode",t)},expression:"queryParams.locationCode"}})],1),o("el-form-item",{attrs:{label:"工位名称",prop:"locationName"}},[o("el-input",{attrs:{placeholder:"请输入工位名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.locationName,callback:function(t){e.$set(e.queryParams,"locationName",t)},expression:"queryParams.locationName"}})],1),o("el-form-item",{staticStyle:{float:"right"}},[o("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),o("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")]),o("el-button",{attrs:{icon:"el-icon-setting",size:"mini"},on:{click:e.toggleAdvancedSearch}},[e._v("高级查询")])],1),o("transition",{attrs:{name:"fade"}},[e.advancedSearchVisible?o("div",{staticClass:"advanced-search"},[o("el-form-item",{attrs:{label:"产品编码",prop:"productCode"}},[o("el-input",{attrs:{placeholder:"请输入产品编码",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.productCode,callback:function(t){e.$set(e.queryParams,"productCode",t)},expression:"queryParams.productCode"}})],1),o("el-form-item",{attrs:{label:"产品名称",prop:"productName"}},[o("el-input",{attrs:{placeholder:"请输入产品名称",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.productName,callback:function(t){e.$set(e.queryParams,"productName",t)},expression:"queryParams.productName"}})],1),o("el-form-item",{attrs:{label:"流程编码",prop:"routeCode"}},[o("el-input",{attrs:{placeholder:"请输入流程编码",clearable:""},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.handleQuery(t)}},model:{value:e.queryParams.routeCode,callback:function(t){e.$set(e.queryParams,"routeCode",t)},expression:"queryParams.routeCode"}})],1)],1):e._e()])],1),o("el-row",{staticClass:"mb8",attrs:{gutter:10}},[o("el-col",{attrs:{span:1.5}},[o("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["bs:routeChildInfo:add"],expression:"['bs:routeChildInfo:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),o("el-col",{attrs:{span:1.5}},[o("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["bs:routeChildInfo:edit"],expression:"['bs:routeChildInfo:edit']"}],attrs:{type:"success",plain:"",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),o("el-col",{attrs:{span:1.5}},[o("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["bs:routeChildInfo:remove"],expression:"['bs:routeChildInfo:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),o("el-col",{attrs:{span:1.5}},[o("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["bs:routeChildInfo:export"],expression:"['bs:routeChildInfo:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1),o("el-col",{attrs:{span:1.5}},[o("el-button",{attrs:{type:"warning",plain:"",icon:"el-icon-close",size:"mini"},on:{click:e.handleClose}},[e._v("关闭")])],1)],1),o("el-row",[o("el-descriptions",{staticClass:"margin-top",attrs:{contentStyle:e.labelStyle,column:3,size:e.size,border:""}},[o("el-descriptions-item",[o("template",{slot:"label"},[o("i",{staticClass:"el-icon-user"}),e._v(" 流程编码 ")]),e._v(" "+e._s(this.queryParams.routeCode)+" ")],2),o("el-descriptions-item",[o("template",{slot:"label"},[o("i",{staticClass:"el-icon-mobile-phone"}),e._v(" 流程名称 ")]),e._v(" "+e._s(this.routeInfo[0].routeName)+" ")],2),o("el-descriptions-item",[o("template",{slot:"label"},[o("i",{staticClass:"el-icon-location-outline"}),e._v(" 产品编码 ")]),e._v(" "+e._s(this.routeInfo[0].productCode)+" ")],2),o("el-descriptions-item",[o("template",{slot:"label"},[o("i",{staticClass:"el-icon-tickets"}),e._v(" 产品名称 ")]),e._v(" "+e._s(this.routeInfo[0].productName)+" ")],2)],1)],1),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.routeChildInfoList},on:{"selection-change":e.handleSelectionChange}},[o("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":"true",label:"工位编码",align:"center",prop:"locationCode"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":"true",label:"工位名称",align:"center",prop:"locationName"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":"true",label:"加工顺序",align:"center",prop:"stepNo"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":"true",label:"产品编码",align:"center",prop:"productCode"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":"true",label:"产品名称",align:"center",prop:"productName"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":"true",label:"创建用户",align:"center",prop:"createBy"}}),o("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"180"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":"true",label:"更改用户",align:"center",prop:"updateBy"}}),o("el-table-column",{attrs:{label:"更改时间",align:"center",prop:"updateTime",width:"180"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":"true",label:"流程编码",align:"center",prop:"routeCode"}})],1),o("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.queryParams.pageNum,limit:e.queryParams.pageSize},on:{"update:page":function(t){return e.$set(e.queryParams,"pageNum",t)},"update:limit":function(t){return e.$set(e.queryParams,"pageSize",t)},pagination:e.getList}}),o("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[o("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[o("el-form-item",{attrs:{label:"流程编码",prop:"routeCode"}},[o("el-input",{attrs:{disabled:!0,placeholder:"请输入流程编码"},model:{value:e.form.routeCode,callback:function(t){e.$set(e.form,"routeCode",t)},expression:"form.routeCode"}})],1),o("el-form-item",{attrs:{label:"产品编码",prop:"productCode"}},[o("el-input",{attrs:{disabled:!0,placeholder:"请输入产品编码"},model:{value:e.form.productCode,callback:function(t){e.$set(e.form,"productCode",t)},expression:"form.productCode"}})],1),o("el-form-item",{attrs:{label:"产品名称",prop:"productName"}},[o("el-input",{attrs:{disabled:!0,placeholder:"请输入产品名称"},model:{value:e.form.productName,callback:function(t){e.$set(e.form,"productName",t)},expression:"form.productName"}})],1),o("el-form-item",{attrs:{label:"工位编码",prop:"locationCode"}},[o("el-input",{attrs:{placeholder:"请输入工位编码"},model:{value:e.form.locationCode,callback:function(t){e.$set(e.form,"locationCode",t)},expression:"form.locationCode"}})],1),o("el-form-item",{attrs:{label:"工位名称",prop:"locationName"}},[o("el-input",{attrs:{placeholder:"请输入工位名称"},model:{value:e.form.locationName,callback:function(t){e.$set(e.form,"locationName",t)},expression:"form.locationName"}})],1),o("el-form-item",{attrs:{label:"加工顺序",prop:"stepNo"}},[o("el-input",{attrs:{placeholder:"请输入加工顺序"},model:{value:e.form.stepNo,callback:function(t){e.$set(e.form,"stepNo",t)},expression:"form.stepNo"}})],1)],1),o("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[o("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),o("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},r=[],a=(o("0643"),o("a573"),o("b775"));function n(e){return Object(a["a"])({url:"/bs/routeChildInfo/list",method:"get",params:e})}function i(e){return Object(a["a"])({url:"/bs/routeChildInfo/"+e,method:"get"})}function s(e){return Object(a["a"])({url:"/bs/routeChildInfo",method:"post",data:e})}function u(e){return Object(a["a"])({url:"/bs/routeChildInfo",method:"put",data:e})}function c(e){return Object(a["a"])({url:"/bs/routeChildInfo/"+e,method:"delete"})}var d=o("def0"),m={name:"RouteChildInfo",data(){return{labelStyle:"width: 300px;",size:"medium",advancedSearchVisible:!1,loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,routeChildInfoList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,productCode:null,productName:null,locationCode:null,locationName:null,routeCode:null},form:{routeCode:"12323"},rules:{id:[{required:!0,message:"主键id不能为空",trigger:"blur"}],locationCode:[{required:!0,message:"工位编码不能为空",trigger:"blur"}]},routeInfo:{}}},created(){let e=this.$route.query.routeCode;this.queryParams.routeCode=e,this.headerInformation(),this.getList(),console.log(this.routeInfo)},methods:{headerInformation(){Object(d["d"])(this.queryParams).then(e=>{this.routeInfo=e.rows})},toggleAdvancedSearch(){this.advancedSearchVisible=!this.advancedSearchVisible},handleClose(){const e={path:"/main/bs/routeInfo"};this.$tab.closeOpenPage(e)},getList(){this.loading=!0,n(this.queryParams).then(e=>{this.routeChildInfoList=e.rows,this.total=e.total,this.loading=!1})},cancel(){this.open=!1,this.reset()},reset(){this.form={id:null,productCode:this.routeInfo[0].productCode,productName:this.routeInfo[0].productName,locationCode:null,locationName:null,stepNo:null,createBy:null,createTime:null,updateBy:null,updateTime:null,delFlag:null,routeCode:this.queryParams.routeCode},this.resetForm("form")},handleQuery(){this.queryParams.pageNum=1,this.getList()},resetQuery(){this.resetForm("queryForm"),this.handleQuery()},handleSelectionChange(e){this.ids=e.map(e=>e.id),this.single=1!==e.length,this.multiple=!e.length},handleAdd(){console.log(this.routeInfo),this.reset(),this.open=!0,this.title="添加工艺路线子信息"},handleUpdate(e){this.reset();const t=e.id||this.ids;i(t).then(e=>{this.form=e.data,this.open=!0,this.title="修改工艺路线子信息"})},submitForm(){this.$refs["form"].validate(e=>{e&&(null!=this.form.id?u(this.form).then(e=>{this.$modal.msgSuccess("修改成功"),this.open=!1,this.getList()}):s(this.form).then(e=>{this.$modal.msgSuccess("新增成功"),this.open=!1,this.getList()}))})},handleDelete(e){const t=e.id||this.ids;this.$modal.confirm("是否确认删除").then((function(){return c(t)})).then(()=>{this.getList(),this.$modal.msgSuccess("删除成功")}).catch(()=>{})},handleExport(){this.download("bs/routeChildInfo/export",{...this.queryParams},`routeChildInfo_${(new Date).getTime()}.xlsx`)}}},p=m,h=o("2877"),f=Object(h["a"])(p,l,r,!1,null,null,null);t["default"]=f.exports},def0:function(e,t,o){"use strict";o.d(t,"d",(function(){return r})),o.d(t,"c",(function(){return a})),o.d(t,"a",(function(){return n})),o.d(t,"e",(function(){return i})),o.d(t,"b",(function(){return s}));var l=o("b775");function r(e){return Object(l["a"])({url:"/bs/routeInfo/list",method:"get",params:e})}function a(e){return Object(l["a"])({url:"/bs/routeInfo/"+e,method:"get"})}function n(e){return Object(l["a"])({url:"/bs/routeInfo",method:"post",data:e})}function i(e){return Object(l["a"])({url:"/bs/routeInfo",method:"put",data:e})}function s(e){return Object(l["a"])({url:"/bs/routeInfo/"+e,method:"delete"})}}}]);