From 2ba1c199ce3199a243f7735ef992babf80737d65 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期一, 01 四月 2024 09:05:44 +0800
Subject: [PATCH] mrshi

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

diff --git a/company/src/components/business/selectApplicationForm.vue b/company/src/components/business/selectApplicationForm.vue
new file mode 100644
index 0000000..e8c69a4
--- /dev/null
+++ b/company/src/components/business/selectApplicationForm.vue
@@ -0,0 +1,109 @@
+<template>
+    <GlobalWindow
+        :title="title"
+        width="100%"
+        :visible.sync="visible"
+        :confirm-working="isWorking"
+        @confirm="confirm"
+    >
+        <el-table
+            :data="list"
+            border
+            ref="table"
+            @selection-change="handleSelectionChange"
+            style="width: 100%">
+            <el-table-column
+                type="selection"
+                width="55">
+            </el-table-column>
+            <el-table-column label="搴忓彿" width="80px">
+                <template slot-scope="scope">
+                    <span>{{scope.$index + 1}}</span>
+                </template>
+            </el-table-column>
+            <el-table-column
+                prop="solutionName"
+                label="淇濋櫓鏂规">
+            </el-table-column>
+            <el-table-column
+                prop="bdCode"
+                label="淇濆崟鍙�">
+            </el-table-column>
+            <el-table-column
+                prop="pdCode"
+                label="鎵瑰崟鍙�">
+            </el-table-column>
+            <el-table-column
+                prop="duName"
+                label="娲鹃仯鍗曚綅">
+            </el-table-column>
+            <el-table-column
+                prop="worktypeName"
+                label="鎵�灞炲伐绉�">
+            </el-table-column>
+        </el-table>
+    </GlobalWindow>
+</template>
+
+<script>
+    import BaseOpera from '@/components/base/BaseOpera'
+    import GlobalWindow from '@/components/common/GlobalWindow'
+    import { fetchList } from '@/api/business/insuranceApply'
+    export default {
+        name: 'selectSolutions',
+        extends: BaseOpera,
+        components: { GlobalWindow },
+        data () {
+            return {
+                baseSolutionId: null,
+                list: [],
+                seleData: []
+            }
+        },
+        created () {
+            this.config({
+                api: '/business/dispatchUnit',
+                'field.id': 'id'
+            })
+        },
+        methods: {
+            open (title, id) {
+                this.list = []
+                this.baseSolutionId = id
+                this.title = title
+                this.visible = true
+                this.getList()
+            },
+            confirm() {
+                this.$emit('success', this.seleData[0])
+                this.visible = false
+            },
+            handleSelectionChange (rows) {
+                if (rows.length > 1) {
+                    this.$refs.table.clearSelection()
+                    this.$refs.table.toggleRowSelection(rows.pop())
+                }
+                this.seleData = rows
+                console.log(this.seleData)
+            },
+            getList() {
+                fetchList({
+                    capacity: 10,
+                    page: 1,
+                    model: {
+                        baseSolutionId: this.baseSolutionId,
+                        status: 23
+                    }
+                }).then(res => {
+                    this.list = res
+                })
+            }
+        }
+    }
+</script>
+
+<style lang="scss" scoped>
+    .el-checkbox::v-deep {
+        display: none;
+    }
+</style>

--
Gitblit v1.9.3