| | |
| | | v-loading="loading" |
| | | border |
| | | :data="donateconsolationfundList" |
| | | :row-class-name="rowClassName" |
| | | > |
| | | <el-table-column |
| | | label="申请日期" |
| | |
| | | " |
| | | size="mini" |
| | | type="text" |
| | | icon="el-icon-delete" |
| | | @click="handleDelete(scope.row)" |
| | | >删除</el-button |
| | | ><span class="button-delete" |
| | | ><i class="el-icon-delete"></i>删除</span |
| | | ></el-button |
| | | > |
| | | <!-- v-hasPermi="['project:expretfund:delete']" --> |
| | | <!-- <el-button |
| | |
| | | >下载</el-button |
| | | > --> |
| | | <!-- v-hasPermi="['project:expretfund:download']" --> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | fixed="right" |
| | | align="center" |
| | | width="120" |
| | | label="功能" |
| | | > |
| | | <template slot-scope="scope"> |
| | | <el-button size="mini" v-if="scope.row.uploadStates == 1" |
| | | >线下已报销</el-button |
| | | > |
| | | <el-button |
| | | size="mini" |
| | | type="success" |
| | | v-else-if="scope.row.uploadStates == 0" |
| | | @click="Dooffline(scope.$index, scope.row)" |
| | | >线下报销</el-button |
| | | > |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | type="text" |
| | | size="small" |
| | | > |
| | | 删除 |
| | | <span class="button-delete" |
| | | ><i class="el-icon-delete"></i>删除</span |
| | | > |
| | | </el-button> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | updateExternalperson, |
| | | exportExternalperson |
| | | } from "@/api/project/externalperson"; |
| | | |
| | | import { getUserProfile } from "@/api/system/user"; |
| | | import Li_area_select from "@/components/Address"; |
| | | import OrgSelecter from "@/views/project/components/orgselect"; |
| | |
| | | this.resetForm("queryForm"); |
| | | this.handleQuery(); |
| | | }, |
| | | Dooffline(a, value) { |
| | | value.uploadStates = 1; |
| | | value.notes = "线下已报销"; |
| | | addorupdateFund(value).then(res => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("记录成功"); |
| | | } else { |
| | | this.$modal.msgError(res.msg); |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | /** 新增按钮操作 */ |
| | | handleAdd() { |
| | |
| | | //判断是否存在上报记录 |
| | | row.recordstatus = 0; |
| | | var currenttime = new Date(); |
| | | row.applyTime = currenttime.getFullYear() + "-" + (currenttime.getMonth()+1) + "-" + currenttime.getDate() + " " + currenttime.getHours() + ":" + currenttime.getMinutes() + ":" + currenttime.getSeconds(); |
| | | row.applyTime = |
| | | currenttime.getFullYear() + |
| | | "-" + |
| | | (currenttime.getMonth() + 1) + |
| | | "-" + |
| | | currenttime.getDate() + |
| | | " " + |
| | | currenttime.getHours() + |
| | | ":" + |
| | | currenttime.getMinutes() + |
| | | ":" + |
| | | currenttime.getSeconds(); |
| | | |
| | | updateFund(row).then(response => { |
| | | if (response.code == 200) { |
| | |
| | | console.log(url); |
| | | const link = document.createElement("a"); |
| | | link.href = url; |
| | | const name=fileUrl["downloadName"] |
| | | const name = fileUrl["downloadName"]; |
| | | link.setAttribute("download", name); // 替换file.pdf为实际的文件名 |
| | | document.body.appendChild(link); |
| | | link.click(); |
| | |
| | | } else { |
| | | console.log(response.msg); |
| | | } |
| | | }, |
| | | rowClassName({ row, column, rowIndex, columnIndex }) { |
| | | if (row.recordstatus == -1 && row.backflowlevel != null) { |
| | | return "error-row"; |
| | | } |
| | | return ""; |
| | | } |
| | | } |
| | | }; |
| | | </script> |
| | | <style scoped> |
| | | <style lang="scss" scoped> |
| | | /* @import url(); 引入公共css类 */ |
| | | .button-delete { |
| | | color: rgb(236, 69, 69); |
| | | } |
| | | ::v-deep.el-table .error-row { |
| | | background: #fcebeb; |
| | | } |
| | | </style> |