|
@@ -132,18 +132,13 @@
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="客户来源" prop="sourceType">
|
|
|
+ <el-form-item label="业务来源" prop="sourceType">
|
|
|
<el-row :gutter="10">
|
|
|
<el-col :span="10">
|
|
|
- <!-- <search-query :datalist="sourceTypeData" :selectValue="formData.sourceType" :filterable="true"
|
|
|
- :clearable="true" :remote="true" :buttonIf="false" placeholder="请选择客户来源"
|
|
|
+ <search-query :datalist="sourceTypeData" :selectValue="formData.sourceType" :filterable="true"
|
|
|
+ :clearable="true" :remote="true" :buttonIf="false" placeholder="请选择业务来源"
|
|
|
@corpChange="sourceCorp($event, 'sourceType')">
|
|
|
- </search-query> -->
|
|
|
- <el-select v-model="formData.sourceType" size="small" placeholder="请选择客户来源" clearable
|
|
|
- :style="{ width: '100%' }" @change="sourceCorp($event, 'sourceType')">
|
|
|
- <el-option v-for="(item, index) in sourceTypeData" :key="index" :label="item.dictValue"
|
|
|
- :value="item.dictKey"></el-option>
|
|
|
- </el-select>
|
|
|
+ </search-query>
|
|
|
</el-col>
|
|
|
<el-col :span="13">
|
|
|
<search-query :datalist="srcData" :selectValue="formData.srcCnName" :filterable="true"
|
|
@@ -154,7 +149,7 @@
|
|
|
</search-query>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
- <!--<el-input v-model="formData.sourceType" placeholder="请输入客户来源" clearable :style="{ width: '100%' }">-->
|
|
|
+ <!--<el-input v-model="formData.sourceType" placeholder="请输入业务来源" clearable :style="{ width: '100%' }">-->
|
|
|
<!--</el-input>-->
|
|
|
|
|
|
</el-form-item>
|
|
@@ -1110,11 +1105,24 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
psRateData: [], // ps 规则数据
|
|
|
- // 客户来源
|
|
|
- sourceTypeData: [],
|
|
|
- // 客户来源下级配置
|
|
|
+ // 业务来源
|
|
|
+ sourceTypeData: [
|
|
|
+ {
|
|
|
+ label: '公司',
|
|
|
+ value: 'OWN'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '代理',
|
|
|
+ value: 'AGENT'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '业务员',
|
|
|
+ value: 'SALES'
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ // 业务来源下级配置
|
|
|
sourceforParameter: {},
|
|
|
- // 客户来源下级
|
|
|
+ // 业务来源下级
|
|
|
srcData: [],
|
|
|
maintenanceStaffData: [], // 维护人员
|
|
|
// tab标签
|
|
@@ -1348,9 +1356,6 @@ export default {
|
|
|
getWorkDicts('bcorps-credit-level').then((res) => {
|
|
|
this.creditLevelDict = res.data.data
|
|
|
});
|
|
|
- getWorkDicts('source_type').then((res) => {
|
|
|
- this.sourceTypeData = res.data.data
|
|
|
- });
|
|
|
getWorkDicts('bcorps-enterprise-type').then((res) => {
|
|
|
this.enterpriseTypeDict = res.data.data
|
|
|
// 没有id 取第一个
|
|
@@ -1403,7 +1408,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- // 客户来源下拉
|
|
|
+ // 业务来源下拉
|
|
|
sourceCorp(value, name) {
|
|
|
if (name == 'srcCnName') {
|
|
|
if (!value) {
|
|
@@ -1448,7 +1453,7 @@ export default {
|
|
|
} else { }
|
|
|
} else { }
|
|
|
},
|
|
|
- // 客户来源接口
|
|
|
+ // 业务来源接口
|
|
|
sourceRemote(value, name) {
|
|
|
if (name == 'srcCnName') {
|
|
|
if (this.formData.sourceType == 'OWN') {
|
|
@@ -1591,9 +1596,9 @@ export default {
|
|
|
submitForm() {
|
|
|
this.$refs['userDataForm'].validate(valid => {
|
|
|
if (!valid) return
|
|
|
- // 判断客户来源是否填写
|
|
|
+ // 判断业务来源是否填写
|
|
|
if (!this.formData.sourceType) {
|
|
|
- this.$message.warning('请填写客户来源')
|
|
|
+ this.$message.warning('请填写业务来源')
|
|
|
return;
|
|
|
}
|
|
|
// 判断来源明细是否填写
|