From 28de5d860e5983ea00c5b0b2287bf2617fbcf90d Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期二, 05 三月 2024 09:33:57 +0800
Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/yunyibao

---
 company/src/components/business/detailsPolicyholder.vue |  229 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 229 insertions(+), 0 deletions(-)

diff --git a/company/src/components/business/detailsPolicyholder.vue b/company/src/components/business/detailsPolicyholder.vue
new file mode 100644
index 0000000..3fe84cd
--- /dev/null
+++ b/company/src/components/business/detailsPolicyholder.vue
@@ -0,0 +1,229 @@
+<template>
+    <GlobalWindow
+        :title="title"
+        width="100%"
+        :visible.sync="visible"
+        :confirm-working="isWorking"
+        @confirm="confirm"
+    >
+        <div class="box">
+            <div class="top">
+                {{title}}
+            </div>
+            <div class="box_table">
+                <div class="box_table_head">
+                    <div class="box_table_head_item">鎶曚繚浼佷笟</div>
+                    <div class="box_table_head_item">淇濋櫓鏂规</div>
+                    <div class="box_table_head_item">淇濋櫓鐢熸晥璧锋湡</div>
+                    <div class="box_table_head_item">淇濋櫓鐢熸晥姝㈡湡</div>
+                    <div class="box_table_head_item">鎶曚繚浜烘暟</div>
+                    <div class="box_table_head_item">鎬昏垂鐢�(鍏�)</div>
+                </div>
+                <div class="box_table_content "  >
+                    <div class="box_table_content_item box_table_content_header">{{ model.companyName }}</div>
+                    <div class="box_table_content_item box_table_content_header">{{ model.solutionName }}</div>
+                    <div class="box_table_content_item box_table_content_header">{{ model.applyStartTime }}</div>
+                    <div class="box_table_content_item box_table_content_header">{{ model.applyEndTime }}</div>
+                    <div class="box_table_content_item box_table_content_header">{{ model.insureNum }}</div>
+                    <div class="box_table_content_item box_table_content_header">{{model.totalPrice}}</div>
+                </div>
+            </div>
+            <div class="box_table" v-if="model">
+                <div class="box_table_head">
+                    <div class="box_table_head_item">搴忓彿</div>
+                    <div class="box_table_head_item">鍛樺伐濮撳悕</div>
+                    <div class="box_table_head_item">韬唤璇佸彿</div>
+                    <div class="box_table_head_item">鎬у埆</div>
+                    <div class="box_table_head_item">娲鹃仯鍗曚綅</div>
+                    <div class="box_table_head_item">鎵�灞炲伐绉�</div>
+                </div>
+                <div class="box_table_content" v-for="(item, index) in model.detailList" :key="index">
+                    <div class="box_table_content_item">{{index + 1}}</div>
+                    <div class="box_table_content_item">{{ item.memberName }}</div>
+                    <div class="box_table_content_item">{{ item.idCard }}</div>
+                    <div class="box_table_content_item">{{ getGender(item.idCard) }}</div>
+                    <div class="box_table_content_item">{{ item.duName }}</div>
+                    <div class="box_table_content_item">{{ item.workTypeName}}</div>
+                </div>
+            </div>
+        </div>
+        <template v-slot:footer>
+            <el-button type="primary" @click="submit">纭畾</el-button>
+            <el-button @click="visible=false">鍙栨秷</el-button>
+        </template>
+    </GlobalWindow>
+</template>
+
+<script>
+    import BaseOpera from '@/components/base/BaseOpera'
+    import GlobalWindow from '@/components/common/GlobalWindow'
+    export default {
+        name: 'InsuranceDetails',
+        extends: BaseOpera,
+        components: { GlobalWindow },
+        data () {
+            return {
+                model:{}
+            }
+        },
+        methods: {
+            open(title, target){
+                this.title = title
+                this.visible = true
+                this.model = target
+            },
+            submit() {
+                this.$emit('success')
+                this.visible = false
+            },
+            getGender(idCardNumber) {
+                // 浣跨敤姝e垯琛ㄨ揪寮忔彁鍙栬韩浠借瘉鍙风爜鐨勭17浣嶆暟瀛�
+                const genderCode = idCardNumber.substr(-2);
+
+                if (genderCode % 2 === 0) {
+                    return '濂�';
+                } else {
+                    return '鐢�';
+                }
+            },
+        }
+    }
+</script>
+
+<style lang="scss" scoped>
+    .box {
+        width: 100%;
+        .top{
+            width: 100%;
+            align-items: center;
+            flex-wrap: wrap;
+            border-top: 1px solid #b4bbc5;
+            border-left: 1px solid #b4bbc5;
+            font-size: 14px;
+            font-weight: bold;
+            text-align: center;
+            padding: 15px;
+            box-sizing: border-box;
+        }
+        .box_header {
+            width: 100%;
+            display: flex;
+            align-items: center;
+            flex-wrap: wrap;
+            border-top: 1px solid #b4bbc5;
+            border-left: 1px solid #b4bbc5;
+            .box_header_item {
+                width: 50%;
+                height: 50px;
+                display: flex;
+                align-items: center;
+                border-right: 1px solid #b4bbc5;
+                border-bottom: 1px solid #b4bbc5;
+                box-sizing: border-box;
+                .box_header_item_label {
+                    flex: 1;
+                    height: 100%;
+                    display: flex;
+                    align-items: center;
+                    justify-content: center;
+                    font-size: 14px;
+                    color: black;
+                    background: #f2f2f2;
+                    border-right: 1px solid #b4bbc5;
+                }
+                .box_header_item_val {
+                    flex: 1;
+                    height: 100%;
+                    display: flex;
+                    align-items: center;
+                    justify-content: center;
+                    font-size: 14px;
+                    color: black;
+                }
+            }
+        }
+        .box_table {
+            width: 100%;
+            border-top: 1px solid #b4bbc5;
+            border-left: 1px solid #b4bbc5;
+            box-sizing: border-box;
+            .box_table_head {
+                width: 100%;
+                display: flex;
+                align-items: center;
+                .box_table_head_item {
+                    flex: 1;
+                    height: 50px;
+                    background: #f2f2f2;
+                    display: flex;
+                    align-items: center;
+                    justify-content: center;
+                    font-size: 14px;
+                    color: black;
+                    border-right: 1px solid #b4bbc5;
+                    border-bottom: 1px solid #b4bbc5;
+                    box-sizing: border-box;
+                    &:nth-child(1) {
+                        //flex: 0.5;
+                    }
+                }
+                .box_table_head_item5 {
+                    flex: 1;
+                    height: 50px;
+                    background: #f2f2f2;
+                    display: flex;
+                    align-items: center;
+                    justify-content: center;
+                    font-size: 14px;
+                    color: black;
+                    border-right: 1px solid #b4bbc5;
+                    border-bottom: 1px solid #b4bbc5;
+                    box-sizing: border-box;
+                    &:nth-child(2) {
+                        flex: 5;
+                    }
+                }
+                .box_form_item {
+                    flex: 1;
+                    height: 50px;
+                    background: #ffffff;
+                    display: flex;
+                    align-items: center;
+                    justify-content: center;
+                    font-size: 14px;
+                    color: black;
+                    border-right: 1px solid #b4bbc5;
+                    border-bottom: 1px solid #b4bbc5;
+                    box-sizing: border-box;
+                    &:nth-child(1) {
+                        //flex: 0.5;
+                    }
+                }
+            }
+            .box_table_content {
+                width: 100%;
+                display: flex;
+                align-items: center;
+                .box_table_content_header{
+                    border-bottom: 0px solid #b4bbc5 !important;
+                }
+                .box_table_content_item {
+                    flex: 1;
+                    height: 50px;
+                    background: #ffffff;
+                    display: flex;
+                    align-items: center;
+                    justify-content: center;
+                    font-size: 14px;
+                    color: black;
+                    border-right: 1px solid #b4bbc5;
+                    border-bottom: 1px solid #b4bbc5;
+                    box-sizing: border-box;
+                    &:nth-child(1) {
+                        // flex: 0.5;
+                    }
+                }
+            }
+        }
+    }
+</style>

--
Gitblit v1.9.3