/* * @description: 费用-办事处相关组件 * @Author: CP * @Date: 2020-11-16 14:52:08 * @FilePath: \cld\global\vue\fee\receipt_office_component.js */ Vue.component("office", { props:['daily','other','officeExplain'], computed: { officePrice: function () { return officePrice(this); }, dailyTotal:function(){ let sum = 0; this.daily.forEach(element => { sum += Number(element.price); }); return sum.toFixed(2); }, otherTotal:function(){ let sum = 0; this.other.forEach(element => { sum += Number(element.price); }); return sum.toFixed(2); }, }, template: `
日常相关费用 | |
---|---|
{{ item.name }} | ¥ |
小计 | ¥{{ dailyTotal }} |
其他 | |
{{ item.name }} | ¥ |
小计 | ¥{{ otherTotal }} |
办事处相关费用合计 | ¥{{ officePrice }} |
报销说明 | |
1 产生费用所在办事处 默认使用您所在的第一个办事处;
2 邮寄费、公关费、办公费等详细说明请填写到 报销说明。