|
|
@@ -60,6 +60,7 @@
|
|
|
<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="uploadPolicy(scope.row)" /><br/>
|
|
|
<kt-button label="保单Pdf详情" type="text" @click="cpolicy(scope.row)" />
|
|
|
<kt-button label="重新生成保单" type="text" @click="regenerate(scope.row)" />
|
|
|
<kt-button label="保单时间更新" type="text" @click="updateDate(scope.row)" />
|
|
|
@@ -114,6 +115,51 @@
|
|
|
</el-table>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <el-drawer
|
|
|
+ size="100%"
|
|
|
+ :visible.sync="uploadPolicyDrawer"
|
|
|
+ direction="rtl"
|
|
|
+ title="上传保单"
|
|
|
+ >
|
|
|
+ <el-form :model="uploadPolicyForm" label-width="80" style="padding: 0 24px">
|
|
|
+ <el-form-item prop="uploadPolicyForm.a" label="交强保单">
|
|
|
+ <el-upload
|
|
|
+ action="#"
|
|
|
+ :auto-upload="false"
|
|
|
+ accept=".pdf"
|
|
|
+ :on-change="jqUpload">
|
|
|
+ <i class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
+ </el-upload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="uploadPolicyForm.a" label="交强标志">
|
|
|
+ <el-upload
|
|
|
+ action="#"
|
|
|
+ :auto-upload="false"
|
|
|
+ accept=".pdf"
|
|
|
+ :on-change="jqSignUpload">
|
|
|
+ <i class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
+ </el-upload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="uploadPolicyForm.a" label="商业保单">
|
|
|
+ <el-upload
|
|
|
+ action="#"
|
|
|
+ :auto-upload="false"
|
|
|
+ accept=".pdf"
|
|
|
+ :on-change="syUpload">
|
|
|
+ <i class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
+ </el-upload>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item prop="uploadPolicyForm.a" label="驾意保单">
|
|
|
+ <el-upload
|
|
|
+ action="#"
|
|
|
+ :auto-upload="false"
|
|
|
+ accept=".pdf"
|
|
|
+ :on-change="jyUpload">
|
|
|
+ <i class="el-icon-plus avatar-uploader-icon"></i>
|
|
|
+ </el-upload>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </el-drawer>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -122,6 +168,7 @@ import retrievalForm from "@/components/Form/retrievalForm.vue";
|
|
|
import Cookies from "js-cookie";
|
|
|
import KtButton from "@/views/Core/KtButton";//按钮权限组件
|
|
|
import detailsDialog from "@/views/Core/components/detailsDialog.vue";
|
|
|
+import {uploadInsurancePolicy} from "../../../http/moudules/readPdf";
|
|
|
export default {
|
|
|
components: {
|
|
|
KtButton,
|
|
|
@@ -353,6 +400,11 @@ export default {
|
|
|
warrantObj: {
|
|
|
|
|
|
},
|
|
|
+ uploadPolicyDrawer: false, // 上传保单
|
|
|
+ uploadPolicyForm: {
|
|
|
+ a: ''
|
|
|
+ },
|
|
|
+ subOrderId: ''
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
@@ -583,6 +635,50 @@ export default {
|
|
|
this.cpolicyFlag =false;
|
|
|
this.warrantObj={};
|
|
|
},
|
|
|
+ uploadPolicy(row) {
|
|
|
+ this.uploadPolicyDrawer = true
|
|
|
+ this.subOrderId = row.subOrderId
|
|
|
+ },
|
|
|
+ jqUpload(file) {
|
|
|
+ let files = file.raw;
|
|
|
+ const params = new FormData(); // 声明formData数据类型
|
|
|
+ params.append("file", files);
|
|
|
+ params.append('subOrderId',this.subOrderId )
|
|
|
+ params.append('policyType','1' )
|
|
|
+ this.$api.readPdf.uploadInsurancePolicy(params).then((res) => {
|
|
|
+ console.log(123123, res.data)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ syUpload(file) {
|
|
|
+ let files = file.raw;
|
|
|
+ const params = new FormData(); // 声明formData数据类型
|
|
|
+ params.append("file", files);
|
|
|
+ params.append('subOrderId',this.subOrderId )
|
|
|
+ params.append('policyType','3' )
|
|
|
+ this.$api.readPdf.uploadInsurancePolicy(params).then((res) => {
|
|
|
+ console.log(123123, res.data)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ jyUpload(file) {
|
|
|
+ let files = file.raw;
|
|
|
+ const params = new FormData(); // 声明formData数据类型
|
|
|
+ params.append("file", files);
|
|
|
+ params.append('subOrderId',this.subOrderId )
|
|
|
+ params.append('policyType','2' )
|
|
|
+ this.$api.readPdf.uploadInsurancePolicy(params).then((res) => {
|
|
|
+ console.log(123123, res.data)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ jqSignUpload(file) {
|
|
|
+ let files = file.raw;
|
|
|
+ const params = new FormData(); // 声明formData数据类型
|
|
|
+ params.append("file", files);
|
|
|
+ params.append('subOrderId',this.subOrderId )
|
|
|
+ params.append('policyType','4' )
|
|
|
+ this.$api.readPdf.uploadInsurancePolicy(params).then((res) => {
|
|
|
+ console.log(123123, res.data)
|
|
|
+ })
|
|
|
+ },
|
|
|
cpolicy(row) {
|
|
|
this.cpolicyFlag =true;
|
|
|
this.$api.readPdf.readPdfUrlList(row.subOrderId).then((res) => {
|