yxk_pc_mdh/gyhl/static/js/241.94e04811761f0546bd66.js

1 line
5.8 KiB
JavaScript

webpackJsonp([241],{"02Ks":function(t,e){},G3SM:function(t,e,l){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=l("Dd8w"),o=l.n(a),n=l("NYxO"),r=l("bzuE"),i={data:function(){return{id:"",planNo:"",formDetail:{},formData:{},drawer:!1,bodyList:[],tableData:[],dialogVisible:!1,loading:!1,config:r.a}},mounted:function(){this.$route.query.id&&(this.id=this.$route.query.id,this.planNo=this.$route.query.planNo),this.getDetail()},methods:o()({},Object(n.d)({removeTagNav:"tagNav/removeTagNav"}),{clickRow:function(t){this.drawer=!0,this.bodyList=t.bodyInfo},getDetail:function(){var t=this;this.loading=!0,this.$api.planManagementAPI.productionPlanfollowPlan({id:this.id}).then(function(e){0===e.code&&(t.tableData=e.data),t.loading=!1}).catch(function(e){t.loading=!1})},back:function(){this.removeTagNav({path:this.$route.path,title:this.$route.meta.name}),this.$router.push({path:"/planManagement/production",query:{t:Date.now()}})}})},s={render:function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",{staticClass:"sys-box repair-box"},[l("div",{staticClass:"sys-operate"},[l("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.back()}}},[t._v(t._s(t.config.cancelText))])],1),t._v(" "),l("div",{staticClass:"sys-form"},[l("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],attrs:{"label-width":"120px",model:t.formDetail}},[l("el-divider",{attrs:{"content-position":"left"}},[t._v("生产计划号: "),l("span",[t._v(t._s(t.planNo))])]),t._v(" "),l("el-divider",{attrs:{"content-position":"left"}},[t._v("工序计划 ")]),t._v(" "),l("div",{staticClass:"sys-table"},[l("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}],ref:"tb",attrs:{border:"",fit:"",data:t.tableData,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"row-click":t.clickRow}},[l("el-table-column",{attrs:{width:"180",align:"center",label:"工序计划单号","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[l("el-link",{attrs:{type:"primary"}},[t._v(t._s(e.row.inheadInfo.planNo))])]}}])}),t._v(" "),l("el-table-column",{attrs:{align:"center",label:"状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("div",[t._v(t._s(e.row.inheadInfo.planStatusName))])]}}])}),t._v(" "),l("el-table-column",{attrs:{align:"center",label:"产品代码"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("div",[t._v(t._s(e.row.inheadInfo.materialSerialNo))])]}}])}),t._v(" "),l("el-table-column",{attrs:{align:"center",label:"产品名称"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("div",[t._v(t._s(e.row.inheadInfo.materialName))])]}}])}),t._v(" "),l("el-table-column",{attrs:{align:"center",label:"规格型号"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("div",[t._v(t._s(e.row.inheadInfo.specification))])]}}])}),t._v(" "),l("el-table-column",{attrs:{align:"center",label:"计量单位"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("div",[t._v(t._s(e.row.inheadInfo.unitUomName))])]}}])}),t._v(" "),l("el-table-column",{attrs:{align:"center",label:"计划开工日期"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("div",[t._v(t._s(e.row.inheadInfo.planStartTime))])]}}])}),t._v(" "),l("el-table-column",{attrs:{align:"center",label:"计划完工日期"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("div",[t._v(t._s(e.row.inheadInfo.planEndtTime))])]}}])}),t._v(" "),l("el-table-column",{attrs:{align:"center",label:"实际开工日期"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("div",[t._v(t._s(e.row.inheadInfo.realityStartTime))])]}}])}),t._v(" "),l("el-table-column",{attrs:{align:"center",label:"实际完工日期"},scopedSlots:t._u([{key:"default",fn:function(e){return[l("div",[t._v(t._s(e.row.inheadInfo.realityEndTime))])]}}])})],1)],1)],1)],1),t._v(" "),l("el-drawer",{attrs:{size:"800px",modal:!1,title:"工序列表",visible:t.drawer},on:{"update:visible":function(e){t.drawer=e}}},[l("el-table",{attrs:{data:t.bodyList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"},border:""}},[l("el-table-column",{attrs:{prop:"processName","show-overflow-tooltip":"",align:"center",label:"工序名称"}}),t._v(" "),l("el-table-column",{attrs:{prop:"deptName","show-overflow-tooltip":"",align:"center",label:"生产部门"}}),t._v(" "),l("el-table-column",{attrs:{prop:"statusName",align:"center","show-overflow-tooltip":"",label:"状态"}}),t._v(" "),l("el-table-column",{attrs:{prop:"operatorName","show-overflow-tooltip":"",align:"center",label:"操作工"}}),t._v(" "),l("el-table-column",{attrs:{prop:"deviceName","show-overflow-tooltip":"",align:"center",label:"生产设备"}}),t._v(" "),l("el-table-column",{attrs:{prop:"planStartTime","show-overflow-tooltip":"",align:"center",label:"计划开工日期"}}),t._v(" "),l("el-table-column",{attrs:{prop:"planEndtTime","show-overflow-tooltip":"",align:"center",label:"计划完工日期"}}),t._v(" "),l("el-table-column",{attrs:{prop:"realityStartTime","show-overflow-tooltip":"",align:"center",label:"实际开工日期"}}),t._v(" "),l("el-table-column",{attrs:{prop:"realityEndTime","show-overflow-tooltip":"",align:"center",label:"实际完工日期"}}),t._v(" "),l("el-table-column",{attrs:{prop:"planCount","show-overflow-tooltip":"",align:"center",label:"计划生产数量"}}),t._v(" "),l("el-table-column",{attrs:{prop:"completionCount","show-overflow-tooltip":"",align:"center",label:"完工数量"}})],1),t._v(" "),l("div",{staticClass:"dialog-footer"},[l("el-button",{staticClass:"footer_btn",attrs:{type:"primary"},on:{click:function(e){t.drawer=!1}}},[t._v(t._s(t.config.cancelText))])],1)],1)],1)},staticRenderFns:[]};var c=l("VU/8")(i,s,!1,function(t){l("02Ks"),l("uyVM")},"data-v-258b8f30",null);e.default=c.exports},uyVM:function(t,e){}});