Commit e9105a10 authored by liudong1993's avatar liudong1993

1

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