|
@@ -28,19 +28,25 @@
|
|
|
background: '#F2F7FC',
|
|
background: '#F2F7FC',
|
|
|
fontWeight: '900',
|
|
fontWeight: '900',
|
|
|
color: '#606266',
|
|
color: '#606266',
|
|
|
- }" size="small" @row-click="handleRowClick">
|
|
|
|
|
- <el-table-column prop="name" label="部门管理"> </el-table-column>
|
|
|
|
|
- <el-table-column prop="id" label="编号" width="180">
|
|
|
|
|
|
|
+ }" size="small" @row-click="handleRowClick">
|
|
|
|
|
+ <el-table-column prop="name" label="供应商名称"> </el-table-column>
|
|
|
|
|
+ <el-table-column prop="id" label="编号" >
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="address" label="状态" width="180">
|
|
|
|
|
|
|
+ <el-table-column prop="address" label="保司类型">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-tag v-if="scope.row.openQuote == '1'" type="primary">开启</el-tag>
|
|
<el-tag v-if="scope.row.openQuote == '1'" type="primary">开启</el-tag>
|
|
|
<el-tag v-if="scope.row.openQuote == '0' || scope.row.openQuote == null" type="success">关闭</el-tag>
|
|
<el-tag v-if="scope.row.openQuote == '0' || scope.row.openQuote == null" type="success">关闭</el-tag>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column prop="createTime" label="创建时间">
|
|
|
|
|
- </el-table-column>
|
|
|
|
|
- <el-table-column label="操作" fixed="right" width="280">
|
|
|
|
|
|
|
+ <!-- <el-table-column prop="address" label="状态" width="180">
|
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
|
+ <el-tag v-if="scope.row.openQuote == '1'" type="primary">开启</el-tag>
|
|
|
|
|
+ <el-tag v-if="scope.row.openQuote == '0' || scope.row.openQuote == null" type="success">关闭</el-tag>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column> -->
|
|
|
|
|
+ <!-- <el-table-column prop="createTime" label="创建时间">
|
|
|
|
|
+ </el-table-column> -->
|
|
|
|
|
+ <el-table-column label="操作" fixed="right">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" size="mini" icon="el-icon-edit" @click="handleTableEdit(scope.row)">修改</el-button>
|
|
<el-button type="text" size="mini" icon="el-icon-edit" @click="handleTableEdit(scope.row)">修改</el-button>
|
|
|
<el-button type="text" size="mini" icon="el-icon-plus" @click="handleAddCompany(scope.row)">新增</el-button>
|
|
<el-button type="text" size="mini" icon="el-icon-plus" @click="handleAddCompany(scope.row)">新增</el-button>
|
|
@@ -56,9 +62,10 @@
|
|
|
<el-dialog v-dialogDrag :title="dialogTitle" :visible.sync="dialogVisible" width="900px" @close="closeVisible"
|
|
<el-dialog v-dialogDrag :title="dialogTitle" :visible.sync="dialogVisible" width="900px" @close="closeVisible"
|
|
|
:close-on-click-modal="false">
|
|
:close-on-click-modal="false">
|
|
|
<el-form :model="dataForm" :rules="rules" ref="dataForm" label-width="120px" size="small">
|
|
<el-form :model="dataForm" :rules="rules" ref="dataForm" label-width="120px" size="small">
|
|
|
- <el-row v-if="operType == 'ADD2'">
|
|
|
|
|
- <el-form-item label="选择公司地区">
|
|
|
|
|
- <el-cascader size="small" v-model="area" :options="areaList" :props="optionProps"
|
|
|
|
|
|
|
+ <el-row >
|
|
|
|
|
+ <el-col :span="8" v-if="operType == 'ADD2'">
|
|
|
|
|
+ <el-form-item label="选择公司地区" prop="area">
|
|
|
|
|
+ <el-cascader size="small" v-model="dataForm.area" :options="areaList" :props="optionProps"
|
|
|
@change="areaHandleChange"></el-cascader>
|
|
@change="areaHandleChange"></el-cascader>
|
|
|
<!-- <el-cascader
|
|
<!-- <el-cascader
|
|
|
size="small"
|
|
size="small"
|
|
@@ -70,27 +77,40 @@
|
|
|
clearable
|
|
clearable
|
|
|
></el-cascader> -->
|
|
></el-cascader> -->
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="保司类型" prop="type">
|
|
|
|
|
+ <el-select v-model="dataForm.type" placeholder="请选择供应商类型">
|
|
|
|
|
+ <el-option
|
|
|
|
|
+ v-for="item in typeOptions"
|
|
|
|
|
+ :key="item.dictValue"
|
|
|
|
|
+ :label="item.dictTag"
|
|
|
|
|
+ :value="item.dictValue">
|
|
|
|
|
+ </el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="保险公司编码" prop="id">
|
|
|
|
|
|
|
+ <el-form-item label="供应商编码" prop="id">
|
|
|
<el-input v-model="dataForm.id" :disabled="!(operType == 'ADD1')"></el-input>
|
|
<el-input v-model="dataForm.id" :disabled="!(operType == 'ADD1')"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="保险公司名称" prop="name">
|
|
|
|
|
|
|
+ <el-form-item label="供应商名称" prop="name">
|
|
|
<el-input v-model="dataForm.name"></el-input>
|
|
<el-input v-model="dataForm.name"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8" v-if="dataForm.parentId != '0'">
|
|
<el-col :span="8" v-if="dataForm.parentId != '0'">
|
|
|
- <el-form-item label="上级保险公司" prop="parentId">
|
|
|
|
|
|
|
+ <el-form-item label="上级供应商" prop="parentId">
|
|
|
<el-input v-model="dataForm.parentId" disabled></el-input>
|
|
<el-input v-model="dataForm.parentId" disabled></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-form-item label="保险公司简称" prop="namesimple">
|
|
|
|
|
|
|
+ <el-form-item label="供应商简称" prop="namesimple">
|
|
|
<el-input v-model="dataForm.namesimple"></el-input>
|
|
<el-input v-model="dataForm.namesimple"></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
@@ -125,14 +145,14 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
- <el-row>
|
|
|
|
|
|
|
+ <!-- <el-row>
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<el-form-item label="报价开关">
|
|
<el-form-item label="报价开关">
|
|
|
<el-switch v-model="value" @change="companyChange" active-color="#13ce66">
|
|
<el-switch v-model="value" @change="companyChange" active-color="#13ce66">
|
|
|
</el-switch>
|
|
</el-switch>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
- </el-row>
|
|
|
|
|
|
|
+ </el-row> -->
|
|
|
<el-row>
|
|
<el-row>
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<el-form-item label="备注" style="width: 100%">
|
|
<el-form-item label="备注" style="width: 100%">
|
|
@@ -215,12 +235,13 @@ export default {
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
},
|
|
},
|
|
|
|
|
+ typeOptions:[],
|
|
|
columns: [
|
|
columns: [
|
|
|
- { prop: "id", label: "保险公司编码", minWidth: 80, sortable: false },
|
|
|
|
|
- { prop: "name", label: "保险公司名称", minWidth: 80, sortable: false },
|
|
|
|
|
|
|
+ { prop: "id", label: "供应商编码", minWidth: 80, sortable: false },
|
|
|
|
|
+ { prop: "name", label: "供应商名称", minWidth: 80, sortable: false },
|
|
|
{
|
|
{
|
|
|
prop: "namesimple",
|
|
prop: "namesimple",
|
|
|
- label: "保险公司简称",
|
|
|
|
|
|
|
+ label: "供应商简称",
|
|
|
minWidth: 80,
|
|
minWidth: 80,
|
|
|
sortable: false,
|
|
sortable: false,
|
|
|
},
|
|
},
|
|
@@ -247,7 +268,7 @@ export default {
|
|
|
id: [
|
|
id: [
|
|
|
{
|
|
{
|
|
|
required: true,
|
|
required: true,
|
|
|
- message: "请选择地区生成保险公司编码",
|
|
|
|
|
|
|
+ message: "请选择地区生成供应商编码",
|
|
|
trigger: "blur",
|
|
trigger: "blur",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -256,11 +277,14 @@ export default {
|
|
|
trigger: "blur",
|
|
trigger: "blur",
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
|
|
+ area: [
|
|
|
|
|
+ { required: true, message: "请选择供应商名称", trigger: "change" },
|
|
|
|
|
+ ],
|
|
|
name: [
|
|
name: [
|
|
|
- { required: true, message: "请输入保险公司名称", trigger: "blur" },
|
|
|
|
|
|
|
+ { required: true, message: "请输入供应商名称", trigger: "blur" },
|
|
|
],
|
|
],
|
|
|
namesimple: [
|
|
namesimple: [
|
|
|
- { required: true, message: "请输入保险公司简称", trigger: "blur" },
|
|
|
|
|
|
|
+ { required: true, message: "请输入供应商简称", trigger: "blur" },
|
|
|
],
|
|
],
|
|
|
},
|
|
},
|
|
|
|
|
|
|
@@ -404,15 +428,19 @@ export default {
|
|
|
|
|
|
|
|
handleAddType() {
|
|
handleAddType() {
|
|
|
// 添加保险总公司
|
|
// 添加保险总公司
|
|
|
- this.operType = "ADD2";
|
|
|
|
|
|
|
+ this.operType = "ADD3";
|
|
|
this.dialogTitle = "新增保险总公司";
|
|
this.dialogTitle = "新增保险总公司";
|
|
|
this.dataForm.parentId = "0";
|
|
this.dataForm.parentId = "0";
|
|
|
this.dialogVisible = true;
|
|
this.dialogVisible = true;
|
|
|
this.imgList1 = [];
|
|
this.imgList1 = [];
|
|
|
this.uploadDisabled = false;
|
|
this.uploadDisabled = false;
|
|
|
|
|
+ this.$api.insCompany.dicType("supplierTypeEnum").then(res=>{
|
|
|
|
|
+ if(res.code==200){
|
|
|
|
|
+ this.typeOptions=res.data.ddList
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
handleAddCompany(row) {
|
|
handleAddCompany(row) {
|
|
|
- console.log(row);
|
|
|
|
|
this.operType = "ADD2";
|
|
this.operType = "ADD2";
|
|
|
this.dialogTitle = "新增保险分公司";
|
|
this.dialogTitle = "新增保险分公司";
|
|
|
this.dataForm.parentId = row.id;
|
|
this.dataForm.parentId = row.id;
|
|
@@ -490,9 +518,10 @@ export default {
|
|
|
},
|
|
},
|
|
|
//提交确认
|
|
//提交确认
|
|
|
submitForm(formName) {
|
|
submitForm(formName) {
|
|
|
|
|
+ console.log(this.dataForm,1111111 )
|
|
|
this.$refs[formName].validate((valid) => {
|
|
this.$refs[formName].validate((valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
- if (this.operType == "ADD1" || this.operType == "ADD2") {
|
|
|
|
|
|
|
+ if (this.operType == "ADD1" || this.operType == "ADD2" || this.operType == "ADD3") {
|
|
|
if (this.operType == "ADD1") {
|
|
if (this.operType == "ADD1") {
|
|
|
if (this.dataForm.id.length != 6) {
|
|
if (this.dataForm.id.length != 6) {
|
|
|
return this.$message({
|
|
return this.$message({
|
|
@@ -544,7 +573,6 @@ export default {
|
|
|
// .catch((_) => {});
|
|
// .catch((_) => {});
|
|
|
// },
|
|
// },
|
|
|
closeVisible() {
|
|
closeVisible() {
|
|
|
- this.area = "";
|
|
|
|
|
this.$refs.dataForm.resetFields();
|
|
this.$refs.dataForm.resetFields();
|
|
|
for (let key in this.dataForm) {
|
|
for (let key in this.dataForm) {
|
|
|
this.dataForm[key] = "";
|
|
this.dataForm[key] = "";
|