From 21ead72243112d675806161b5125d185d5c4f443 Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期二, 12 三月 2024 16:27:59 +0800 Subject: [PATCH] 11 --- src/views/project/donorcharge/donorchargedetail/index.vue | 108 +++++++++++++++++++++++++++++------------------------- 1 files changed, 58 insertions(+), 50 deletions(-) diff --git a/src/views/project/donorcharge/donorchargedetail/index.vue b/src/views/project/donorcharge/donorchargedetail/index.vue index 2a57b41..9ee3282 100644 --- a/src/views/project/donorcharge/donorchargedetail/index.vue +++ b/src/views/project/donorcharge/donorchargedetail/index.vue @@ -20,7 +20,7 @@ v-for="dict in dict.type.sys_user_sex" :key="dict.label" :label="dict.label" - :value="parseInt(dict.value)" + :value="dict.value" ></el-option> </el-select> </el-form-item> @@ -134,6 +134,21 @@ <el-input v-model="scope.row.organname" placeholder="鍣ㄥ畼鍚嶇О" + :disabled="true" + /> + </template> + </el-table-column> + <el-table-column + label="绯荤粺缂栧彿" + align="center" + width="120" + prop="caseno" + > + <template slot-scope="scope"> + <el-input + v-model="scope.row.caseno" + :disabled="true" + placeholder="绯荤粺缂栧彿" /> </template> </el-table-column> @@ -144,7 +159,11 @@ width="150" > <template slot-scope="scope"> - <el-input v-model="scope.row.amount" placeholder="瀹炴敹閲戦" /> + <el-input + v-model="scope.row.amount" + :disabled="true" + placeholder="瀹炴敹閲戦" + /> </template> </el-table-column> <el-table-column @@ -156,6 +175,7 @@ <template slot-scope="scope"> <el-date-picker clearable + :disabled="true" size="small" style="width: 100%" v-model="scope.row.amounttime" @@ -175,6 +195,7 @@ <template slot-scope="scope"> <el-input v-model="scope.row.organcharge" + :disabled="true" placeholder="鏍囧噯璐圭敤" /> </template> @@ -187,10 +208,25 @@ > <template slot-scope="scope"> <org-selecter + :disabled="true" ref="tranHosSelect" :org-type="'4'" v-model="scope.row.hospitalno" style="width: 100%" + /> + </template> + </el-table-column> + <el-table-column + label="鍙椾綋濮撴皬" + align="center" + width="120" + prop="name" + > + <template slot-scope="scope"> + <el-input + v-model="scope.row.name" + :disabled="true" + placeholder="鍙椾綋濮撴皬" /> </template> </el-table-column> @@ -203,6 +239,7 @@ <template slot-scope="scope"> <el-date-picker clearable + :disabled="true" size="small" style="width: 100%" v-model="scope.row.organtime" @@ -214,7 +251,7 @@ </template> </el-table-column> <el-table-column prop="organchargedesc" align="center" label="澶囨敞"> - <template slot-scope="scope"> + <template slot-scope="scope" width="300"> <el-input v-model="scope.row.organchargedesc" placeholder="澶囨敞" @@ -226,12 +263,12 @@ </el-form> <div slot="footer" class="dialog-footer"> <el-button - type="primary" + type="success" @click="submitForm" v-if="operationType == 'add' || operationType == 'update'" >淇� 瀛�</el-button > - <el-button type="primary" @click="cancel">鍏抽棴</el-button> + <el-button type="info" @click="cancel">鍏抽棴</el-button> </div> </div> </div> @@ -351,7 +388,7 @@ { required: true, message: "璇疯緭鍏ユ墍灞炰笟鍔$粍", trigger: "blur" } ] }, - + gxinzt: false, baselist: [], donorList: [], organchargelist: [], @@ -494,6 +531,8 @@ this.operationType = this.$route.query.operation; this.curId = this.$route.query.id; this.curCase = this.$route.query.data; + this.gxinzt = this.$route.query.gxinzt; + console.log(this.curCase); console.log("this.$route.query", this.$route.query); if (this.operationType == "add") { @@ -546,46 +585,13 @@ this.form.age = this.curCase.age; this.form.donationcategory = this.curCase.donationcategory; - //鑾峰彇瀹屾垚鐧昏鐨勫櫒瀹樿〃 - if (this.curCase.id > 0) { - } else { - this.curCase.id = 0; - } - let searchParam = { - infoid: this.curCase.id - }; - listDonatecomporgan(searchParam).then(res => { - if (res.code == 200) { - // 鏌ヨ鍣ㄥ畼璐圭敤琛� - let tempParam = { - organcode: null, - organname: null, - charge: null - }; - listOrgancharge(tempParam).then(res1 => { - if (res1.code == 200) { - this.organchargelist = res1.rows; - } - - //鎻掑叆鍣ㄥ畼琛� - res.rows.forEach(item => { - //鑾峰彇璐圭敤閲戦 - this.organchargelist.map(rescharge => { - if (rescharge.organcode == item.organno) { - this.donorchargeorgans.push({ - organno: item.organno, - organname: item.organname, - organcharge: rescharge.charge, - infoid: item.infoid, - hospitalname: item.transplanthospitalname, - hospitalno: item.transplanthospitalno, - organtime: item.transplanttime, - chargestate: "0" - }); - } - }); - }); - }); + this.organParams.infoid = this.curCase.id; + listDonorchargeorgan(this.organParams).then(res => { + console.log("listDonorchargeorgan", res); + this.donorchargeorgans = res.rows; + if (this.donorchargeorgans.length > 0) { + } else { + this.addRow(0); } }); } @@ -600,9 +606,8 @@ getDonorcharge(this.curId).then(response => { this.form = response.data; console.log("getDonorcharge", response); - //鍣ㄥ畼璐圭敤淇℃伅 - this.organParams.donorchargeid = this.curId; + this.organParams.infoid = this.form.infoid; console.log("this.organParams", this.organParams); listDonorchargeorgan(this.organParams).then(res => { console.log("listDonorchargeorgan", res); @@ -611,6 +616,9 @@ if (this.donorchargeorgans.length > 0) { } else { this.addRow(0); + } + if ((this.gxinzt = true)) { + this.submitForm(); } }); }); @@ -627,7 +635,7 @@ this.title = "鏌ョ湅鎹愮尞妗堜緥鍣ㄥ畼璐圭敤琛�"; //鍣ㄥ畼璐圭敤淇℃伅 - this.organParams.donorchargeid = this.curId; + this.organParams.infoid = this.form.infoid; listDonorchargeorgan(this.organParams).then(res => { this.donorchargeorgans = res.rows; if (this.donorchargeorgans.length > 0) { @@ -730,7 +738,7 @@ var columnnames = [ "organno", "organname", - "amount", + "caseno", "amounttime", "organcharge", "hospitalname", -- Gitblit v1.9.3