"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[9705],{451:function(t,e,a){a.d(e,{Z:function(){return u}});var r=function(){var t=this,e=t._self._c;return e("el-form",{ref:"form",attrs:{rules:t.rules,"label-width":"110px",model:t.form}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"产线",prop:"proLineId"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"产线"},model:{value:t.form.proLineId,callback:function(e){t.$set(t.form,"proLineId",e)},expression:"form.proLineId"}},t._l(t.productionLineList,(function(t){return e("el-option",{key:t.id,attrs:{label:t.name,value:t.id}})})),1)],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"玻璃架工位",prop:"glassRackStation"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"玻璃架工位"},model:{value:t.form.glassRackStation,callback:function(e){t.$set(t.form,"glassRackStation",e)},expression:"form.glassRackStation"}},t._l(t.locationList,(function(t){return e("el-option",{key:t.dataCode,attrs:{label:t.dataName,value:t.dataName}})})),1)],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"玻璃架ID",prop:"glassRackId"}},[e("el-input",{attrs:{placeholder:"玻璃架ID"},on:{blur:t.checkGlassRackId},model:{value:t.form.glassRackId,callback:function(e){t.$set(t.form,"glassRackId",e)},expression:"form.glassRackId"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"研磨面",prop:"grind"}},[e("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"复磨面"},model:{value:t.form.grind,callback:function(e){t.$set(t.form,"grind",e)},expression:"form.grind"}},t._l(t.regrindList,(function(t){return e("el-option",{key:t.dataName,attrs:{label:t.dataName,value:t.dataName}})})),1)],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:24}},[e("el-form-item",{attrs:{label:"备注",prop:"remark"}},[e("el-input",{attrs:{placeholder:"备注"},model:{value:t.form.remark,callback:function(e){t.$set(t.form,"remark",e)},expression:"form.remark"}})],1)],1)],1)],1)},i=[],l=a(5093),s={name:"OffShelfPackagingAdd",data(){return{form:{id:"",proLineId:"",glassRackStation:"",glassRackId:"",grind:"",remark:""},rules:{proLineId:[{required:!0,message:"请选择产线",trigger:"change"}],glassRackStation:[{required:!0,message:"玻璃架工位",trigger:"change"}],glassRackId:[{required:!0,message:"玻璃架工位",trigger:"blur"}],grind:[{required:!0,message:"请选择研磨面",trigger:"change"}]},locationList:JSON.parse(localStorage.getItem("publicList")).glassRackStationVoList,productionLineList:JSON.parse(localStorage.getItem("publicList")).proLineVoList,regrindList:JSON.parse(localStorage.getItem("publicList")).regrindVoList,isAllow:1}},methods:{init(t){t?(this.form.id=t,(0,l.xz)({id:t}).then((t=>{0===t.code&&(this.form.proLineId=t.data.proLineId,this.form.grind=t.data.grind,this.form.remark=t.data.remark,this.form.glassRackStation=t.data.glassRackStation,this.form.glassRackId=t.data.glassRackId)}))):this.form.id=""},submitForm(){this.$refs["form"].validate((t=>{if(!t)return!1;1===this.isAllow?this.form.id?(0,l.ag)({...this.form}).then((t=>{0===t.code&&(this.$message({message:"操作成功",type:"success",duration:1500}),this.$emit("successSubmit"))})):(0,l.F7)({...this.form}).then((t=>{0===t.code&&(this.$message({message:"操作成功",type:"success",duration:1500}),this.$emit("successSubmit"))})):this.$message({message:"玻璃架ID与目前是包装或者复投状态的玻璃架ID重复!请重新编辑输入!",type:"error",duration:1500})}))},formClear(){this.isAllow=1,this.$refs.form.resetFields()},checkGlassRackId(){(0,l.j4)(this.form.glassRackId).then((t=>{console.log(t),this.isAllow=1})).catch((t=>{console.log(t),this.isAllow=2}))}}},o=s,n=a(1001),d=(0,n.Z)(o,r,i,!1,null,null,null),u=d.exports},9390:function(t,e,a){a.d(e,{Z:function(){return h}});var r=function(){var t=this,e=t._self._c;return e("div",[e("el-drawer",{attrs:{title:"查看详情",visible:t.visible,size:"70%"},on:{"update:visible":function(e){t.visible=e}}},[e("div",[e("base-table",{attrs:{page:1,limit:1e3,"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH}},[t.tableBtn.length?e("method-btn",{attrs:{slot:"handleBtn",width:110,label:"操作","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.getDetailList()}}})],1)]),e("base-dialog",{attrs:{dialogTitle:"玻璃ID追溯",dialogVisible:t.historyVisible,"close-on-click-modal":!1,"before-close":t.handleCancel}},[e("el-form",{ref:"historyForm",attrs:{model:t.form,"label-width":"150px"}},[e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"初投玻璃ID:"}},[e("el-input",{attrs:{disabled:""},model:{value:t.form.initialGlassId,callback:function(e){t.$set(t.form,"initialGlassId",e)},expression:"form.initialGlassId"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"第一次复磨玻璃ID:"}},[e("el-input",{attrs:{disabled:""},model:{value:t.form.initialGlassId,callback:function(e){t.$set(t.form,"initialGlassId",e)},expression:"form.initialGlassId"}})],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"第二次复磨玻璃ID:"}},[e("el-input",{attrs:{disabled:""},model:{value:t.form.reloadTwo,callback:function(e){t.$set(t.form,"reloadTwo",e)},expression:"form.reloadTwo"}})],1)],1),e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"第三次复磨玻璃ID:"}},[e("el-input",{attrs:{disabled:""},model:{value:t.form.reloadThree,callback:function(e){t.$set(t.form,"reloadThree",e)},expression:"form.reloadThree"}})],1)],1)],1),e("el-row",{attrs:{gutter:20}},[e("el-col",{attrs:{span:12}},[e("el-form-item",{attrs:{label:"第四次复磨玻璃ID:"}},[e("el-input",{attrs:{disabled:""},model:{value:t.form.reloadFour,callback:function(e){t.$set(t.form,"reloadFour",e)},expression:"form.reloadFour"}})],1)],1)],1)],1),e("el-row",{attrs:{slot:"footer",type:"flex",justify:"end"},slot:"footer"},[e("el-col",{attrs:{span:12}},[e("el-button",{staticClass:"btnTextStyle",attrs:{size:"small"},on:{click:t.handleCancel}},[t._v("取消")])],1)],1)],1)],1)},i=[],l=a(475),s=a(5093);const o=[{prop:"proLineName",label:"产线",minWidth:120},{prop:"proSpec",label:"产品型号",minWidth:120},{prop:"glassRackId",label:"玻璃架ID",minWidth:150},{prop:"glassId",label:"玻璃ID",minWidth:160},{prop:"loadTime",label:"上架时间",filter:l.g6,minWidth:160},{prop:"sequence",label:"玻璃序号",minWidth:150}],n=[{type:"processParameters",btnName:"玻璃ID追溯"}];var d={name:"OffShelfPackagingDetail",data(){return{visible:!1,tableProps:o,tableData:[],tableBtn:n,tableH:(0,l.NC)(155),historyVisible:!1,listQuery:{current:1,size:20,id:""},total:10,form:{initialGlassId:"",reloadOne:"",reloadTwo:"",reloadThree:"",reloadFour:""}}},methods:{init(t){this.visible=!0,this.listQuery.id=t,window.addEventListener("resize",(()=>{this.tableH=(0,l.NC)(155)})),this.getDetailList()},getDetailList(){(0,s.Nm)({...this.listQuery}).then((t=>{this.tableData=t.data.records,this.total=t.data.total}))},handleClick(t){this.historyVisible=!0,console.log(t),(0,s.n8)(t.data.glassId).then((t=>{this.form.initialGlassId=t.data.initialGlassId?t.data.initialGlassId:"-",this.form.reloadOne=t.data.reloadOne?t.data.reloadOne:"-",this.form.reloadTwo=t.data.reloadTwo?t.data.reloadTwo:"-",this.form.reloadThree=t.data.reloadThree?t.data.reloadThree:"-",this.form.reloadFour=t.data.reloadFour?t.data.reloadFour:"-"}))},handleCancel(){this.$refs.historyForm.resetFields(),this.historyVisible=!1}}},u=d,c=a(1001),m=(0,c.Z)(u,r,i,!1,null,null,null),h=m.exports},9705:function(t,e,a){a.r(e),a.d(e,{default:function(){return p}});var r=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)},i=[],l=a(475),s=a(451),o=a(9390),n=a(5093);const d=[{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}],u=[{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 c={name:"reLaunching",components:{OffShelfPackagingAdd:s.Z,OffShelfPackagingDetail:o.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:d,tableData:[],tableBtn:u,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,n.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.glassRackStation="",this.listQuery.glassRackId="",this.listQuery.current=1,this.getList();break;default:this.addOrEditTitle="新增",this.$nextTick((()=>{this.$refs.offShelfPackagingAdd.init()})),this.centervisible=!0;break}},handleClick(t){console.log(t),"edit"===t.type?(this.centervisible=!0,this.addOrEditTitle="编辑",this.$nextTick((()=>{this.$refs.offShelfPackagingAdd.init(t.data.id)}))):"end"===t.type?this.$confirm('确认结束复投玻璃架ID" '+t.data.glassRackId+' "吗?',{type:"warning"}).then((()=>{(0,n.Hq)({id:t.data.id}).then((()=>{this.$message({message:"结束复投成功",type:"success",duration:1500,onClose:()=>{}}),this.getList()}))})).catch((()=>{})):"continue"===t.type?this.$confirm('确认复投上架玻璃架ID" '+t.data.glassRackId+' "吗?',{type:"warning"}).then((()=>{(0,n.wM)({id:t.data.id}).then((()=>{this.$message({message:"复投上架成功",type:"success",duration:1500,onClose:()=>{}}),this.getList()}))})).catch((()=>{})):"detail"===t.type&&(this.detailVisible=!0,this.$nextTick((()=>{this.$refs.packagingDetail.init(t.data.id)})))},handleCancel(){this.$refs.offShelfPackagingAdd.formClear(),this.centervisible=!1,this.addOrEditTitle=""},handleConfirm(){this.$refs.offShelfPackagingAdd.submitForm()},successSubmit(){this.handleCancel(),this.getList()}}},m=c,h=a(1001),f=(0,h.Z)(m,r,i,!1,null,null,null),p=f.exports},5093:function(t,e,a){a.d(e,{EM:function(){return u},EO:function(){return c},F7:function(){return b},Hq:function(){return R},Mk:function(){return i},Nm:function(){return L},Ol:function(){return f},SN:function(){return w},TQ:function(){return p},To:function(){return s},Tp:function(){return h},W9:function(){return l},Xe:function(){return o},a1:function(){return g},ag:function(){return y},dg:function(){return S},j4:function(){return I},lb:function(){return n},n8:function(){return v},w3:function(){return d},wM:function(){return T},xz:function(){return k},zz:function(){return m}});var r=a(8859);function i(t){return(0,r.Z)({url:"/order/workOrderProcess/getProcessInfo",method:"post",data:t})}function l(t){return(0,r.Z)({url:"/order/workOrder/page",method:"post",data:t})}function s(t){return(0,r.Z)({url:"/order/workOrder/add",method:"post",data:t})}function o(t){return(0,r.Z)({url:"/order/workOrder/delete",method:"post",data:t})}function n(t){return(0,r.Z)({url:"/order/workOrder/update",method:"post",data:t})}function d(t){return(0,r.Z)({url:"/order/workOrder/get",method:"post",data:t})}function u(t){return(0,r.Z)({url:"/order/workOrder/release",method:"post",data:t})}function c(t){return(0,r.Z)({url:"/order/workOrder/finish",method:"post",data:t})}function m(t){return(0,r.Z)({url:"/order/workOrder/importTemplate",method:"post",data:t})}const h="/api/order/workOrder/import";function f(t){return(0,r.Z)({url:"/order/ProData/page",method:"post",data:t})}function p(t){return(0,r.Z)({url:"/order/ProData/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function g(t){return(0,r.Z)({url:"/order/unloadPallet/page",method:"post",data:t})}function b(t){return(0,r.Z)({url:"/order/unloadPallet/add",method:"post",data:t})}function k(t){return(0,r.Z)({url:"/order/unloadPallet/get",method:"post",data:t})}function y(t){return(0,r.Z)({url:"/order/unloadPallet/update",method:"post",data:t})}function I(t){return(0,r.Z)({url:"/order/unloadPallet/verify",method:"post",formState:!0,data:t})}function w(t){return(0,r.Z)({url:"/order/unloadPallet/finish",method:"post",data:t})}function S(t){return(0,r.Z)({url:"/order/unloadPallet/continuePack",method:"post",data:t})}function L(t){return(0,r.Z)({url:"/order/unloadPallet/getDetail",method:"post",data:t})}function v(t){return(0,r.Z)({url:"/order/unloadPallet/glassIdTrace",method:"post",formState:!0,data:t})}function T(t){return(0,r.Z)({url:"/order/reloadRack/reload",method:"post",data:t})}function R(t){return(0,r.Z)({url:"/order/reloadRack/end",method:"post",data:t})}}}]);