| | |
| | | <div class="app-container"> |
| | | <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px"> |
| | | <el-form-item label="捐献者编号" prop="donorno"> |
| | | <el-input |
| | | v-model="queryParams.donorno" |
| | | placeholder="请输入捐献者编号" |
| | | clearable |
| | | size="small" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | <el-input v-model="queryParams.donorno" placeholder="请输入捐献者编号" clearable size="small" |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="申请人编号" prop="userno"> |
| | | <el-input |
| | | v-model="queryParams.userno" |
| | | placeholder="请输入申请人编号" |
| | | clearable |
| | | size="small" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | <el-input v-model="queryParams.userno" placeholder="请输入申请人编号" clearable size="small" |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="申请人姓名" prop="username"> |
| | | <el-input |
| | | v-model="queryParams.username" |
| | | placeholder="请输入申请人姓名" |
| | | clearable |
| | | size="small" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | <el-input v-model="queryParams.username" placeholder="请输入申请人姓名" clearable size="small" |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="费用类别 见字典sys_ConsolationType" prop="applytype"> |
| | | <el-select v-model="queryParams.applytype" placeholder="请选择费用类别 见字典sys_ConsolationType" clearable size="small"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="部门名称" prop="deptmentname"> |
| | | <el-input |
| | | v-model="queryParams.deptmentname" |
| | | placeholder="请输入部门名称" |
| | | clearable |
| | | size="small" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | <el-input v-model="queryParams.deptmentname" placeholder="请输入部门名称" clearable size="small" |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="记录状态" prop="recordstatus"> |
| | | <el-select v-model="queryParams.recordstatus" placeholder="请选择记录状态" clearable size="small"> |
| | |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="上传标志" prop="uploadflag"> |
| | | <el-input |
| | | v-model="queryParams.uploadflag" |
| | | placeholder="请输入上传标志" |
| | | clearable |
| | | size="small" |
| | | @keyup.enter.native="handleQuery" |
| | | /> |
| | | <el-input v-model="queryParams.uploadflag" placeholder="请输入上传标志" clearable size="small" |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="上传时间" prop="uploadtime"> |
| | | <el-date-picker clearable size="small" |
| | | v-model="queryParams.uploadtime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | <el-date-picker clearable size="small" v-model="queryParams.uploadtime" type="date" value-format="yyyy-MM-dd" |
| | | placeholder="选择上传时间"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="handleAdd" |
| | | v-hasPermi="['project:fund:add']" |
| | | >新增</el-button> |
| | | <el-button type="primary" plain icon="el-icon-plus" size="mini" @click="handleAdd" |
| | | v-hasPermi="['project:fund:add']">新增</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="success" |
| | | plain |
| | | icon="el-icon-edit" |
| | | size="mini" |
| | | :disabled="single" |
| | | @click="handleUpdate" |
| | | v-hasPermi="['project:fund:edit']" |
| | | >修改</el-button> |
| | | <el-button type="success" plain icon="el-icon-edit" size="mini" :disabled="single" @click="handleUpdate" |
| | | v-hasPermi="['project:fund:edit']">修改</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="danger" |
| | | plain |
| | | icon="el-icon-delete" |
| | | size="mini" |
| | | :disabled="multiple" |
| | | @click="handleDelete" |
| | | v-hasPermi="['project:fund:remove']" |
| | | >删除</el-button> |
| | | <el-button type="danger" plain icon="el-icon-delete" size="mini" :disabled="multiple" @click="handleDelete" |
| | | v-hasPermi="['project:fund:remove']">删除</el-button> |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | :loading="exportLoading" |
| | | @click="handleExport" |
| | | v-hasPermi="['project:fund:export']" |
| | | >导出</el-button> |
| | | <el-button type="warning" plain icon="el-icon-download" size="mini" :loading="exportLoading" @click="handleExport" |
| | | v-hasPermi="['project:fund:export']">导出</el-button> |
| | | </el-col> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> |
| | | </el-row> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['project:fund:edit']" |
| | | >修改</el-button> |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | v-hasPermi="['project:fund:remove']" |
| | | >删除</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" |
| | | v-hasPermi="['project:fund:edit']">修改</el-button> |
| | | <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" |
| | | v-hasPermi="['project:fund:remove']">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | |
| | | <pagination |
| | | v-show="total>0" |
| | | :total="total" |
| | | :page.sync="queryParams.pageNum" |
| | | :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" |
| | | /> |
| | | <pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" |
| | | @pagination="getList" /> |
| | | |
| | | <!-- 添加或修改费用申请主对话框 --> |
| | | <el-dialog :title="title" :visible.sync="open" width="1400px" append-to-body> |
| | |
| | | <el-input v-model="form.uploadflag" placeholder="请输入上传标志" /> |
| | | </el-form-item> |
| | | <el-form-item label="上传时间" prop="uploadtime"> |
| | | <el-date-picker clearable size="small" |
| | | v-model="form.uploadtime" |
| | | type="date" |
| | | value-format="yyyy-MM-dd" |
| | | <el-date-picker clearable size="small" v-model="form.uploadtime" type="date" value-format="yyyy-MM-dd" |
| | | placeholder="选择上传时间"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | |
| | | // 多选框选中数据 |
| | | handleSelectionChange(selection) { |
| | | this.ids = selection.map(item => item.id) |
| | | this.single = selection.length!==1 |
| | | this.single = selection.length !== 1 |
| | | this.multiple = !selection.length |
| | | }, |
| | | /** 新增按钮操作 */ |
| | |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | this.$modal.confirm('是否确认删除费用申请主编号为"' + ids + '"的数据项?').then(function() { |
| | | this.$modal.confirm('是否确认删除费用申请主编号为"' + ids + '"的数据项?').then(function () { |
| | | return delFund(ids); |
| | | }).then(() => { |
| | | this.getList(); |
| | | this.$modal.msgSuccess("删除成功"); |
| | | }).catch(() => {}); |
| | | }).catch(() => { }); |
| | | }, |
| | | /** 导出按钮操作 */ |
| | | handleExport() { |
| | |
| | | }).then(response => { |
| | | this.$download.name(response.msg); |
| | | this.exportLoading = false; |
| | | }).catch(() => {}); |
| | | }).catch(() => { }); |
| | | } |
| | | } |
| | | }; |