| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="120px"> |
| | | |
| | | <el-form-item label="捐献姓名" prop="name"> |
| | | <el-input v-model="queryParams.name" placeholder="请输入姓名" clearable size="small" |
| | | @keyup.enter.native="handleQuery" /> |
| | |
| | | v-hasPermi="['system:donorcharge:edit']">修改</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" @click="handleDetail(scope.row)" |
| | | v-hasPermi="['system:donorcharge:edit']">详情</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:donorcharge:remove']">删除</el-button> |
| | | <el-button size="mini" type="text" @click="handleDelete(scope.row)" |
| | | v-hasPermi="['system:donorcharge:remove']"><span class="button-delete" |
| | | ><i class="el-icon-delete"></i>删除</span |
| | | ></el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | |
| | | <script> |
| | | import { listDonatebaseinfo } from "@/api/project/donatebaseinfo"; |
| | | import { listDonorcharge, getDonorcharge, delDonorcharge, addDonorcharge, updateDonorcharge, exportDonorcharge, listDonorchargeorgan, getDonorchargeorgan, delDonorchargeorgan, addDonorchargeorgan, updateDonorchargeorgan, exportDonorchargeorgan } from "@/api/project/donorcharge"; |
| | | import { listDonorcharge, getDonorcharge, delDonorcharge, addDonorcharge, updateDonorcharge, exportDonorcharge, listDonorchargeorgan, delDonorchargeorgan, addDonorchargeorgan, updateDonorchargeorgan, exportDonorchargeorgan } from "@/api/project/donorcharge"; |
| | | export default { |
| | | name: "Donorcharge", |
| | | data() { |
| | |
| | | curdonorinfo = item; |
| | | } |
| | | }); |
| | | console.log(curdonorinfo,'curdonorinfo'); |
| | | this.showSelectionDialog = false; |
| | | this.$router.push({ |
| | | path: "/finance/donorchargedetail/", |
| | |
| | | } |
| | | else { |
| | | //获取捐献案例列表 |
| | | if (this.donorlist.length>0) { } |
| | | if (this.donorlist.length > 0) { } |
| | | else { |
| | | this.loading = true; |
| | | listDonatebaseinfo(this.donorParams).then(res => { |
| | | this.donorinfolist = res.rows; |
| | | this.donorinfolist.forEach(item => { |
| | | // this.donorinfolist = res.rows; |
| | | res.rows.forEach(item => { |
| | | if (item.workflow >= 6) { |
| | | this.donorinfolist.push(item); |
| | | } |
| | | }); |
| | | |
| | | this.donorinfolist.forEach(item1 => { |
| | | this.donorlist.push({ |
| | | donorid: item.id, |
| | | donorname: item.name |
| | | donorid: item1.id, |
| | | donorname: item1.name |
| | | }); |
| | | }); |
| | | console.log(this.donorinfolist,' this.donorinfolist'); |
| | | this.loading = false; |
| | | }); |
| | | } |
| | |
| | | } |
| | | }; |
| | | </script> |
| | | <style scoped> |
| | | /* @import url(); 引入公共css类 */ |
| | | .button-delete{ |
| | | color: rgb(236, 69, 69); |
| | | } |
| | | </style> |