|
|
@@ -199,7 +199,10 @@
|
|
|
:query-params="queryContact"
|
|
|
@save="selectContact" />
|
|
|
<!-- 选择销售工程师弹窗 -->
|
|
|
- <select-user ref="selectSales" :query-params="{ roles: ['SalesEngineer'] }" @save="selectSales" />
|
|
|
+ <select-user
|
|
|
+ ref="selectSales"
|
|
|
+ :query-params="{ roles: ['SalesEngineer', 'ProductLineManager'] }"
|
|
|
+ @save="selectSales" />
|
|
|
<!-- 选择经销商弹窗 -->
|
|
|
<select-distributor ref="selectDistributor" @save="selectDistributor" />
|
|
|
<!-- 选择产品弹窗 -->
|
|
|
@@ -467,6 +470,10 @@
|
|
|
this.productData = []
|
|
|
if (!row) {
|
|
|
this.title = '添加'
|
|
|
+ if (this.roleKeys.includes('SalesEngineer') || this.roleKeys.includes('ProductLineManager')) {
|
|
|
+ this.form.saleId = this.userId
|
|
|
+ this.form.saleName = this.nickName
|
|
|
+ }
|
|
|
} else {
|
|
|
this.title = '编辑'
|
|
|
this.form = Object.assign({}, row)
|
|
|
@@ -478,10 +485,6 @@
|
|
|
this.getProductData(row.id)
|
|
|
}
|
|
|
this.dialogFormVisible = true
|
|
|
- if (this.roleKeys.includes('SalesEngineer') && !this.form.saleId) {
|
|
|
- this.form.saleId = this.userId
|
|
|
- this.form.saleName = this.nickName
|
|
|
- }
|
|
|
},
|
|
|
close() {
|
|
|
this.$refs['form'].resetFields()
|