|
|
@@ -61,10 +61,12 @@
|
|
|
<el-table-column label="操作" align="center" min-width="170">
|
|
|
<template slot-scope="scope">
|
|
|
<kt-button label="保单时间更新" type="text"
|
|
|
- @click="updateOrder(scope.row)" />
|
|
|
+ @click="updateDate(scope.row)" />
|
|
|
<kt-button label="保单Pdf详情" type="text"
|
|
|
@click="cpolicy(scope.row)" />
|
|
|
- <kt-button label="重新生成保单" type="text" @click="trajectory(scope.row)" />
|
|
|
+ <kt-button label="重新生成保单" type="text" @click="regenerate(scope.row)" />
|
|
|
+ @click="cpolicy(scope.row)" />
|
|
|
+ <kt-button label="更新时间记录" type="text" @click="udapteOrderDateRecord(scope.row)" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -78,8 +80,8 @@
|
|
|
<el-dialog title="保单信息" ref="detailsDialog" width="500" height="500" :visible.sync="cpolicyFlag" :close-on-click-modal="false" @close="closeCpolicyDialog">
|
|
|
<div>
|
|
|
<el-row class="premium-style " :gutter="20">
|
|
|
- <el-col :span="12"><span>交强险保单号:</span>{{ warrantObj.jqPolicyNo }}</el-col>
|
|
|
- <el-col v-if="orderInfo.sypolicyno" :span="12"><span>商业险保单号:</span>{{ warrantObj.syPolicyNo }}</el-col>
|
|
|
+ <el-col v-if="warrantObj.jqPolicyNo" :span="12"><span>交强险保单号:</span>{{ warrantObj.jqPolicyNo }}</el-col>
|
|
|
+ <el-col v-if="warrantObj.syPolicyNo" :span="12"><span>商业险保单号:</span>{{ warrantObj.syPolicyNo }}</el-col>
|
|
|
<el-col :span="12" v-for="(oldfileItem, oldfileIndex) in warrantObj.oldfileList" :key="oldfileIndex">
|
|
|
<span>{{ oldfileItem.fileTitle }} :</span>{{ orderInfo.licenseno }}
|
|
|
<el-button style="margin-left:30px" type="text" @click="viewfile(oldfileItem)">下载
|
|
|
@@ -591,12 +593,48 @@ export default {
|
|
|
},
|
|
|
cpolicy(row) {
|
|
|
this.cpolicyFlag =true;
|
|
|
- this.$api.letter.readPdfUrlList(row.subOrderId).then((res) => {
|
|
|
+ this.$api.readPdf.readPdfUrlList(row.subOrderId).then((res) => {
|
|
|
console.log(res.data)
|
|
|
if (res.code == 200) {
|
|
|
console.log(res.data)
|
|
|
this.warrantObj =res.data;
|
|
|
- }
|
|
|
+ } else{
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //重新生成
|
|
|
+ regenerate(row) {
|
|
|
+ this.cpolicyFlag =true;
|
|
|
+ this.$api.readPdf.productOrderPdf(row.subOrderId).then((res) => {
|
|
|
+ console.log(res.data)
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.info(res.msg);
|
|
|
+ } else{
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //更新订单的签单和缴费时间
|
|
|
+ updateDate(row) {
|
|
|
+ this.cpolicyFlag =true;
|
|
|
+ this.$api.readPdf.productOrderPdf(row.subOrderId).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.info(res.msg);
|
|
|
+ } else{
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ //更新记录
|
|
|
+ udapteOrderDateRecord(row) {
|
|
|
+ this.cpolicyFlag =true;
|
|
|
+ this.$api.readPdf.udapteOrderDateRecord(row.subOrderId).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.info(res.data);
|
|
|
+ } else{
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
// 设置每页条数
|
|
|
@@ -637,7 +675,7 @@ export default {
|
|
|
//数据
|
|
|
findPage() {
|
|
|
this.loading = true;
|
|
|
- this.$api.task.queryPageOrder(this.pageRequest).then((res) => {
|
|
|
+ this.$api.readPdf.queryPageOrder(this.pageRequest).then((res) => {
|
|
|
if (res.code == "200") {
|
|
|
this.loading = false;
|
|
|
this.pageResult = res.data.content;
|
|
|
@@ -688,6 +726,13 @@ export default {
|
|
|
})
|
|
|
.catch((error) => { });
|
|
|
},
|
|
|
+ saveAs(blob, filename) {
|
|
|
+ var link = document.createElement("a");
|
|
|
+ link.href = window.URL.createObjectURL(blob);
|
|
|
+ link.target = "_ blank";
|
|
|
+ link.download = filename;
|
|
|
+ link.click();
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|