From d53daa4223fb256a89aa2d21ca4e85f2bed9d2b3 Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期五, 08 三月 2024 16:05:30 +0800
Subject: [PATCH] 11
---
src/views/project/unitCost/particulars.vue | 46 ++++++++++++++++------------------------------
1 files changed, 16 insertions(+), 30 deletions(-)
diff --git a/src/views/project/unitCost/particulars.vue b/src/views/project/unitCost/particulars.vue
index a16916f..e69f22a 100644
--- a/src/views/project/unitCost/particulars.vue
+++ b/src/views/project/unitCost/particulars.vue
@@ -32,6 +32,7 @@
v-model="form.createTime"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetime"
+ :disabled="true"
placeholder="閫夋嫨鍑虹敓骞存湀"
>
</el-date-picker>
@@ -157,6 +158,7 @@
<template slot-scope="scope">
<el-input
v-model="scope.row.organname"
+ :disabled="true"
placeholder="鍣ㄥ畼鍚嶇О"
/>
</template>
@@ -168,7 +170,7 @@
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
@@ -180,6 +182,7 @@
<template slot-scope="scope">
<el-input
v-model="scope.row.hospitalname"
+ :disabled="true"
placeholder="鎺ユ敹鍖婚櫌"
/>
</template>
@@ -191,7 +194,7 @@
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
@@ -206,6 +209,7 @@
size="small"
style="width: 100%"
v-model="scope.row.receiveTime"
+ :disabled="true"
type="date"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="鎺ユ敹鏃ユ湡"
@@ -834,9 +838,11 @@
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);
});
},
@@ -932,7 +938,7 @@
/** 淇敼鎸夐挳鎿嶄綔 */
handleUpdate() {
this.reset();
- this.title = "鏀舵鐢宠鍗曠紪杈�";
+ this.title = "鏀舵缁撶畻鐢宠鍗曠紪杈�";
listDonorpayment({ id: this.curId }).then(response => {
this.form = response.rows[0];
@@ -961,33 +967,11 @@
},
/** 鎻愪氦淇濆瓨鎸夐挳 */
- submitForm: debounce(function(data) {
+ submitForm() {
+ this.chargeSum();
this.$refs["form"].validate(valid => {
if (valid) {
this.$modal.loading("姝e湪鎻愪氦锛岃绋嶅�欙紒");
-
- //鏍¢獙銆佽垂鐢ㄥ悎璁�
- 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) {
@@ -1013,7 +997,7 @@
} 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;
@@ -1034,7 +1018,9 @@
}
}
});
- }, 500),
+ },
+ //淇敼鎬诲疄鏀跺悗瑙﹀彂
+
chargeSumall() {
if (this.form.receivedamount == this.form.receivableamount) {
this.donorchargeorgans.forEach(item => {
@@ -1044,7 +1030,7 @@
this.$modal.msgError("娉ㄦ剰瀹炴敹閲戦涓嶇瓑浜庡簲鏀堕噾棰濓紝璇锋牳瀵规暟鎹紒");
}
},
- //淇敼鎬诲疄鏀跺悗瑙﹀彂
+ //淇敼瀹炴敹鎴栧簲鏀跺悗瑙﹀彂
chargeSum() {
let ChargeSum = 0;
let ChargeamountSum = 0;
--
Gitblit v1.9.3