tft-fe/dist/js/6833.635c9e95.js

1 line
7.8 KiB
JavaScript
Raw Normal View History

"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[6833],{6833:function(e,t,a){a.r(t),a.d(t,{default:function(){return L}});var i=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-box"},[t("search-bar",{ref:"searchBarForm",attrs:{formConfigs:e.formConfig},on:{headBtnClick:e.buttonClick}}),t("base-table",{attrs:{page:e.listQuery.current,limit:e.listQuery.size,"table-props":e.tableProps,"table-data":e.tableData,"max-height":e.tableH}},[e.tableBtn.length?t("method-btn",{attrs:{slot:"handleBtn",width:260,label:"操作",fixed:"right","method-list":e.tableBtn},on:{clickBtn:e.handleClick},slot:"handleBtn"}):e._e()],1),t("pagination",{attrs:{page:e.listQuery.current,limit:e.listQuery.size,total:e.total},on:{"update:page":function(t){return e.$set(e.listQuery,"current",t)},"update:limit":function(t){return e.$set(e.listQuery,"size",t)},pagination:function(t){return e.getList()}}}),t("base-dialog",{attrs:{dialogTitle:e.addOrEditTitle,dialogVisible:e.centervisible,"close-on-click-modal":!1,"before-close":e.handleCancel},on:{cancel:e.handleCancel,confirm:e.handleConfirm}},[t("off-shelf-packaging-add",{ref:"offShelfPackagingAdd",on:{successSubmit:e.successSubmit}})],1),e.detailVisible?t("off-shelf-packaging-detail",{ref:"packagingDetail"}):e._e(),t("base-dialog",{attrs:{dialogTitle:"请选择上架的玻璃架工位",dialogVisible:e.centervisible2,"close-on-click-modal":!1,"before-close":e.handleCancel2},on:{cancel:e.handleCancel2,confirm:e.handleConfirm2}},[t("off-shelf-packaging-continue",{ref:"offShelfPackagingContinue",on:{successSubmit2:e.successSubmit2}})],1)],1)},s=[],l=a(475),n=a(2713),r=a(465),o=function(){var e=this,t=e._self._c;return t("el-form",{ref:"formContinue",attrs:{rules:e.rules,"label-width":"110px",model:e.form}},[t("el-row",{attrs:{gutter:20}},[t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"产线",prop:"proLineId"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"产线"},model:{value:e.form.proLineId,callback:function(t){e.$set(e.form,"proLineId",t)},expression:"form.proLineId"}},e._l(e.productionLineList,(function(e){return t("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),t("el-col",{attrs:{span:12}},[t("el-form-item",{attrs:{label:"玻璃架工位",prop:"glassRackStation"}},[t("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"玻璃架工位"},model:{value:e.form.glassRackStation,callback:function(t){e.$set(e.form,"glassRackStation",t)},expression:"form.glassRackStation"}},e._l(e.locationList,(function(e){return t("el-option",{key:e.dataCode,attrs:{label:e.dataName,value:e.dataName}})})),1)],1)],1)],1)],1)},c=[],d=a(5093),m={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(e){this.form.id=e},submitForm(){this.$refs["formContinue"].validate((e=>{if(!e)return!1;(0,d.dg)({...this.form}).then((e=>{0===e.code&&(this.$message({message:"操作成功",type:"success"}),this.$emit("successSubmit2"))}))}))},formClear(){this.$refs.formContinue.resetFields()}}},h=m,u=a(1001),f=(0,u.Z)(h,o,c,!1,null,null,null),p=f.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:"&",dat