|
@@ -246,6 +246,9 @@
|
|
|
</u-table>
|
|
</u-table>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="dis f-c mt-1 policyInfo" v-if="orderInfo.jyName">
|
|
<view class="dis f-c mt-1 policyInfo" v-if="orderInfo.jyName">
|
|
|
|
|
+ <view class="dis j-s a-c">
|
|
|
|
|
+ <text class="font-weight" style="color: #6B2709;font-size: 15px;">驾意险</text>
|
|
|
|
|
+ </view>
|
|
|
<text class="tagHeader dis a-c">
|
|
<text class="tagHeader dis a-c">
|
|
|
<text>{{orderInfo.jyName}}
|
|
<text>{{orderInfo.jyName}}
|
|
|
<view class="tag"></view>
|
|
<view class="tag"></view>
|
|
@@ -1764,14 +1767,18 @@
|
|
|
}
|
|
}
|
|
|
break;
|
|
break;
|
|
|
case "中煤财险":
|
|
case "中煤财险":
|
|
|
|
|
+ let zmapiImage = this.orderInfo.apiType == "2" ? "/insurance/crawler/submitImage" :
|
|
|
|
|
+ '/order/zhongMeiApi/submitImage';
|
|
|
let zmimage = await this.$http.post(
|
|
let zmimage = await this.$http.post(
|
|
|
- '/order/zhongMeiApi/submitImage', {
|
|
|
|
|
- companyId: this.companyId
|
|
|
|
|
|
|
+ `${zmapiImage}`, {
|
|
|
|
|
+ [this.orderInfo.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId
|
|
|
});
|
|
});
|
|
|
if (zmimage.code == '200') {
|
|
if (zmimage.code == '200') {
|
|
|
|
|
+ let zmapiAudit = this.orderInfo.apiType == "2" ? "/insurance/crawler/audit" :
|
|
|
|
|
+ '/order/zhongMeiApi/audit';
|
|
|
let zmaudit = await this.$http.post(
|
|
let zmaudit = await this.$http.post(
|
|
|
- '/order/zhongMeiApi/audit', {
|
|
|
|
|
- companyId: this.companyId,
|
|
|
|
|
|
|
+ `${zmapiAudit}`, {
|
|
|
|
|
+ [this.orderInfo.apiType == 2 ? "subOrderNo" : "companyId"]: this.companyId,
|
|
|
jqappoint: "",
|
|
jqappoint: "",
|
|
|
syappoint: ""
|
|
syappoint: ""
|
|
|
});
|
|
});
|
|
@@ -2138,64 +2145,110 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
async zhongMeigetPolicyPrint() {
|
|
async zhongMeigetPolicyPrint() {
|
|
|
- this.policyList = [];
|
|
|
|
|
- this.policyList1 = [];
|
|
|
|
|
- if (this.orderInfo.jqpolicyno) {
|
|
|
|
|
- let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
|
|
|
|
|
- companyId: this.companyId,
|
|
|
|
|
- riskCode: "0507",
|
|
|
|
|
- type: '2', //2:保单
|
|
|
|
|
- });
|
|
|
|
|
- if (res.code == '200') {
|
|
|
|
|
- this.policyList.push({
|
|
|
|
|
- fileTitle: "交强电子保单",
|
|
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
|
|
- fileurl: res.data[0],
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- let res1 = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
|
|
|
|
|
- companyId: this.companyId,
|
|
|
|
|
- riskCode: "0507",
|
|
|
|
|
- type: '1', //1:标志
|
|
|
|
|
- });
|
|
|
|
|
- if (res1.code == '200') {
|
|
|
|
|
- this.policyList1.push({
|
|
|
|
|
- fileTitle: "交强电子标志",
|
|
|
|
|
- filename: this.orderInfo.jqpolicyno,
|
|
|
|
|
- fileurl: res1.data[0],
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if (this.orderInfo.sypolicyno) {
|
|
|
|
|
- let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
|
|
|
|
|
- companyId: this.companyId,
|
|
|
|
|
- riskCode: "0510",
|
|
|
|
|
- type: '2', //2:标志
|
|
|
|
|
- });
|
|
|
|
|
- if (res.code == '200') {
|
|
|
|
|
- this.policyList.push({
|
|
|
|
|
- fileTitle: "商业电子保单",
|
|
|
|
|
- filename: this.orderInfo.sypolicyno,
|
|
|
|
|
- fileurl: res.data[0],
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
|
|
- this.orderInfo.crossInsurance.map(async ele => {
|
|
|
|
|
- let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
|
|
|
|
|
- companyId: this.companyId,
|
|
|
|
|
- ridePolicyNo: ele.ridePolicyNo,
|
|
|
|
|
- riskCode: "0513",
|
|
|
|
|
- type: '2', //2:保单
|
|
|
|
|
- });
|
|
|
|
|
- if (res.code == '200') {
|
|
|
|
|
- this.policyList.push({
|
|
|
|
|
- fileTitle: "驾意险保单",
|
|
|
|
|
- filename: ele.ridePolicyNo,
|
|
|
|
|
- fileurl: res.data[0],
|
|
|
|
|
|
|
+ let apiType = this.orderInfo.apiType;
|
|
|
|
|
+ switch (apiType) {
|
|
|
|
|
+ case 1:
|
|
|
|
|
+ this.policyList = [];
|
|
|
|
|
+ this.policyList1 = [];
|
|
|
|
|
+ if (this.orderInfo.jqpolicyno) {
|
|
|
|
|
+ let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
|
|
|
|
|
+ companyId: this.companyId,
|
|
|
|
|
+ riskCode: "0507",
|
|
|
|
|
+ type: '2', //2:保单
|
|
|
|
|
+ });
|
|
|
|
|
+ if (res.code == '200') {
|
|
|
|
|
+ this.policyList.push({
|
|
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
|
|
+ fileurl: res.data[0],
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ let res1 = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
|
|
|
|
|
+ companyId: this.companyId,
|
|
|
|
|
+ riskCode: "0507",
|
|
|
|
|
+ type: '1', //1:标志
|
|
|
|
|
+ });
|
|
|
|
|
+ if (res1.code == '200') {
|
|
|
|
|
+ this.policyList1.push({
|
|
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
|
|
+ fileurl: res1.data[0],
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.orderInfo.sypolicyno) {
|
|
|
|
|
+ let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
|
|
|
|
|
+ companyId: this.companyId,
|
|
|
|
|
+ riskCode: "0510",
|
|
|
|
|
+ type: '2', //2:标志
|
|
|
|
|
+ });
|
|
|
|
|
+ if (res.code == '200') {
|
|
|
|
|
+ this.policyList.push({
|
|
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
|
|
+ fileurl: res.data[0],
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
|
|
+ this.orderInfo.crossInsurance.map(async ele => {
|
|
|
|
|
+ let res = await this.$http.post('/order/zhongMeiApi/getPolicyPrint', {
|
|
|
|
|
+ companyId: this.companyId,
|
|
|
|
|
+ ridePolicyNo: ele.ridePolicyNo,
|
|
|
|
|
+ riskCode: "0513",
|
|
|
|
|
+ type: '2', //2:保单
|
|
|
|
|
+ });
|
|
|
|
|
+ if (res.code == '200') {
|
|
|
|
|
+ this.policyList.push({
|
|
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
|
|
+ filename: ele.ridePolicyNo,
|
|
|
|
|
+ fileurl: res.data[0],
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- })
|
|
|
|
|
|
|
+ break;
|
|
|
|
|
+ case 2:
|
|
|
|
|
+ if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
|
|
|
|
|
+ let params = {
|
|
|
|
|
+ subOrderNo: this.companyId,
|
|
|
|
|
+ };
|
|
|
|
|
+ let res1 = await this.$http.post(
|
|
|
|
|
+ '/insurance/crawler/getPolicyPrint', params);
|
|
|
|
|
+ if (res1.code == '200') {
|
|
|
|
|
+ this.policyList = [];
|
|
|
|
|
+ this.policyList1 = [];
|
|
|
|
|
+ this.policyList.push({
|
|
|
|
|
+ fileTitle: "交强电子保单",
|
|
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
|
|
+ fileurl: res1.data.jqxPolicyUrl,
|
|
|
|
|
+ })
|
|
|
|
|
+ this.policyList1.push({
|
|
|
|
|
+ fileTitle: "交强电子标志",
|
|
|
|
|
+ filename: this.orderInfo.jqpolicyno,
|
|
|
|
|
+ fileurl: res1.data.jqxFlagUrl,
|
|
|
|
|
+ })
|
|
|
|
|
+ if (res1.data.syxPolicyUrl) {
|
|
|
|
|
+ this.policyList.push({
|
|
|
|
|
+ fileTitle: "商业电子保单",
|
|
|
|
|
+ filename: this.orderInfo.sypolicyno,
|
|
|
|
|
+ fileurl: res1.data.syxPolicyUrl,
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ if (res1.data.jyxInfoList.length > 0) {
|
|
|
|
|
+ res1.data.jyxInfoList.map(ele => {
|
|
|
|
|
+ this.policyList.push({
|
|
|
|
|
+ fileTitle: "驾意险保单",
|
|
|
|
|
+ filename: ele.application,
|
|
|
|
|
+ fileurl: ele.jyx_policy_url,
|
|
|
|
|
+ });
|
|
|
|
|
+ return ele;
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ break;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|
|
@@ -2295,7 +2348,8 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
async externalOrder() {
|
|
async externalOrder() {
|
|
|
- let res = await this.$http.get('/api/externalOrder/getPolicyPrint?subOrderNo=' + this.companyId);
|
|
|
|
|
|
|
+ let res = await this.$http.get('/api/externalOrder/getPolicyPrint?subOrderNo=' + this
|
|
|
|
|
+ .companyId);
|
|
|
this.policyList = [];
|
|
this.policyList = [];
|
|
|
this.policyList1 = [];
|
|
this.policyList1 = [];
|
|
|
if (res.data.jqPolicy) {
|
|
if (res.data.jqPolicy) {
|
|
@@ -2371,12 +2425,13 @@
|
|
|
}
|
|
}
|
|
|
if (this.orderInfo.crossInsurance.length > 0) {
|
|
if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
this.orderInfo.crossInsurance.map(async ele => {
|
|
this.orderInfo.crossInsurance.map(async ele => {
|
|
|
- let res = await this.$http.post('/order/zijin/getPolicyPrint', {
|
|
|
|
|
- companyId: this.companyId,
|
|
|
|
|
- policyNumber: ele.policyNumber,
|
|
|
|
|
- riskCode: "0513",
|
|
|
|
|
- type: '2', //2:保单
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ let res = await this.$http.post(
|
|
|
|
|
+ '/order/zijin/getPolicyPrint', {
|
|
|
|
|
+ companyId: this.companyId,
|
|
|
|
|
+ policyNumber: ele.policyNumber,
|
|
|
|
|
+ riskCode: "0513",
|
|
|
|
|
+ type: '2', //2:保单
|
|
|
|
|
+ });
|
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|
|
|
this.policyList.push({
|
|
this.policyList.push({
|
|
|
fileTitle: "驾意险保单",
|
|
fileTitle: "驾意险保单",
|
|
@@ -2437,12 +2492,13 @@
|
|
|
}
|
|
}
|
|
|
if (this.orderInfo.crossInsurance.length > 0) {
|
|
if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
this.orderInfo.crossInsurance.map(async ele => {
|
|
this.orderInfo.crossInsurance.map(async ele => {
|
|
|
- let res = await this.$http.post('/api/dajia/obtainWarranty', {
|
|
|
|
|
- companyId: this.companyId,
|
|
|
|
|
- policyNumber: ele.policyNumber,
|
|
|
|
|
- riskCode: "0513",
|
|
|
|
|
- type: '2', //2:保单
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ let res = await this.$http.post(
|
|
|
|
|
+ '/api/dajia/obtainWarranty', {
|
|
|
|
|
+ companyId: this.companyId,
|
|
|
|
|
+ policyNumber: ele.policyNumber,
|
|
|
|
|
+ riskCode: "0513",
|
|
|
|
|
+ type: '2', //2:保单
|
|
|
|
|
+ });
|
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|
|
|
this.policyList.push({
|
|
this.policyList.push({
|
|
|
fileTitle: "驾意险保单",
|
|
fileTitle: "驾意险保单",
|
|
@@ -2458,7 +2514,8 @@
|
|
|
let params = {
|
|
let params = {
|
|
|
subOrderNo: this.companyId,
|
|
subOrderNo: this.companyId,
|
|
|
};
|
|
};
|
|
|
- let res1 = await this.$http.post('/insurance/crawler/getPolicyPrint', params);
|
|
|
|
|
|
|
+ let res1 = await this.$http.post(
|
|
|
|
|
+ '/insurance/crawler/getPolicyPrint', params);
|
|
|
if (res1.code == '200') {
|
|
if (res1.code == '200') {
|
|
|
this.policyList = [];
|
|
this.policyList = [];
|
|
|
this.policyList1 = [];
|
|
this.policyList1 = [];
|
|
@@ -2501,10 +2558,11 @@
|
|
|
switch (apiType) {
|
|
switch (apiType) {
|
|
|
case 1:
|
|
case 1:
|
|
|
if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
|
|
if (this.orderInfo.jqpolicyno || this.orderInfo.sypolicyno) {
|
|
|
- let res = await this.$http.post('/order/huaTaiApi/getPolicyPrint', {
|
|
|
|
|
- companyId: this.companyId,
|
|
|
|
|
- riskCode: "0507",
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ let res = await this.$http.post(
|
|
|
|
|
+ '/order/huaTaiApi/getPolicyPrint', {
|
|
|
|
|
+ companyId: this.companyId,
|
|
|
|
|
+ riskCode: "0507",
|
|
|
|
|
+ });
|
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|
|
|
this.policyList = [];
|
|
this.policyList = [];
|
|
|
this.policyList1 = [];
|
|
this.policyList1 = [];
|
|
@@ -2533,7 +2591,8 @@
|
|
|
let params = {
|
|
let params = {
|
|
|
subOrderNo: this.companyId,
|
|
subOrderNo: this.companyId,
|
|
|
};
|
|
};
|
|
|
- let res1 = await this.$http.post('/insurance/crawler/getPolicyPrint', params);
|
|
|
|
|
|
|
+ let res1 = await this.$http.post(
|
|
|
|
|
+ '/insurance/crawler/getPolicyPrint', params);
|
|
|
if (res1.code == '200') {
|
|
if (res1.code == '200') {
|
|
|
this.policyList = [];
|
|
this.policyList = [];
|
|
|
this.policyList1 = [];
|
|
this.policyList1 = [];
|
|
@@ -2615,12 +2674,13 @@
|
|
|
}
|
|
}
|
|
|
if (this.orderInfo.crossInsurance.length > 0) {
|
|
if (this.orderInfo.crossInsurance.length > 0) {
|
|
|
this.orderInfo.crossInsurance.map(async ele => {
|
|
this.orderInfo.crossInsurance.map(async ele => {
|
|
|
- let res = await this.$http.post('/api/guoRen/policyPrint', {
|
|
|
|
|
- companyId: this.companyId,
|
|
|
|
|
- policyNumber: ele.policyNumber,
|
|
|
|
|
- riskCode: "0513",
|
|
|
|
|
- type: '2', //2:保单
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ let res = await this.$http.post(
|
|
|
|
|
+ '/api/guoRen/policyPrint', {
|
|
|
|
|
+ companyId: this.companyId,
|
|
|
|
|
+ policyNumber: ele.policyNumber,
|
|
|
|
|
+ riskCode: "0513",
|
|
|
|
|
+ type: '2', //2:保单
|
|
|
|
|
+ });
|
|
|
if (res.code == '200') {
|
|
if (res.code == '200') {
|
|
|
this.policyList.push({
|
|
this.policyList.push({
|
|
|
fileTitle: "驾意险保单",
|
|
fileTitle: "驾意险保单",
|
|
@@ -2640,12 +2700,14 @@
|
|
|
let index = file.lastIndexOf("\/")
|
|
let index = file.lastIndexOf("\/")
|
|
|
let licensename = file.substring(index + 1, file.length)
|
|
let licensename = file.substring(index + 1, file.length)
|
|
|
let dtask = plus.downloader.createDownload(file, {
|
|
let dtask = plus.downloader.createDownload(file, {
|
|
|
- filename: "_downloads/" + this.name + '-' + this.insuredPersonInfo.name + '-' + licensename
|
|
|
|
|
|
|
+ filename: "_downloads/" + this.name + '-' + this
|
|
|
|
|
+ .insuredPersonInfo.name + '-' + licensename
|
|
|
}, function(d, status) {
|
|
}, function(d, status) {
|
|
|
if (status == 200) {
|
|
if (status == 200) {
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
|
//下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
|
|
//下载成功,d.filename是文件在保存在本地的相对路径,使用下面的API可转为平台绝对路径
|
|
|
- let fileSaveUrl = plus.io.convertLocalFileSystemURL(d.filename);
|
|
|
|
|
|
|
+ let fileSaveUrl = plus.io.convertLocalFileSystemURL(d
|
|
|
|
|
+ .filename);
|
|
|
plus.runtime.openFile(d.filename); //选择软件打开文件
|
|
plus.runtime.openFile(d.filename); //选择软件打开文件
|
|
|
} else {
|
|
} else {
|
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
@@ -2687,7 +2749,8 @@
|
|
|
success: async (res) => {
|
|
success: async (res) => {
|
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
let param = {
|
|
let param = {
|
|
|
- "auditid": this.userInfo.sysUser.id, //核保人会员号
|
|
|
|
|
|
|
+ "auditid": this.userInfo.sysUser
|
|
|
|
|
+ .id, //核保人会员号
|
|
|
"auditopinion": '', //核保意见
|
|
"auditopinion": '', //核保意见
|
|
|
"jqapplyno": "", //交强险投保单号
|
|
"jqapplyno": "", //交强险投保单号
|
|
|
"jqappoint": "", //交强特别约定
|
|
"jqappoint": "", //交强特别约定
|
|
@@ -2698,7 +2761,8 @@
|
|
|
"syappoint": "", //商业险特别约定
|
|
"syappoint": "", //商业险特别约定
|
|
|
"sypolicyno": "" //商业保单号
|
|
"sypolicyno": "" //商业保单号
|
|
|
}
|
|
}
|
|
|
- let res = await this.$http.post('/insOrder/saveAudit', param);
|
|
|
|
|
|
|
+ let res = await this.$http.post(
|
|
|
|
|
+ '/insOrder/saveAudit', param);
|
|
|
uni.showToast({
|
|
uni.showToast({
|
|
|
title: '撤销成功',
|
|
title: '撤销成功',
|
|
|
icon: "none",
|
|
icon: "none",
|