yxk_pc_mdh/gyhl/static/js/323.e7742f26fe3404b28d11.js

1 line
6.8 KiB
JavaScript

webpackJsonp([323],{"90z3":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("woOf"),o=a.n(l),i=a("Dd8w"),r=a.n(i),n=a("bzuE"),s=a("NYxO"),m={components:{},data:function(){return{formDetail:{},formData:{},id:"",hitchList:[],deviceStatusList:[],tableData:[],initFilePaths:[],dialogVisible:!1,dialogImageUrl:"",repairRecordImage:[],loading:!1,tableList:[],type:null,config:n.a}},mounted:function(){this.id=this.$route.query.id,this.getDetail()},methods:r()({},Object(s.d)({removeTagNav:"tagNav/removeTagNav"}),{getDetail:function(){var e=this;this.loading=!0,this.$api.planManagementAPI.productionFeedingDetail({id:this.id}).then(function(t){0===t.code&&(e.formDetail=o()({},e.formDetail,t.feedingHeadInfo),e.formDetail.createTime=e.formDetail.createTime.substr(0,10),e.tableList=t.feedingBodyInfo),e.loading=!1}).catch(function(t){e.loading=!1})},back:function(){this.removeTagNav({path:this.$route.path,title:this.$route.meta.name}),this.$router.push({path:"/outsourcing/outsourcing_feeding_index"})}})},c={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys-box repair-box"},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.back()}}},[e._v(e._s(e.config.cancelText))])],1),e._v(" "),a("div",{staticClass:"sys-form"},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.loading,expression:"loading"}],attrs:{"label-width":"120px",model:e.formDetail}},[a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"委外合同号"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:e.formDetail.contractCode,callback:function(t){e.$set(e.formDetail,"contractCode",t)},expression:"formDetail.contractCode"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"委外投料单号"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:e.formDetail.feedingNo,callback:function(t){e.$set(e.formDetail,"feedingNo",t)},expression:"formDetail.feedingNo"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"单据日期"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:e.formDetail.createTime,callback:function(t){e.$set(e.formDetail,"createTime",t)},expression:"formDetail.createTime"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"产品代码"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:e.formDetail.materialSerialNo,callback:function(t){e.$set(e.formDetail,"materialSerialNo",t)},expression:"formDetail.materialSerialNo"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"产品名称"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:e.formDetail.materialName,callback:function(t){e.$set(e.formDetail,"materialName",t)},expression:"formDetail.materialName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"规格型号"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:e.formDetail.specification,callback:function(t){e.$set(e.formDetail,"specification",t)},expression:"formDetail.specification"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"主计量单位"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:e.formDetail.unitUomName,callback:function(t){e.$set(e.formDetail,"unitUomName",t)},expression:"formDetail.unitUomName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"供应商"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:e.formDetail.supplierName,callback:function(t){e.$set(e.formDetail,"supplierName",t)},expression:"formDetail.supplierName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"主单位数量"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:e.formDetail.planCount,callback:function(t){e.$set(e.formDetail,"planCount",t)},expression:"formDetail.planCount"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"是否限额发料"}},[[1==e.formDetail.isQuota?a("div",[a("el-input",{attrs:{value:"是",readonly:""}})],1):0==e.formDetail.isQuota?a("div",[a("el-input",{attrs:{value:"否",readonly:""}})],1):e._e()]],2),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"制单人"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:e.formDetail.createrName,callback:function(t){e.$set(e.formDetail,"createrName",t)},expression:"formDetail.createrName"}})],1),e._v(" "),178!=e.formDetail.statusId?a("el-form-item",{staticClass:"form-inline",attrs:{label:"审核人"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:e.formDetail.audituserName,callback:function(t){e.$set(e.formDetail,"audituserName",t)},expression:"formDetail.audituserName"}})],1):e._e(),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"单据状态"}},[a("el-input",{attrs:{placeholder:"",readonly:""},model:{value:e.formDetail.status,callback:function(t){e.$set(e.formDetail,"status",t)},expression:"formDetail.status"}})],1)],1),e._v(" "),a("el-divider",{attrs:{"content-position":"left"}})],1),e._v(" "),a("el-table",{attrs:{data:e.tableList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"},border:""}},[a("el-table-column",{attrs:{prop:"materialSerialNo","show-overflow-tooltip":"",align:"center",label:"物料代码"}}),e._v(" "),a("el-table-column",{attrs:{prop:"materialName","show-overflow-tooltip":"",align:"center",label:"物料名称"}}),e._v(" "),a("el-table-column",{attrs:{prop:"specification",align:"center","show-overflow-tooltip":"",label:"规格型号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"unitUomName","show-overflow-tooltip":"",align:"center",label:"主计量单位"}}),e._v(" "),a("el-table-column",{attrs:{prop:"planFeedingCount","show-overflow-tooltip":"",align:"center",label:"主单位计划发料数量"}}),e._v(" "),a("el-table-column",{attrs:{prop:"outCount","show-overflow-tooltip":"",align:"center",label:"主单位已发数量"}}),e._v(" "),a("el-table-column",{attrs:{prop:"supportUomName","show-overflow-tooltip":"",align:"center",label:"辅助单位"}}),e._v(" "),a("el-table-column",{attrs:{prop:"planFeedingSupport","show-overflow-tooltip":"",align:"center",label:"辅助单位计划发料数量"}}),e._v(" "),a("el-table-column",{attrs:{prop:"outCountSupport","show-overflow-tooltip":"",align:"center",label:"辅助单位已发数量"}}),e._v(" "),a("el-table-column",{attrs:{prop:"defaultFacilityName","show-overflow-tooltip":"",align:"center",label:"默认仓库"}}),e._v(" "),a("el-table-column",{attrs:{prop:"defaultLocationName","show-overflow-tooltip":"",align:"center",label:"默认仓位"}})],1)],1)])},staticRenderFns:[]};var f=a("VU/8")(m,c,!1,function(e){a("J+YY")},"data-v-7b5cc95c",null);t.default=f.exports},"J+YY":function(e,t){}});