提交
This commit is contained in:
@@ -30,6 +30,12 @@
|
||||
<el-option v-for="dict in options.userOptions" :key="dict.id" :label="dict.name" :value="dict.id" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item label="线索来源">
|
||||
<el-select v-model="searchForm.source" placeholder="请选择" clearable>
|
||||
<el-option v-for="dict in options.sourceOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="所属区域">
|
||||
<el-select v-model="searchForm.area" placeholder="请选择" clearable size="small">
|
||||
<el-option v-for="dict in options.areaOptions" :key="dict.dictValue" :label="dict.dictLabel" :value="dict.dictValue" />
|
||||
@@ -108,7 +114,8 @@ export default {
|
||||
followUser2: undefined,
|
||||
dealState: undefined,
|
||||
dealDate: undefined,
|
||||
name: undefined
|
||||
name: undefined,
|
||||
source: undefined
|
||||
};
|
||||
this.dateRange = []
|
||||
this.$emit('search')
|
||||
|
||||
@@ -50,7 +50,7 @@
|
||||
<el-col :span="12">
|
||||
<el-form-item label="报名驾校" prop="signSchool">
|
||||
<el-select v-model="modalForm.signSchool" filterable placeholder="请选择" value-key="schoolId" clearable size="small" @change="schoolChange">
|
||||
<el-option v-for="(dict, index) in schoolOptions.filter(item => item.schoolId === modalForm.signSchool)" :key="index" :label="dict.schoolName" :value="dict.schoolId" />
|
||||
<el-option v-for="(dict, index) in schoolOptions" :key="index" :label="dict.schoolName" :value="dict.schoolId" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -133,8 +133,15 @@
|
||||
</el-col>-->
|
||||
</el-row>
|
||||
|
||||
<el-row v-if="admin == 'true'">
|
||||
<el-row>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="撞单人员" prop="zhuangDanList">
|
||||
<el-select v-model="modalForm.zhuangDanList" placeholder="请选择" clearable size="small">
|
||||
<el-option v-for="(dict, index) in zhuangDanOptions" :key="index" :label="dict.consultUserName" :value="dict.consultUser" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col v-if="admin == 'true'" :span="12">
|
||||
<el-form-item label="佣金明细" prop="commission">
|
||||
<el-select v-model="modalForm.commission" placeholder="请选择" clearable size="small">
|
||||
<el-option v-for="(dict, index) in commissionOptions" :key="index" :label="dict.dictLabel" :value="dict.dictValue" />
|
||||
@@ -197,7 +204,7 @@ import schoolAPi from '@/api/sch/school';
|
||||
import { getAllPlaces } from '@/api/sch/place';
|
||||
import { getClassTypeTableList } from '@/api/sch/classType';
|
||||
import { uploadEvidence, deleteFile } from '@/api/tool/common';
|
||||
import { getClueList } from '@/api/zs/clue';
|
||||
import { getClueList, getConsultRecord } from '@/api/zs/clue';
|
||||
|
||||
import CheckRecord from './CheckRecord.vue';
|
||||
|
||||
@@ -271,7 +278,8 @@ export default {
|
||||
headers: { Authorization: 'Bearer ' + getToken() },
|
||||
// 上传的地址
|
||||
url: process.env.VUE_APP_BASE_API + '/common/upload'
|
||||
}
|
||||
},
|
||||
zhuangDanOptions: []
|
||||
};
|
||||
},
|
||||
created() {
|
||||
@@ -319,8 +327,8 @@ export default {
|
||||
});
|
||||
},
|
||||
getSchools() {
|
||||
schoolAPi.pageList().then((resp) => {
|
||||
this.schoolOptions = resp.rows;
|
||||
schoolAPi.allList().then((resp) => {
|
||||
this.schoolOptions = resp.data;
|
||||
});
|
||||
},
|
||||
getPlaces(schoolId) {
|
||||
@@ -387,6 +395,9 @@ export default {
|
||||
this.modalForm = Object.assign({}, item);
|
||||
this.getPlaces(this.modalForm.signSchool);
|
||||
this.getClassTypes(this.modalForm.signSchool, this.modalForm.signPlace);
|
||||
if (item.clueId) {
|
||||
this.getZhuangDanPeople(item.clueId);
|
||||
}
|
||||
this.modalForm.phoneEdit = false;
|
||||
if (this.modalForm.fileList) {
|
||||
this.fileList = this.modalForm.fileList;
|
||||
@@ -518,6 +529,10 @@ export default {
|
||||
this.modalForm.source = clueInfo.source;
|
||||
this.modalForm.followUser = clueInfo.followUser;
|
||||
this.modalForm.offlineReceiver = clueInfo.offlineReceiver;
|
||||
//加载撞单人员
|
||||
if (clueInfo.clueId) {
|
||||
this.getZhuangDanPeople(clueInfo.clueId);
|
||||
}
|
||||
} else {
|
||||
this.modalForm.clueId = undefined;
|
||||
this.modalForm.name = undefined;
|
||||
@@ -615,6 +630,13 @@ export default {
|
||||
} else {
|
||||
this.$set(this.modalForm, 'schoolPay', undefined);
|
||||
}
|
||||
},
|
||||
getZhuangDanPeople(clueId) {
|
||||
getConsultRecord({ clueId: clueId }).then(resp => {
|
||||
if (resp.code == 200) {
|
||||
this.zhuangDanOptions = resp.data;
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user