From 02bc3bfe47e3d5311a0bb041c94e70a34b1ca73c Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期二, 09 四月 2024 09:03:01 +0800
Subject: [PATCH] git ch

---
 company/src/components/business/OperaSolutionsDescWindow.vue |   78 ++++++++++++++++++++++++++++++---------
 1 files changed, 60 insertions(+), 18 deletions(-)

diff --git a/company/src/components/business/OperaSolutionsDescWindow.vue b/company/src/components/business/OperaSolutionsDescWindow.vue
index adb5dfd..8404f01 100644
--- a/company/src/components/business/OperaSolutionsDescWindow.vue
+++ b/company/src/components/business/OperaSolutionsDescWindow.vue
@@ -1,8 +1,9 @@
 <template>
     <GlobalWindow
         :title="title"
-        width="50%"
-        submitText="淇敼"
+        width="70%"
+        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,16 +57,17 @@
                 </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>
                 </div>
+              <div class="info_list_item" style="width: 100%" v-if="form.type==1">
+                <div class="info_list_item_label">鏂规纭涔︼細</div>
+                <div class="info_list_item_val" ><a v-if="form.fanganFile && form.fanganFile.fileurlFull" style="cursor: pointer;color: #2E68EC" title="鐐瑰嚮鏌ョ湅" @click="openFile(form.fanganFile.fileurlFull)">{{ form.fanganFile.name || '鐐瑰嚮鏌ョ湅' }}</a></div>
+              </div>
             </div>
             <el-table
                 :data="form.worktypeList"
@@ -77,15 +84,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 +103,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 +123,9 @@
                     price: '',
                     timeUnit: '',
                     insureCycle: '',
+                    shopName:'',
                     insureCycleUnit: '',
+                    validTypeNum: '',
                     email: '',
                     specialAgreement: '',
                     specialInfo: '',
@@ -129,6 +137,9 @@
                 }
             }
         },
+        computed: {
+            ...mapState(['userInfo'])
+        },
         created () {
             this.config({
                 api: '/business/solutions',
@@ -139,6 +150,32 @@
             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: '',
+                    fanganFile:null,
+                    insuranceName: '',
+                    signKeyword: '',
+                    worktypeList: [],
+                    worktypeIdList: []
+              }
+
                 this.$nextTick(() => {
                     for (const key in this.form) {
                         this.form[key] = target[key]
@@ -146,6 +183,11 @@
                     this.getDetails()
                 })
             },
+          openFile (url) {
+            setTimeout(() => {
+              window.open(url)
+            }, 500)
+          },
             getDetails() {
                 solutionsId(this.form.id)
                     .then(res => {
@@ -215,7 +257,7 @@
                 align-items: start;
                 margin-bottom: 20px;
                 .info_list_item_label {
-                    width: 130px;
+
                     flex-shrink: 0;
                 }
                 .info_list_item_val {

--
Gitblit v1.9.3