nidapeng
2024-04-02 fe3fd82f31b4fb43f6b207715a443e96d0442b26
company/src/components/business/OperaSolutionsDescWindow.vue
@@ -2,7 +2,8 @@
    <GlobalWindow
        :title="title"
        width="50%"
        submitText="修改"
        text="修改"
        :withFooter="userInfo.type !== 1"
        :visible.sync="visible"
        :confirm-working="isWorking"
        @confirm="$refs.operaSolutionsWindow.open('编辑方案', form)"
@@ -21,13 +22,18 @@
                    <div class="info_list_item_label">承保公司:</div>
                    <div class="info_list_item_val">{{form.companyName}}</div>
                </div>
              <div class="info_list_item">
                <div class="info_list_item_label">投保类型:</div>
                <div class="info_list_item_val" v-if="form.type === 0 "> 直保</div>
                <div class="info_list_item_val" v-if="form.type === 1">委托投保</div>
              </div>
              <div class="info_list_item" v-if="form.type === 1">
                <div class="info_list_item_label">委托商户:</div>
                <div class="info_list_item_val" > {{form.shopName}}</div>
              </div>
                <div class="info_list_item">
                    <div class="info_list_item_label">投保年龄:</div>
                    <div class="info_list_item_val">{{form.minAge}}至{{form.maxAge}}</div>
                </div>
                <div class="info_list_item">
                    <div class="info_list_item_label">投保类型:</div>
                    <div class="info_list_item_val">平台投保</div>
                </div>
                <div class="info_list_item">
                    <div class="info_list_item_label">保险费用:</div>
@@ -51,12 +57,9 @@
                </div>
                <div class="info_list_item">
                    <div class="info_list_item_label">生效时间:</div>
                    <div class="info_list_item_val">{{form.validType === 0 ? '日后生效' : '次月生效'}}</div>
                    <div class="info_list_item_val">{{form.validType === 0 ? form.validTypeNum + '日后生效' : '次月生效'}}</div>
                </div>
                <div class="info_list_item">
                    <div class="info_list_item_label">投保类型:</div>
                    <div class="info_list_item_val">{{form.type === 0 ? '直保' : '委托投保'}}</div>
                </div>
                <div class="info_list_item">
                    <div class="info_list_item_label">接收文件邮箱:</div>
                    <div class="info_list_item_val">{{form.email}}</div>
@@ -77,15 +80,13 @@
                <el-table-column
                    prop="worktypeName"
                    align="center"
                    label="所属工种">
                    label="工种名称">
                </el-table-column>
            </el-table>
            <div class="info_agree">
                <div class="info_agree_label">保险声明:</div>
                <div class="info_agree_label">特别约定:</div>
                <div class="info_agree_val">
                    {{form.specialAgreement}}
                </div>
                <div class="info_agree_label">特别约定:{{form.specialAgreement}}</div>
                <div class="info_agree_label">特别说明:{{form.specialInfo}}</div>
                <div class="info_agree_label">其他说明:{{form.ortherInfo}}</div>
            </div>
        </div>
        <!-- 修改 -->
@@ -98,6 +99,7 @@
    import GlobalWindow from '@/components/common/GlobalWindow'
    import OperaSolutionsWindow from '@/components/business/OperaSolutionsWindow'
    import { solutionsId } from '@/api/business/solutions'
    import {mapState} from "vuex";
    export default {
        name: 'OperaSolutionsDescWindow',
        extends: BaseOpera,
@@ -117,7 +119,9 @@
                    price: '',
                    timeUnit: '',
                    insureCycle: '',
                    shopName:'',
                    insureCycleUnit: '',
                    validTypeNum: '',
                    email: '',
                    specialAgreement: '',
                    specialInfo: '',
@@ -129,6 +133,9 @@
                }
            }
        },
        computed: {
            ...mapState(['userInfo'])
        },
        created () {
            this.config({
                api: '/business/solutions',
@@ -139,6 +146,30 @@
            open (title, target) {
                this.title = title
                this.visible = true
              this.form = {
                    id: null,
                    name: '',
                    companyName: '',
                    insuranceId: '',
                    validType: 0,
                    type: 0,
                    minAge: '',
                    maxAge: '',
                    price: '',
                    timeUnit: '',
                    insureCycle: '',
                    shopName:'',
                    insureCycleUnit: '',
                    validTypeNum: '',
                    email: '',
                    specialAgreement: '',
                    specialInfo: '',
                    ortherInfo: '',
                    insuranceName: '',
                    signKeyword: '',
                    worktypeList: [],
                    worktypeIdList: []
              }
                this.$nextTick(() => {
                    for (const key in this.form) {
                        this.form[key] = target[key]
@@ -215,7 +246,7 @@
                align-items: start;
                margin-bottom: 20px;
                .info_list_item_label {
                    width: 130px;
                    flex-shrink: 0;
                }
                .info_list_item_val {