diff --git a/src/api/quote/quoteDetailRouting.js b/src/api/quote/quoteDetailRouting.js new file mode 100644 index 0000000..aebb5cd --- /dev/null +++ b/src/api/quote/quoteDetailRouting.js @@ -0,0 +1,10 @@ +import {createAPI} from "../../utils/httpRequest"; + + +export const queryQuoteDetailRouting = (data) => createAPI(`/quote/detail/routing`,'post',data) + +export const queryQuoteDetailRoutingVersion = (data) => createAPI(`/quote/detail/routing/version`,'post',data) + +export const queryQuoteDetailRoutingAlternative = (data) => createAPI(`/quote/detail/routing/alternative`,'post',data) + +export const changeQuoteDetailRoutingChange = (data) => createAPI(`/quote/detail/routing/change`,'post',data) diff --git a/src/views/modules/quote/detail/primary/quoteDetailRouting.vue b/src/views/modules/quote/detail/primary/quoteDetailRouting.vue index e1238e9..6f05d70 100644 --- a/src/views/modules/quote/detail/primary/quoteDetailRouting.vue +++ b/src/views/modules/quote/detail/primary/quoteDetailRouting.vue @@ -1,5 +1,10 @@ @@ -516,8 +634,8 @@ export default { - 切换版本 - 全级Routing结构 + 切换版本 + 全级Routing结构 @@ -533,7 +651,7 @@ export default { - + + + + + + + + + + + + + + + + + + + 选择 + + + + diff --git a/src/views/modules/quote/index.vue b/src/views/modules/quote/index.vue index e36b66c..cf121d7 100644 --- a/src/views/modules/quote/index.vue +++ b/src/views/modules/quote/index.vue @@ -10,10 +10,11 @@ import {queryCustomerList} from "../../../api/customer/customer"; import {queryProjectList} from "../../../api/project/project"; import QuoteDetail from "./detail/quoteDetail.vue"; import ChooseListEam from "../common/Chooselist_eam.vue"; +import Quotes from "./quotes.vue"; export default { name: "quote", - components: {ChooseListEam,QuoteDetail, ProjectTable, BuSelect, CustomerTable, QuoteTable, QuoteSearch}, + components: {Quotes, ChooseListEam,QuoteDetail, ProjectTable, BuSelect, CustomerTable, QuoteTable, QuoteSearch}, menuId:5011, data(){ return{ @@ -409,6 +410,7 @@ export default { }, userDataList:[], tagNo:undefined, + insideInquiryVisible:false, } }, methods:{ @@ -552,7 +554,6 @@ export default { this.projectVisible = false }, handleRemove(row){ - console.log(row) this.$alert('确认删除该报价信息吗?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -684,6 +685,43 @@ export default { if (this.tagNo === 512){ this.saveQuote.currency = val.Currency } + }, + handleQueryByIds(){ + let params = { + ids:this.$route.params.ids, + no:this.no, + size:this.size, + createBy:this.$store.state.user.name, + } + queryQuotePage(params).then(({data})=>{ + if (data && data.code === 0){ + this.dataList = data.rows + this.total = data.total + if (this.total > 0){ + this.currentQuote = {...this.dataList[0]} + }else { + this.currentQuote = {} + } + }else { + this.$message.error(data.msg) + } + this.searchLoading = false + }).catch(error=>{ + this.$message.error(error) + this.searchLoading = false + }) + }, + handleInquiryDblClick(row){ + this.saveQuote.insideInquiryNo = row.quotationNo + + this.saveQuote.customerNo = row.customerNo + this.saveQuote.customerDesc = row.customerDesc + this.saveQuote.projectNo = row.projectNo + this.saveQuote.projectDesc = row.projectDesc + this.saveQuote.quoter = row.quoter + this.saveQuote.customerInquiryNo = row.customerQuoteNo + + this.insideInquiryVisible = false } }, created() { @@ -710,6 +748,11 @@ export default { 'saveQuote.projectNo'(newVal, oldVal){ // this.saveQuote.projectNo = newVal.toUpperCase() }, + }, + activated() { + if (this.$route.params.ids){ + this.handleQueryByIds(); + } } } @@ -753,6 +796,9 @@ export default { + + 内部询价单号 + @@ -887,6 +933,10 @@ export default { + + + + diff --git a/src/views/modules/quote/quotes.vue b/src/views/modules/quote/quotes.vue index 9be9a52..6875d2d 100644 --- a/src/views/modules/quote/quotes.vue +++ b/src/views/modules/quote/quotes.vue @@ -1,11 +1,25 @@ - + @@ -443,26 +471,26 @@ export default { - + - + - + - + - + @@ -471,8 +499,11 @@ export default { - - + + + + + @@ -489,12 +520,12 @@ export default { - + - + @@ -510,13 +541,13 @@ export default { 查询 - 报价 + 报价 - - + +