|
|
@@ -60,13 +60,10 @@
|
|
|
<el-table-column prop="payDate" label="支付时间" align="center"></el-table-column>
|
|
|
<el-table-column label="操作" align="center" min-width="170">
|
|
|
<template slot-scope="scope">
|
|
|
- <kt-button label="保单时间更新" type="text"
|
|
|
- @click="updateDate(scope.row)" />
|
|
|
- <kt-button label="保单Pdf详情" type="text"
|
|
|
- @click="cpolicy(scope.row)" />
|
|
|
+ <kt-button label="保单Pdf详情" type="text" @click="cpolicy(scope.row)" />
|
|
|
<kt-button label="重新生成保单" type="text" @click="regenerate(scope.row)" />
|
|
|
- @click="cpolicy(scope.row)" />
|
|
|
- <kt-button label="更新时间记录" type="text" @click="udapteOrderDateRecord(scope.row)" />
|
|
|
+ <kt-button label="保单时间更新" type="text" @click="updateDate(scope.row)" />
|
|
|
+ <kt-button label="更新时间记录" type="text" @click="udapteOrderDateRecord(scope.row)" />
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
|
@@ -103,6 +100,20 @@
|
|
|
</el-row>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <!-- 跟新记录 -->
|
|
|
+ <el-dialog title="时间更新记录" ref="detailsUpdateDialog" width="500" height="500" :visible.sync="updateFlag" :close-on-click-modal="false" @close="closeUpdeteDialog">
|
|
|
+ <div>
|
|
|
+ <el-table :size="overSize" ref="productTable" :data="updateDateRecord" height="500" highlight-current-row stripe
|
|
|
+ :header-cell-style="{ background: '#F2F7FC', fontWeight: '700',color: '#606266',}">
|
|
|
+ <el-table-column prop="subOrderNo" label="子订单号" align="center" width="180"></el-table-column>
|
|
|
+ <el-table-column prop="createTime" label="创建时间" align="center" width="150"></el-table-column>
|
|
|
+ <el-table-column prop="oldPayDate" label="旧缴费时间" align="center" width="150"></el-table-column>
|
|
|
+ <el-table-column prop="oldSignTime" label="旧签单时间" align="center" width="150"></el-table-column>
|
|
|
+ <el-table-column prop="newPayDate" label="新缴费时间" align="center" width="150"></el-table-column>
|
|
|
+ <el-table-column prop="newSignTime" label="新签单时间" align="center" width="150"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -119,6 +130,8 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ updateDateRecord:[],
|
|
|
+ updateFlag:false,
|
|
|
orderInfo:{},
|
|
|
cpolicyFlag:false,
|
|
|
isrejection: false,
|
|
|
@@ -177,13 +190,6 @@ export default {
|
|
|
type: 'select',
|
|
|
options: []
|
|
|
},
|
|
|
-
|
|
|
-
|
|
|
- // {
|
|
|
- // name: 'taskNo',
|
|
|
- // label: '任务池号',
|
|
|
- // type: 'input',
|
|
|
- // },
|
|
|
{
|
|
|
name: 'orderNo',
|
|
|
label: '订单号',
|
|
|
@@ -378,20 +384,6 @@ export default {
|
|
|
window.removeEventListener('resize', this.getDimensions);
|
|
|
},
|
|
|
methods: {
|
|
|
- auditstatusCap(val) {
|
|
|
- if (val == "0") {
|
|
|
- return "未审核";
|
|
|
- }
|
|
|
- if (val == "1") {
|
|
|
- return "审核通过";
|
|
|
- }
|
|
|
- if (val == "2") {
|
|
|
- return "审核驳回";
|
|
|
- }
|
|
|
- if (val == "3") {
|
|
|
- return "已承保";
|
|
|
- }
|
|
|
- },
|
|
|
//获取机构数据
|
|
|
areaqueryList(level, parentId, filed) {
|
|
|
this.$api.task.queryListByParentId(level, parentId).then((res) => {
|
|
|
@@ -605,20 +597,31 @@ export default {
|
|
|
},
|
|
|
//重新生成
|
|
|
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);
|
|
|
- }
|
|
|
- });
|
|
|
+ this.$confirm("确定要重新生成吗?", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "warning",
|
|
|
+ })
|
|
|
+ .then(() => {
|
|
|
+ this.$api.readPdf.productOrderPdf(row.subOrderId).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.$message.info("重新生成成功");
|
|
|
+ } else{
|
|
|
+ this.$message.error("重新生成失败");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ })
|
|
|
+ .catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: "info",
|
|
|
+ message: "取消",
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
},
|
|
|
//更新订单的签单和缴费时间
|
|
|
updateDate(row) {
|
|
|
- this.cpolicyFlag =true;
|
|
|
- this.$api.readPdf.productOrderPdf(row.subOrderId).then((res) => {
|
|
|
+ this.$api.readPdf.updateOrderDate(row.subOrderId).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.$message.info(res.msg);
|
|
|
} else{
|
|
|
@@ -628,10 +631,10 @@ export default {
|
|
|
},
|
|
|
//更新记录
|
|
|
udapteOrderDateRecord(row) {
|
|
|
- this.cpolicyFlag =true;
|
|
|
- this.$api.readPdf.udapteOrderDateRecord(row.subOrderId).then((res) => {
|
|
|
+ this.updateFlag =true;
|
|
|
+ this.$api.readPdf.updateOrderDateRecord(row.subOrderId).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
- this.$message.info(res.data);
|
|
|
+ this.updateDateRecord =res.data;
|
|
|
} else{
|
|
|
this.$message.error(res.msg);
|
|
|
}
|
|
|
@@ -733,6 +736,10 @@ export default {
|
|
|
link.download = filename;
|
|
|
link.click();
|
|
|
},
|
|
|
+ //关闭更新时间记录
|
|
|
+ closeUpdeteDialog(){
|
|
|
+ this.updateFlag = flase;
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|