|
|
|
@ -601,6 +601,11 @@ export default { |
|
|
|
this.$set(quote, 'plmPartNo', firstDetail.plmPartNo) |
|
|
|
this.$set(quote, 'ifsPartNo', firstDetail.ifsPartNo) |
|
|
|
this.$set(quote, 'partDesc', firstDetail.partDesc) |
|
|
|
} else { |
|
|
|
// 如果没有明细数据,清空这三个字段 |
|
|
|
this.$set(quote, 'plmPartNo', '') |
|
|
|
this.$set(quote, 'ifsPartNo', '') |
|
|
|
this.$set(quote, 'partDesc', '') |
|
|
|
} |
|
|
|
}).catch(() => { |
|
|
|
// 忽略错误,只是显示为空 |
|
|
|
@ -608,6 +613,13 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 刷新指定报价的首条明细信息 |
|
|
|
handleRefreshQuoteInfo(quoteId){ |
|
|
|
console.log('刷新报价明细信息, quoteId:', quoteId) |
|
|
|
// 直接重新查询当前页数据,这样可以确保数据同步 |
|
|
|
this.handleSearch() |
|
|
|
}, |
|
|
|
|
|
|
|
handleSelect(row){ |
|
|
|
if (row){ |
|
|
|
this.currentQuote = {...row} |
|
|
|
@ -1234,10 +1246,10 @@ export default { |
|
|
|
</el-pagination> |
|
|
|
<el-tabs v-if="isMenu" v-model="activeName" type="border-card" style="margin-top: 0;" class="customer-tab"> |
|
|
|
<el-tab-pane v-if="isAuth('5011:pane:quoteGroupDetail')" label="报价明细" name="detail"> |
|
|
|
<quote-group-detail :quote="currentQuote" :auth-flag="false" :height="'28vh'"></quote-group-detail> |
|
|
|
<quote-group-detail :quote="currentQuote" :auth-flag="false" :height="'28vh'" @refresh-quote-info="handleRefreshQuoteInfo"></quote-group-detail> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane v-if="isAuth('5011:pane:quoteDetail')" label="条目明细" name="detail2"> |
|
|
|
<quote-detail v-if="activeName === 'detail2'" :save-auth="false" :is-export="true" :quote="currentQuote" :auth-flag="false" :height="'30vh'"></quote-detail> |
|
|
|
<quote-detail v-if="activeName === 'detail2'" :save-auth="false" :is-export="true" :quote="currentQuote" :auth-flag="false" :height="'30vh'" @refresh-quote-info="handleRefreshQuoteInfo"></quote-detail> |
|
|
|
</el-tab-pane> |
|
|
|
<el-tab-pane v-if="isAuth('5011:pane:quotationProjectInformation')" label="项目信息" name="quotation_project_information"> |
|
|
|
<quotation-project-information height="31vh" :quotation-header="currentQuote"></quotation-project-information> |
|
|
|
|