From 93f4f58f27c8b620a87afe397e2daf8ebeb61d32 Mon Sep 17 00:00:00 2001 From: qiezi <15576055375@163.com> Date: Fri, 15 Nov 2024 14:51:37 +0800 Subject: [PATCH] 20241115 --- .../quote/detail/primary/quoteDetailBom.vue | 17 --- src/views/modules/quote/index.vue | 21 +++ .../modules/quote/primary/quoteTable.vue | 10 ++ src/views/modules/quote/quoteDetailReport.vue | 143 ------------------ 4 files changed, 31 insertions(+), 160 deletions(-) diff --git a/src/views/modules/quote/detail/primary/quoteDetailBom.vue b/src/views/modules/quote/detail/primary/quoteDetailBom.vue index 0351ce4..aebdf63 100644 --- a/src/views/modules/quote/detail/primary/quoteDetailBom.vue +++ b/src/views/modules/quote/detail/primary/quoteDetailBom.vue @@ -161,23 +161,6 @@ export default { status: true, fixed: '', columnWidth: 90, - }, { - userId: this.$store.state.user.name, - functionId: 5011, - serialNumber: '5011Table4NoteText', - tableId: "5011Table4", - tableName: "报价材料信息", - columnProp: 'noteText', - headerAlign: "center", - align: "left", - columnLabel: '备注', - columnHidden: false, - columnImage: false, - columnSortable: false, - sortLv: 0, - status: true, - fixed: '', - columnWidth: 90, }, { userId: this.$store.state.user.name, diff --git a/src/views/modules/quote/index.vue b/src/views/modules/quote/index.vue index 3390ce2..19d217d 100644 --- a/src/views/modules/quote/index.vue +++ b/src/views/modules/quote/index.vue @@ -2,6 +2,7 @@ import QuoteSearch from "./primary/quoteSearch.vue"; import QuoteTable from "./primary/quoteTable.vue"; import { + againQuote, queryQuotePage, queryQuoteRoleUser, removeQuote, @@ -722,6 +723,25 @@ export default { }, handleInquiryBlur(){ + }, + handleAgainQuote(row){ + let params = { + id: row.id, + createBy: this.$store.state.user.name, + } + this.queryLoading = true + againQuote(params).then(({data}) => { + if (data && data.code === 0) { + this.$message.success(data.msg) + this.handleSearch(); + } else { + this.$message.warning(data.msg) + this.queryLoading = false + } + }).catch((error) => { + this.$message.error(error) + this.queryLoading = false + }) } }, created() { @@ -777,6 +797,7 @@ export default { @rowClick="handleRowClick" @updateStatus="handleUpdateStatus" @queryById="handleQueryById" + @againQuote="handleAgainQuote" :data-list="dataList" :height="'35vh'"> diff --git a/src/views/modules/quote/primary/quoteTable.vue b/src/views/modules/quote/primary/quoteTable.vue index 3b3d289..4cad8af 100644 --- a/src/views/modules/quote/primary/quoteTable.vue +++ b/src/views/modules/quote/primary/quoteTable.vue @@ -45,6 +45,15 @@ export default { return {} } }, + againQuote(row){ + this.$confirm('确定重新报价吗?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + this.$emit('againQuote',row) + }) + } } } @@ -77,6 +86,7 @@ export default { 删除 下达 详情 + 重新报价 diff --git a/src/views/modules/quote/quoteDetailReport.vue b/src/views/modules/quote/quoteDetailReport.vue index 0fb31cf..08d2384 100644 --- a/src/views/modules/quote/quoteDetailReport.vue +++ b/src/views/modules/quote/quoteDetailReport.vue @@ -278,15 +278,6 @@ export default { codeDesc: '', }, propertyItemList: [], - saveQuoteDetailRules: { - partNo: [{required: true, message: '请输入物料编码', trigger: ['blur', 'change']}], - partDesc: [{required: true, message: '请输入物料名称', trigger: ['blur', 'change']}], - qty: [{required: true, message: '请输入数量', trigger: ['blur', 'change']}], - }, - quoteDetail: {}, - quoteDetailVisible: false, - quoteDetailActiveName: 'bom', - saveLoading: false, } }, methods: { @@ -418,79 +409,6 @@ export default { this.$message.error(error) }) }, - handleAgainQuote(row) { - this.quoteDetail = {}; - this.$confirm('确定重新报价该报价单吗?').then(() => { - this.handleAgainQuoteOption(row); - }) - }, - handleAgainQuoteOption(row) { - let params = { - id: row.quoteId, - createBy: this.$store.state.user.name, - } - this.queryLoading = true - againQuote(params).then(({data}) => { - if (data && data.code === 0) { - this.$message.success(data.msg) - this.handleQuery(); - let params = { - id: data.id, - } - this.handleQueryQuoteDetailById(params); - } else { - this.$message.warning(data.msg) - this.queryLoading = false - } - }).catch((error) => { - this.$message.error(error) - this.queryLoading = false - }) - }, - handleQueryQuoteDetailById(row) { - let params = { - id: row.id, - } - queryQuoteDetailById(params).then(({data}) => { - if (data && data.code === 0) { - this.quoteDetail = data.row; - this.quoteDetailVisible = true; - this.quoteDetailActiveName = 'bom'; - } else { - this.$message.warning(data.msg) - } - }).catch((error) => { - this.$message.error(error) - }) - }, - handleClickTab(tab) { - if (this.activeName === 'routing') { - this.$refs.routing.handleQueryQuoteDetailBomTree() - } - }, - handleSaveQuoteDetailClick() { - this.$refs.saveQuoteDetailForm.validate((valid, obj) => { - if (valid) { - this.handleUpdate(); - } - }) - }, - handleUpdate() { - let params = { - ...this.quoteDetail, - updateBy: this.$store.state.user.name, - } - updateQuoteDetail(params).then(({data}) => { - if (data && data.code === 0) { - this.$message.success(data.msg); - this.quoteDetailVisible = false; - } else { - this.$message.warning(data.msg); - } - }).catch((error) => { - this.$message.error(error); - }) - }, }, created() { this.getSiteAndBuByUserName(); @@ -583,15 +501,6 @@ export default { style="width: 100px; height: 80px"/> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -