|
@@ -68,6 +68,22 @@
|
|
|
type="tree"
|
|
|
:dic="dicArea"
|
|
|
></avue-input-tree>
|
|
|
+ <el-select
|
|
|
+ v-else-if="item.prop === 'adminProfiles'"
|
|
|
+ size="small"
|
|
|
+ style="width: 100%;"
|
|
|
+ v-model="form[item.prop]"
|
|
|
+ multiple
|
|
|
+ placeholder=""
|
|
|
+ >
|
|
|
+ <el-option
|
|
|
+ v-for="item in userList"
|
|
|
+ :key="item.id"
|
|
|
+ :label="item.name"
|
|
|
+ :value="item.id"
|
|
|
+ >
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
<el-input
|
|
|
type="age"
|
|
|
v-else
|
|
@@ -209,10 +225,12 @@ import advantageProject from "./configuration/advantageProject.json";
|
|
|
import bankOfDeposit from "./configuration/bankOfDeposit.json";
|
|
|
import flowDialog from "@/components/flow-dialog/main";
|
|
|
import { customerParameter } from "@/enums/management-type";
|
|
|
+import { gainUser } from "@/api/basicData/customerInquiry";
|
|
|
export default {
|
|
|
name: "detailsPage",
|
|
|
data() {
|
|
|
return {
|
|
|
+ userList: [],
|
|
|
switchDialog: false,
|
|
|
form: {},
|
|
|
disabled: false,
|
|
@@ -499,9 +517,14 @@ export default {
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
+ label: "分管员",
|
|
|
+ prop: "adminProfiles",
|
|
|
+ span: 8
|
|
|
+ },
|
|
|
+ {
|
|
|
label: "代理区域",
|
|
|
prop: "belongtoarea",
|
|
|
- span: 24,
|
|
|
+ span: 16,
|
|
|
mock: {
|
|
|
type: "county"
|
|
|
}
|
|
@@ -536,11 +559,14 @@ export default {
|
|
|
let id = this.$route.query.id.replace(/\"/g, "");
|
|
|
// let id = parseInt(this.$route.query.id)
|
|
|
detail(id).then(res => {
|
|
|
- console.log(res.data.data);
|
|
|
+ if (res.data.data.adminProfiles) {
|
|
|
+ res.data.data.adminProfiles = res.data.data.adminProfiles.split(",");
|
|
|
+ }
|
|
|
this.form = res.data.data;
|
|
|
this.contactsData = this.form.corpsAttnList;
|
|
|
this.bankOfDepositData = this.form.corpsBankList;
|
|
|
this.advantageProjectData = this.form.corpsItems;
|
|
|
+
|
|
|
delete this.form.corpsAttnList;
|
|
|
delete this.form.corpsBankList;
|
|
|
delete this.form.corpsItems;
|
|
@@ -549,6 +575,9 @@ export default {
|
|
|
//新增时根据左侧选中树结构给客户类别赋值
|
|
|
this.$set(this.form, "corpsTypeId", this.$route.query.treeDeptId);
|
|
|
}
|
|
|
+ gainUser().then(res => {
|
|
|
+ this.userList = res.data.data;
|
|
|
+ });
|
|
|
},
|
|
|
watch: {
|
|
|
$route(to, from) {
|
|
@@ -682,6 +711,9 @@ export default {
|
|
|
if (this.form.belongtoarea) {
|
|
|
this.form.belongtoarea = this.form.belongtoarea.toString();
|
|
|
}
|
|
|
+ if (this.form.adminProfiles) {
|
|
|
+ this.form.adminProfiles = this.form.adminProfiles.join(",");
|
|
|
+ }
|
|
|
this.form.corpType = customerParameter.code;
|
|
|
typeSave(this.form).then(res => {
|
|
|
if (res.data.data === "error") {
|