| | |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="primary" |
| | | plain |
| | | icon="el-icon-plus" |
| | | size="mini" |
| | | @click="handleAdd" |
| | | <el-button type="primary" plain icon="el-icon-plus" @click="handleAdd" |
| | | >新增</el-button |
| | | > |
| | | <!-- v-hasPermi="['project:funddetail:add']" --> |
| | |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | :loading="exportLoading" |
| | | @click="handleExport" |
| | | >导出</el-button |
| | |
| | | </el-row> |
| | | |
| | | <el-table |
| | | border |
| | | :row-class-name="rowClassName" |
| | | v-loading="loading" |
| | | :data="reimbursementList" |
| | | @selection-change="handleSelectionChange" |
| | |
| | | align="center" |
| | | fixed="right" |
| | | class-name="small-padding fixed-width" |
| | | width="210" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button |
| | |
| | | <el-button |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-edit" |
| | | icon="el-icon-view" |
| | | @click="handleDetail(scope.row)" |
| | | >查看</el-button |
| | | > |
| | |
| | | this.$modal.msgSuccess(response.msg); |
| | | this.fileList.push({ name: response.fileName, url: response.fileName }); |
| | | } else { |
| | | console.log(response.msg);; |
| | | console.log(response.msg); |
| | | } |
| | | }, |
| | | |
| | |
| | | |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | | console.log("defaultperson",this.defaultperson); |
| | | console.log("defaultperson", this.defaultperson); |
| | | this.$router.push({ |
| | | path: "/finance/travelexpenseapply/travelexpensedetail/", |
| | | query: { id: 0, pos: 1,routerparam:this.defaultperson} |
| | | query: { id: 0, pos: 1, routerparam: this.defaultperson } |
| | | }); |
| | | |
| | | this.reset(); |
| | |
| | | path: "/finance/travelexpenseapply/travelexpensedetail/", |
| | | query: { id: row.id, pos: 3 } |
| | | }); |
| | | |
| | | |
| | | this.dialogType = "detail"; |
| | | this.title = "查看报销申请"; |
| | | |
| | |
| | | /** 删除按钮操作 */ |
| | | handleDelete(row) { |
| | | const ids = row.id || this.ids; |
| | | console.log(ids); |
| | | this.$modal |
| | | .confirm("是否确认删除该条记录?") |
| | | .then(function() { |
| | |
| | | chineseStr += cnInteger; |
| | | } |
| | | return chineseStr; |
| | | }, |
| | | |
| | | //明显提示审批退回记录 |
| | | rowClassName({ row, column, rowIndex, columnIndex }) { |
| | | //此判断为最后三行 |
| | | if (row.backflowlevel == 199) { |
| | | return "addClassva"; |
| | | } |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | <!-- <style scoped> --> |
| | | <!-- 不可加scoped,会独立样式element访问不到 --> |
| | | <style> |
| | | .addClassva { |
| | | /* background: #10aec2; */ |
| | | background: #e8f4ff !important; |
| | | /* color:whitesmoke; */ |
| | | } |
| | | </style> |