| | |
| | | </div> |
| | | <div class="table"> |
| | | <lims-table :tableData="tableData" :column="column" :tableLoading="tableLoading" :height="'calc(100vh - 270px)'" |
| | | :page="page" @pagination="pagination" :isSelection="true" |
| | | :handleSelectionChange="handleSelectionChange"></lims-table> |
| | | :page="page" @pagination="pagination"></lims-table> |
| | | </div> |
| | | <el-dialog :title="title" :visible.sync="addDialogVisible" width="400px" top="6vh"> |
| | | <el-row> |
| | |
| | | <el-col :span="24" style="margin-bottom: 16px;"> |
| | | <div class="search_thing"> |
| | | <div class="search_label">签收人:</div> |
| | | <div class="search_input"> |
| | | <el-select v-model="addInfo.signatory" placeholder="请选择" size="small" style="width: 100%;" multiple> |
| | | <el-option v-for="item in personList" :key="item.value" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | </div> |
| | | <div class="search_input"><el-input size="small" placeholder="请输入" clearable |
| | | v-model="addInfo.signatory"></el-input></div> |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="24" style="margin-bottom: 16px;"> |
| | |
| | | personList: [], |
| | | title: '新增', |
| | | addDialogVisible: false, |
| | | addInfo: { |
| | | signatory: [] |
| | | }, |
| | | addInfo: {}, |
| | | addLoading: false, |
| | | mutilSelect: [], |
| | | queryParams: { |
| | | insReportCode: '' |
| | | }, |
| | |
| | | { label: "发送方式", prop: "method" }, |
| | | { label: "发送日期", prop: "sendTime" }, |
| | | { label: "发送人", prop: "sendUserName" }, |
| | | { label: "签收人", prop: "signatoryName" }, |
| | | { label: "签收人", prop: "signatory" }, |
| | | { label: "备注", prop: "remark" }, |
| | | { |
| | | dataType: "action", |
| | |
| | | }, |
| | | methods: { |
| | | handleDown() { |
| | | if (this.mutilSelect.length == 0) { |
| | | this.$message.warning('请选择要导出的数据') |
| | | return |
| | | } |
| | | this.outLoading = true |
| | | exportProcessReport({ ids: this.mutilSelect.map(m => m.id) }).then(res => { |
| | | exportProcessReport(this.queryParams).then(res => { |
| | | this.outLoading = false |
| | | this.$download.saveAs(res.data, "报告结果"); |
| | | const blob = new Blob([res], { type: 'application/msword' }); |
| | | this.$download.saveAs(blob, '报告结果' + '.docx'); |
| | | }) |
| | | }, |
| | | openAdd() { |
| | | this.title = '新增' |
| | | this.addInfo = { |
| | | signatory: [] |
| | | } |
| | | this.addInfo = {} |
| | | this.addDialogVisible = true; |
| | | }, |
| | | getList() { |
| | |
| | | this.page.current = 1; |
| | | this.getList(); |
| | | }, |
| | | handleSelectionChange(val) { |
| | | this.mutilSelect = val |
| | | }, |
| | | getAuthorizedPerson() { |
| | | selectUserCondition().then(res => { |
| | | let data = [] |
| | |
| | | delete this.addInfo.createTime |
| | | delete this.addInfo.createUser |
| | | delete this.addInfo.updateTime |
| | | delete this.addInfo.signatoryUrl |
| | | delete this.addInfo.updateUserer |
| | | delete this.addInfo.sendUserName |
| | | let addInfo = this.HaveJson(this.addInfo) |
| | | addInfo.signatory = addInfo.signatory.join(',') |
| | | if (this.title == '新增') { |
| | | addProcessReport(addInfo).then(res => { |
| | | addProcessReport(this.addInfo).then(res => { |
| | | this.addLoading = false |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | |
| | | this.refreshTable() |
| | | }).catch(err => { }) |
| | | } else { |
| | | doProcessReport(addInfo).then(res => { |
| | | doProcessReport(this.addInfo).then(res => { |
| | | this.addLoading = false |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | |
| | | this.title = '修改' |
| | | this.addInfo = row |
| | | console.log(this.addInfo) |
| | | this.addInfo.signatory = this.addInfo.signatory ? this.addInfo.signatory.split(',').map(m => Number(m)) : [] |
| | | this.addDialogVisible = true; |
| | | }, |
| | | handleChangeTask(list) { |
| | | this.mutilSelect = list |
| | | }, |
| | | handleDelete(row) { |
| | | this.$confirm("是否删除该条数据?", "提示", { |