|
@@ -174,6 +174,9 @@
|
|
|
:primacy-contact-id="details.contactId"
|
|
:primacy-contact-id="details.contactId"
|
|
|
@fetch-data="getRecord" />
|
|
@fetch-data="getRecord" />
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
|
|
|
+ <el-tab-pane label="产品信息" name="product">
|
|
|
|
|
+ <product-table ref="productTable" is-look :product-data="productData" />
|
|
|
|
|
+ </el-tab-pane>
|
|
|
<el-tab-pane label="合同记录" name="contract">
|
|
<el-tab-pane label="合同记录" name="contract">
|
|
|
<details-contract ref="detailsContract" :bus-id="id" />
|
|
<details-contract ref="detailsContract" :bus-id="id" />
|
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
@@ -224,6 +227,7 @@
|
|
|
import Edit from './components/BusinessEdit'
|
|
import Edit from './components/BusinessEdit'
|
|
|
import FollowAdd from './components/FollowAdd'
|
|
import FollowAdd from './components/FollowAdd'
|
|
|
import Transfer from './components/Transfer'
|
|
import Transfer from './components/Transfer'
|
|
|
|
|
+ import ProductTable from './components/ProductTable'
|
|
|
import DetailsContact from './components/DetailsContact'
|
|
import DetailsContact from './components/DetailsContact'
|
|
|
import DetailsContract from './components/DetailsContract'
|
|
import DetailsContract from './components/DetailsContract'
|
|
|
import DetailsRecords from './components/DetailsRecords'
|
|
import DetailsRecords from './components/DetailsRecords'
|
|
@@ -239,6 +243,7 @@
|
|
|
FollowAdd,
|
|
FollowAdd,
|
|
|
Transfer,
|
|
Transfer,
|
|
|
ToReserve,
|
|
ToReserve,
|
|
|
|
|
+ ProductTable,
|
|
|
DetailsContact,
|
|
DetailsContact,
|
|
|
DetailsContract,
|
|
DetailsContract,
|
|
|
DetailsRecords,
|
|
DetailsRecords,
|
|
@@ -249,7 +254,7 @@
|
|
|
return {
|
|
return {
|
|
|
id: undefined,
|
|
id: undefined,
|
|
|
details: { nboType: '' },
|
|
details: { nboType: '' },
|
|
|
- product: [],
|
|
|
|
|
|
|
+ productData: [],
|
|
|
abstract: {},
|
|
abstract: {},
|
|
|
activeName: 'details',
|
|
activeName: 'details',
|
|
|
selectRows: [],
|
|
selectRows: [],
|
|
@@ -291,7 +296,6 @@
|
|
|
this.getDicts('sys_product_line'),
|
|
this.getDicts('sys_product_line'),
|
|
|
this.getDicts('sys_yes_no'),
|
|
this.getDicts('sys_yes_no'),
|
|
|
this.getRecord(),
|
|
this.getRecord(),
|
|
|
- this.handleClick({ name: this.activeName }),
|
|
|
|
|
]).then(([details, nboType, nboSource, salesModel, productLine, yesOrNo]) => {
|
|
]).then(([details, nboType, nboSource, salesModel, productLine, yesOrNo]) => {
|
|
|
if (details.data) this.details = details.data
|
|
if (details.data) this.details = details.data
|
|
|
this.nboTypeOptions = nboType.data.values || []
|
|
this.nboTypeOptions = nboType.data.values || []
|
|
@@ -314,6 +318,7 @@
|
|
|
|
|
|
|
|
this.dynamicsList = records
|
|
this.dynamicsList = records
|
|
|
// console.log(this.dynamicsList)
|
|
// console.log(this.dynamicsList)
|
|
|
|
|
+ await this.handleClick({ name: this.activeName })
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
async handleClick(tab) {
|
|
async handleClick(tab) {
|
|
@@ -321,6 +326,8 @@
|
|
|
await this.$refs.follow.fetchData()
|
|
await this.$refs.follow.fetchData()
|
|
|
} else if (tab.name == 'contact') {
|
|
} else if (tab.name == 'contact') {
|
|
|
await this.$refs.contact.fetchData()
|
|
await this.$refs.contact.fetchData()
|
|
|
|
|
+ } else if (tab.name == 'product') {
|
|
|
|
|
+ await this.getProductData(this.id)
|
|
|
} else if (tab.name == 'contract') {
|
|
} else if (tab.name == 'contract') {
|
|
|
this.$refs.detailsContract.open(this.id)
|
|
this.$refs.detailsContract.open(this.id)
|
|
|
} else if (tab.name == 'worksheet') {
|
|
} else if (tab.name == 'worksheet') {
|
|
@@ -338,6 +345,12 @@
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ async getProductData(busId) {
|
|
|
|
|
+ const { data } = await businessApi.getProductByBusinessId({ id: busId })
|
|
|
|
|
+ if (data) {
|
|
|
|
|
+ this.productData = data
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
// 添加跟进记录
|
|
// 添加跟进记录
|
|
|
handleFollow() {
|
|
handleFollow() {
|
|
|
this.followup = {
|
|
this.followup = {
|