yxk_pc_mdh/gyhl/static/js/225.e32436bda9515c75b2f4.js

1 line
7.4 KiB
JavaScript

webpackJsonp([225],{"2Lrj":function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=a("d7EF"),r=a.n(o),l=a("//Fk"),i=a.n(l),n=a("woOf"),c=a.n(n),s=a("Dd8w"),d=a.n(s),m=a("NYxO"),f=a("bzuE"),u=(a("lbHh"),{inject:["reload"],components:{},data:function(){return{config:f.a,editId:"",auditStatus:"",initiate_auditStatus:"",closeStatus:"",canChange:!1,itemIds:[],payIds:[],formData:{},chooseParts:[],chooseParts2:[],contractTypeList:[],ruleForm:{},model:{rules:{count:{required:!0,message:"采购数量必填",trigger:"change"},taxAmount:{required:!0,message:"含税金额必填",trigger:"change"},taxRate:{required:!0,message:"税率必填",trigger:"change"}},childList:[]},model2:{rules:{dueDate:{required:!0,message:"应付日期必填",trigger:"change"}},childList:[]},childListLoading:!1}},computed:d()({},Object(m.c)({})),mounted:function(){this.editId=this.$route.query.id,this.initialize(),this.getDetail()},methods:d()({},Object(m.d)({removeTagNav:"tagNav/removeTagNav"}),{back:function(){this.removeTagNav({path:this.$route.path,title:this.$route.meta.name}),this.$router.push({path:"/outsourcing/outsourcing_contract_alteration",query:{id:this.formData.id,t:Date.now()}})},getDetail:function(){var e=this;this.childListLoading=!0,this.$nextTick().then(function(){e.$api.outsourcingAPI.outsourcingContractAlterationDetail({id:e.editId}).then(function(t){e.childListLoading=!1,0===t.code&&(e.formData=c()({},t.contract),e.model.childList=t.itemArray,e.model.childList.forEach(function(e){e.countBefore=e.countBefore?parseFloat(e.countBefore):"",e.taxAmountBefore=e.taxAmountBefore?parseFloat(e.taxAmountBefore):"",e.countAfter=e.countAfter?parseFloat(e.countAfter):"",e.taxAmountAfter=e.taxAmountAfter?parseFloat(e.taxAmountAfter):""}),e.model2.childList=t.payArray,e.model2.childList.forEach(function(e){e.receivableDateBefore=/\d{4}-\d{1,2}-\d{1,2}/g.exec(e.receivableDateBefore),e.receivableDateAfter=/\d{4}-\d{1,2}-\d{1,2}/g.exec(e.receivableDateAfter)}))})}).catch(function(t){e.childListLoading=!1})},initialize:function(){var e=this;i.a.all([this.$api.gylCommonAPI.getDictsByType({type:"outsourcing_contract_type"})]).then(function(t){var a=r()(t,1)[0];0===a.code&&(e.contractTypeList=a.datas)}).catch(function(e){})}})}),p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys-box plan-box"},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:e.back}},[e._v(e._s(e.config.cancelText))])],1),e._v(" "),a("div",{staticClass:"sys-form"},[a("el-form",{ref:"form",attrs:{"label-width":"120px",model:e.formData,rules:e.ruleForm}},[a("div",{staticClass:"flex"},[a("el-form-item",{staticClass:"form-inline",attrs:{label:"供应商",prop:"supplierName"}},[a("el-input",{attrs:{placeholder:"供应商",clearable:"",readonly:""},model:{value:e.formData.supplierName,callback:function(t){e.$set(e.formData,"supplierName",t)},expression:"formData.supplierName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"采购员",prop:"purchasePersonName"}},[a("el-input",{attrs:{placeholder:"采购员",readonly:""},model:{value:e.formData.purchasePersonName,callback:function(t){e.$set(e.formData,"purchasePersonName",t)},expression:"formData.purchasePersonName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"采购部门",prop:"deptName"}},[a("el-input",{attrs:{readonly:""},model:{value:e.formData.deptName,callback:function(t){e.$set(e.formData,"deptName",t)},expression:"formData.deptName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"合同类型",clearable:""}},[a("el-input",{attrs:{readonly:""},model:{value:e.formData.contractTypeName,callback:function(t){e.$set(e.formData,"contractTypeName",t)},expression:"formData.contractTypeName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"合同日期",prop:"contractDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"",type:"date",placeholder:"选择合同日期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.formData.contractDate,callback:function(t){e.$set(e.formData,"contractDate",t)},expression:"formData.contractDate"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"合同有效期",prop:"contractExpireDate"}},[a("el-date-picker",{staticStyle:{width:"100%"},attrs:{disabled:"",type:"date",placeholder:"选择合同有效期",format:"yyyy-MM-dd","value-format":"yyyy-MM-dd"},model:{value:e.formData.contractExpireDate,callback:function(t){e.$set(e.formData,"contractExpireDate",t)},expression:"formData.contractExpireDate"}})],1),e._v(" "),a("el-form-item",{staticClass:"form-inline",attrs:{label:"合同编号"}},[a("el-input",{attrs:{placeholder:"自动生成",disabled:""},model:{value:e.formData.contractCode,callback:function(t){e.$set(e.formData,"contractCode",t)},expression:"formData.contractCode"}})],1)],1)]),e._v(" "),a("el-divider",{attrs:{"content-position":"left"}},[e._v("物料列表")]),e._v(" "),a("el-form",{ref:"formChild",attrs:{model:e.model}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.childListLoading,expression:"childListLoading"}],attrs:{data:e.model.childList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"},border:""}},[a("el-table-column",{attrs:{prop:"serialNo",label:"物料代码",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"name",label:"物料名称",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"specification",align:"center","show-overflow-tooltip":"",label:"规格型号"}}),e._v(" "),a("el-table-column",{attrs:{prop:"unitUomName",align:"center","show-overflow-tooltip":"",label:"单位"}}),e._v(" "),a("el-table-column",{attrs:{prop:"countBefore",align:"center","show-overflow-tooltip":"",label:"加工数量 (变更前)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"countAfter",align:"center","show-overflow-tooltip":"",label:"加工数量 (变更后)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"taxAmountBefore",align:"center","show-overflow-tooltip":"",label:"加工金额/元 (变更前)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"taxAmountAfter",align:"center","show-overflow-tooltip":"",label:"加工金额/元 (变更后)"}})],1)],1),e._v(" "),a("el-divider",{attrs:{"content-position":"left"}},[e._v("合同付款条件")]),e._v(" "),a("el-form",{ref:"formChild2"},[a("el-form-item",{staticClass:"childlist"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.childListLoading,expression:"childListLoading"}],attrs:{data:e.model2.childList,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"},border:""}},[a("el-table-column",{attrs:{prop:"receivableDateBefore",align:"center","show-overflow-tooltip":"",label:"应付日期(变更前)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"receivableDateAfter",align:"center","show-overflow-tooltip":"",label:"应付日期(变更后)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"receivableAmountBefore",align:"center","show-overflow-tooltip":"",label:"应付金额/元(变更前)"}}),e._v(" "),a("el-table-column",{attrs:{prop:"receivableAmountAfter",align:"center","show-overflow-tooltip":"",label:"应付金额/元(变更后)"}})],1)],1)],1)],1)])},staticRenderFns:[]};var h=a("VU/8")(u,p,!1,function(e){a("ep8/"),a("4ylf")},"data-v-34f35c0e",null);t.default=h.exports},"4ylf":function(e,t){},"ep8/":function(e,t){}});