| | |
| | | }, |
| | | }) |
| | | .then((res) => { |
| | | if (res.code === 201) { |
| | | this.addLoad = false; |
| | | return; |
| | | } |
| | | this.$message.success("添加成功"); |
| | | this.addDia = false; |
| | | this.selectList("page"); |
| | |
| | | } |
| | | ) |
| | | .then((res) => { |
| | | if (res.code === 201) { |
| | | this.loading = false; |
| | | return; |
| | | } |
| | | this.downDia = false; |
| | | this.loading = false; |
| | | this.$message.success("导出成功"); |
| | |
| | | this.$refs.upload.clearFiles(); |
| | | this.uploadDia = false; |
| | | this.uploading = false; |
| | | if (response.code == 201) { |
| | | if (response.code != 200) { |
| | | this.$message.error(response.message); |
| | | return; |
| | | } |
| | |
| | | ), |
| | | }) |
| | | .then((res) => { |
| | | if (res.code === 201) { |
| | | return; |
| | | } |
| | | this.$message.success("删除成功"); |
| | | this.selectList("page"); |
| | | }) |
| | |
| | | } |
| | | ) |
| | | .then((res) => { |
| | | if (res.code === 201) { |
| | | return; |
| | | } |
| | | this.$parent.submitBatchCheckDialog(); |
| | | this.$message.success("操作成功"); |
| | | }); |
| | |
| | | }) |
| | | .then(() => { |
| | | delStandardMethod({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.getList(); |
| | | }); |
| | |
| | | </div> |
| | | <div> |
| | | <el-button size="medium" type="primary" @click="openApprovalDialog1">建 档</el-button> |
| | | <el-upload ref='upload' :action="action" :before-upload="beforeUpload" :headers="headers" :on-error="onError" |
| | | <el-upload ref='upload' :action="action" :before-upload="beforeUpload" :headers="uploadHeader" :on-error="onError" |
| | | :on-success="handleSuccessUp" :show-file-list="false" |
| | | accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar' |
| | | style="display: inline-block; margin-left: 10px;"> |
| | |
| | | addSearchNewArchived, exportMethodSearchNew, |
| | | pageMethodSearchNew, pageSearchNewArchived, pageSearchNewBackups, ratifySearchNewArchivedr |
| | | } from '@/api/cnas/process/method/standardNoveltyRetrieval' |
| | | import {selectUserCondition} from "@/api/performance/class"; |
| | | |
| | | export default { |
| | | name: 'a7-standard-novelty-retrieval', |
| | |
| | | writeDate: '', |
| | | ratifyDate: '', |
| | | }, |
| | | userList: [], |
| | | approvalDialog: false, |
| | | approvalDialog1: false, |
| | | viewRocordDia: false, |
| | |
| | | this.oldPage.size = page.limit |
| | | this.searchList(); |
| | | }, |
| | | // |
| | | getUserList() { |
| | | this.$axios.post(this.$api.user.selectUserList, { |
| | | page: { current: -1, size: -1, }, |
| | | entity: { name: null } |
| | | }, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | | } |
| | | }).then(res => { |
| | | if (res.code === 201) { |
| | | return |
| | | } |
| | | this.userList = res.data.body.records |
| | | }) |
| | | }, |
| | | }, |
| | | // 用于上传文件的信息 |
| | | computed: { |
| | | headers() { |
| | | return { |
| | | 'token': sessionStorage.getItem('token') |
| | | } |
| | | }, |
| | | action() { |
| | | return this.javaApi + '/processMethodSearchNew/importMethodSearchNew' |
| | | } |
| | |
| | | this.tableLoading = true |
| | | getSuperviseDetailCorrectFileList({ superviseDetailsCorrectId: this.info.superviseDetailsCorrectId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data |
| | | }).catch(err => { |
| | | this.tableLoading = false |
| | |
| | | this.tableLoading = true |
| | | delSuperviseDetailCorrectFile({ superviseDetailsCorrectFileId: row.superviseDetailsCorrectFileId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('删除成功') |
| | | this.searchTableList() |
| | | }).catch(err => { |
| | |
| | | searchInfo(row) { |
| | | this.form.qualityMonitorDetailsId = row.qualityMonitorDetailsId |
| | | getSuperviseDetailCorrect({ superviseDetailsId: row.superviseDetailsId }).then(res => { |
| | | if (res.code === 201) return |
| | | this.form = res.data |
| | | }).catch(err => { |
| | | console.log('err---', err); |
| | |
| | | name: 'a8-corrective-action', |
| | | // import 引入的组件需要注入到对象中才能使用 |
| | | components: { |
| | | // QualityInfo, |
| | | // QualityInfo, |
| | | CorrectiveInfo, |
| | | limsTable, |
| | | TableCard, |
| | |
| | | this.tableLoading = true |
| | | pageSuperviseDetailCorrect({ ...entity, ...page }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | |
| | | if (this.operationType === 'add') { |
| | | addClientSatisfaction(this.form).then(res => { |
| | | this.editLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('提交成功') |
| | | this.closeFormDia() |
| | | }).catch(err => { |
| | |
| | | } else { |
| | | updateClientSatisfaction(this.form).then(res => { |
| | | this.editLoad = false |
| | | if (res.code === 201) return |
| | | this.$message.success('提交成功') |
| | | this.closeFormDia() |
| | | }).catch(err => { |
| | |
| | | this.tableLoading = true |
| | | pageClientSatisfaction({ ...entity, ...page }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | |
| | | this.tableLoading1 = true |
| | | pageAnalyseFile({ ...entity, ...page }).then(res => { |
| | | this.tableLoading1 = false |
| | | if (res.code === 201) return |
| | | this.tableData1 = res.data.records |
| | | this.page1.total = res.data.total |
| | | }).catch(err => { |
| | |
| | | this.tableLoading = true |
| | | delClientSatisfaction({ clientSatisfactionId: row.clientSatisfactionId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('删除成功') |
| | | this.searchList() |
| | | }).catch(err => { |
| | |
| | | this.tableLoading = true |
| | | delAnalyseFile({ analyseFileId: row.analyseFileId }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.$message.success('删除成功') |
| | | this.searchList() |
| | | }).catch(err => { |
| | |
| | | }) |
| | | .then(() => { |
| | | delManageDocumentControlled({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refresh(); |
| | | }); |
| | |
| | | }) |
| | | .then(() => { |
| | | delManageDocumentIssueRecycle({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refresh(); |
| | | }); |
| | |
| | | }) |
| | | .then(() => { |
| | | delManageDocumentAlter({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refresh(); |
| | | }); |
| | |
| | | }) |
| | | .then(() => { |
| | | delManageDocumentList({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refresh(); |
| | | }); |
| | |
| | | }) |
| | | .then(() => { |
| | | delManageDocumentCancel({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refresh(); |
| | | }); |
| | |
| | | if (action === 'confirm') { |
| | | // 点击“确定”按钮,允许关闭 |
| | | checkManageRecordCheck({ id: row.id, checkState: '通过' }).then(res => { |
| | | if (res.code === 201) return |
| | | this.refreshTable() |
| | | done(); |
| | | this.$message({ |
| | |
| | | } else if (action === 'cancel') { |
| | | // 点击“取消”按钮,不允许关闭 |
| | | checkManageRecordCheck({ id: row.id, checkState: '不通过' }).then(res => { |
| | | if (res.code === 201) return |
| | | this.refreshTable() |
| | | done(); |
| | | this.$message({ |
| | |
| | | if (action === 'confirm') { |
| | | // 点击“确定”按钮,允许关闭 |
| | | ratifyManageRecordCheck({ id: row.id, ratifyState: '通过' }).then(res => { |
| | | if (res.code === 201) return |
| | | this.refreshTable() |
| | | done(); |
| | | this.$message({ |
| | |
| | | } else if (action === 'cancel') { |
| | | // 点击“取消”按钮,不允许关闭 |
| | | ratifyManageRecordCheck({ id: row.id, ratifyState: '不通过' }).then(res => { |
| | | if (res.code === 201) return |
| | | this.refreshTable() |
| | | done(); |
| | | this.$message({ |
| | |
| | | }) |
| | | .then(() => { |
| | | delManageRecordCheck({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refresh(); |
| | | }); |
| | |
| | | if (this.title == '新增') { |
| | | addManageRecordCancel(obj).then(res => { |
| | | this.addLoading = false |
| | | if (res.code == 201) { |
| | | return |
| | | } |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | } else { |
| | | doManageRecordCancel(obj).then(res => { |
| | | this.addLoading = false |
| | | if (res.code == 201) { |
| | | return |
| | | } |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | if (action === 'confirm') { |
| | | // 点击“确定”按钮,允许关闭 |
| | | ratifyManageRecordCancel({ id: row.id, ratifyState: '通过' }).then(res => { |
| | | if (res.code === 201) return |
| | | this.refreshTable() |
| | | done(); |
| | | this.$message({ |
| | |
| | | } else if (action === 'cancel') { |
| | | // 点击“取消”按钮,不允许关闭 |
| | | ratifyManageRecordCancel({ id: row.id, ratifyState: '不通过' }).then(res => { |
| | | if (res.code === 201) return |
| | | this.refreshTable() |
| | | done(); |
| | | this.$message({ |
| | |
| | | }) |
| | | .then(() => { |
| | | delManageRecordCancel({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refresh(); |
| | | }); |
| | |
| | | if (this.title == '新增') { |
| | | addManageRecordIssueRecycle(obj).then(res => { |
| | | this.addLoading = false |
| | | if (res.code == 201) { |
| | | return |
| | | } |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | } else { |
| | | doManageRecordIssueRecycle(obj).then(res => { |
| | | this.addLoading = false |
| | | if (res.code == 201) { |
| | | return |
| | | } |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | obj = { id, documentCode, documentName, documentVersion, pages, documentType, number, receiveUser, receiveDate, departLims, signedDate: getYearAndMonthAndDays(), signedUser: this.userId } |
| | | doManageRecordIssueRecycle(obj).then(res => { |
| | | this.addLoading = false |
| | | if (res.code == 201) { |
| | | return |
| | | } |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | }) |
| | | .then(() => { |
| | | delManageRecordIssueRecycle({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refresh(); |
| | | }); |
| | |
| | | }).then(res => { |
| | | this.checkLoading = false |
| | | this.noCheckLoading = false |
| | | if (res.code === 201) return |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!' |
| | |
| | | }) |
| | | .then(() => { |
| | | delManageRecordVerify({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.getList0() |
| | | }); |
| | |
| | | if (this.title == '新增') { |
| | | addManageRecordIntervals(obj).then(res => { |
| | | this.addLoading = false |
| | | if (res.code == 201) { |
| | | return |
| | | } |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | } else { |
| | | doManageRecordIntervals(obj).then(res => { |
| | | this.addLoading = false |
| | | if (res.code == 201) { |
| | | return |
| | | } |
| | | this.addDialogVisible = false |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | ratifyState: state |
| | | }).then(res => { |
| | | this.checkLoading = false |
| | | if (res.code == 201) { |
| | | return |
| | | } |
| | | this.noCheckLoading = false |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | submitManageRecordIntervalsTotal({ |
| | | id: row.id |
| | | }).then(res => { |
| | | if (res.code === 201) return |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '提交成功!' |
| | |
| | | }) |
| | | .then(() => { |
| | | delManageRecordIntervals({ id: row.id }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("删除成功"); |
| | | this.refreshTable(); |
| | | }); |
| | |
| | | }) |
| | | .then(() => { |
| | | ratifyManageRecordAudit({ id: row.id }).then(res => { |
| | | if (res.code === 201) { |
| | | return; |
| | | } |
| | | this.$message.success('操作成功'); |
| | | this.refreshTable(); |
| | | }) |
| | |
| | | this.tableLoading = true |
| | | pageInternalCheck({ ...entity, ...page }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | |
| | | this.diaLoading = true |
| | | getInternalCheckOne({ checkId: row.checkId }).then(res => { |
| | | this.diaLoading = false |
| | | if (res.code === 201) return |
| | | this.form = res.data |
| | | this.checkDetailList = this.form.checkDetailList |
| | | }).catch(err => { |
| | |
| | | this.tableLoading = true |
| | | pageInternalMeeting({ ...entity, ...page }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | |
| | | this.diaLoading = true |
| | | getInternalMeetingOne({ meetingId: row.meetingId }).then(res => { |
| | | this.diaLoading = false |
| | | if (res.code === 201) return |
| | | this.form = res.data |
| | | this.form.participant = this.form.participant.split(',').map(Number) |
| | | }).catch(err => { |
| | |
| | | this.tableLoading = true |
| | | pageInternalReport({ ...entity, ...page }).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 201) return |
| | | this.tableData = res.data.records |
| | | this.page.total = res.data.total |
| | | }).catch(err => { |
| | |
| | | }, |
| | | initData() { |
| | | getPageList(this.search).then(res => { |
| | | if (res.code === 201) return; |
| | | this.tableData = res.data.records; |
| | | this.search.total = res.data.total; |
| | | }); |
| | |
| | | // 审批接口 |
| | | approvalApi(userId, status) { |
| | | riskAnalysisApprovalOfControlPlanChecklist({ approval: userId, status }).then(res => { |
| | | if (res.code === 201) return; |
| | | this.initData() |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | // 批准接口 |
| | | approveApi(userId, status) { |
| | | approvalOfControlPlanChecklist({ approve: userId, status }).then(res => { |
| | | if (res.code === 201) return; |
| | | this.initData() |
| | | this.$message({ |
| | | type: 'success', |
| | |
| | | }); |
| | | }, |
| | | onSuccess(response) { |
| | | if (response.code == 201) { |
| | | if (response.code != 200) { |
| | | this.$message({ |
| | | type: 'error', |
| | | message: response.message, |
| | |
| | | updateProductOnPlan(params) |
| | | .then((res) => { |
| | | this.handleEditLoading = false; |
| | | if (res.code === 201) return; |
| | | this.$message.success("修改成功"); |
| | | this.editAskDia = false; |
| | | this.getTableData(); |
| | |
| | | currentTable: this.currentTable, |
| | | sampleId: this.currentSample.id |
| | | }).then(res => { |
| | | if (res.code == 201) { |
| | | this.$message.error('保存失败') |
| | | return |
| | | } |
| | | this.$message.success('已保存') |
| | | }) |
| | | // 向 Worker 发送消息,开始处理逻辑 |
| | |
| | | this.bindCurrentInfo = row; |
| | | getBindingProductByProductId({ productId: row.insProductId }) |
| | | .then((res) => { |
| | | if (res.coe == 201) { |
| | | // this.$message.error('未绑定检验项') |
| | | return; |
| | | } |
| | | // console.log(res) |
| | | this.bindTableData = res.data; |
| | | this.bindDialogVisible = true; |
| | |
| | | productId: this.bindCurrentInfo.insProductId, |
| | | }) |
| | | .then((res) => { |
| | | if (res.coe == 201) { |
| | | // this.$message.error('未绑定检验项') |
| | | return; |
| | | } |
| | | // console.log(res) |
| | | this.bindAddTableData = res.data; |
| | | this.bindAddDialogVisible = true; |
| | |
| | | [type]: type === "remark" ? m : Number(m), |
| | | id: this.insOrder.id, |
| | | }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("保存成功"); |
| | | }); |
| | | }, |
| | |
| | | orderId: this.orderId, |
| | | sonLaboratory: this.sonLaboratory |
| | | }).then((res) => { |
| | | if (res.code == 201) { |
| | | this.$message.error("保存失败"); |
| | | return; |
| | | } |
| | | this.$message.success("已保存"); |
| | | }); |
| | | // 向 Worker 发送消息,开始处理逻辑 |
| | |
| | | }) |
| | | }).then(res => { |
| | | this.noNeedCheckLoad = false |
| | | if (res.code == 201) return |
| | | this.$message.success('已提交') |
| | | this.closeOpenPage() |
| | | }).catch(e=>{ |
| | |
| | | }) |
| | | }).then(res => { |
| | | this.saveLoad = false |
| | | if (res.code == 201) return |
| | | this.$message.success('已提交') |
| | | this.bsm3Dia = false; |
| | | this.closeOpenPage() |
| | |
| | | }), |
| | | }).then(res => { |
| | | this.saveLoad = false |
| | | if (res.code == 201) return |
| | | this.$message.success('已提交') |
| | | this.bsm3Dia = false; |
| | | this.closeOpenPage() |
| | |
| | | company: this.addObj.company |
| | | }).then(res => { |
| | | this.saveLoad = false |
| | | if (res.code == 201) return |
| | | this.$message.success('提交成功') |
| | | selectOrderManDay({ |
| | | id: this.currentId |
| | |
| | | userId: this.distributeData.userId, |
| | | sonLaboratory: this.distributeData.sonLaboratory, |
| | | }).then(res => { |
| | | if (res.code === 201) { |
| | | this.upLoad = false |
| | | return |
| | | } |
| | | this.$message.success('修改成功') |
| | | this.upLoad = false |
| | | this.issuedDialogVisible = false |
| | |
| | | laboratory: this.query.laboratory, |
| | | }).then((res) => { |
| | | this.pageLoading = false; |
| | | if (res.code == 201) return; |
| | | this.total = res.data.total; |
| | | this.yearList = res.data.records.map((item) => { |
| | | for (let key in item.year) { |
| | |
| | | }) |
| | | .then((res) => { |
| | | this.loading = false; |
| | | if (res.code == 201) return; |
| | | this.$message.success("操作成功"); |
| | | this.schedulingVisible = false; |
| | | this.schedulingQuery = { |
| | |
| | | this.configTimeVisibleLoading = true; |
| | | list() |
| | | .then((res) => { |
| | | if (res.code == 201) return; |
| | | if (res.data.length > 0) { |
| | | res.data.forEach((item) => { |
| | | item.isEdit = false; |
| | |
| | | // 编辑 |
| | | newObj.id = item.id; |
| | | shiftUpdate(newObj).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("操作成功"); |
| | | this.getTimeList(); |
| | | }); |
| | | } else { |
| | | // 新增 |
| | | shiftAdd(newObj).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("操作成功"); |
| | | this.getTimeList(); |
| | | }); |
| | |
| | | shiftRemove({ |
| | | id: item.id, |
| | | }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("操作成功"); |
| | | this.getTimeList(); |
| | | }); |
| | |
| | | id: m.id, |
| | | shift: e, |
| | | }).then((res) => { |
| | | if (res.code == 201) return; |
| | | this.$message.success("操作成功"); |
| | | m.shift = e; |
| | | }); |
| | |
| | | }, |
| | | getUsers() { |
| | | selectUserCondition({ type: 1 }).then((res) => { |
| | | if (res.code === 201) { |
| | | return; |
| | | } |
| | | let arr = res.data; |
| | | this.personList = arr; |
| | | }); |
| | |
| | | if (!this.formData.id) { |
| | | insertAuxiliaryWorkingHoursDay(this.formData).then((res) => { |
| | | this.addLoad = false; |
| | | if (res.code == 201) return; |
| | | this.$message.success("已提交"); |
| | | this.formData.number = ""; |
| | | this.formData.amount = ""; |
| | |
| | | } else { |
| | | updateAuxiliaryWorkingHoursDay(this.formData).then((res) => { |
| | | this.addLoad = false; |
| | | if (res.code == 201) return; |
| | | this.$message.success("操作成功"); |
| | | this.formData.number = ""; |
| | | this.formData.amount = ""; |
| | |
| | | }); |
| | | approve({ auxiliaryWorkingHoursDays: auxiliaryWorkingHoursDays }).then( |
| | | (res) => { |
| | | if (res.code === 201) { |
| | | return; |
| | | } |
| | | this.submitBatchCheckDialog(); |
| | | this.$message.success("操作成功"); |
| | | } |
| | |
| | | } else { |
| | | this.checkLoadY = false; |
| | | } |
| | | if (res.code == 201) return; |
| | | this.$message.success("操作成功"); |
| | | this.checkVisible = false; |
| | | this.refreshTable("page"); |
| | |
| | | selectAuxiliaryAllByMonth(this.queryParams) |
| | | .then((res) => { |
| | | this.tableLoading = false; |
| | | if (res.code === 201) return; |
| | | this.tableData = res.data; |
| | | }) |
| | | .catch(() => { |
| | |
| | | }; |
| | | // 排序复制 |
| | | copyStandardProductSort(params).then((res) => { |
| | | if (res.code === 201) return; |
| | | this.$message.success("复制成功"); |
| | | this.compareDia = false; |
| | | this.batchCopyDia = false; |
| | |
| | | }; |
| | | // 调取单独比较左右要求值的接口 |
| | | copyStandardProductOne(params).then((res) => { |
| | | if (res.code === 201) return; |
| | | this.compareDia = true; |
| | | this.compareList = res.data; |
| | | }); |
| | |
| | | }; |
| | | // 调取比较左右要求值的接口 |
| | | copyStandardProductList(params).then((res) => { |
| | | if (res.code === 201) return; |
| | | this.compareDia = true; |
| | | this.compareList = res.data; |
| | | }); |
| | |
| | | updateStandardProductListBatch(params) |
| | | .then((res) => { |
| | | this.handleCompareLoading = false; |
| | | if (res.code === 201) return; |
| | | this.$message.success("复制成功"); |
| | | this.compareDia = false; |
| | | this.batchCopyDia = false; |
| | |
| | | .then(() => { |
| | | deleteProductSupplierAsk({ supplierAskId: row.supplierAskId }) |
| | | .then((res) => { |
| | | if (res.code === 201) { |
| | | return; |
| | | } |
| | | this.$message.success("删除成功"); |
| | | this.searchTableData(); |
| | | }) |
| | |
| | | this.addLoad = true; |
| | | addStandardTree(this.addOb) |
| | | .then((res) => { |
| | | if (res.code === 201) { |
| | | this.addLoad = false; |
| | | return; |
| | | } |
| | | this.$message.success("添加成功"); |
| | | this.addDia = false; |
| | | this.list |
| | |
| | | this.updateLoad = true; |
| | | updateStandardTree(this.addOb) |
| | | .then((res) => { |
| | | if (res.code === 201) { |
| | | this.updateLoad = false; |
| | | return; |
| | | } |
| | | this.$message.success("添加成功"); |
| | | this.$tab.refreshPage(); |
| | | // this.selectStandardTreeList(); |
| | |
| | | ask: value, |
| | | }), |
| | | }).then((res) => { |
| | | if (res.code == 201) { |
| | | this.$message.error("未保存"); |
| | | return; |
| | | } |
| | | this.$message.success("已保存"); |
| | | }); |
| | | }, |
| | |
| | | tell: value, |
| | | }), |
| | | }).then((res) => { |
| | | if (res.code == 201) { |
| | | this.$message.error("未保存"); |
| | | return; |
| | | } |
| | | this.$message.success("已保存"); |
| | | }); |
| | | }, |
| | |
| | | methodS: value, |
| | | }), |
| | | }).then((res) => { |
| | | if (res.code == 201) { |
| | | this.$message.error("未保存"); |
| | | return; |
| | | } |
| | | this.$message.success("已保存"); |
| | | }); |
| | | }, |
| | |
| | | radius: value, |
| | | }), |
| | | }).then((res) => { |
| | | if (res.code == 201) { |
| | | this.$message.error("未保存"); |
| | | return; |
| | | } |
| | | this.$message.success("已保存"); |
| | | }); |
| | | }, |
| | |
| | | price: value, |
| | | }), |
| | | }).then((res) => { |
| | | if (res.code == 201) { |
| | | this.$message.error("未保存"); |
| | | return; |
| | | } |
| | | this.$message.success("已保存"); |
| | | }); |
| | | }, |
| | |
| | | manHour: value, |
| | | }), |
| | | }).then((res) => { |
| | | if (res.code == 201) { |
| | | this.$message.error("未保存"); |
| | | return; |
| | | } |
| | | this.$message.success("已保存"); |
| | | }); |
| | | }, |
| | |
| | | templateId: value, |
| | | }), |
| | | }).then((res) => { |
| | | if (res.code == 201) { |
| | | this.$message.error("未保存"); |
| | | return; |
| | | } |
| | | this.$message.success("已保存"); |
| | | }); |
| | | }, |
| | |
| | | state: row.state, |
| | | }), |
| | | }).then((res) => { |
| | | if (res.code == 201) { |
| | | this.$message.error("未保存"); |
| | | return; |
| | | } |
| | | // this.$message.success('已保存') |
| | | this.$message.success('已保存') |
| | | }); |
| | | }, |
| | | filterHandler(value) { |
| | |
| | | }), |
| | | }).then((res) => { |
| | | this.sectionLoad = false; |
| | | if (res.code == 201) { |
| | | this.$message.error("未保存"); |
| | | return; |
| | | } |
| | | this.$message.success("已保存"); |
| | | this.sectionUpDia = false; |
| | | }); |
| | |
| | | }, |
| | | }).then((res) => { |
| | | this.sectionLoad = false; |
| | | if (res.code == 201) { |
| | | this.$message.error("未保存"); |
| | | return; |
| | | } |
| | | this.$message.success("已保存"); |
| | | this.sectionUpDia = false; |
| | | this.currentPage0 = 1; |
| | |
| | | addCertificationDetail({ ...this.formData }) |
| | | .then((res) => { |
| | | this.loading = false; |
| | | if (res.code === 201) return; |
| | | this.$message.success("已提交"); |
| | | this.refreshTable(); |
| | | this.resetForm("formDataRef"); |