tft-fe/dist/js/6828.3e4b3643.js

1 line
11 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([[6828],{2713:function(t,e,r){r.d(e,{Z:function(){return u}});var a=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)},o=[],l=r(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"}),this.$emit("successSubmit"))})):(0,l.F7)({...this.form}).then((t=>{0===t.code&&(this.$message({message:"操作成功",type:"success"}),this.$emit("successSubmit"))})):this.$message({message:"玻璃架ID与目前是包装或者复投状态的玻璃架ID重复请重新编辑输入",type:"error"})}))},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}))}}},n=s,i=r(1001),d=(0,i.Z)(n,a,o,!1,null,null,null),u=d.exports},465:function(t,e,r){r.d(e,{Z:function(){return I}});var a=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)},o=[],l=r(475),s=r(5093),n=function(){var t=this,e=t._self._c;return e("div",[e("span",{style:"color: "+t.showColor},[t._v(t._s(t.injectData.glassRackId))])])},i=[],d={name:"innerSpan",props:{injectData:{type:Object,default:()=>({})}},data(){return{showColor:"green"}},mounted(){this.init()},methods:{init(){switch(this.injectData.status){case 3:this.showColor="#37D97F";break;case 1:this.showColor="#FF4E4ED9";break;default:this.showColor="#606266"}}},watch:{injectData(t,e){e.enabled!==t.enabled&&this.init()}}},u=d,c=r(1001),m=(0,c.Z)(u,n,i,!1,null,null,null),f=m.exports;const p=[{prop:"proLineName",label:"产线",minWidth:120},{prop:"proSpec",label:"产品型号",minWidth:120},{prop:"glassRackId",label:"玻璃架ID",minWidth:150},{prop:"glassId",label:"玻璃ID",minWidth:160,subcomponent:f},{prop:"loadTime",label:"上架时间",filter:l.g6,minWidth:160},{prop:"sequence",label:"玻璃序号",minWidth:150}],h=[{type:"processParameters",btnName:"玻璃ID追溯"}];var g={name:"OffShelfPackagingDetail",data(){return{visible:!1,tableProps:p,tableData:[],tableBtn:h,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}}},b=g,k=(0,c.Z)(b,a,o,!1,null,null,null),I=k.exports},5093:function(t,e,r){r.d(e,{B7:function(){return w},EM:function(){return u},EO:function(){return c},F7:function(){return b},Hq:function(){return R},Mk:function(){return o},Nm:function(){return L},Ol:function(){return p},SN:function(){return y},TQ:function(){return h},To:function(){return s},Tp:function(){return f},W9:function(){return l},Xe:function(){return n},a1:function(){return g},ag:function(){return I},dg:function(){return D},j4:function(){return v},lb:function(){return i},n8:function(){return S},w3:function(){return d},wM:function(){return Z},xz:function(){return k},zz:function(){return m}});var a=r(8859);function o(t){return(0,a.Z)({url:"/order/workOrderProcess/getProcessInfo",method:"post",data:t})}function l(t){return(0,a.Z)({url:"/order/workOrder/page",method:"post",data:t})}function s(t){return(0,a.Z)({url:"/order/workOrder/add",method:"post",data:t})}function n(t){return(0,a.Z)({url:"/order/workOrder/delete",method:"post",data:t})}function i(t){return(0,a.Z)({url:"/order/workOrder/update",method:"post",data:t})}function d(t){return(0,a.Z)({url:"/order/workOrder/get",method:"post",data:t})}function u(t){return(0,a.Z)({url:"/order/workOrder/release",method:"post",data:t})}function c(t){return(0,a.Z)({url:"/order/workOrder/finish",method:"post",data:t})}function m(t){return(0,a.Z)({url:"/order/workOrder/importTemplate",method:"post",data:t})}const f="/api/order/workOrder/import";function p(t){return(0,a.Z)({url:"/order/ProData/page",method:"post",data:t})}function h(t){return(0,a.Z)({url:"/order/ProData/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function g(t){return(0,a.Z)({url:"/order/unloadPallet/page",method:"post",data:t})}function b(t){return(0,a.Z)({url:"/order/unloadPallet/add",method:"post",data:t})}function k(t){return(0,a.Z)({url:"/order/unloadPallet/get",method:"post",data:t})}function I(t){return(0,a.Z)({url:"/order/unloadPallet/update",method:"post",data:t})}function w(t){return(0,a.Z)({url:"/order/unloadPallet/delete",method:"post",data:t})}function v(t){return(0,a.Z)({url:"/order/unloadPallet/verify",method:"post",formState:!0,data:t})}function y(t){return(0,a.Z)({url:"/order/unloadPallet/finish",method:"post",data:t})}function D(t){return(0,a.Z)({url:"/order/unloadPallet/continuePack",method:"post",data:t})}function L(t){return(0,a.Z)({url:"/order/unloadPallet/getDetail",method:"post",data:t})}function S(t){return(0,a.Z)({url:"/order/unloadPallet/glassIdTrace",method:"post",formState:!0,data:t})}function Z(t){return(0,a.Z)({url:"/order/reloadRack/reload",method:"post",data:t})}function R(t){return(0,a.Z)({url:"/order/reloadRack/end",method:"post",data:t})}}}]);