From bb3d2ab8e6ee55c48869bb9bdef81627bd77236a Mon Sep 17 00:00:00 2001
From: WXL <1785969728@qq.com>
Date: 星期一, 03 六月 2024 17:37:22 +0800
Subject: [PATCH] 11
---
src/views/project/unitCost/particulars/index.vue | 467 +++++++++++++++++++++++++++++++++++++++++++++++-----------
1 files changed, 378 insertions(+), 89 deletions(-)
diff --git a/src/views/project/unitCost/particulars/index.vue b/src/views/project/unitCost/particulars/index.vue
index 5cabaa7..d71c45f 100644
--- a/src/views/project/unitCost/particulars/index.vue
+++ b/src/views/project/unitCost/particulars/index.vue
@@ -6,49 +6,81 @@
<el-row>
<el-col :span="5">
<el-form-item label="鐢宠鏃ユ湡" prop="createTime">
- <el-date-picker v-model="form.createTime" value-format="yyyy-MM-dd " type="date" :disabled="true"
- placeholder="閫夋嫨鍑虹敓骞存湀">
+ <el-date-picker
+ v-model="form.createTime"
+ value-format="yyyy-MM-dd "
+ type="date"
+ :disabled="true"
+ placeholder="閫夋嫨鍑虹敓骞存湀"
+ >
</el-date-picker>
</el-form-item>
</el-col>
- <el-col :span="5"><el-form-item label="鍗曟嵁缂栧彿" prop="paymentno">
+ <el-col :span="5"
+ ><el-form-item label="鍗曟嵁缂栧彿" prop="paymentno">
<el-input v-model="form.paymentno" placeholder="璇疯緭鍏ユ敹娆惧崟鍙�" />
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="鏀舵鐘舵��" prop="paystatus">
<el-select v-model="form.paystatus" placeholder="璇烽�夋嫨鐘舵��">
- <el-option v-for="dict in gatheringlist" :key="dict.label" :label="dict.label"
- :value="dict.value"></el-option>
+ <el-option
+ v-for="dict in gatheringlist"
+ :key="dict.label"
+ :label="dict.label"
+ :value="dict.value"
+ ></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="缁忓姙浜�" prop="userName">
- <el-input v-model="form.userName" placeholder="璇疯緭鍏ュ鍚�" :disabled="true" />
+ <el-input
+ v-model="form.userName"
+ placeholder="璇疯緭鍏ュ鍚�"
+ :disabled="true"
+ />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="5">
<el-form-item label="鍖荤枟鏈烘瀯" prop="hospitalname">
- <el-input v-model="form.hospitalname" placeholder="璇疯緭鍏ヤ粯娆惧尰闄�" :disabled="true" />
+ <el-input
+ v-model="form.hospitalname"
+ placeholder="璇疯緭鍏ヤ粯娆惧尰闄�"
+ :disabled="true"
+ />
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="搴旀敹閲戦" prop="receivableamount">
- <el-input v-model="form.receivableamount" placeholder="璇疯緭鍏ュ簲鏀堕噾棰�" :disabled="true" />
+ <el-input
+ v-model="form.receivableamount"
+ placeholder="璇疯緭鍏ュ簲鏀堕噾棰�"
+ :disabled="true"
+ />
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="瀹炴敹閲戦" prop="receivedamount">
- <el-input @blur="chargeSumall" v-model="form.receivedamount" placeholder="璇疯緭鍏ュ疄鏀堕噾棰�" />
+ <el-input
+ @blur="chargeSumall"
+ v-model="form.receivedamount"
+ placeholder="璇疯緭鍏ュ疄鏀堕噾棰�"
+ />
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="鏀舵鏃ユ湡" prop="receivedtime">
- <el-date-picker clearable size="small" v-model="form.receivedtime" value-format="yyyy-MM-dd " type="date"
- placeholder="閫夋嫨鏀舵鏃ユ湡">
+ <el-date-picker
+ clearable
+ size="small"
+ v-model="form.receivedtime"
+ value-format="yyyy-MM-dd "
+ type="date"
+ placeholder="閫夋嫨鏀舵鏃ユ湡"
+ >
</el-date-picker>
</el-form-item>
</el-col>
@@ -62,56 +94,158 @@
</el-row>
<div class="headlines">
<div>绉绘鍣ㄥ畼锛堝寘鍚粍缁囷級鏄庣粏</div>
- <el-button type="primary" @click="handleAddpatient">鏂板绉绘鍣ㄥ畼锛堝寘鍚粍缁囷級</el-button>
+ <el-button type="primary" @click="handleAddpatient"
+ >鏂板绉绘鍣ㄥ畼锛堝寘鍚粍缁囷級</el-button
+ >
</div>
<el-row style="margin-top: 10px">
- <el-table :data="donorchargeorgans" ref="table" border max-height="800" highlight-current-row
- :summary-method="getSummaries" show-summary>
- <el-table-column prop="donorname" align="center" fixed label="鎹愮尞鑰�" width="120">
+ <el-table
+ :data="donorchargeorgans"
+ ref="table"
+ border
+ max-height="800"
+ highlight-current-row
+ :summary-method="getSummaries"
+ show-summary
+ >
+ <el-table-column
+ prop="index"
+ fixed
+ align="center"
+ label="搴忓彿"
+ width="50"
+ />
+
+ <el-table-column
+ prop="donorname"
+ align="center"
+ fixed
+ label="鎹愮尞鑰�"
+ width="120"
+ >
<template slot-scope="scope">
- <el-input v-model="scope.row.donorname" placeholder="鎹愮尞鑰�" :disabled="true" />
+ <el-input
+ v-model="scope.row.donorname"
+ placeholder="鎹愮尞鑰�"
+ :disabled="true"
+ />
</template>
</el-table-column>
- <el-table-column prop="organname" fixed align="center" label="鍣ㄥ畼鍚嶇О" width="120">
+ <el-table-column
+ prop="organname"
+ fixed
+ align="center"
+ label="鍣ㄥ畼鍚嶇О"
+ width="120"
+ >
<template slot-scope="scope">
- <el-input v-model="scope.row.organname" :disabled="true" placeholder="鍣ㄥ畼鍚嶇О" />
+ <el-input
+ v-model="scope.row.organname"
+ :disabled="true"
+ placeholder="鍣ㄥ畼鍚嶇О"
+ />
</template>
</el-table-column>
- <el-table-column prop="organno" align="center" fixed label="鍣ㄥ畼缂栧彿" width="90">
+ <el-table-column
+ prop="organno"
+ align="center"
+ fixed
+ label="鍣ㄥ畼缂栧彿"
+ width="90"
+ >
<template slot-scope="scope">
- <el-input v-model="scope.row.organno" placeholder="鍣ㄥ畼缂栧彿" :disabled="true" />
+ <el-input
+ v-model="scope.row.organno"
+ placeholder="鍣ㄥ畼缂栧彿"
+ :disabled="true"
+ />
</template>
</el-table-column>
- <el-table-column label="鍒嗛厤绯荤粺缂栧彿" align="center" width="120" prop="caseno">
+ <el-table-column
+ label="鍒嗛厤绯荤粺缂栧彿"
+ align="center"
+ width="120"
+ prop="caseno"
+ >
<template slot-scope="scope">
- <el-input v-model="scope.row.caseno" :disabled="true" placeholder="鍒嗛厤绯荤粺缂栧彿" />
+ <el-input
+ v-model="scope.row.caseno"
+ :disabled="true"
+ placeholder="鍒嗛厤绯荤粺缂栧彿"
+ />
</template>
</el-table-column>
- <el-table-column label="鍙椾綋濮撴皬" align="center" width="120" prop="name">
+ <el-table-column
+ label="鍙椾綋濮撴皬"
+ align="center"
+ width="120"
+ prop="name"
+ >
<template slot-scope="scope">
<el-input v-model="scope.row.name" placeholder="鍙椾綋濮撴皬" />
</template>
</el-table-column>
- <el-table-column prop="receiveTime" align="center" label="鎺ユ敹鏃ユ湡" width="200">
+ <el-table-column
+ prop="receiveTime"
+ align="center"
+ label="鎺ユ敹鏃ユ湡"
+ width="200"
+ >
<template slot-scope="scope">
- <el-date-picker clearable size="small" style="width: 100%" v-model="scope.row.receiveTime"
- :disabled="true" type="date" value-format="yyyy-MM-dd HH:mm:ss" placeholder="鎺ユ敹鏃ユ湡">
+ <el-date-picker
+ clearable
+ size="small"
+ style="width: 100%"
+ v-model="scope.row.receiveTime"
+ :disabled="true"
+ type="date"
+ value-format="yyyy-MM-dd HH:mm:ss"
+ placeholder="鎺ユ敹鏃ユ湡"
+ >
</el-date-picker>
</template>
</el-table-column>
- <el-table-column prop="organcharge" align="center" label="搴旀敹閲戦" width="150">
+ <el-table-column
+ prop="organcharge"
+ align="center"
+ label="搴旀敹閲戦"
+ width="150"
+ >
<template slot-scope="scope">
- <el-input @blur="chargeSum" v-model="scope.row.organcharge" placeholder="搴旀敹閲戦" />
+ <el-input
+ @blur="chargeSum"
+ v-model="scope.row.organcharge"
+ placeholder="搴旀敹閲戦"
+ />
</template>
</el-table-column>
- <el-table-column prop="amount" align="center" label="瀹炴敹閲戦" width="150">
+ <el-table-column
+ prop="amount"
+ align="center"
+ label="瀹炴敹閲戦"
+ width="150"
+ >
<template slot-scope="scope">
- <el-input @blur="chargeSum" v-model="scope.row.amount" placeholder="瀹炴敹閲戦" />
+ <el-input
+ @blur="chargeSum"
+ v-model="scope.row.amount"
+ placeholder="瀹炴敹閲戦"
+ />
</template>
</el-table-column>
- <el-table-column prop="organchargedesc" width="280" align="center" label="澶囨敞">
+ <el-table-column
+ prop="organchargedesc"
+ width="280"
+ align="center"
+ label="澶囨敞"
+ >
<template slot-scope="scope">
- <el-input type="textarea" :rows="1" v-model="scope.row.organchargedesc" placeholder="澶囨敞" />
+ <el-input
+ type="textarea"
+ :rows="1"
+ v-model="scope.row.organchargedesc"
+ placeholder="澶囨敞"
+ />
</template>
</el-table-column>
<!--
@@ -129,44 +263,91 @@
</template>
</el-table-column>
-->
- <el-table-column label="鎿嶄綔" fixed="right" width="260" align="center">
+ <el-table-column
+ label="鎿嶄綔"
+ fixed="right"
+ width="260"
+ align="center"
+ >
<template slot-scope="scope">
- <el-button type="text" @click="handleDelete(scope.row)" v-hasPermi="['system:donorcharge:remove']"><span
- class="button-delete"><i class="el-icon-delete"></i>鍒犻櫎</span></el-button>
- <el-button type="text" icon="el-icon-folder-opened" @click="Filepopup(scope.$index, scope.row)"
- v-hasPermi="['system:donorcharge:edit']">闄勪欢</el-button>
+ <el-button
+ type="text"
+ @click="handleDelete(scope.row)"
+ v-hasPermi="['system:donorcharge:remove']"
+ ><span class="button-delete"
+ ><i class="el-icon-delete"></i>鍒犻櫎</span
+ ></el-button
+ >
+ <el-button
+ type="text"
+ icon="el-icon-folder-opened"
+ @click="Filepopup(scope.$index, scope.row)"
+ v-hasPermi="['system:donorcharge:edit']"
+ >闄勪欢</el-button
+ >
</template>
</el-table-column>
</el-table>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
- <el-button type="success" @click="submitForm" v-if="operationType == 'add' || operationType == 'update'">淇�
- 瀛�</el-button>
+ <el-button
+ type="success"
+ @click="submitForm"
+ v-if="operationType == 'add' || operationType == 'update'"
+ >淇� 瀛�</el-button
+ >
<el-button type="info" @click="cancel">鍏抽棴</el-button>
</div>
<!-- 娣诲姞鎮h�� -->
- <el-dialog title="閫夋嫨鍣ㄥ畼鍜岀粍缁�" :visible.sync="dialogVisiblepatient" width="70%" :before-close="handleClosehz">
+ <el-dialog
+ title="閫夋嫨鍣ㄥ畼鍜岀粍缁�"
+ :visible.sync="dialogVisiblepatient"
+ width="70%"
+ :before-close="handleClosehz"
+ >
<div class="examine-jic">
<div style="margin: 0 10px 20px 10px;">
<el-card class="box-card">
- <el-tag v-for="item in overallCase" :key="item.id" closable @close="handleClose(item)">
+ <el-tag
+ v-for="item in overallCase"
+ :key="item.id"
+ closable
+ @close="handleClose(item)"
+ >
{{ item.donorname }}
</el-tag>
<div style="margin-top: 20px; text-align: right;">
- 鍏遍�夋嫨<span style="font-size: 18px; color: #409EFF;margin: 0 10px;">{{ overallCase.length }}</span>鏉℃暟鎹�
+ 鍏遍�夋嫨<span
+ style="font-size: 18px; color: #409EFF;margin: 0 10px;"
+ >{{ overallCase.length }}</span
+ >鏉℃暟鎹�
</div>
</el-card>
</div>
<div class="jic-value">
<el-row :gutter="20">
<!--鐢ㄦ埛鏁版嵁-->
- <el-form :model="patientqueryParams" ref="queryForm" size="small" :inline="true" label-width="98px">
+ <el-form
+ :model="patientqueryParams"
+ ref="queryForm"
+ size="small"
+ :inline="true"
+ label-width="98px"
+ >
<el-form-item label="鎺ユ敹鍖婚櫌" prop="status">
- <el-input v-model="form.hospitalname" placeholder="璇疯緭鍏ヤ粯娆惧尰闄�" :disabled="true" />
+ <el-input
+ v-model="form.hospitalname"
+ placeholder="璇疯緭鍏ヤ粯娆惧尰闄�"
+ :disabled="true"
+ />
</el-form-item>
<el-form-item label="鎹愮尞鑰�" prop="status">
- <el-input v-model="patientqueryParams.donorname" @keyup.enter.native="handleAddpatient" placeholder="璇疯緭鍏ユ崘鐚�呭鍚�" />
+ <el-input
+ v-model="patientqueryParams.donorname"
+ @keyup.enter.native="handleAddpatient"
+ placeholder="璇疯緭鍏ユ崘鐚�呭鍚�"
+ />
</el-form-item>
<!-- <el-form-item label="鎹愮尞鑰�" prop="status">
<el-select v-model="patientqueryParams.donorchargeid" filterable placeholder="璇烽�夋嫨">
@@ -176,75 +357,173 @@
</el-form-item> -->
<el-form-item>
- <el-button type="primary" icon="el-icon-search" size="medium" @click="handleAddpatient">鎼滅储</el-button>
- <el-button icon="el-icon-refresh" size="medium" @click="resetQuery">閲嶇疆</el-button>
+ <el-button
+ type="primary"
+ icon="el-icon-search"
+ size="medium"
+ @click="handleAddpatient"
+ >鎼滅储</el-button
+ >
+ <el-button
+ icon="el-icon-refresh"
+ size="medium"
+ @click="resetQuery"
+ >閲嶇疆</el-button
+ >
</el-form-item>
</el-form>
<!-- 閫夋嫨鍣ㄥ畼鍒楄〃 -->
- <el-table ref="multipleTable" :data="donorchargeList" tooltip-effect="dark" style="width: 100%"
- @selection-change="handleSelectionChange">
+ <el-table
+ ref="multipleTable"
+ :data="donorchargeList"
+ tooltip-effect="dark"
+ style="width: 100%"
+ @selection-change="handleSelectionChange"
+ >
<el-table-column type="selection" width="55"> </el-table-column>
<el-table-column label="鎹愮尞鑰�" width="120">
<template slot-scope="scope">{{
- scope.row.donorname
- }}</template>
+ scope.row.donorname
+ }}</template>
</el-table-column>
- <el-table-column prop="organname" label="鍣ㄥ畼鍚嶇О" show-overflow-tooltip>
+ <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" label="鍒嗛厤绯荤粺缂栧彿" show-overflow-tooltip>
+ <el-table-column
+ prop="caseno"
+ label="鍒嗛厤绯荤粺缂栧彿"
+ show-overflow-tooltip
+ >
</el-table-column>
- <el-table-column prop="name" label="鍙椾綋濮撴皬" show-overflow-tooltip>
+ <el-table-column
+ prop="name"
+ label="鍙椾綋濮撴皬"
+ show-overflow-tooltip
+ >
</el-table-column>
- <el-table-column prop="receiveTime" label="绉绘鏃ユ湡" show-overflow-tooltip>
+ <el-table-column
+ prop="receiveTime"
+ label="绉绘鏃ユ湡"
+ show-overflow-tooltip
+ >
</el-table-column>
- <el-table-column prop="organchargedesc" label="澶囨敞淇℃伅" show-overflow-tooltip>
+ <el-table-column
+ prop="organchargedesc"
+ label="澶囨敞淇℃伅"
+ show-overflow-tooltip
+ >
</el-table-column>
</el-table>
</el-row>
- <pagination v-show="patienttotal > 0" :total="patienttotal" :page.sync="patientqueryParams.pageNum"
- :limit.sync="patientqueryParams.pageSize" @pagination="handleAddpatient" />
+ <pagination
+ v-show="patienttotal > 0"
+ :total="patienttotal"
+ :page.sync="patientqueryParams.pageNum"
+ :limit.sync="patientqueryParams.pageSize"
+ @pagination="handleAddpatient"
+ />
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button @click="dialogVisiblepatient = false">鍙� 娑�</el-button>
- <el-button type="primary" @click="AddDispatchpatients">纭畾娣诲姞</el-button>
+ <el-button type="primary" @click="AddDispatchpatients"
+ >纭畾娣诲姞</el-button
+ >
</span>
</el-dialog>
<!-- 闄勪欢寮圭獥 -->
- <el-dialog v-dialogDrags :modal="false" :close-on-click-modal="false" :title="pdftitle" :visible.sync="pdfVisible"
- width="60%">
+ <el-dialog
+ v-dialogDrags
+ :modal="false"
+ :close-on-click-modal="false"
+ :title="pdftitle"
+ :visible.sync="pdfVisible"
+ width="60%"
+ >
<div class="pdfimg">
<div class="box-pdf">
<div>
- <el-upload size="mini" class="upload-demo" :action="uploadFileUrl" :file-list="fileListto"
- :show-file-list="false" multiple drag :headers="headers" :on-success="(response, file, fileList) =>
- uploadSccess(response, file, fileList)
- " :on-preview="downFile" :disabled="operationType == 'detail'" :on-error="handleUploadError"
- :on-remove="remove" accept="image/*,.pdf">
+ <el-upload
+ size="mini"
+ class="upload-demo"
+ :action="uploadFileUrl"
+ :file-list="fileListto"
+ :show-file-list="false"
+ multiple
+ drag
+ :headers="headers"
+ :on-success="
+ (response, file, fileList) =>
+ uploadSccess(response, file, fileList)
+ "
+ :on-preview="downFile"
+ :disabled="operationType == 'detail'"
+ :on-error="handleUploadError"
+ :on-remove="remove"
+ accept="image/*,.pdf"
+ >
<i class="el-icon-upload"></i>
<div class="el-upload__text">
灏嗙エ鎹嫋鍒版澶勶紝鎴�
- <em><el-button :disabled="operationType == 'detail'" size="small" type="primary">鐐瑰嚮涓婁紶</el-button></em>
+ <em
+ ><el-button
+ :disabled="operationType == 'detail'"
+ size="small"
+ type="primary"
+ >鐐瑰嚮涓婁紶</el-button
+ ></em
+ >
</div>
</el-upload>
- <el-table :data="fileListto" @row-click="downFile" style="width: 100%" height="400">
- <el-table-column prop="name" :show-overflow-tooltip="true" label="鍚嶇О">
+ <el-table
+ :data="fileListto"
+ @row-click="downFile"
+ style="width: 100%"
+ height="400"
+ >
+ <el-table-column
+ prop="name"
+ :show-overflow-tooltip="true"
+ label="鍚嶇О"
+ >
<template slot-scope="scope">
<i style="color:#409EFF" class=" el-icon-s-order" />
<span>{{ scope.row.name }}</span>
</template>
</el-table-column>
- <el-table-column prop="name" width="190" :show-overflow-tooltip="true" label="鍔熻兘">
+ <el-table-column
+ prop="name"
+ width="190"
+ :show-overflow-tooltip="true"
+ label="鍔熻兘"
+ >
<template slot-scope="scope">
- <el-button type="danger" size="mini" @click="deletedowfile(scope.row)">鍒犻櫎</el-button>
+ <el-button
+ type="danger"
+ size="mini"
+ @click="deletedowfile(scope.row)"
+ >鍒犻櫎</el-button
+ >
- <el-button type="primary" size="mini"
- @click.native.prevent.stop="moveupdowfile(scope.row)">涓婄Щ</el-button>
- <el-button type="success" size="mini" icon="el-icon-search" circle
- @click.native.prevent.stop="Downloadfile(scope.row)"></el-button>
+ <el-button
+ type="primary"
+ size="mini"
+ @click.native.prevent.stop="moveupdowfile(scope.row)"
+ >涓婄Щ</el-button
+ >
+ <el-button
+ type="success"
+ size="mini"
+ icon="el-icon-search"
+ circle
+ @click.native.prevent.stop="Downloadfile(scope.row)"
+ ></el-button>
</template>
</el-table-column>
</el-table>
@@ -253,7 +532,11 @@
<div v-if="this.previewpdf && pdfimgsrcList.length" class="pdfimgmin">
<!-- <img :src="pdfimg" /> -->
- <el-image style="width: 95%; height: 90%" :src="pdfimg" :preview-src-list="pdfimgsrcList">
+ <el-image
+ style="width: 95%; height: 90%"
+ :src="pdfimg"
+ :preview-src-list="pdfimgsrcList"
+ >
<!-- <div slot="error" class="image-slot">
<i class="el-icon-picture-outline"></i>
</div> -->
@@ -507,7 +790,7 @@
if (
(JSON.stringify(this.form) == sessionStorage.getItem("apiform") &&
JSON.stringify(this.donorchargeorgans) ==
- sessionStorage.getItem("apifunddetail")) ||
+ sessionStorage.getItem("apifunddetail")) ||
!sessionStorage.getItem("apifunddetail")
) {
} else {
@@ -528,13 +811,12 @@
this.patientqueryParams.donorchargeid = null;
this.handleAddpatient();
},
- handleUploadError() { },
+ handleUploadError() {},
// 寮规娣诲姞
AddDispatchpatients() {
- this.donorchargeorgans = this.donorchargeorgans.concat(
- this.overallCase
- );
+ this.donorchargeorgans = this.donorchargeorgans.concat(this.overallCase);
this.dialogVisiblepatient = false;
+ this.sortfun();
},
// 澶氶�夋閫変腑鏁版嵁
handleSelectionChange(selection) {
@@ -685,8 +967,6 @@
});
},
-
-
// 鍙栨秷鎸夐挳
cancel() {
this.$store.dispatch("tagsView/delView", this.$route);
@@ -718,6 +998,7 @@
listDonorchargeorgan(this.patientqueryParams).then(res => {
console.log("listDonorchargeorgan", res);
this.donorchargeorgans = res.rows;
+ this.sortfun();
console.log(this.donorchargeorgans, "donorchargeorgans");
});
});
@@ -733,6 +1014,7 @@
listDonorchargeorgan(this.patientqueryParams).then(res => {
console.log("listDonorchargeorgan", res);
this.donorchargeorgans = res.rows;
+ this.sortfun();
console.log(this.donorchargeorgans, "donorchargeorgans");
});
});
@@ -756,7 +1038,7 @@
saveDonorchargeorgan(this.donorchargeorgans).then(res2 => {
if (res2.code == 200) {
this.$modal.msgSuccess("淇濆瓨鎴愬姛锛�");
- this.overallCase=[]
+ this.overallCase = [];
} else {
this.$modal.msgError(res2.msg);
}
@@ -778,7 +1060,7 @@
saveDonorchargeorgan(this.donorchargeorgans).then(res2 => {
if (res2.code == 200) {
this.$modal.msgSuccess("淇濆瓨鎴愬姛锛�");
- this.overallCase=[]
+ this.overallCase = [];
} else {
this.$modal.msgError(res2.msg);
}
@@ -821,7 +1103,7 @@
}
this.form.receivableamount = ChargeSum.toFixed(2);
this.form.receivedamount = ChargeamountSum.toFixed(2);
- } catch { }
+ } catch {}
},
handleDelete(row) {
@@ -836,11 +1118,12 @@
if (res2.code == 200) {
let index = this.donorchargeorgans.indexOf(row);
this.donorchargeorgans.splice(index, 1);
+ this.sortfun();
this.$modal.msgSuccess("鍒犻櫎鎴愬姛锛�");
}
});
})
- .catch(() => { });
+ .catch(() => {});
},
//琛ㄦ牸鍚堣
@@ -1072,6 +1355,12 @@
},
Downloadfile(row) {
window.location.href = row.url;
+ },
+ // 鎺掑簭
+ sortfun() {
+ this.donorchargeorgans.forEach((item, index) => {
+ item.index = index + 1;
+ });
}
}
};
@@ -1218,7 +1507,7 @@
}
::v-deep .el-input.is-disabled .el-input__inner {
- background-color: #F5F7FA;
+ background-color: #f5f7fa;
border-color: #dfe4ed;
color: #000000;
cursor: not-allowed;
@@ -1234,4 +1523,4 @@
font-size: 20px;
line-height: 20px;
}
-</style>
\ No newline at end of file
+</style>
--
Gitblit v1.9.3