tft-fe/dist/js/9796.d66f9ab1.js
2023-05-15 17:25:05 +08:00

1 line
17 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[9796],{451:function(t,e,a){a.d(e,{Z:function(){return c}});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;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}))}}},s=o,n=a(1001),d=(0,n.Z)(s,r,i,!1,null,null,null),c=d.exports},1603:function(t,e,a){a.d(e,{Z:function(){return f}});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(){}}},c=d,u=a(1001),m=(0,u.Z)(c,r,i,!1,null,null,null),f=m.exports},9796:function(t,e,a){a.r(e),a.d(e,{default:function(){return I}});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:{dialogTitle:t.addOrEditTitle,dialogVisible:t.centervisible,"close-on-click-modal":!1,"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(),e("base-dialog",{attrs:{dialogTitle:"请选择上架的玻璃架工位",dialogVisible:t.centervisible2,"close-on-click-modal":!1,"before-close":t.handleCancel2},on:{cancel:t.handleCancel2,confirm:t.handleConfirm2}},[e("off-shelf-packaging-continue",{ref:"offShelfPackagingContinue",on:{successSubmit2:t.successSubmit2}})],1)],1)},i=[],l=a(475),o=a(451),s=a(1603),n=function(){var t=this,e=t._self._c;return e("el-form",{ref:"formContinue",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)],1)},d=[],c=a(5093),u={name:"OffShelfPackagingContinue",data(){return{form:{id:"",proLineId:"",glassRackStation:""},rules:{proLineId:[{required:!0,message:"请选择产线",trigger:"change"}],glassRackStation:[{required:!0,message:"玻璃架工位",trigger:"change"}]},locationList:JSON.parse(localStorage.getItem("publicList")).glassRackStationVoList,productionLineList:JSON.parse(localStorage.getItem("publicList")).proLineVoList}},methods:{init(t){this.form.id=t},submitForm(){this.$refs["formContinue"].validate((t=>{if(!t)return!1;(0,c.dg)({...this.form}).then((t=>{0===t.code&&(this.$message({message:"操作成功",type:"success",duration:1500}),this.$emit("successSubmit2"))}))}))},formClear(){this.$refs.formContinue.resetFields()}}},m=u,f=a(1001),h=(0,f.Z)(m,n,d,!1,null,null,null),p=h.exports;const g=[{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}],b=[{type:"end",btnName:"结束包装",showParam:{type:"&",data:[{type:"equal",name:"status",value:0}]}},{type:"continue",btnName:"继续包装",showParam:{type:"&",data:[{type:"equal",name:"status",value:2}]}},{type:"detail",btnName:"详情"},{type:"edit",btnName:"编辑",showParam:{type:"&",data:[{type:"equal",name:"status",value:2}]}}];var k={name:"offShelfPackaging",components:{OffShelfPackagingAdd:o.Z,OffShelfPackagingDetail:s.Z,OffShelfPackagingContinue:p},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"},{type:"separate"},{type:"button",btnName:"新增",name:"add",color:"success",plain:!0}],tableProps:g,tableData:[],tableBtn:b,tableH:(0,l.NC)(265),total:0,listQuery:{current:1,size:20,proLineId:"",glassRackStation:"",glassRackId:"",startTime:"",endTime:""},centervisible:!1,addOrEditTitle:"",detailVisible:!1,centervisible2:!1}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,l.NC)(265)})),this.getList()},methods:{getList(){(0,c.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,c.SN)({id:t.data.id}).then((()=>{this.$message({message:"结束包装成功",type:"success",duration:1500,onClose:()=>{}}),this.getList()}))})).catch((()=>{})):"continue"===t.type?(this.centervisible2=!0,this.$nextTick((()=>{this.$refs.offShelfPackagingContinue.init(t.data.id)}))):"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()},handleCancel2(){this.$refs.offShelfPackagingContinue.formClear(),this.centervisible2=!1},handleConfirm2(){this.$refs.offShelfPackagingContinue.submitForm()},successSubmit2(){this.handleCancel2(),this.getList()}}},y=k,S=(0,f.Z)(y,r,i,!1,null,null,null),I=S.exports},5093:function(t,e,a){a.d(e,{EM:function(){return f},EO:function(){return h},F7:function(){return S},Hq:function(){return T},Mk:function(){return i},Nm:function(){return R},SN:function(){return w},To:function(){return d},Tp:function(){return g},W9:function(){return n},Xe:function(){return c},YV:function(){return l},a1:function(){return y},ag:function(){return L},dg:function(){return C},j4:function(){return v},k5:function(){return s},lb:function(){return u},n8:function(){return P},nG:function(){return k},nn:function(){return b},sq:function(){return o},w3:function(){return m},wM:function(){return O},xz:function(){return I},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 c(t){return(0,r.Z)({url:"/order/workOrder/delete",method:"post",data:t})}function u(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 f(t){return(0,r.Z)({url:"/order/workOrder/release",method:"post",data:t})}function h(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 S(t){return(0,r.Z)({url:"/order/unloadPallet/add",method:"post",data:t})}function I(t){return(0,r.Z)({url:"/order/unloadPallet/get",method:"post",data:t})}function L(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 w(t){return(0,r.Z)({url:"/order/unloadPallet/finish",method:"post",data:t})}function C(t){return(0,r.Z)({url:"/order/unloadPallet/continuePack",method:"post",data:t})}function R(t){return(0,r.Z)({url:"/order/unloadPallet/getDetail",method:"post",data:t})}function P(t){return(0,r.Z)({url:"/order/unloadPallet/glassIdTrace",method:"post",formState:!0,data:t})}function O(t){return(0,r.Z)({url:"/order/reloadRack/reload",method:"post",data:t})}function T(t){return(0,r.Z)({url:"/order/reloadRack/end",method:"post",data:t})}}}]);