| | |
| | | </el-form> |
| | | </div> |
| | | <div> |
| | | <el-button size="small" type="primary" @click="openAdd2">新增</el-button> |
| | | <el-button size="small" type="primary" @click="dialogVisible2 = true">新增</el-button> |
| | | <el-button size="small" type="primary" @click="handleDownOne">导出</el-button> |
| | | </div> |
| | | </div> |
| | |
| | | import { selectUserCondition } from "@/api/business/inspectionTask"; |
| | | import dayjs from 'dayjs' |
| | | import { selectQualifiedSupplierManagementPage } from '@/api/cnas/externalService/supplierManage/supplierManage' |
| | | import draftSave from '@/mixins/draftSave' |
| | | export default { |
| | | props: { |
| | | clickNodeVal: { |
| | |
| | | limsTable, |
| | | dataAcquisitionConfig, |
| | | }, |
| | | mixins: [draftSave], |
| | | data() { |
| | | return { |
| | | dateFormat: 'yyyy-MM-dd', |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | openAdd2() { |
| | | this.dialogVisible2 = true |
| | | this.$nextTick(() => { |
| | | this.draftRestore('managementAdd', 'formData2', '', 'dialogVisible2') |
| | | }) |
| | | }, |
| | | handleClose() { |
| | | this.draftStop('management') |
| | | this.formData = { |
| | | authorizedPerson: [] |
| | | } |
| | |
| | | this.upLoad = false; |
| | | }, |
| | | handleClose2() { |
| | | this.draftStop('managementAdd') |
| | | this.formData = { |
| | | authorizedPerson: [] |
| | | } |
| | |
| | | this.formData[key] = `${this.formData[key]} 00:00:00` |
| | | } |
| | | }) |
| | | this.draftRestore('management', 'formData', this.formData.id, 'dialogVisible') |
| | | }, |
| | | beforeUpload(file) { |
| | | if (file.size > 1024 * 1024 * 10) { |
| | |
| | | this.$message.success('修改成功') |
| | | this.upLoad = false |
| | | this.refreshTable('page') |
| | | this.draftClear('management') |
| | | this.dialogVisible = false |
| | | }).catch(e => { |
| | | this.$message.error('修改失败') |
| | |
| | | this.$message.success('提交成功') |
| | | this.upLoad2 = false |
| | | this.refreshTable('page') |
| | | this.draftClear('managementAdd') |
| | | this.dialogVisible2 = false |
| | | this.formData2 = { |
| | | imageUpload: '', |