|
|
@@ -0,0 +1,221 @@
|
|
|
+<template>
|
|
|
+ <!--布局容器-->
|
|
|
+ <div class="InvoicedAndSettled" style="width: 99%; margin-top: 0px">
|
|
|
+ <templateTable
|
|
|
+ :formList="formList"
|
|
|
+ :searchData.sync="searchData"
|
|
|
+ :tableConfig="tableConfig"
|
|
|
+ :data="tableData"
|
|
|
+ @getList="getList"
|
|
|
+ @handleSearchList="handleSearchList"
|
|
|
+ :pagination="pageData"
|
|
|
+ >
|
|
|
+ </templateTable>
|
|
|
+ <detailsDialog title="详情" ref="detailsDialog" :visible.sync="backupVisible" :before-close="handleClose" :orderInfo.sync="orderInfo" :Feepermissions="false"></detailsDialog>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+import templateTable from "@/components/TemplateTable/index.vue";
|
|
|
+import detailsDialog from "@/views/Core/components/detailsDialog.vue";
|
|
|
+import { mapState } from "vuex";
|
|
|
+
|
|
|
+export default {
|
|
|
+ name: "baosi",
|
|
|
+ components: { templateTable,detailsDialog},
|
|
|
+ created() {},
|
|
|
+ computed: {
|
|
|
+ ...mapState({
|
|
|
+ perms: (state) => state.user.perms,
|
|
|
+ }),
|
|
|
+ },
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ orderInfo: {
|
|
|
+ //选中的订单
|
|
|
+ ownerinfo: {},
|
|
|
+ carinfo: {},
|
|
|
+ applyinfo: {},
|
|
|
+ insureinfo: {},
|
|
|
+ kindinfo: [],
|
|
|
+ riskinfo: [],
|
|
|
+ ownerinfo: {},
|
|
|
+ orderCommissionVo: {},
|
|
|
+ extendInfo: {}
|
|
|
+ },
|
|
|
+ feeOrderNewVoList: {},
|
|
|
+ queryOrders:{},
|
|
|
+ fileList: [],
|
|
|
+ searchData: {},
|
|
|
+ formList: [
|
|
|
+ {
|
|
|
+ label: "订单号",
|
|
|
+ prop: "id",
|
|
|
+ type: "input",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "车牌号",
|
|
|
+ prop: "licenseno",
|
|
|
+ type: "input",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ tableConfig: {
|
|
|
+ columns: [
|
|
|
+ {
|
|
|
+ prop: "id",
|
|
|
+ label: "订单号",
|
|
|
+ type: "text",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "licenseno",
|
|
|
+ label: "车牌号",
|
|
|
+ type: "text",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "auditname",
|
|
|
+ label: "审核人",
|
|
|
+ type: "text",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "rejectinfo",
|
|
|
+ label: "驳回原因",
|
|
|
+ type: "text",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "jqpremium",
|
|
|
+ label: "交强保费",
|
|
|
+ type: "text",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "sypremium",
|
|
|
+ label: "商业保费",
|
|
|
+ type: "text",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "taxamount",
|
|
|
+ label: "车船税",
|
|
|
+ type: "text",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ prop: "sumpremium",
|
|
|
+ label: "保费合计",
|
|
|
+ type: "text",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ loading: true,
|
|
|
+ isPaginationShow: true,
|
|
|
+ optBtns: [
|
|
|
+ {
|
|
|
+ type: "primary",
|
|
|
+ label: "详情",
|
|
|
+ click: (row, index) => {
|
|
|
+ return this.haldNewDetail(row);
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ tableData: [],
|
|
|
+ pageData: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 20,
|
|
|
+ totalSize: 0
|
|
|
+ },
|
|
|
+ backupVisible: false,
|
|
|
+ };
|
|
|
+ },
|
|
|
+ created() {
|
|
|
+ this.getList();
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ // 查询
|
|
|
+ handleSearchList(data) {
|
|
|
+ this.getList(data);
|
|
|
+ },
|
|
|
+ //列表数据
|
|
|
+ getList(data) {
|
|
|
+ console.log(data)
|
|
|
+ this.tableConfig.loading = true;
|
|
|
+ this.$api.task.getAllRejectOrders({ ...this.pageData, ...data }).then((res) => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.tableData = res.data.records;
|
|
|
+ this.pageData.pageNum = res.data.current;
|
|
|
+ this.pageData.pageSize = res.data.size;
|
|
|
+ this.pageData.totalSize = res.data.total;
|
|
|
+ this.tableConfig.loading = false;
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.msg);
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handleClose() {
|
|
|
+ this.backupVisible = false;
|
|
|
+ },
|
|
|
+ haldNewDetail(row) {
|
|
|
+ let params = {
|
|
|
+ companyId: row.id
|
|
|
+ };
|
|
|
+ this.$api.letter.getByCompanyId(params).then(res => {
|
|
|
+ if (res.code == 200) {
|
|
|
+ this.licenseNo = res.data.licenseno; //车牌号
|
|
|
+ this.inscompany = res.data.inscompany; //保险公司
|
|
|
+ if (res.data.accidentInfo) {
|
|
|
+ res.data.accidentInfo.constructor === Object
|
|
|
+ ? [res.data.accidentInfo]
|
|
|
+ : res.data.accidentInfo;
|
|
|
+ }
|
|
|
+ Object.assign(this.orderInfo, res.data);
|
|
|
+ if (this.orderInfo.riskinfo && this.orderInfo.riskinfo.length > 0) {
|
|
|
+ for (let i = 0; i < this.orderInfo.riskinfo.length; i++) {
|
|
|
+ if (this.orderInfo.riskinfo[i].riskCode == "0510") {
|
|
|
+ for (let j = 0; j < this.orderInfo.kindinfo.length; j++) {
|
|
|
+ for (let m = 0; m < this.global.insureList.length; m++) {
|
|
|
+ if (
|
|
|
+ this.orderInfo.kindinfo[j].kindCode ==
|
|
|
+ this.global.insureList[m].kindCode
|
|
|
+ ) {
|
|
|
+ this.global.insureList[
|
|
|
+ m
|
|
|
+ ].coveragePremium = this.orderInfo.kindinfo[
|
|
|
+ j
|
|
|
+ ].coveragePremium;
|
|
|
+ if (this.orderInfo.kindinfo[j].kindCode == "B") {
|
|
|
+ this.global.insureList[9].amtList[0].value = this.orderInfo.kindinfo[
|
|
|
+ j
|
|
|
+ ].amount;
|
|
|
+ }
|
|
|
+ if (this.orderInfo.kindinfo[j].kindCode == "A") {
|
|
|
+ this.global.insureList[m].amount = "1";
|
|
|
+ } else if (this.global.insureList[m].kindCode == "D4") {
|
|
|
+ this.global.insureList[
|
|
|
+ m
|
|
|
+ ].amount = this.orderInfo.kindinfo[j].unitAmount;
|
|
|
+ } else if (
|
|
|
+ this.global.insureList[m].isMainRisk ||
|
|
|
+ this.global.insureList[m].kindCode == "BD" ||
|
|
|
+ this.global.insureList[m].kindCode == "L"
|
|
|
+ ) {
|
|
|
+ this.global.insureList[
|
|
|
+ m
|
|
|
+ ].amount = this.orderInfo.kindinfo[j].amount;
|
|
|
+ } else {
|
|
|
+ this.global.insureList[
|
|
|
+ m
|
|
|
+ ].amount = this.orderInfo.kindinfo[j].deductibleRate;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ this.$refs.detailsDialog.setBackupVisible(true);
|
|
|
+ } else {
|
|
|
+ this.$message.error("订单获取失败");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
+ }
|
|
|
+};
|
|
|
+</script>
|
|
|
+
|
|
|
+<style scoped lang="scss">
|
|
|
+</style>
|