(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-001fa4ff"],{"23b7":function(e,t,o){"use strict";o.d(t,"d",(function(){return a})),o.d(t,"c",(function(){return n})),o.d(t,"a",(function(){return i})),o.d(t,"e",(function(){return r})),o.d(t,"b",(function(){return s}));var l=o("b775");function a(e){return Object(l["a"])({url:"/bs/locationInfo/list",method:"get",params:e})}function n(e){return Object(l["a"])({url:"/bs/locationInfo/"+e,method:"get"})}function i(e){return Object(l["a"])({url:"/bs/locationInfo",method:"post",data:e})}function r(e){return Object(l["a"])({url:"/bs/locationInfo",method:"put",data:e})}function s(e){return Object(l["a"])({url:"/bs/locationInfo/"+e,method:"delete"})}},aa8b:function(e,t,o){"use strict";o.d(t,"d",(function(){return a})),o.d(t,"e",(function(){return n})),o.d(t,"c",(function(){return i})),o.d(t,"a",(function(){return r})),o.d(t,"f",(function(){return s})),o.d(t,"b",(function(){return c}));var l=o("b775");function a(){return Object(l["a"])({url:"/bs/lineInfo/getLineOptions",method:"get"})}function n(e){return Object(l["a"])({url:"/bs/lineInfo/list",method:"get",params:e})}function i(e){return Object(l["a"])({url:"/bs/lineInfo/"+e,method:"get"})}function r(e){return Object(l["a"])({url:"/bs/lineInfo",method:"post",data:e})}function s(e){return Object(l["a"])({url:"/bs/lineInfo",method:"put",data:e})}function c(e){return Object(l["a"])({url:"/bs/lineInfo/"+e,method:"delete"})}},ff52: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",{attrs:{label:"工位类型",prop:"locationType"}},[o("el-select",{attrs:{placeholder:"请选择工位类型",clearable:""},model:{value:e.queryParams.locationType,callback:function(t){e.$set(e.queryParams,"locationType",t)},expression:"queryParams.locationType"}},e._l(e.dict.type.location_type,(function(e){return o("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],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("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:locationInfo:add"],expression:"['bs:locationInfo: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:locationInfo:edit"],expression:"['bs:locationInfo: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:locationInfo:remove"],expression:"['bs:locationInfo: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:locationInfo:export"],expression:"['bs:locationInfo:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1)],1),o("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.locationInfoList},on:{"selection-change":e.handleSelectionChange}},[o("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"工位编号",align:"center",prop:"locationCode"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"工位名称",align:"center",prop:"locationName"}}),o("el-table-column",{attrs:{label:"工位类型",align:"center",prop:"locationType"},scopedSlots:e._u([{key:"default",fn:function(t){return[o("dict-tag",{attrs:{options:e.dict.type.location_type,value:t.row.locationType}})]}}])}),o("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"产线编号",align:"center",prop:"lineCode"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"备注",align:"center",prop:"remarks"}}),o("el-table-column",{attrs:{"show-overflow-tooltip":!0,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":!0,label:"更改用户",align:"center",prop:"updateBy"}}),o("el-table-column",{attrs:{label:"更改时间",align:"center",prop:"updateTime",width:"180"}})],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:"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:"locationType"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择工位类型"},model:{value:e.form.locationType,callback:function(t){e.$set(e.form,"locationType",t)},expression:"form.locationType"}},e._l(e.dict.type.location_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:"lineCode"}},[o("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择产线"},model:{value:e.form.lineCode,callback:function(t){e.$set(e.form,"lineCode",t)},expression:"form.lineCode"}},e._l(e.lineOptions,(function(e){return o("el-option",{key:e.value,attrs:{label:e.lineName,value:e.lineCode}})})),1)],1),o("el-form-item",{attrs:{label:"备注",prop:"remarks"}},[o("el-input",{attrs:{placeholder:"请输入备注"},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)},a=[],n=(o("0643"),o("a573"),o("23b7")),i=o("aa8b"),r={name:"LocationInfo",dicts:["location_type"],data(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,locationInfoList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,locationCode:null,locationName:null,locationType:null,lineCode:null},form:{},rules:{id:[{required:!0,message:"主键id不能为空",trigger:"blur"}]},lineOptions:[]}},created(){this.getList(),this.getLineOptions()},methods:{getLineOptions(){this.loading=!0,Object(i["d"])().then(e=>{this.lineOptions=e.data})},getList(){this.loading=!0,Object(n["d"])(this.queryParams).then(e=>{this.locationInfoList=e.rows,this.total=e.total,this.loading=!1})},cancel(){this.open=!1,this.reset()},reset(){this.form={id:null,locationCode:null,locationName:null,locationType:null,lineCode:null,remarks:null,createBy:null,createTime:null,updateBy:null,updateTime: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.open=!0,this.title="添加工位信息"},handleUpdate(e){this.reset();const t=e.id||this.ids;Object(n["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(n["e"])(this.form).then(e=>{this.$modal.msgSuccess("修改成功"),this.open=!1,this.getList()}):Object(n["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(n["b"])(t)})).then(()=>{this.getList(),this.$modal.msgSuccess("删除成功")}).catch(()=>{})},handleExport(){this.download("bs/locationInfo/export",{...this.queryParams},`locationInfo_${(new Date).getTime()}.xlsx`)}}},s=r,c=o("2877"),u=Object(c["a"])(s,l,a,!1,null,null,null);t["default"]=u.exports}}]);