|
|
@@ -106,7 +106,7 @@
|
|
|
@change="selectAll(val)"
|
|
|
>全选</el-checkbox>
|
|
|
<el-option
|
|
|
- v-for="item in `${val.prop1}options` "
|
|
|
+ v-for="item in val.options "
|
|
|
:key="item.dictValue"
|
|
|
:label="item.dictTag"
|
|
|
:value="item.dictValue"
|
|
|
@@ -276,59 +276,43 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="导入条件佣金模板" :visible.sync="ImportdialogVisible" append-to-body width="80%">
|
|
|
- <span >
|
|
|
- <el-table
|
|
|
- :data="tableData"
|
|
|
- border
|
|
|
- style="width: 100%">
|
|
|
- <el-table-column
|
|
|
- prop="date"
|
|
|
- label="模板名称">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="name"
|
|
|
- label="政策简称">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- prop="address"
|
|
|
- label="条件描述">
|
|
|
- </el-table-column>
|
|
|
- <el-table-column
|
|
|
- fixed="right"
|
|
|
- label="操作"
|
|
|
- width="200">
|
|
|
- <template slot-scope="scope">
|
|
|
- <el-button
|
|
|
- @click.native.prevent="Import(scope.$index)"
|
|
|
- type="primary"
|
|
|
- size="small">
|
|
|
- 导入
|
|
|
- </el-button>
|
|
|
- <el-button
|
|
|
- @click.native.prevent="deleteRow(scope.$index)"
|
|
|
- type="danger"
|
|
|
- size="small">
|
|
|
- 删除
|
|
|
- </el-button>
|
|
|
- </template>
|
|
|
- </el-table-column>
|
|
|
- </el-table>
|
|
|
+ <span>
|
|
|
+ <el-table :data="tableData" border style="width: 100%">
|
|
|
+ <el-table-column prop="date" label="模板名称"></el-table-column>
|
|
|
+ <el-table-column prop="name" label="政策简称"></el-table-column>
|
|
|
+ <el-table-column prop="address" label="条件描述"></el-table-column>
|
|
|
+ <el-table-column fixed="right" label="操作" width="200">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-button @click.native.prevent="Import(scope.$index)" type="primary" size="small">导入</el-button>
|
|
|
+ <el-button
|
|
|
+ @click.native.prevent="deleteRow(scope.$index)"
|
|
|
+ type="danger"
|
|
|
+ size="small"
|
|
|
+ >删除</el-button>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ </el-table>
|
|
|
</span>
|
|
|
- </el-dialog>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import {pageMixin} from "./pageMixin"
|
|
|
+import imgSrc1 from "../../../../assets/image/bfyz1.png";
|
|
|
+import imgSrc2 from "../../../../assets/image/bfyz2.png";
|
|
|
+import imgSrc3 from "../../../../assets/image/bfyz3.png";
|
|
|
+import imgSrc4 from "../../../../assets/image/bfyz4.png";
|
|
|
+import imgSrc5 from "../../../../assets/image/bfyz5.png";
|
|
|
export default {
|
|
|
- mixins: [ pageMixin ],
|
|
|
data() {
|
|
|
return {
|
|
|
- ImportdialogVisible:false,
|
|
|
- tableData: [{
|
|
|
- date: '2016-05-02',
|
|
|
- name: '王小虎',
|
|
|
- address: '上海市普陀区金沙江路 1518 弄'
|
|
|
- }],
|
|
|
+ ImportdialogVisible: false,
|
|
|
+ tableData: [
|
|
|
+ {
|
|
|
+ date: "2016-05-02",
|
|
|
+ name: "王小虎",
|
|
|
+ address: "上海市普陀区金沙江路 1518 弄"
|
|
|
+ }
|
|
|
+ ],
|
|
|
checkedmData: [],
|
|
|
conditiondata: [
|
|
|
{
|
|
|
@@ -387,14 +371,437 @@ export default {
|
|
|
chepai2: "",
|
|
|
条件适用对象: []
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
+ circularContent: [
|
|
|
+ {
|
|
|
+ title: "车险预核条件",
|
|
|
+ hideAll: true,
|
|
|
+ img: imgSrc1,
|
|
|
+ concant: [
|
|
|
+ {
|
|
|
+ label: "政策简介",
|
|
|
+ prop: "transfer",
|
|
|
+ type: "textarea"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "条件描述",
|
|
|
+ prop: "条件描述",
|
|
|
+ type: "textarea"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "规则类型",
|
|
|
+ hideAll: true,
|
|
|
+ img: imgSrc2,
|
|
|
+ nooperate: true,
|
|
|
+ concant: [
|
|
|
+ {
|
|
|
+ label: "符合以下条件的车辆,系统将",
|
|
|
+ prop: "符合以下条件的车辆,系统将",
|
|
|
+ type: "input",
|
|
|
+ labelWidth: "250px"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: " 保单信息",
|
|
|
+ hideAll: true,
|
|
|
+ img: imgSrc3,
|
|
|
+ concant: [
|
|
|
+ {
|
|
|
+ label: "含交叉销售",
|
|
|
+ prop: "含交叉销售",
|
|
|
+ type: "radio",
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ label: "是",
|
|
|
+ value: "1"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "否",
|
|
|
+ value: "0"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "非车产品",
|
|
|
+ prop: "非车产品",
|
|
|
+ type: "radio"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "非车保费(元)",
|
|
|
+ prop1: "非车保费1",
|
|
|
+ prop2: "非车保费2",
|
|
|
+ type: "inputconnect"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "附加医保座位险总保额(乘客-万元)",
|
|
|
+ prop1: "附加医保座位险总保额(乘客-万元)1",
|
|
|
+ prop2: "附加医保座位险总保额(乘客-万元)2",
|
|
|
+ type: "inputconnect"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "座位险保额(乘客每座-万元)",
|
|
|
+ prop1: "座位险保额(乘客每座-万元)1",
|
|
|
+ prop2: "座位险保额(乘客每座-万元)2",
|
|
|
+ type: "inputconnect"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "座位险保额(司乘每座-万元)",
|
|
|
+ prop1: "座位险保额(司乘每座-万元)1",
|
|
|
+ prop2: "座位险保额(司乘每座-万元)2",
|
|
|
+ type: "inputconnect"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "车辆信息",
|
|
|
+ hideAll: true,
|
|
|
+ img: imgSrc4,
|
|
|
+ concant: [
|
|
|
+ {
|
|
|
+ label: "营业车",
|
|
|
+ prop: "营业车",
|
|
|
+ type: "radio",
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ label: "是",
|
|
|
+ value: "1"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "否",
|
|
|
+ value: "0"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "过户车",
|
|
|
+ prop: "过户车",
|
|
|
+ type: "radio",
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ label: "是",
|
|
|
+ value: "1"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "否",
|
|
|
+ value: "0"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "新车",
|
|
|
+ prop: "新车",
|
|
|
+ type: "radio",
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ label: "是",
|
|
|
+ value: "1"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "否",
|
|
|
+ value: "0"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "进口车",
|
|
|
+ prop: "进口车",
|
|
|
+ type: "radio",
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ label: "是",
|
|
|
+ value: "1"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "否",
|
|
|
+ value: "0"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "贷款车",
|
|
|
+ prop: "贷款车",
|
|
|
+ type: "radio",
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ label: "是",
|
|
|
+ value: "1"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "否",
|
|
|
+ value: "0"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "新能源",
|
|
|
+ prop: "新能源",
|
|
|
+ type: "radio",
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ label: "是",
|
|
|
+ value: "1"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "否",
|
|
|
+ value: "0"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "能源类型",
|
|
|
+ prop: "能源类型",
|
|
|
+ type: "selectmultiple",
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ label: "是",
|
|
|
+ value: "1"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "否",
|
|
|
+ value: "0"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "使用性质",
|
|
|
+ prop1: "shiyongxingzhi1",
|
|
|
+ prop2: "使用性质2",
|
|
|
+ type: "selectsearch",
|
|
|
+ options: this.shiyongxingzhi1options
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "号牌种类",
|
|
|
+ prop1: "号牌种类1",
|
|
|
+ prop2: "号牌种类2",
|
|
|
+ type: "selectsearch",
|
|
|
+ options: this.natureOfVehicleUseoptions
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "车辆类型",
|
|
|
+ prop1: "车辆类型1",
|
|
|
+ prop2: "车辆类型2",
|
|
|
+ type: "selectsearch",
|
|
|
+ options: this.natureOfVehicleUseoptions
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "交管车辆类型",
|
|
|
+ prop1: "交管车辆类型1",
|
|
|
+ prop2: "交管车辆类2",
|
|
|
+ type: "selectsearch",
|
|
|
+ options: this.natureOfVehicleUseoptions
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "额定载重质量(吨)",
|
|
|
+ prop1: "额定载重质量1",
|
|
|
+ prop2: "额定载重质量2",
|
|
|
+ type: "inputconnect"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "整备质量(千克)",
|
|
|
+ prop1: "整备质量1",
|
|
|
+ prop2: "整备质量2",
|
|
|
+ type: "inputconnect"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "总质量(千克)",
|
|
|
+ prop1: "总质量1",
|
|
|
+ prop2: "总质量2",
|
|
|
+ type: "inputconnect"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "座位数(个)",
|
|
|
+ prop1: "座位数1",
|
|
|
+ prop2: "座位数2",
|
|
|
+ type: "inputconnect"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "车龄(月)",
|
|
|
+ prop1: "车龄1",
|
|
|
+ prop2: "车龄2",
|
|
|
+ type: "inputconnect"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "车价(万元)",
|
|
|
+ prop1: "车价1",
|
|
|
+ prop2: "车价2",
|
|
|
+ type: "inputconnect"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "排气量(cc)",
|
|
|
+ prop1: "排气量1",
|
|
|
+ prop2: "排气量2",
|
|
|
+ type: "inputconnect"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "包含品牌",
|
|
|
+ prop: "包含品牌",
|
|
|
+ type: "createSelect",
|
|
|
+ options: []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "除外品牌",
|
|
|
+ prop: "除外品牌",
|
|
|
+ type: "createSelect",
|
|
|
+ options: []
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "是否上牌",
|
|
|
+ prop: "是否上牌",
|
|
|
+ type: "radio",
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ label: "是",
|
|
|
+ value: "1"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "否",
|
|
|
+ value: "0"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "车牌",
|
|
|
+ prop1: "车牌1",
|
|
|
+ prop2: "chepai2",
|
|
|
+ type: "slot",
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ label: "是",
|
|
|
+ value: "1"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "否",
|
|
|
+ value: "0"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: "关系人信息",
|
|
|
+ hideAll: true,
|
|
|
+ img: imgSrc5,
|
|
|
+ concant: [
|
|
|
+ {
|
|
|
+ label: "条件适用对象",
|
|
|
+ prop: "条件适用对象",
|
|
|
+ type: "slot"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "适用对象校验方式",
|
|
|
+ prop: "适用对象校验方式",
|
|
|
+ type: "select",
|
|
|
+ options: [
|
|
|
+ {
|
|
|
+ label: "适用对象至少其一符合以下条件",
|
|
|
+ value: "1"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "适用对象全部符合以下条件",
|
|
|
+ value: "2"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "",
|
|
|
+ prop: "车主",
|
|
|
+ type: "slot",
|
|
|
+ name: "chezhu",
|
|
|
+ hide: true,
|
|
|
+ col: 24,
|
|
|
+ labelWidth: "0"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "车主年龄(岁)",
|
|
|
+ prop: "车主年龄",
|
|
|
+ hide: true,
|
|
|
+ type: "inputconnect",
|
|
|
+ name: "chezhu"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "车主证件号",
|
|
|
+ prop: "车主证件号",
|
|
|
+ hide: true,
|
|
|
+ type: "input",
|
|
|
+ name: "chezhu"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "",
|
|
|
+ prop: "投保人",
|
|
|
+ type: "slot",
|
|
|
+ name: "toubaoren",
|
|
|
+ hide: true,
|
|
|
+ col: 24,
|
|
|
+ labelWidth: "0"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "投保人年龄(岁)",
|
|
|
+ prop: "投保人年龄",
|
|
|
+ hide: true,
|
|
|
+ type: "inputconnect",
|
|
|
+ name: "toubaoren"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "投保人证件号",
|
|
|
+ prop: "投保人证件号",
|
|
|
+ hide: true,
|
|
|
+ type: "input",
|
|
|
+ name: "toubaoren"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "",
|
|
|
+ prop1: "被保人1",
|
|
|
+ prop2: "被保人2",
|
|
|
+ type: "slot",
|
|
|
+ name: "beibaoren",
|
|
|
+ hide: true,
|
|
|
+ col: 24,
|
|
|
+ labelWidth: "0"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "被保人年龄(岁)",
|
|
|
+ prop: "被保人年龄",
|
|
|
+ hide: true,
|
|
|
+ type: "inputconnect",
|
|
|
+ name: "beibaoren"
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "被保人证件号",
|
|
|
+ prop: "被保人证件号",
|
|
|
+ hide: true,
|
|
|
+ type: "input",
|
|
|
+ name: "beibaoren"
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ natureOfVehicleUseoptions: [],
|
|
|
+ shiyongxingzhi1options: [
|
|
|
+ {
|
|
|
+ "dictTag": "营业",
|
|
|
+ "dictValue": "01",
|
|
|
+ "sort": 0,
|
|
|
+ "status": 0
|
|
|
+ },
|
|
|
+ {
|
|
|
+ "dictTag": "非营业",
|
|
|
+ "dictValue": "02",
|
|
|
+ "sort": 0,
|
|
|
+ "status": 0
|
|
|
+ }
|
|
|
+ ]
|
|
|
};
|
|
|
},
|
|
|
|
|
|
created() {
|
|
|
- console.log(this.shiyongxingzhi1options,2222222)
|
|
|
-
|
|
|
+ console.log(this.shiyongxingzhi1options, 2222222);
|
|
|
+ this.$api.insCompany.dicType("natureOfVehicleUse").then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.shiyongxingzhi1options = res.data.ddList;
|
|
|
+ }
|
|
|
+ });
|
|
|
this.conditiondata.forEach((val, index) => {
|
|
|
this.checkedmData[index] = {
|
|
|
checkAll: false,
|
|
|
@@ -405,23 +812,22 @@ export default {
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
- //--数据字典 begin --
|
|
|
- getDicType(type) {
|
|
|
+ //--数据字典 begin --
|
|
|
+ getDicType(type) {
|
|
|
this.$api.insCompany.dicType(type).then(res => {
|
|
|
if (res.code == 200) {
|
|
|
- if(type=='insOrderStatus'){
|
|
|
- let data=JSON.parse(JSON.stringify( res.data.ddList))
|
|
|
- data.unshift( {
|
|
|
+ if (type == "insOrderStatus") {
|
|
|
+ let data = JSON.parse(JSON.stringify(res.data.ddList));
|
|
|
+ data.unshift({
|
|
|
dictTag: "全部",
|
|
|
- dictValue: "888"});
|
|
|
- this[type + 'options'] = data;
|
|
|
- }
|
|
|
- else{
|
|
|
- this[type + 'options'] = res.data.ddList;
|
|
|
+ dictValue: "888"
|
|
|
+ });
|
|
|
+ this[type + "options"] = data;
|
|
|
+ } else {
|
|
|
+ this[type + "options"] = res.data.ddList;
|
|
|
}
|
|
|
}
|
|
|
- })
|
|
|
-
|
|
|
+ });
|
|
|
},
|
|
|
hide(index) {
|
|
|
this.circularContent[index].hideAll = !this.circularContent[index]
|
|
|
@@ -537,34 +943,34 @@ export default {
|
|
|
console.log(this.checkedmData, 444444444);
|
|
|
},
|
|
|
// 另存为模板
|
|
|
- saveTemplate(){
|
|
|
- this.$prompt('请输入模板名称', '提示', {
|
|
|
+ saveTemplate() {
|
|
|
+ this.$prompt("请输入模板名称", "提示", {
|
|
|
inputAttrs: {
|
|
|
maxlength: 10 // 设置最大长度为10
|
|
|
}
|
|
|
- }).then(({value}) => {
|
|
|
- console.log(value, 444444444);
|
|
|
+ })
|
|
|
+ .then(({ value }) => {
|
|
|
+ console.log(value, 444444444);
|
|
|
|
|
|
- // 处理输入值
|
|
|
- }).catch(() => {
|
|
|
- // 取消操作
|
|
|
- });
|
|
|
+ // 处理输入值
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ // 取消操作
|
|
|
+ });
|
|
|
},
|
|
|
// 导入模板
|
|
|
- importTemplate(){
|
|
|
- this.ImportdialogVisible=true
|
|
|
+ importTemplate() {
|
|
|
+ this.ImportdialogVisible = true;
|
|
|
},
|
|
|
- deleteRow(index){
|
|
|
- this.$confirm('确认删除该模板吗?', '提示', {
|
|
|
- confirmButtonText: '确定',
|
|
|
- cancelButtonText: '取消',
|
|
|
- type: 'warning'
|
|
|
- }).then(() => {
|
|
|
-
|
|
|
- }).catch(() => {
|
|
|
- });
|
|
|
- },
|
|
|
-
|
|
|
+ deleteRow(index) {
|
|
|
+ this.$confirm("确认删除该模板吗?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning"
|
|
|
+ })
|
|
|
+ .then(() => {})
|
|
|
+ .catch(() => {});
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|