From 1c08c6dcbe0f81bd8cff8a363e0d6f5c996474be Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期四, 14 三月 2024 09:49:33 +0800 Subject: [PATCH] 11 --- src/views/project/unitCost/particulars.vue | 95 ++++++++++++++++++++++++----------------------- 1 files changed, 48 insertions(+), 47 deletions(-) diff --git a/src/views/project/unitCost/particulars.vue b/src/views/project/unitCost/particulars.vue index a16916f..160e216 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,20 +170,33 @@ 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 - prop="hospitalname" + prop="hospitalno" align="center" label="鎺ユ敹鍖婚櫌" width="280" > <template slot-scope="scope"> - <el-input + <!-- <el-input v-model="scope.row.hospitalname" + :disabled="true" placeholder="鎺ユ敹鍖婚櫌" - /> + /> --> + <org-selecter + ref="tranHosSelect" + :org-type="'4'" + :disabled="true" + + v-model="scope.row.hospitalno" + style="width: 100%" + /> </template> </el-table-column> <el-table-column @@ -191,7 +206,11 @@ 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 +225,7 @@ size="small" style="width: 100%" v-model="scope.row.receiveTime" + :disabled="true" type="date" value-format="yyyy-MM-dd HH:mm:ss" placeholder="鎺ユ敹鏃ユ湡" @@ -315,7 +335,7 @@ </div> <!-- 娣诲姞鎮h�� --> <el-dialog - title="鏀惰垂鍣ㄥ畼/缁勭粐閫夋嫨" + title="閫夋嫨鍣ㄥ畼鍜岀粍缁�" :visible.sync="dialogVisiblepatient" width="70%" :before-close="handleClosehz" @@ -331,9 +351,6 @@ :inline="true" label-width="98px" > - <el-form-item label="鎮h�呭悕绉帮細"> - <el-input v-model="patientqueryParams.donorname"></el-input> - </el-form-item> <el-form-item label="鎺ユ敹鍖婚櫌" prop="status"> <el-input v-model="form.hospitalname" @@ -341,7 +358,7 @@ :disabled="true" /> </el-form-item> - <el-form-item label="鎹愮尞妗堜緥" prop="status"> + <el-form-item label="鎹愮尞鑰�" prop="status"> <el-select v-model="patientqueryParams.donorchargeid" filterable @@ -387,13 +404,14 @@ scope.row.donorname }}</template> </el-table-column> - <el-table-column prop="organno" label="鍣ㄥ畼缂栧彿" width="120"> - </el-table-column> + <el-table-column prop="organname" label="鍣ㄥ畼鍚嶇О" show-overflow-tooltip > + </el-table-column> + <el-table-column prop="organno" label="鍣ㄥ畼缂栧彿" width="120"> </el-table-column> <el-table-column prop="caseno" @@ -402,14 +420,14 @@ > </el-table-column> <el-table-column - prop="hospitalname" - label="鍣ㄥ畼鎺ユ敹鍖婚櫌" - show-overflow-tooltip - > - </el-table-column - ><el-table-column prop="name" label="鍙椾綋濮撴皬" + show-overflow-tooltip + > + </el-table-column> + <el-table-column + prop="hospitalname" + label="鎺ユ敹鍖婚櫌" show-overflow-tooltip > </el-table-column> @@ -834,9 +852,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 +952,7 @@ /** 淇敼鎸夐挳鎿嶄綔 */ handleUpdate() { this.reset(); - this.title = "鏀舵鐢宠鍗曠紪杈�"; + this.title = "鏀舵缁撶畻鐢宠鍗曠紪杈�"; listDonorpayment({ id: this.curId }).then(response => { this.form = response.rows[0]; @@ -961,33 +981,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 +1011,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 +1032,9 @@ } } }); - }, 500), + }, + //淇敼鎬诲疄鏀跺悗瑙﹀彂 + chargeSumall() { if (this.form.receivedamount == this.form.receivableamount) { this.donorchargeorgans.forEach(item => { @@ -1044,7 +1044,7 @@ this.$modal.msgError("娉ㄦ剰瀹炴敹閲戦涓嶇瓑浜庡簲鏀堕噾棰濓紝璇锋牳瀵规暟鎹紒"); } }, - //淇敼鎬诲疄鏀跺悗瑙﹀彂 + //淇敼瀹炴敹鎴栧簲鏀跺悗瑙﹀彂 chargeSum() { let ChargeSum = 0; let ChargeamountSum = 0; @@ -1096,7 +1096,8 @@ "organtime", "remark", "name", - "caseno" + "caseno", + "receiveTime" ]; columns.forEach((column, index) => { if (index === 0) { -- Gitblit v1.9.3