|
@@ -128,7 +128,7 @@
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :span="12">
|
|
<el-col :span="12">
|
|
<el-form-item label="企业" prop="enterpriseId">
|
|
<el-form-item label="企业" prop="enterpriseId">
|
|
- <el-select v-model="form.enterpriseId" filterable placeholder="请选择企业名称">
|
|
|
|
|
|
+ <el-select v-model="form.enterpriseId" @change="onSelectChange(form.enterpriseId)" filterable placeholder="请选择企业名称">
|
|
<el-option
|
|
<el-option
|
|
v-for="dict in enterprise"
|
|
v-for="dict in enterprise"
|
|
:key="dict.id"
|
|
:key="dict.id"
|
|
@@ -317,9 +317,9 @@ export default {
|
|
this.getList();
|
|
this.getList();
|
|
this.getTreeselect();
|
|
this.getTreeselect();
|
|
this.getEnterpriseList();
|
|
this.getEnterpriseList();
|
|
- this.getPractitioner();
|
|
|
|
- this.getSjList();
|
|
|
|
- this.getPsyList();
|
|
|
|
|
|
+ // this.getPractitioner();
|
|
|
|
+ // this.getSjList();
|
|
|
|
+ // this.getPsyList();
|
|
this.getEquipmentList();
|
|
this.getEquipmentList();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
@@ -329,21 +329,18 @@ export default {
|
|
this.enterprise = response.data;
|
|
this.enterprise = response.data;
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- //获取管理人员列表
|
|
|
|
- getPractitioner() {
|
|
|
|
- listPractitioner({"post":"practitioner_gly"}).then(response => {
|
|
|
|
|
|
+ //
|
|
|
|
+ onSelectChange(id){
|
|
|
|
+ //获取管理人员列表
|
|
|
|
+ listPractitioner({"enterpriseId":id}).then(response => {
|
|
this.practitioner = response.data;
|
|
this.practitioner = response.data;
|
|
});
|
|
});
|
|
- },
|
|
|
|
- //获取司机列表
|
|
|
|
- getSjList() {
|
|
|
|
- listPersonnel({"post":"personnel_sj"}).then(response => {
|
|
|
|
|
|
+ //获取司机列表
|
|
|
|
+ listPersonnel({"post":"personnel_sj","enterpriseId":id}).then(response => {
|
|
this.sjList = response.data;
|
|
this.sjList = response.data;
|
|
});
|
|
});
|
|
- },
|
|
|
|
- //获取配送员列表
|
|
|
|
- getPsyList() {
|
|
|
|
- listPersonnel({"post":"personnel_psy"}).then(response => {
|
|
|
|
|
|
+ //获取配送员列表
|
|
|
|
+ listPersonnel({"post":"personnel_psy","enterpriseId":id}).then(response => {
|
|
this.psyList = response.data;
|
|
this.psyList = response.data;
|
|
});
|
|
});
|
|
},
|
|
},
|