You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 regel
14 KiB

  1. "use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[9705],{4226: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),o={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;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"))}))}))},formClear(){this.$refs.form.resetFields()},checkGlassRackId(){(0,l.j4)(this.form.glassRackId).then((t=>{console.log(t)})).catch((t=>{console.log(t),this.isAllow}))}}},s=o,n=a(1001),d=(0,n.Z)(s,r,i,!1,null,null,null),u=d.exports},1603:function(t,e,a){a.d(e,{Z:function(){return h}});var r=function(){var t=this,e=t._self._c;return 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:{limit:t.listQuery.size,total:t.total}}),e("el-drawer",{attrs:{title:"玻璃ID追溯","append-to-body":!0,visible:t.historyVisible,size:"50%"},on:{"update:visible":function(e){t.historyVisible=e}}},[e("el-form",{ref:"form",attrs:{model:t.form,"label-width":"150px"}},[e("el-form-item",{attrs:{label:"初投玻璃ID:"}},[t._v(t._s(t.form.initialGlassId))]),e("el-form-item",{attrs:{label:"第一次复磨玻璃ID:"}},[t._v(t._s(t.form.reloadOne))]),e("el-form-item",{attrs:{label:"第二次复磨玻璃ID:"}},[t._v(t._s(t.form.reloadTwo))]),e("el-form-item",{attrs:{label:"第三次复磨玻璃ID:"}},[t._v(t._s(t.form.reloadThree))]),e("el-form-item",{attrs:{label:"第四次复磨玻璃ID:"}},[t._v(t._s(t.form.reloadFour))])],1)],1)],1)])},i=[],l=a(475),o=a(5093);const s=[{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:s,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)})),(0,o.Nm)({...this.listQuery}).then((t=>{this.tableData=t.data.records,this.total=t.data.total}))},handleClick(t){this.historyVisible=!0,console.log(t),(0,o.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:"-"}))},handleCloseProcess(){},handleCloseDevice(){}}},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),o=a(4226),s=a(1603),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:o.Z,OffShelfPackagingDetail:s.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 h},EO:function(){return f},F7:function(){return I},Hq:function(){return C},Mk:function(){return i},Nm:function(){return P},SN:function(){return L},To:function(){return d},Tp:function(){return g},W9:function(){return n},Xe:function(){return u},YV:function(){return l},a1:function(){return y},ag:function(){return w},dg:function(){return R},j4:function(){return v},k5:function(){return s},lb:function(){return c},n8:function(){return O},nG:function(){return k},nn:function(){return b},sq:function(){return o},w3:function(){return m},wM:function(){return T},xz:function(){return S},zz:function(){return p}});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/workOrderProcess/lineGlassCount",method:"post",data:t})}function o(t){return(0,r.Z)({url:"/order/workOrderProcess/grindGlassCount",method:"post",data:t})}function s(t){return(0,r.Z)({url:"/order/workOrderProcess/FinalClassCount",method:"post",data:t})}function n(t){return(0,r.Z)({url:"/order/workOrder/page",method:"post",data:t})}function d(t){return(0,r.Z)({url:"/order/workOrder/add",method:"post",data:t})}function u(t){return(0,r.Z)({url:"/order/workOrder/delete",method:"post",data:t})}function c(t){return(0,r.Z)({url:"/order/workOrder/update",method:"post",data:t})}function m(t){return(0,r.Z)({url:"/order/workOrder/get",method:"post",data:t})}function h(t){return(0,r.Z)({url:"/order/workOrder/release",method:"post",data:t})}function f(t){return(0,r.Z)({url:"/order/workOrder/finish",method:"post",data:t})}function p(t){return(0,r.Z)({url:"/order/workOrder/importTemplate",method:"post",data:t})}const g="/api/order/workOrder/import";function b(t){return(0,r.Z)({url:"/order/proReport/pageThickness",method:"post",data:t})}function k(t){return(0,r.Z)({url:"/order/proReport/genTable",method:"post",formState:!0,data:t})}function y(t){return(0,r.Z)({url:"/order/unloadPallet/page",method:"post",data:t})}function I(t){return(0,r.Z)({url:"/order/unloadPallet/add",method:"post",data:t})}function S(t){return(0,r.Z)({url:"/order/unloadPallet/get",method:"post",data:t})}function w(t){return(0,r.Z)({url:"/order/unloadPallet/update",method:"post",data:t})}function v(t){return(0,r.Z)({url:"/order/unloadPallet/verify",method:"post",formState:!0,data:t})}function L(t){return(0,r.Z)({url:"/order/unloadPallet/finish",method:"post",data:t})}function R(t){return(0,r.Z)({url:"/order/unloadPallet/continuePack",method:"post",data:t})}function P(t){return(0,r.Z)({url:"/order/unloadPallet/getDetail",method:"post",data:t})}function O(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 C(t){return(0,r.Z)({url:"/order/reloadRack/end",method:"post",data:t})}}}]);