Commit 400fbd61 authored by liudong1993's avatar liudong1993

1车辆折旧

parent 1c0cdadb
......@@ -312,7 +312,7 @@
:loading="loadingDC2" class="normalBtn"
@click="method5(2)">{{$t('objFill.fapiaopzdc')}}</el-button>
<el-button v-if="isBatchPrinting"
:loading="loadingDC"class="normalBtn"
:loading="loadingDC" class="normalBtn"
@click="goPrinting()">批量打印</el-button>
</li>
</ul>
......@@ -605,6 +605,7 @@
<div class="recpayQueryMore" v-if="IsUpdatePayment == true && scope.row.Type==2" @click="showPayment(scope.row.FrID)">{{$t('objFill.xiugaidianfudx')}}</div>
<div class="recpayQueryMore" v-if="scope.row.KingdeeInvoice!=3&&scope.row.Type==2&&IsUpdatePayment" @click="EditInvoiceStatus(scope.row)">{{(scope.row.KingdeeInvoice==1||scope.row.KingdeeInvoice==0)?$t('objFill.buxuyaofapiao'):$t('objFill.xuyaofapiao')}}</div>
<div class="recpayQueryMore" v-if="(scope.row.Type==1||scope.row.Type==2)&& IsUpdatePayment" @click="showHelpBranch(scope.row)">{{scope.row.Type==1?$t('objFill.xiugaibdsgs'):(scope.row.Type==2?$t('objFill.xiugaibdfgs'):'')}}</div>
<div class="recpayQueryMore" v-if="scope.row.Type==2 && scope.row.CostTypeList && scope.row.CostTypeList[0]=='固定资产-车辆'" @click="showAssets(scope.row.FrID)">设置折旧期限</div>
<i slot="reference" style="width: 30px;
height: 30px;
display: inline-block;
......@@ -874,6 +875,22 @@
{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog>
<!--设置折旧期限-->
<el-dialog title="设置折旧期限" width="300px" :visible.sync="ShowFixedAssets" center >
<el-form class="cdForm" label-width="90px">
<el-form-item label="起始月份" prop="CreateDate">
<el-input v-model="FixedAssetsMsg.CreateDate" class=""></el-input>
</el-form-item>
<el-form-item label="折旧月数" prop="RelevanceFrId2">
<el-input v-model="FixedAssetsMsg.RelevanceFrId2" class=""></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button class="hollowFixedBtn" @click="ShowFixedAssets=false">{{$t('pub.cancelBtn')}}</el-button>
<el-button class="normalBtn" type="primary" @click="setFixedAssets" :loading="transTax.loading">{{$t('pub.sureBtn')}}</el-button>
</div>
</el-dialog>
</div>
</template>
<script>
......@@ -1045,6 +1062,12 @@
dialogTitle1:"",
multipleSelection: [],
isBatchPrinting: false,
ShowFixedAssets: false,
FixedAssetsMsg:{
BaseFinanceId:0,
RelevanceFrId2:0,
CreateDate:''
}
}
},
created() {
......@@ -1288,7 +1311,43 @@
this.financeinfo_post_GetClientTypeList();
this.PaymentSync =true;
},
showAssets(FrId) {
//弹出付款对象修改
this.FixedAssetsMsg.BaseFinanceId = FrId;
this.apipost(
"Financial_post_GetCarFixedAssetsDate", {FrId:FrId},res => {
if (res.data.resultCode == 1) {
this.ShowFixedAssets =true;
this.FixedAssetsMsg.CreateDate = res.data.data.CreateDate;
this.FixedAssetsMsg.RelevanceFrId2 = res.data.data.RelevanceFrId2;
}
},
err => {
}
);
},
// 确定垫付对象
setFixedAssets() {
if (this.transTax.loading) return;
this.transTax.loading = true;
if (this.FixedAssetsMsg.BaseFinanceId && this.FixedAssetsMsg.CreateDate && this.FixedAssetsMsg.RelevanceFrId2) {
this.apipost(
"Financial_post_SetCarFixedAssetsDate", this.FixedAssetsMsg,res => {
if (res.data.resultCode == 1) {
this.Success(`更新成功`) ;
this.ShowFixedAssets = false;
}
this.transTax.loading = false;
},
err => {
this.transTax.loading = false;
}
);
} else {
this.transTax.loading = false;
this.Error(`请输入起始月份以及折旧月数`) ;
}
},
showHelpBranch(item) {
//弹出付款对象修改
......
......@@ -1184,6 +1184,9 @@ export default {
that.GoUrlFan('JumpReport',month,rowData.Year,rowData.BranchId,rowData.CostIds,StandardCurrencyId)
//}
}
else if(rowData.ZhaiYao =='车辆折旧'){
//不跳转
}
else{
that.GoUrlFan('JumpReport',month,rowData.Year,rowData.BranchId,rowData.CostIds,StandardCurrencyId)
}
......
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