| | |
| | | <el-input v-model="entity.sampleModel" clearable placeholder="请输入" size="small" |
| | | @keyup.enter="refreshTable()"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="下单时间" prop="createTime" v-if="more"> |
| | | <el-date-picker v-model="entity.createTime" clearable format="YYYY-MM-DD" placeholder="选择日期" size="small" |
| | | <el-form-item label="送样时间" prop="sampleDate" v-if="more"> |
| | | <el-date-picker v-model="entity.sampleDate" clearable format="YYYY-MM-DD" placeholder="选择日期" size="small" |
| | | @change="refreshTable" |
| | | style="width:100%" type="date" value-format="YYYY-MM-DD HH:mm:ss"> |
| | | style="width:100%" type="date" value-format="YYYY-MM-DD"> |
| | | </el-date-picker> |
| | | </el-form-item> |
| | | <el-form-item label="委托人" prop="prepareUser" v-if="more"> |
| | |
| | | entity: { |
| | | orderType: '', |
| | | state: '', |
| | | sampleDate: null, |
| | | }, |
| | | upIndex: 0, |
| | | tableData: [], |
| | |
| | | { label: '备注', prop: 'remark' }, |
| | | { label: '检验进度%', prop: 'insProgress' }, |
| | | { label: '约定时间', prop: 'appointed' }, |
| | | { label: '下单时间', prop: 'createTime' }, |
| | | { label: '送样时间', prop: 'sampleDate', minWidth: 110 }, |
| | | { label: '下发时间', prop: 'sendTime' }, |
| | | { label: '退回理由', prop: 'tell' }, |
| | | { label: '拒收原因', prop: 'sampleRejectRemark' }, |
| | |
| | | verifyDialogVisible: false, |
| | | quashDialogVisible: false, |
| | | filesDialogVisible: false, // 附件查看弹框 |
| | | attachmentOrderId: null, |
| | | tableDataFile: [], |
| | | tableLoadingFile: false, |
| | | columnFile: [ |
| | |
| | | }, |
| | | refresh() { |
| | | this.resetForm('entity') |
| | | this.entity.sampleDate = null |
| | | this.refreshTable() |
| | | }, |
| | | pagination(page) { |
| | |
| | | }, |
| | | // 附件查看 |
| | | handleFileLook(row) { |
| | | this.attachmentOrderId = row.id |
| | | this.pageFile.current = 1 |
| | | this.tableDataFile = [] |
| | | this.filesDialogVisible = true |
| | | this.getFileList(row) |
| | | this.getFileList() |
| | | }, |
| | | getFileList(row) { |
| | | getFileList() { |
| | | this.tableLoadingFile = true |
| | | getFileList({ insOrderId: row.id }).then(res => { |
| | | getFileList({ insOrderId: this.attachmentOrderId, current: this.pageFile.current, size: this.pageFile.size }).then(res => { |
| | | this.tableLoadingFile = false |
| | | if (res.code === 200) { |
| | | this.tableDataFile = res.data.records |
| | |
| | | }) |
| | | }, |
| | | paginationFile(page) { |
| | | this.pageFile.current = page.page |
| | | this.pageFile.size = page.limit |
| | | this.getFileList() |
| | | }, |
| | |
| | | downFile({ |
| | | id: row.id, |
| | | }).then(res => { |
| | | this.$download.saveAs(res.data.fileUrl, row.fileName); |
| | | return this.$download.attachment(res.data, row.fileName); |
| | | }).catch(error => { |
| | | |
| | | }) |