tft-fe/dist/js/8674.4cb564e6.js

1 line
5.3 KiB
JavaScript
Raw Normal View History

"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[8674],{8674:function(t,e,a){a.r(e),a.d(e,{default:function(){return g}});var i=function(){var t=this,e=t._self._c;return e("div",{staticClass:"page-box"},[e("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),e("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH}},[t.tableBtn.length?e("method-btn",{attrs:{slot:"handleBtn",width:220,label:"操作",fixed:"right","method-list":t.tableBtn},on:{clickBtn:t.handleClick},slot:"handleBtn"}):t._e()],1),e("pagination",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,total:t.total},on:{"update:page":function(e){return t.$set(t.listQuery,"current",e)},"update:limit":function(e){return t.$set(t.listQuery,"size",e)},pagination:function(e){return t.getList()}}}),e("base-dialog",{attrs:{title:t.addOrEditTitle,dialogVisible:t.centervisible,"before-close":t.handleCancel},on:{cancel:t.handleCancel,confirm:t.handleConfirm}},[e("off-shelf-packaging-add",{ref:"offShelfPackagingAdd",on:{successSubmit:t.successSubmit}})],1),t.detailVisible?e("off-shelf-packaging-detail",{ref:"packagingDetail"}):t._e()],1)},s=[],l=a(475),n=a(2713),r=a(465),d=a(5093);const o=[{prop:"proLineName",label:"产线",minWidth:100},{prop:"glassRackStation",label:"玻璃架工位",minWidth:100},{prop:"glassRackId",label:"玻璃架ID",minWidth:100},{prop:"proSpec",label:"产品型号",minWidth:100},{prop:"grind",label:"研磨面",minWidth:150},{prop:"loadTime",label:"上架时间",filter:l.g6,minWidth:160},{prop:"unloadTime",label:"下架时间",filter:l.g6,minWidth:160},{prop:"num",label:"当前数量",minWidth:100},{prop:"status",label:"状态",filter:(0,l.oJ)("packageState"),minWidth:100},{prop:"remark",label:"备注",minWidth:150}],c=[{type:"end",btnName:"结束复投",showParam:{type:"&",data:[{type:"equal",name:"status",value:1}]}},{type:"continue",btnName:"复投上架",showParam:{type:"&",data:[{type:"equal",name:"status",value:2},{type:"more",name:"num",value:1}]}},{type:"detail",btnName:"详情"},{type:"edit",btnName:"编辑",showParam:{type:"&",data:[{type:"equal",name:"status",value:2}]}}];var h={name:"reLaunching",components:{OffShelfPackagingAdd:n.Z,OffShelfPackagingDetail:r.Z},data(){return{formConfig:[{type:"select",label:"产线",selectOptions:JSON.parse(localStorage.getItem("publicList")).proLineVoList,param:"proLineId",width:120},{type:"select",label:"玻璃架工位",selectOptions:JSON.parse(localStorage.getItem("publicList")).glassRackStationVoList,labelField:"dataName",valueField:"dataName",param:"glassRackStation",width:100},{type:"input",label:"玻璃架ID",placeholder:"玻璃架ID",param:"glassRackId"},{type:"datePicker",label:"上架时间",dateType:"datetimerange",format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-ddTHH:mm:ss",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",param:"timeVal",width:350},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"button",btnName:"重置",name:"reset"}],tableProps:o,tableData:[],tableBtn:c,tableH:(0,l.NC)(265),total:0,listQuery:{current:1,size:20,proLineId:"",glassRackStation:"",glassRackId:"",startTime:"",endTime:""},centervisible:!1,addOrEditTitle:"",detailVisible:!1}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,l.NC)(265)})),this.getList()},methods:{getList(){(0,d.a1)({...this.listQuery}).then((t=>{0===t.code&&(this.tableData=t.data.records,this.total=t.data.total)}))},buttonClick(t){switch(console.log(t.proLineId),t.btnName){case"search":this.listQuery.startTime=t.timeVal?t.timeVal[0]:"",this.listQuery.endTime=t.timeVal?t.timeVal[1]:"",this.listQuery.proLineId=t.proLineId,this.listQuery.glassRackStation=t.glassRackStation,this.listQuery.glassRackId=t.glassRackId,this.listQuery.current=1,this.getList();break;case"reset":this.$refs.searchBarForm.resetForm(),this.listQuery.startTime="",this.listQuery.endTime="",this.listQuery.proLineId="",this.listQuery.glassRackSt