|
|
@@ -119,16 +119,13 @@ export const mixin = { // 导出混入对象
|
|
|
list: 'attachList'
|
|
|
},
|
|
|
],
|
|
|
- pageRequest: {
|
|
|
- pageNum: 1,
|
|
|
- pageSize: 20
|
|
|
- },
|
|
|
loading: false,
|
|
|
queryFrom: {},
|
|
|
pageResult: {},
|
|
|
columns: [
|
|
|
{ prop: "subOrderId", label: "订单号", minWidth: 180 },
|
|
|
{ prop: "userid", label: "业务员", minWidth: 160, formatter: this.useridFormatter },
|
|
|
+ { prop: "managementSource", label: "机构来源", minWidth: 160, formatter: this.managementSourceFormatter },
|
|
|
{ prop: "insCompany", label: "保险公司", minWidth: 120 },
|
|
|
{ prop: "partnerCompaniesName", label: "合作公司", minWidth: 120 },
|
|
|
{ prop: "agreementName", label: "协议", minWidth: 160 },
|
|
|
@@ -137,7 +134,7 @@ export const mixin = { // 导出混入对象
|
|
|
{ prop: "product", label: "投保险种", minWidth: 100 },
|
|
|
{ prop: "createtime", label: "录单日期", minWidth: 160, },
|
|
|
],
|
|
|
- statusoptions:"",
|
|
|
+ statusoptions: "",
|
|
|
dialogVisible: false,
|
|
|
companyList: [], //保险公司
|
|
|
institutionOptions: [], //机构名称列表
|
|
|
@@ -151,12 +148,25 @@ export const mixin = { // 导出混入对象
|
|
|
policyImageList: [], //投保人影像
|
|
|
insuredImageList: [], //被保人影像
|
|
|
carCheckImageList: [], //验车照影像
|
|
|
- quoteno:"",
|
|
|
- oldfileList:[],
|
|
|
- orderInfo:{},
|
|
|
+ quoteno: "",
|
|
|
+ oldfileList: [],
|
|
|
+ orderInfo: {},
|
|
|
+ }
|
|
|
+ },
|
|
|
+ computed: {
|
|
|
+ currentDate() {
|
|
|
+ const today = new Date();
|
|
|
+ const year = today.getFullYear();
|
|
|
+ const month = String(today.getMonth() + 1).padStart(2, '0');
|
|
|
+ const day = String(today.getDate()).padStart(2, '0');
|
|
|
+ return `${year}-${month}-${day}`;
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ this.pageRequest.quoteStartDateStr=this.currentDate;
|
|
|
+ this.pageRequest.quoteEndDateStr=this.currentDate;
|
|
|
+ this.pageRequest.attachStartDateStr=this.currentDate;
|
|
|
+ this.pageRequest.attachEndDateStr=this.currentDate;
|
|
|
this.$api.letter.gainTopList().then(res => {
|
|
|
this.companyList = res.data;
|
|
|
});
|
|
|
@@ -218,14 +228,14 @@ export const mixin = { // 导出混入对象
|
|
|
default:
|
|
|
}
|
|
|
},
|
|
|
- //下拉数据匹配
|
|
|
- selectDataMatching(files, name, data) {
|
|
|
- files.forEach(filed => {
|
|
|
- if (filed.name == name) {
|
|
|
- filed.options = data;
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+ //下拉数据匹配
|
|
|
+ selectDataMatching(files, name, data) {
|
|
|
+ files.forEach(filed => {
|
|
|
+ if (filed.name == name) {
|
|
|
+ filed.options = data;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
//获取机构数据
|
|
|
areaqueryList(level, parentId, filed) {
|
|
|
this.$api.task.queryListByParentId(level, parentId).then((res) => {
|
|
|
@@ -249,8 +259,7 @@ export const mixin = { // 导出混入对象
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- cpolicy(){
|
|
|
-
|
|
|
+ cpolicy() {
|
|
|
if (this.orderInfo.orderstatus == "3") {
|
|
|
this.oldfileList = [];
|
|
|
let businessList = []
|
|
|
@@ -870,14 +879,14 @@ export const mixin = { // 导出混入对象
|
|
|
this.$refs.detailsDialog.warrantyFun(obj);
|
|
|
}
|
|
|
},
|
|
|
- ImageList(){
|
|
|
+ ImageList() {
|
|
|
this.carImageList = [];
|
|
|
this.ownerImageList = []; //车主影像
|
|
|
this.policyImageList = []; //投保人影像
|
|
|
this.insuredImageList = []; //被保人影像
|
|
|
this.carCheckImageList = []; //验车照影像
|
|
|
- // 获取影像
|
|
|
- this.$api.letter.findByQuoteNo(this.orderInfo.quoteno).then((resImage) => {
|
|
|
+ // 获取影像
|
|
|
+ this.$api.letter.findByQuoteNo(this.orderInfo.quoteno).then((resImage) => {
|
|
|
Object.keys(resImage.data).forEach((keys) => {
|
|
|
if (resImage.data[keys]) {
|
|
|
resImage.data[keys].url = resImage.data[keys].url
|
|
|
@@ -945,5 +954,17 @@ export const mixin = { // 导出混入对象
|
|
|
let data = row.username + `(${row.userid})`
|
|
|
return data;
|
|
|
},
|
|
|
+ managementSourceFormatter(row, column) {
|
|
|
+ let managementSource = row.managementSource;
|
|
|
+ switch (managementSource) {
|
|
|
+ case '渠道':
|
|
|
+ return <el-tag>渠道</el-tag>
|
|
|
+ case '个代':
|
|
|
+ return <el-tag type="success">渠道</el-tag>
|
|
|
+ case '电销':
|
|
|
+ return <el-tag type="warning">渠道</el-tag>
|
|
|
+ default:
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|