|
@@ -149,7 +149,7 @@
|
|
|
<a-col :span="8">
|
|
|
<a-form-model-item label="业务员" prop="salesManSn">
|
|
|
<a-select id="chooseCustom-salesManSn" allowClear @change="salesManChange" v-model="form.salesManSn" placeholder="请选择业务员">
|
|
|
- <a-select-option v-for="item in userList" :value="item.id" :key="item.id + 'c'">{{ item.name }}</a-select-option>
|
|
|
+ <a-select-option v-for="item in userList" :value="item.employeeSn" :key="item.id + 'c'">{{ item.name }}</a-select-option>
|
|
|
</a-select>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
@@ -200,7 +200,7 @@
|
|
|
import { getArea } from '@/api/data'
|
|
|
import { custFindById, updateByCustomerSn } from '@/api/customer'
|
|
|
import { salesSave } from '@/api/sales'
|
|
|
-import { getUserAllList } from '@/api/power-user'
|
|
|
+import { employeeAllList } from '@/api/salesman'
|
|
|
import { settleStyleQueryAll } from '@/api/settleStyle'
|
|
|
import { VSelect } from '@/components'
|
|
|
import custList from '@/views/common/custList.vue'
|
|
@@ -303,9 +303,9 @@ export default {
|
|
|
this.custChange({ key: data.customerSn, label: data.customerName, row: data })
|
|
|
},
|
|
|
// 业务员
|
|
|
- salesManChange (id) {
|
|
|
- if (id) {
|
|
|
- this.form.salesManName = this.userList.find(item => item.id == id).name
|
|
|
+ salesManChange (employeeSn) {
|
|
|
+ if (employeeSn) {
|
|
|
+ this.form.salesManName = this.userList.find(item => item.employeeSn == employeeSn).name
|
|
|
} else {
|
|
|
this.form.salesManName = ''
|
|
|
}
|
|
@@ -479,7 +479,7 @@ export default {
|
|
|
},
|
|
|
// 获取业务员列表数据
|
|
|
getUserAllList () {
|
|
|
- getUserAllList({ loginFlag: 1 }).then(res => {
|
|
|
+ employeeAllList({}).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
this.userList = res.data || []
|
|
|
} else {
|