| | |
| | | style="width: 100%" |
| | | v-model="scope.row.receiveTime" |
| | | :disabled="true" |
| | | type="date" |
| | | type="date" format="yyyy-MM-dd" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="接收日期" |
| | | > |
| | |
| | | </el-table-column> |
| | | <el-table-column prop="amounttime" align="center" label="收款日期" width="200"> |
| | | <template slot-scope="scope"> |
| | | <el-date-picker clearable size="small" style="width: 100%" v-model="scope.row.amounttime" type="date" |
| | | <el-date-picker clearable size="small" style="width: 100%" v-model="scope.row.amounttime" type="date" format="yyyy-MM-dd" |
| | | value-format="yyyy-MM-dd HH:mm:ss" placeholder="收款日期"> |
| | | </el-date-picker> |
| | | </template> |
| | |
| | | import Li_area_select from "@/components/Address"; |
| | | import { getUserProfile } from "@/api/system/user"; |
| | | import { getToken } from "@/utils/auth"; |
| | | import { moneySum, moneyRound } from "@/utils/money"; |
| | | import debounce from "lodash/debounce"; |
| | | export default { |
| | | components: { |
| | |
| | | this.patientqueryParams.hospitalno = this.form.hospitalno; |
| | | this.patientqueryParams.paymentid = null; |
| | | this.patientqueryParams.paymentidIsNotNull = false; |
| | | this.patientqueryParams.pageSize = 10; |
| | | listDonorchargeorgan(this.patientqueryParams).then(res => { |
| | | this.donorchargeList = res.rows; |
| | | this.patienttotal = res.total; |
| | |
| | | listDonorpayment({ id: this.curId }).then(response => { |
| | | this.form = response.rows[0]; |
| | | //器官费用信息 |
| | | this.patientqueryParams.pageSize = 1000; |
| | | listDonorchargeorgan(this.patientqueryParams).then(res => { |
| | | console.log("listDonorchargeorgan", res); |
| | | this.donorchargeorgans = res.rows; |
| | |
| | | this.title = "查看捐献案例器官费用表"; |
| | | this.form = response.rows[0]; |
| | | //器官费用信息 |
| | | this.patientqueryParams.pageSize = 1000; |
| | | listDonorchargeorgan(this.patientqueryParams).then(res => { |
| | | console.log("listDonorchargeorgan", res); |
| | | this.donorchargeorgans = res.rows; |
| | |
| | | this.$modal.msgError("注意实收金额不等于应收金额,请核对数据!"); |
| | | } |
| | | }, |
| | | //修改实收或应收后触发 |
| | | //修改实收或应收后触发(金额一律走精确运算) |
| | | chargeSum() { |
| | | let ChargeSum = 0; |
| | | let ChargeamountSum = 0; |
| | | |
| | | //费用合计 |
| | | try { |
| | | for (let i = 0; i < this.donorchargeorgans.length; i++) { |
| | | if (!isNaN(parseFloat(this.donorchargeorgans[i].organcharge))) { |
| | | ChargeSum += parseFloat(this.donorchargeorgans[i].organcharge); |
| | | } |
| | | if (!isNaN(parseFloat(this.donorchargeorgans[i].amount))) { |
| | | ChargeamountSum += parseFloat(this.donorchargeorgans[i].amount); |
| | | } |
| | | } |
| | | this.form.receivableamount = ChargeSum.toFixed(2); |
| | | this.form.receivedamount = ChargeamountSum.toFixed(2); |
| | | this.form.receivableamount = moneyRound( |
| | | moneySum(this.donorchargeorgans, "organcharge") |
| | | ).toFixed(2); |
| | | this.form.receivedamount = moneyRound( |
| | | moneySum(this.donorchargeorgans, "amount") |
| | | ).toFixed(2); |
| | | } catch {} |
| | | }, |
| | | |