admin
2025-03-29 9cd0e111d7315074f5574558dab3cae087ff1f68
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1fb6694c"],{aa8b:function(e,t,l){"use strict";l.d(t,"d",(function(){return a})),l.d(t,"e",(function(){return i})),l.d(t,"c",(function(){return r})),l.d(t,"a",(function(){return o})),l.d(t,"f",(function(){return s})),l.d(t,"b",(function(){return u}));var n=l("b775");function a(){return Object(n["a"])({url:"/bs/lineInfo/getLineOptions",method:"get"})}function i(e){return Object(n["a"])({url:"/bs/lineInfo/list",method:"get",params:e})}function r(e){return Object(n["a"])({url:"/bs/lineInfo/"+e,method:"get"})}function o(e){return Object(n["a"])({url:"/bs/lineInfo",method:"post",data:e})}function s(e){return Object(n["a"])({url:"/bs/lineInfo",method:"put",data:e})}function u(e){return Object(n["a"])({url:"/bs/lineInfo/"+e,method:"delete"})}},d7e9:function(e,t,l){"use strict";l.r(t);var n=function(){var e=this,t=e.$createElement,l=e._self._c||t;return l("div",{staticClass:"app-container"},[l("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"}},[l("el-form-item",{attrs:{label:"产线编号",prop:"lineCode"}},[l("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),l("el-form-item",{attrs:{label:"产线名称",prop:"lineName"}},[l("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.lineName,callback:function(t){e.$set(e.queryParams,"lineName",t)},expression:"queryParams.lineName"}})],1),l("el-form-item",{staticStyle:{float:"right"}},[l("el-button",{attrs:{type:"primary",icon:"el-icon-search",size:"mini"},on:{click:e.handleQuery}},[e._v("搜索")]),l("el-button",{attrs:{icon:"el-icon-refresh",size:"mini"},on:{click:e.resetQuery}},[e._v("重置")])],1)],1),l("el-row",{staticClass:"mb8",attrs:{gutter:10}},[l("el-col",{attrs:{span:1.5}},[l("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["bs:lineInfo:add"],expression:"['bs:lineInfo:add']"}],attrs:{type:"primary",plain:"",icon:"el-icon-plus",size:"mini"},on:{click:e.handleAdd}},[e._v("新增")])],1),l("el-col",{attrs:{span:1.5}},[l("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["bs:lineInfo:edit"],expression:"['bs:lineInfo:edit']"}],attrs:{type:"success",plain:"",icon:"el-icon-edit",size:"mini",disabled:e.single},on:{click:e.handleUpdate}},[e._v("修改")])],1),l("el-col",{attrs:{span:1.5}},[l("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["bs:lineInfo:remove"],expression:"['bs:lineInfo:remove']"}],attrs:{type:"danger",plain:"",icon:"el-icon-delete",size:"mini",disabled:e.multiple},on:{click:e.handleDelete}},[e._v("删除")])],1),l("el-col",{attrs:{span:1.5}},[l("el-button",{directives:[{name:"hasPermi",rawName:"v-hasPermi",value:["bs:lineInfo:export"],expression:"['bs:lineInfo:export']"}],attrs:{type:"warning",plain:"",icon:"el-icon-download",size:"mini"},on:{click:e.handleExport}},[e._v("导出")])],1)],1),l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{border:"",data:e.lineInfoList},on:{"selection-change":e.handleSelectionChange}},[l("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),l("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"产线编号",align:"center",prop:"lineCode"}}),l("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"产线名称",align:"center",prop:"lineName"}}),l("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"备注",align:"center",prop:"remarks"}}),l("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"创建用户",align:"center",prop:"createBy"}}),l("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"createTime",width:"180"}}),l("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"更改用户",align:"center",prop:"updateBy"}}),l("el-table-column",{attrs:{label:"更改时间",align:"center",prop:"updateTime",width:"180"}}),l("el-table-column",{attrs:{"show-overflow-tooltip":!0,label:"状态",align:"center",prop:"status"}})],1),l("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}}),l("el-dialog",{attrs:{title:e.title,visible:e.open,width:"500px","append-to-body":""},on:{"update:visible":function(t){e.open=t}}},[l("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"80px"}},[l("el-form-item",{attrs:{label:"产线编号",prop:"lineCode"}},[l("el-input",{attrs:{placeholder:"请输入产线编号"},model:{value:e.form.lineCode,callback:function(t){e.$set(e.form,"lineCode",t)},expression:"form.lineCode"}})],1),l("el-form-item",{attrs:{label:"产线名称",prop:"lineName"}},[l("el-input",{attrs:{placeholder:"请输入产线名称"},model:{value:e.form.lineName,callback:function(t){e.$set(e.form,"lineName",t)},expression:"form.lineName"}})],1),l("el-form-item",{attrs:{label:"备注",prop:"remarks"}},[l("el-input",{attrs:{placeholder:"请输入备注"},model:{value:e.form.remarks,callback:function(t){e.$set(e.form,"remarks",t)},expression:"form.remarks"}})],1)],1),l("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[l("el-button",{attrs:{type:"primary"},on:{click:e.submitForm}},[e._v("确 定")]),l("el-button",{on:{click:e.cancel}},[e._v("取 消")])],1)],1)],1)},a=[],i=(l("0643"),l("a573"),l("aa8b")),r={name:"LineInfo",data(){return{loading:!0,ids:[],single:!0,multiple:!0,showSearch:!0,total:0,lineInfoList:[],title:"",open:!1,queryParams:{pageNum:1,pageSize:10,lineCode:null,lineName:null,status:null},form:{},rules:{lineCode:[{required:!0,message:"产线编号不能为空",trigger:"blur"}]}}},created(){this.getList()},methods:{getList(){this.loading=!0,Object(i["e"])(this.queryParams).then(e=>{this.lineInfoList=e.rows,this.total=e.total,this.loading=!1})},cancel(){this.open=!1,this.reset()},reset(){this.form={id:null,lineCode:null,lineName:null,remarks:null,createBy:null,createTime:null,updateBy:null,updateTime:null,status: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(i["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(i["f"])(this.form).then(e=>{this.$modal.msgSuccess("修改成功"),this.open=!1,this.getList()}):Object(i["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(i["b"])(t)})).then(()=>{this.getList(),this.$modal.msgSuccess("删除成功")}).catch(()=>{})},handleExport(){this.download("bs/lineInfo/export",{...this.queryParams},`lineInfo_${(new Date).getTime()}.xlsx`)}}},o=r,s=l("2877"),u=Object(s["a"])(o,n,a,!1,null,null,null);t["default"]=u.exports}}]);