(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-36cff69a"],{"5bcc":function(e,t,o){"use strict";o.d(t,"e",(function(){return r})),o.d(t,"d",(function(){return l})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){return i})),o.d(t,"f",(function(){return s})),o.d(t,"b",(function(){return u}));var a=o("b775");function r(e){return Object(a["a"])({url:"/formulaInfo/list",method:"get",params:e})}function l(e){return Object(a["a"])({url:"/formulaInfo/getOne",method:"get",params:e})}function n(e){return Object(a["a"])({url:"/formulaInfo/"+e,method:"get"})}function i(e){return Object(a["a"])({url:"/formulaInfo",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/formulaInfo",method:"put",data:e})}function u(e){return Object(a["a"])({url:"/formulaInfo/"+e,method:"delete"})}},"91b1":function(e,t,o){"use strict";o.r(t);var a=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:"lineCode"}},[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.lineCode,callback:function(t){e.$set(e.queryParams,"lineCode",t)},expression:"queryParams.lineCode"}})],1),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:"operationType"}},[o("el-select",{attrs:{placeholder:"请选择操作类型",clearable:""},model:{value:e.queryParams.operationType,callback:function(t){e.$set(e.queryParams,"operationType",t)},expression:"queryParams.operationType"}},e._l(e.dict.type.operation_type,(function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),o("el-form-item",{attrs:{label:"参数编码",prop:"paramCode"}},[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.paramCode,callback:function(t){e.$set(e.queryParams,"paramCode",t)},expression:"queryParams.paramCode"}})],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("重置")])],1)],1),o("div",{staticStyle:{width:"600px"}},[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:["main:info:add"],expression:"['main:info: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:["main:info:edit"],expression:"['main:info: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:["main:info:remove"],expression:"['main:info: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:["main:info:export"],expression:"['main:info:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1)],1)],1),o("el-descriptions",{staticClass:"margin-top",attrs:{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(e.queryParams.formulaCode)+" ")],2),o("el-descriptions-item",[o("template",{slot:"label"},[o("i",{staticClass:"el-icon-mobile-phone"}),e._v(" 配方名称 ")]),e._v(" "+e._s(e.showData.formulaName)+" ")],2),o("el-descriptions-item",[o("template",{slot:"label"},[o("i",{staticClass:"el-icon-location-outline"}),e._v(" 产品编号 ")]),e._v(" "+e._s(e.showData.productCode)+" ")],2),o("el-descriptions-item",[o("template",{slot:"label"},[o("i",{staticClass:"el-icon-tickets"}),e._v(" 产品名称 ")]),e._v(" "+e._s(e.showData.productName)+" ")],2)],1),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.infoList},on:{"selection-change":e.handleSelectionChange}},[o("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"配方编码",align:"center",prop:"formulaCode"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"产线编号",align:"center",prop:"lineCode"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"工位编号",align:"center",prop:"locationCode"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"产品编号",align:"center",prop:"productCode"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"操作内容",align:"center",prop:"operationContent"}}),o("el-table-column",{attrs:{label:"操作类型",align:"center",prop:"operationType"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("dict-tag",{attrs:{options:e.dict.type.operation_type,value:t.row.operationType}})]}}])}),o("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"排序",align:"center",prop:"stepSort"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"参数编码",align:"center",prop:"paramCode"}}),o("el-table-column",{attrs:{label:"图片",align:"center",prop:"picture",width:"100"},scopedSlots:e._u([{key:"default",fn:function(e){return[o("image-preview",{attrs:{src:e.row.picture,width:50,height:50}})]}}])}),o("el-table-column",{attrs:{"show-overflow-tooltip":"",label:"备注",align:"center",prop:"remarks"}})],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:"formulaCode"}},[o("el-input",{attrs:{placeholder:"请输入配方编码",disabled:""},model:{value:e.form.formulaCode,callback:function(t){e.$set(e.form,"formulaCode",t)},expression:"form.formulaCode"}})],1),o("el-form-item",{attrs:{label:"产品编号",prop:"productCode"}},[o("el-input",{attrs:{placeholder:"请输入产品编号",disabled:""},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:"lineCode"}},[o("el-input",{attrs:{placeholder:"请输入产线编号"},model:{value:e.form.lineCode,callback:function(t){e.$set(e.form,"lineCode",t)},expression:"form.lineCode"}})],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:"操作内容"}},[o("editor",{attrs:{"min-height":192},model:{value:e.form.operationContent,callback:function(t){e.$set(e.form,"operationContent",t)},expression:"form.operationContent"}})],1),o("el-form-item",{attrs:{label:"操作类型",prop:"operationType"}},[o("el-select",{attrs:{placeholder:"请选择操作类型"},model:{value:e.form.operationType,callback:function(t){e.$set(e.form,"operationType",t)},expression:"form.operationType"}},e._l(e.dict.type.operation_type,(function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),o("el-form-item",{attrs:{label:"排序",prop:"stepSort"}},[o("el-input",{attrs:{placeholder:"请输入排序"},model:{value:e.form.stepSort,callback:function(t){e.$set(e.form,"stepSort",t)},expression:"form.stepSort"}})],1),o("el-form-item",{attrs:{label:"参数编码",prop:"paramCode"}},[o("el-input",{attrs:{placeholder:"请输入参数编码"},model:{value:e.form.paramCode,callback:function(t){e.$set(e.form,"paramCode",t)},expression:"form.paramCode"}})],1),o("el-form-item",{attrs:{label:"图片",prop:"picture"}},[o("image-upload",{model:{value:e.form.picture,callback:function(t){e.$set(e.form,"picture",t)},expression:"form.picture"}})],1),o("el-form-item",{attrs:{label:"备注",prop:"remarks"}},[o("el-input",{attrs:{type:"textarea",placeholder:"请输入内容",maxlength:"30","show-word-limit":""},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],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=[],l=(o("0643"),o("a573"),o("f7ba")),n=o("5bcc"),i={name:"formulaInfoChild",dicts:["operation_type"],data(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,infoList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,lineCode:null,locationCode:null,productCode:null,operationType:null,stepSort:null,paramCode:null,formulaCode:null},showData:{formulaCode:null,productCode:null,productName:null,formulaName:null},form:{},rules:{lineCode:[{required:!0,message:"产线编号不能为空",trigger:"blur"}],locationCode:[{required:!0,message:"工位编号不能为空",trigger:"blur"}],productCode:[{required:!0,message:"产品编号不能为空",trigger:"blur"}],operationContent:[{required:!0,message:"操作内容不能为空",trigger:"blur"}],operationType:[{required:!0,message:"操作类型不能为空",trigger:"change"}],stepSort:[{required:!0,message:"排序不能为空",trigger:"blur"}],paramCode:[{required:!0,message:"参数编码不能为空",trigger:"blur"}]}}},created(){this.queryParams.formulaCode=this.$route.query.formulaCode,this.getOne(),console.log("this.queryParams.formulaCode",this.queryParams.formulaCode),this.getList()},methods:{getOne(){Object(n["d"])({formulaCode:this.queryParams.formulaCode}).then(e=>{200===e.code&&(this.showData.productCode=e.data.productCode,this.showData.productName=e.data.productName,this.showData.formulaName=e.data.formulaName)})},getList(){this.loading=!0,Object(l["d"])(this.queryParams).then(e=>{this.infoList=e.rows,this.total=e.total,this.loading=!1})},cancel(){this.open=!1,this.reset()},reset(){this.form={id:null,lineCode:null,locationCode:null,productCode:null,operationContent:null,operationType:null,stepSort:null,paramCode:null,picture:null,remarks:null,createBy:null,createTime:null,updateBy:null,updateTime:null,collectData:null,results:null,formulaCode:null,delFlag:null},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(){this.reset(),this.form.productCode=this.showData.productCode,this.form.formulaCode=this.queryParams.formulaCode,this.open=!0,this.title="添加配方配置子信息"},handleUpdate(e){this.reset();const t=e.id||this.ids;Object(l["c"])(t).then(e=>{this.form=e.data,this.open=!0,this.title="修改配方配置子信息"})},submitForm(){this.$refs["form"].validate(e=>{e&&(null!=this.form.id?Object(l["f"])(this.form).then(e=>{this.$modal.msgSuccess("修改成功"),this.open=!1,this.getList()}):Object(l["a"])(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 Object(l["b"])(t)})).then(()=>{this.getList(),this.$modal.msgSuccess("删除成功")}).catch(()=>{})},handleExport(){this.download("formulaChildInfo/export",{...this.queryParams},`info_${(new Date).getTime()}.xlsx`)}}},s=i,u=o("2877"),m=Object(u["a"])(s,a,r,!1,null,null,null);t["default"]=m.exports},f7ba:function(e,t,o){"use strict";o.d(t,"d",(function(){return r})),o.d(t,"e",(function(){return l})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){return i})),o.d(t,"f",(function(){return s})),o.d(t,"b",(function(){return u}));var a=o("b775");function r(e){return Object(a["a"])({url:"/formulaChildInfo/list",method:"get",params:e})}function l(e){return Object(a["a"])({url:"/formulaChildInfo/updateCollectData",method:"post",data:e})}function n(e){return Object(a["a"])({url:"/formulaChildInfo/"+e,method:"get"})}function i(e){return Object(a["a"])({url:"/formulaChildInfo",method:"post",data:e})}function s(e){return Object(a["a"])({url:"/formulaChildInfo",method:"put",data:e})}function u(e){return Object(a["a"])({url:"/formulaChildInfo/"+e,method:"delete"})}}}]);