Commit e9105a10 authored by liudong1993's avatar liudong1993

1

parent 73762235
......@@ -250,15 +250,15 @@
</template>
<template slot-scope="scope">
<template v-if="activeIndx!=scope.$index">{{scope.row.CostTypeName}}</template>
<el-select v-else v-model="msg.CostTypeId"
<el-select v-else v-model="msg.RelevanceFrId"
@change="getCostType"
:placeholder="$t('objFill.v101.FinancialModule.kemu')"
style="width: 100%;">
<el-option
v-for="item in scope.row.FDList"
:key="item.CostTypeId"
:key="item.ID"
:label="item.CostTypeName"
:value="item.CostTypeId">
:value="item.ID">
</el-option>
</el-select>
</template>
......@@ -341,7 +341,7 @@
CostTypeId: null,
Money: null,
BaseFinanceId: null,//财务单据ID
RelevanceFrId: 0,//单据明细ID
RelevanceFrId: null,//单据明细ID
CreateDate: '',//起始月份 (格式:yyyy-MM)
RelevanceFrId2: '',//月数 (表示摊销几个月)
FDList: '',
......@@ -374,8 +374,7 @@
},
methods: {
getCostType(){
// let obj = this.FDList.filter(x=>{return x.CostTypeId==this.msg.CostTypeId})
let obj = this.GetDetail.DetailList.filter(x=>{return x.CostTypeId==this.msg.CostTypeId})
let obj = this.GetDetail.DetailList.filter(x=>{return x.ID==this.msg.RelevanceFrId})
this.msg.RelevanceFrId = obj[0].ID
this.msg.Money = obj[0].Money
},
......@@ -384,7 +383,7 @@
CostTypeId: null,
Money: null,
BaseFinanceId: this.GetDetail.FrID,//财务单据ID
RelevanceFrId: 0,//单据明细ID
RelevanceFrId: null,//单据明细ID
CreateDate: '',//起始月份 (格式:yyyy-MM)
RelevanceFrId2: '',//月数 (表示摊销几个月)
FDList: this.FDList,
......@@ -396,7 +395,7 @@
},
saveData(){
let msg = this.msg
if(!msg.CostTypeId) return this.$message.warning(this.$t('objFill.v101.LeaderManagement.qingwancfentxx'))
if(!msg.RelevanceFrId) return this.$message.warning(this.$t('objFill.v101.LeaderManagement.qingwancfentxx'))
if(!msg.Money) return this.$message.warning(this.$t('objFill.v101.LeaderManagement.qingwancfentxx'))
if(!msg.CreateDate) return this.$message.warning(this.$t('objFill.v101.LeaderManagement.qingwancfentxx'))
if(!msg.RelevanceFrId2) return this.$message.warning(this.$t('objFill.v101.LeaderManagement.qingwancfentxx'))
......@@ -417,7 +416,7 @@
addData(){
if(this.tableData.length>0){
let msg = this.tableData[this.tableData.length-1]
if(!msg.CostTypeId) return this.$message.warning(this.$t('objFill.v101.LeaderManagement.qingwancfentxx'))
if(!msg.RelevanceFrId) return this.$message.warning(this.$t('objFill.v101.LeaderManagement.qingwancfentxx'))
if(!msg.Money) return this.$message.warning(this.$t('objFill.v101.LeaderManagement.qingwancfentxx'))
if(!msg.CreateDate) return this.$message.warning(this.$t('objFill.v101.LeaderManagement.qingwancfentxx'))
if(!msg.RelevanceFrId2) return this.$message.warning(this.$t('objFill.v101.LeaderManagement.qingwancfentxx'))
......@@ -426,7 +425,7 @@
CostTypeId: null,
Money: null,
BaseFinanceId: this.GetDetail.FrID,//财务单据ID
RelevanceFrId: 0,//单据明细ID
RelevanceFrId: null,//单据明细ID
CreateDate: '',//起始月份 (格式:yyyy-MM)
RelevanceFrId2: '',//月数 (表示摊销几个月)
FDList: this.FDList,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment