| | |
| | | <el-form-item label="申请日期" prop="createTime"> |
| | | <el-date-picker |
| | | v-model="form.createTime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | type="datetime" |
| | | value-format="yyyy-MM-dd " |
| | | type="date" |
| | | :disabled="true" |
| | | placeholder="选择出生年月" |
| | | > |
| | |
| | | show-summary |
| | | > |
| | | <el-table-column |
| | | prop="index" |
| | | align="center" |
| | | fixed |
| | | label="序号" |
| | | width="120" |
| | | > |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="donorname" |
| | | align="center" |
| | | fixed |
| | |
| | | v-model="scope.row.applyTime" |
| | | :disabled="true" |
| | | type="date" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="申请日期" |
| | | value-format="yyyy-MM-dd" |
| | | > |
| | | </el-date-picker> |
| | | </template> |
| | |
| | | Li_area_select, |
| | | pdf |
| | | }, |
| | | dicts: ["sys_gathering", "sys_0_1"], |
| | | dicts: ["Collection_status", "sys_0_1"], |
| | | name: "Donorchargemanager", |
| | | data() { |
| | | return { |
| | |
| | | paApplyType: 1, |
| | | pacheckno: "047", |
| | | checkstatus: 0, |
| | | istax:0, |
| | | istax: 0, |
| | | pageNum: 1, |
| | | pageSize: 10 |
| | | }, |
| | |
| | | }, |
| | | // 金额合计 |
| | | accumulation() { |
| | | this.form.pretaxamount = this.donorchargeorgans.reduce( |
| | | (acc, obj) => acc + Number(obj.pretaxcost), |
| | | 0 |
| | | ); |
| | | this.form.taxMoney = this.donorchargeorgans.reduce( |
| | | (acc, obj) => acc + Number(obj.taXmoney), |
| | | 0 |
| | | ); |
| | | this.form.taxedamount = this.donorchargeorgans.reduce( |
| | | (acc, obj) => acc + Number(obj.taxedcost), |
| | | 0 |
| | | ); |
| | | this.form.pretaxamount = this.donorchargeorgans |
| | | .reduce((acc, obj) => acc + Number(obj.pretaxcost), 0) |
| | | .toFixed(2); |
| | | this.form.taxMoney = this.donorchargeorgans |
| | | .reduce((acc, obj) => acc + Number(obj.taXmoney), 0) |
| | | .toFixed(2); |
| | | this.form.taxedamount = this.donorchargeorgans |
| | | .reduce((acc, obj) => acc + Number(obj.taxedcost), 0) |
| | | .toFixed(2); |
| | | }, |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | |
| | | this.form = response.data; |
| | | if (this.form.serviceFunds[0]) { |
| | | this.donorchargeorgans = this.form.serviceFunds; |
| | | this.donorchargeorgans.forEach(item => { |
| | | this.donorchargeorgans.forEach((item, index) => { |
| | | item.taXmoney = item.pretaxcost - item.taxedcost; |
| | | item.taXmoney = item.taXmoney.toFixed(2); |
| | | item.index = index + 1; |
| | | this.accumulation(); |
| | | }); |
| | | } |
| | |
| | | this.form = response.data; |
| | | if (this.form.serviceFunds[0]) { |
| | | this.donorchargeorgans = this.form.serviceFunds; |
| | | this.donorchargeorgans.forEach(item => { |
| | | this.donorchargeorgans.forEach((item, index) => { |
| | | item.taXmoney = item.pretaxcost - item.taxedcost; |
| | | item.taXmoney = item.taXmoney.toFixed(2); |
| | | item.index = index + 1; |
| | | this.accumulation(); |
| | | }); |
| | | } |
| | |
| | | this.form = response.data; |
| | | if (this.form.serviceFunds[0]) { |
| | | this.donorchargeorgans = this.form.serviceFunds; |
| | | this.donorchargeorgans.forEach(item => { |
| | | this.donorchargeorgans.forEach((item, index) => { |
| | | item.taXmoney = item.pretaxcost - item.taxedcost; |
| | | item.taXmoney = item.taXmoney.toFixed(2); |
| | | item.index = index + 1; |
| | | this.accumulation(); |
| | | }); |
| | | } |
| | |
| | | this.form = res.data; |
| | | if (this.form.serviceFunds[0]) { |
| | | this.donorchargeorgans = this.form.serviceFunds; |
| | | this.donorchargeorgans.forEach(item => { |
| | | this.donorchargeorgans.forEach((item, index) => { |
| | | item.taXmoney = item.pretaxcost - item.taxedcost; |
| | | item.taXmoney = item.taXmoney.toFixed(2); |
| | | item.index = index + 1; |
| | | |
| | | this.accumulation(); |
| | | }); |
| | | } |