|
|
|
@ -34,6 +34,7 @@ import {queryQuoteDetail} from "../../../api/quote/quoteDetail"; |
|
|
|
import FilterSearch from "../../common/filterSearch.vue"; |
|
|
|
import {queryQuoteGroupDetail} from "../../../api/quote/quoteGroupDetail"; |
|
|
|
import {checkZeroUnitPrice} from "../../../api/quote/quoteDetailBom"; |
|
|
|
import {getNodeList} from "@/api/sampleManagement/technicalSpecificationList.js"; |
|
|
|
|
|
|
|
export default { |
|
|
|
name: "quote", |
|
|
|
@ -100,9 +101,12 @@ export default { |
|
|
|
costModel: "UFIDA", |
|
|
|
markup:0, |
|
|
|
chipPrice:'', |
|
|
|
approvalUsername: '', |
|
|
|
nodeId: '', |
|
|
|
}, |
|
|
|
quoteForm:{ |
|
|
|
}, |
|
|
|
nodeOptions: [], |
|
|
|
saveQuote:{ |
|
|
|
}, |
|
|
|
dataList:[], |
|
|
|
@ -645,6 +649,20 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
fetchNodeOptions() { |
|
|
|
getNodeList({ |
|
|
|
site: this.$store.state.user.site, |
|
|
|
menuId: this.$route.meta.menuId |
|
|
|
}).then(({ data }) => { |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.nodeOptions = data.rows.map(item => ({ |
|
|
|
id: item.nodeId, |
|
|
|
name: item.nodeName |
|
|
|
})) |
|
|
|
} |
|
|
|
}).catch(() => {}) |
|
|
|
}, |
|
|
|
|
|
|
|
handleSearch(index){ |
|
|
|
let params = { |
|
|
|
...this.quoteForm, |
|
|
|
@ -1453,6 +1471,7 @@ export default { |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.checkSuperAdmin() // 校验超级管理员 |
|
|
|
this.fetchNodeOptions() |
|
|
|
// 如果是从OA系统跳转来的(tokenLogin),不在created中查询,由activated处理 |
|
|
|
if (this.isMenu && this.searchIndex === 0 && this.$route.params.type !== 'tokenLogin'){ |
|
|
|
this.quoteForm = { |
|
|
|
@ -1584,7 +1603,7 @@ export default { |
|
|
|
<i v-if="exportLoading" class="el-icon-loading"></i> |
|
|
|
<span>{{ '导出' }}</span> |
|
|
|
</download-excel> |
|
|
|
<quote-search v-if="isMenu" v-model:quote="quoteForm" @filterSearch="filterVisible = true" @search="handleSearch" @save="handleSave"></quote-search> |
|
|
|
<quote-search v-if="isMenu" v-model:quote="quoteForm" :node-options="nodeOptions" @filterSearch="filterVisible = true" @search="handleSearch" @save="handleSave"></quote-search> |
|
|
|
<quote-table v-loading="searchLoading" |
|
|
|
:current-row="currentQuote" |
|
|
|
:columns="columns" |
|
|
|
|