|
@@ -130,7 +130,7 @@
|
|
<!-- <el-table-column label="负责部门" align="center" prop="responsibleDeptName" min-width="80" /> -->
|
|
<!-- <el-table-column label="负责部门" align="center" prop="responsibleDeptName" min-width="80" /> -->
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180px" fixed="right">
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width" width="180px" fixed="right">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
- <el-button size="mini" type="text" icon="el-icon-search" @click="handleCheck(scope.row)">查看</el-button>
|
|
|
|
|
|
+ <el-button size="mini" type="text" icon="el-icon-search" @click="handleCheck(scope.row.id)">查看</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
|
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">删除</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -302,7 +302,7 @@
|
|
<el-row :gutter="20">
|
|
<el-row :gutter="20">
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
<el-form-item label="创建人" prop="createBy">
|
|
<el-form-item label="创建人" prop="createBy">
|
|
- <el-input v-model="form.createBy" :disabled="true" />
|
|
|
|
|
|
+ <el-input v-model="form.createByName" :disabled="true" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
@@ -312,7 +312,7 @@
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
<el-form-item label="修改人" prop="updateBy">
|
|
<el-form-item label="修改人" prop="updateBy">
|
|
- <el-input v-model="form.updateBy" :disabled="true" />
|
|
|
|
|
|
+ <el-input v-model="form.updateByName" :disabled="true" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="6">
|
|
<el-col :span="6">
|
|
@@ -470,11 +470,11 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <AddPerson v-model="isAdd1" v-if="isAdd1" :pageStu="page" :disable="disable" :row="rowDetail" :customersId="form.id"
|
|
|
|
- @refresh="searchList" />
|
|
|
|
|
|
+ <AddPerson v-model="isAdd1" v-if="isAdd1" :pageStu="page" :disable="disable" :row="rowDetail"
|
|
|
|
+ :customersId="form.id" :customersName="form.name" />
|
|
|
|
|
|
<AddDepartment v-model="isAdd2" v-if="isAdd2" :pageStu="page" :disable="disable" :row="rowDetail"
|
|
<AddDepartment v-model="isAdd2" v-if="isAdd2" :pageStu="page" :disable="disable" :row="rowDetail"
|
|
- :customersId="form.id" @refresh="searchList" />
|
|
|
|
|
|
+ :customersId="form.id" :customersName="form.name" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -544,8 +544,6 @@
|
|
mkCmCustomersResponsiblePersonList: [],
|
|
mkCmCustomersResponsiblePersonList: [],
|
|
// 客户科室表格数据
|
|
// 客户科室表格数据
|
|
mkCmCustomersDepartmentList: [],
|
|
mkCmCustomersDepartmentList: [],
|
|
- // 弹出层标题
|
|
|
|
- title: "",
|
|
|
|
// 首次进入标签页的显示
|
|
// 首次进入标签页的显示
|
|
activeName: 'first',
|
|
activeName: 'first',
|
|
// 下拉收起配置
|
|
// 下拉收起配置
|
|
@@ -688,8 +686,10 @@
|
|
detailedAddress: null,
|
|
detailedAddress: null,
|
|
createBy: null,
|
|
createBy: null,
|
|
createTime: null,
|
|
createTime: null,
|
|
|
|
+ createByName: null,
|
|
updateBy: null,
|
|
updateBy: null,
|
|
updateTime: null,
|
|
updateTime: null,
|
|
|
|
+ updateByName: null,
|
|
delFlag: null
|
|
delFlag: null
|
|
};
|
|
};
|
|
this.activeName = 'first';
|
|
this.activeName = 'first';
|
|
@@ -717,20 +717,16 @@
|
|
handleAdd() {
|
|
handleAdd() {
|
|
this.isList = false;
|
|
this.isList = false;
|
|
this.openState = 'add';
|
|
this.openState = 'add';
|
|
- this.title = "添加客户";
|
|
|
|
},
|
|
},
|
|
/** 查看按钮操作 */
|
|
/** 查看按钮操作 */
|
|
- handleCheck(row) {
|
|
|
|
|
|
+ handleCheck(id) {
|
|
this.isList = false;
|
|
this.isList = false;
|
|
- this.reset();
|
|
|
|
- const id = row.id || this.ids
|
|
|
|
- getCustomers(id).then(response => {
|
|
|
|
|
|
+ const id1 = id || this.ids
|
|
|
|
+ getCustomers(id1).then(response => {
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
this.mkCmCustomersResponsiblePersonList = response.data.mkCmCustomersResponsiblePersonList;
|
|
this.mkCmCustomersResponsiblePersonList = response.data.mkCmCustomersResponsiblePersonList;
|
|
this.mkCmCustomersDepartmentList = response.data.mkCmCustomersDepartmentList;
|
|
this.mkCmCustomersDepartmentList = response.data.mkCmCustomersDepartmentList;
|
|
this.openState = 'check';
|
|
this.openState = 'check';
|
|
- this.title = "查看客户";
|
|
|
|
- console.log(response, 'response');
|
|
|
|
});
|
|
});
|
|
getContactInfo().then(response => {
|
|
getContactInfo().then(response => {
|
|
this.mkCmCustomersContactList = response.data;
|
|
this.mkCmCustomersContactList = response.data;
|
|
@@ -760,7 +756,6 @@
|
|
this.mkCmCustomersResponsiblePersonList = response.data.mkCmCustomersResponsiblePersonList;
|
|
this.mkCmCustomersResponsiblePersonList = response.data.mkCmCustomersResponsiblePersonList;
|
|
this.mkCmCustomersDepartmentList = response.data.mkCmCustomersDepartmentList;
|
|
this.mkCmCustomersDepartmentList = response.data.mkCmCustomersDepartmentList;
|
|
this.openState = 'update';
|
|
this.openState = 'update';
|
|
- this.title = "修改客户";
|
|
|
|
});
|
|
});
|
|
},
|
|
},
|
|
/** Add修改按钮操作 */
|
|
/** Add修改按钮操作 */
|
|
@@ -780,21 +775,19 @@
|
|
/** 提交按钮 */
|
|
/** 提交按钮 */
|
|
submitForm() {
|
|
submitForm() {
|
|
this.$refs["form"].validate(valid => {
|
|
this.$refs["form"].validate(valid => {
|
|
- console.log(this.isList, 'this.isList');
|
|
|
|
if (valid) {
|
|
if (valid) {
|
|
if (this.form.id != null) {
|
|
if (this.form.id != null) {
|
|
updateCustomers(this.form).then(response => {
|
|
updateCustomers(this.form).then(response => {
|
|
this.$modal.msgSuccess("修改成功");
|
|
this.$modal.msgSuccess("修改成功");
|
|
- this.getList();
|
|
|
|
- this.isList = true;
|
|
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
addCustomers(this.form).then(response => {
|
|
addCustomers(this.form).then(response => {
|
|
this.$modal.msgSuccess("新增成功");
|
|
this.$modal.msgSuccess("新增成功");
|
|
- this.getList();
|
|
|
|
- this.isList = true;
|
|
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ this.reset();
|
|
|
|
+ this.getList();
|
|
|
|
+ this.isList = true;
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -921,14 +914,6 @@
|
|
})
|
|
})
|
|
.catch(_ => {});
|
|
.catch(_ => {});
|
|
},
|
|
},
|
|
- searchList() {
|
|
|
|
- console.og('1111')
|
|
|
|
- getCustomers(this.form.id).then(res => {
|
|
|
|
- this.form = res.data;
|
|
|
|
- this.mkCmCustomersResponsiblePersonList = res.data.mkCmCustomersResponsiblePersonList;
|
|
|
|
- this.mkCmCustomersDepartmentList = res.data.mkCmCustomersDepartmentList;
|
|
|
|
- })
|
|
|
|
- },
|
|
|
|
}
|
|
}
|
|
};
|
|
};
|
|
|
|
|