| | |
| | | v-model="form.createTime" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | type="datetime" |
| | | :disabled="true" |
| | | placeholder="选择出生年月" |
| | | > |
| | | </el-date-picker> |
| | |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | v-model="scope.row.organname" |
| | | :disabled="true" |
| | | placeholder="器官名称" |
| | | /> |
| | | </template> |
| | |
| | | prop="caseno" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.caseno" placeholder="国家编号" /> |
| | | <el-input v-model="scope.row.caseno" :disabled="true" placeholder="国家编号" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | <template slot-scope="scope"> |
| | | <el-input |
| | | v-model="scope.row.hospitalname" |
| | | :disabled="true" |
| | | placeholder="接收医院" |
| | | /> |
| | | </template> |
| | |
| | | prop="name" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-input v-model="scope.row.name" placeholder="受体姓氏" /> |
| | | <el-input v-model="scope.row.name" :disabled="true" placeholder="受体姓氏" /> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | size="small" |
| | | style="width: 100%" |
| | | v-model="scope.row.receiveTime" |
| | | :disabled="true" |
| | | type="date" |
| | | value-format="yyyy-MM-dd HH:mm:ss" |
| | | placeholder="接收日期" |
| | |
| | | this.dialogVisiblepatient = true; |
| | | this.patientqueryParams.hospitalno = this.form.hospitalno; |
| | | this.patientqueryParams.paymentid = null; |
| | | this.patientqueryParams.paymentidIsNotNull = false; |
| | | listDonorchargeorgan(this.patientqueryParams).then(res => { |
| | | this.donorchargeList = res.rows; |
| | | this.patienttotal = res.total; |
| | | this.patientqueryParams.paymentidIsNotNull = true; |
| | | console.log(this.donorchargeList); |
| | | }); |
| | | }, |
| | |
| | | /** 修改按钮操作 */ |
| | | handleUpdate() { |
| | | this.reset(); |
| | | this.title = "收款申请单编辑"; |
| | | this.title = "收款结算申请单编辑"; |
| | | |
| | | listDonorpayment({ id: this.curId }).then(response => { |
| | | this.form = response.rows[0]; |
| | |
| | | }, |
| | | |
| | | /** 提交保存按钮 */ |
| | | submitForm: debounce(function(data) { |
| | | submitForm() { |
| | | this.chargeSum(); |
| | | this.$refs["form"].validate(valid => { |
| | | if (valid) { |
| | | this.$modal.loading("正在提交,请稍候!"); |
| | | |
| | | //校验、费用合计 |
| | | let ChargeSum = 0; |
| | | let ChargeamountSum = 0; |
| | | let organname = ""; |
| | | |
| | | try { |
| | | for (let i = 0; i < this.donorchargeorgans.length; i++) { |
| | | organname += this.donorchargeorgans[i].organname + ","; |
| | | 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.donateorgan = organname.substring( |
| | | 0, |
| | | organname.lastIndexOf(",") |
| | | ); |
| | | this.form.chargeamount = ChargeSum.toFixed(2); |
| | | this.form.chargeamounted = ChargeamountSum.toFixed(2); |
| | | } catch {} |
| | | |
| | | //保存 |
| | | if (this.form.id != null) { |
| | |
| | | } else { |
| | | addDonorpayment(this.form).then(response => { |
| | | if (response.code == 200) { |
| | | console.log("addDonorcharge", response); |
| | | this.form.id = response.msg; |
| | | //保存前校验数据 |
| | | for (let k = 0; k < this.donorchargeorgans.length; k++) { |
| | | this.donorchargeorgans[k].paymentid = response.msg; |
| | |
| | | } |
| | | } |
| | | }); |
| | | }, 500), |
| | | }, |
| | | //修改总实收后触发 |
| | | |
| | | chargeSumall() { |
| | | if (this.form.receivedamount == this.form.receivableamount) { |
| | | this.donorchargeorgans.forEach(item => { |
| | |
| | | this.$modal.msgError("注意实收金额不等于应收金额,请核对数据!"); |
| | | } |
| | | }, |
| | | //修改总实收后触发 |
| | | //修改实收或应收后触发 |
| | | chargeSum() { |
| | | let ChargeSum = 0; |
| | | let ChargeamountSum = 0; |