|
@@ -56,6 +56,18 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ <el-form-item label="保单类型" prop="readType">
|
|
|
|
|
+ <el-select v-model="pdfForm.type" placeholder="" filterable clearable>
|
|
|
|
|
+ <el-option label="交强" value="1"></el-option>
|
|
|
|
|
+ <el-option label="商业" value="2"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ <el-col :span="8">
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+ </el-row>
|
|
|
</el-form>
|
|
</el-form>
|
|
|
</div>
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<span slot="footer" class="dialog-footer">
|
|
@@ -76,6 +88,17 @@
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
|
|
+ <el-row>
|
|
|
|
|
+ <el-col :span="24">
|
|
|
|
|
+ <el-form-item label="保单类型" prop="readType">
|
|
|
|
|
+ <el-select v-model="readform.type" placeholder="" filterable clearable>
|
|
|
|
|
+ <el-option label="交强" value="1"></el-option>
|
|
|
|
|
+ <el-option label="商业" value="2"></el-option>
|
|
|
|
|
+ </el-select>
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+
|
|
|
|
|
+ </el-row>
|
|
|
<row>
|
|
<row>
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<el-form-item label="pdf内容">
|
|
<el-form-item label="pdf内容">
|
|
@@ -135,6 +158,7 @@ export default {
|
|
|
{ prop: "readEnd", label: "字段截取后缀", minWidth: 160 },
|
|
{ prop: "readEnd", label: "字段截取后缀", minWidth: 160 },
|
|
|
{ prop: "readType", label: "截取时间类型", minWidth: 160, formatter: this.dateTypeFormatter},
|
|
{ prop: "readType", label: "截取时间类型", minWidth: 160, formatter: this.dateTypeFormatter},
|
|
|
{ prop: "orderMsg", label: "保单字段配置", minWidth: 160 },
|
|
{ prop: "orderMsg", label: "保单字段配置", minWidth: 160 },
|
|
|
|
|
+ { prop: "orderMsg", label: "保单类型", minWidth: 160 , formatter: this.typeFormatter},
|
|
|
],
|
|
],
|
|
|
attrResult: [],
|
|
attrResult: [],
|
|
|
pageRequest: {
|
|
pageRequest: {
|
|
@@ -143,6 +167,7 @@ export default {
|
|
|
companyId:""
|
|
companyId:""
|
|
|
},
|
|
},
|
|
|
readform: {
|
|
readform: {
|
|
|
|
|
+ type: "",
|
|
|
companyId: "",
|
|
companyId: "",
|
|
|
url: ""
|
|
url: ""
|
|
|
},
|
|
},
|
|
@@ -150,8 +175,12 @@ export default {
|
|
|
url: [
|
|
url: [
|
|
|
{ required: true, message: "请填写pdf路径", trigger: "blur" },
|
|
{ required: true, message: "请填写pdf路径", trigger: "blur" },
|
|
|
],
|
|
],
|
|
|
|
|
+ type: [
|
|
|
|
|
+ { required: true, message: "请选择保单类型", trigger: "blur" },
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
pdfForm: {
|
|
pdfForm: {
|
|
|
|
|
+ type: "",//类型
|
|
|
companyId: "",//保险公司id
|
|
companyId: "",//保险公司id
|
|
|
companyName: "",//保险公司id
|
|
companyName: "",//保险公司id
|
|
|
readName: "",//读取pdf字段
|
|
readName: "",//读取pdf字段
|
|
@@ -180,6 +209,9 @@ export default {
|
|
|
readName: [
|
|
readName: [
|
|
|
{ required: true, message: "请输入保单字段设置", trigger: "blur" },
|
|
{ required: true, message: "请输入保单字段设置", trigger: "blur" },
|
|
|
],
|
|
],
|
|
|
|
|
+ type: [
|
|
|
|
|
+ { required: true, message: "请输入保单类型", trigger: "change" },
|
|
|
|
|
+ ],
|
|
|
},
|
|
},
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -194,6 +226,17 @@ export default {
|
|
|
},
|
|
},
|
|
|
// 方法函数
|
|
// 方法函数
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ //格式化保单
|
|
|
|
|
+ typeFormatter(row, column) {
|
|
|
|
|
+ let type = row.type;
|
|
|
|
|
+ switch (type) {
|
|
|
|
|
+ case '1':
|
|
|
|
|
+ return <el-tag type="success">交强</el-tag>
|
|
|
|
|
+ case '2':
|
|
|
|
|
+ return <el-tag type="warning">商业</el-tag>
|
|
|
|
|
+ default:
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
//获取保单信息
|
|
//获取保单信息
|
|
|
getPdfMsg() {
|
|
getPdfMsg() {
|
|
|
this.readform.url="";
|
|
this.readform.url="";
|
|
@@ -240,11 +283,13 @@ export default {
|
|
|
//添加
|
|
//添加
|
|
|
addAttr() {
|
|
addAttr() {
|
|
|
//清空数据
|
|
//清空数据
|
|
|
|
|
+ this.pdfForm.id = null;
|
|
|
this.pdfForm.readName = "";
|
|
this.pdfForm.readName = "";
|
|
|
this.pdfForm.readBegin = "";
|
|
this.pdfForm.readBegin = "";
|
|
|
this.pdfForm.readEnd = "";
|
|
this.pdfForm.readEnd = "";
|
|
|
this.pdfForm.readType = "";
|
|
this.pdfForm.readType = "";
|
|
|
this.pdfForm.orderMsg = "";
|
|
this.pdfForm.orderMsg = "";
|
|
|
|
|
+ this.pdfForm.type = "";
|
|
|
this.attrDialogType = 'add';
|
|
this.attrDialogType = 'add';
|
|
|
this.attrDialogTitle = '添加'
|
|
this.attrDialogTitle = '添加'
|
|
|
this.attrVisible = true;
|
|
this.attrVisible = true;
|
|
@@ -263,6 +308,7 @@ export default {
|
|
|
readType: res.data.readType,
|
|
readType: res.data.readType,
|
|
|
orderMsg: res.data.orderMsg,
|
|
orderMsg: res.data.orderMsg,
|
|
|
id: row.id,
|
|
id: row.id,
|
|
|
|
|
+ type: res.data.type,
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
this.attrVisible = true;
|
|
this.attrVisible = true;
|