From 541c8aa8d08e4bb758adad33167d1e84943cbfec Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 07 五月 2024 13:36:47 +0800
Subject: [PATCH] 提交一把

---
 company/src/components/business/OperaSolutionsDescWindow.vue |  247 ++++++++++++++++++++++++++++---------------------
 1 files changed, 140 insertions(+), 107 deletions(-)

diff --git a/company/src/components/business/OperaSolutionsDescWindow.vue b/company/src/components/business/OperaSolutionsDescWindow.vue
index 8404f01..21a010c 100644
--- a/company/src/components/business/OperaSolutionsDescWindow.vue
+++ b/company/src/components/business/OperaSolutionsDescWindow.vue
@@ -64,6 +64,27 @@
                     <div class="info_list_item_label">鎺ユ敹鏂囦欢閭锛�</div>
                     <div class="info_list_item_val">{{form.email}}</div>
                 </div>
+                <div class="info_list_item">
+                    <div class="info_list_item_label">鎵瑰鐢熸晥锛�</div>
+                    <div class="info_list_item_val">{{form.addValidDays||0}}澶�</div>
+                </div>
+                <div class="info_list_item">
+                    <div class="info_list_item_label">鎵瑰噺鐢熸晥锛�</div>
+                    <div class="info_list_item_val">{{form.delValidDays||0}}澶�</div>
+                </div>
+                <div class="info_list_item">
+                    <div class="info_list_item_label">鎵规敼鏀寔锛�</div>
+                    <div class="info_list_item_val">
+                      <span style="margin-right: 50px">鍔犱繚 <i  :class="form.canAdd ==1?'el-icon-circle-check':'el-icon-circle-close'" :style="form.canAdd ==1?'color:green;font-weight:bold':'color:red;font-weight:bold'"></i></span>
+                      <span  style="margin-right: 50px">鍑忎繚  <i   :class="form.canReduce ==1?'el-icon-circle-check':'el-icon-circle-close'" :style="form.canReduce ==1?'color:green;font-weight:bold':'color:red;font-weight:bold'"></i></span>
+                      <span>鏇存崲娲鹃仯鍗曚綅 <i   :class="form.canChangeUnit ==1?'el-icon-circle-check':'el-icon-circle-close'" :style="form.canChangeUnit ==1?'color:green;font-weight:bold':'color:red;font-weight:bold'"></i></span>
+                    </div>
+                </div>
+                <div class="info_list_item">
+                    <div class="info_list_item_label">鎵规敼浠呮敮鎸佹浛鎹細</div>
+                    <div class="info_list_item_val" v-if="form.delOnlyReplace == 1">鏄�</div>
+                    <div class="info_list_item_val" v-else>鍚�</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>
@@ -99,114 +120,126 @@
 </template>
 
 <script>
-    import BaseOpera from '@/components/base/BaseOpera'
-    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,
-        components: { GlobalWindow, OperaSolutionsWindow },
-        data () {
-            return {
-                // 琛ㄥ崟鏁版嵁
-                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: []
-                }
-            }
-        },
-        computed: {
-            ...mapState(['userInfo'])
-        },
-        created () {
-            this.config({
-                api: '/business/solutions',
-                'field.id': 'id'
-            })
-        },
-        methods: {
-            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]
-                    }
-                    this.getDetails()
-                })
-            },
-          openFile (url) {
-            setTimeout(() => {
-              window.open(url)
-            }, 500)
-          },
-            getDetails() {
-                solutionsId(this.form.id)
-                    .then(res => {
-                        for (const key in this.form) {
-                            this.form[key] = res[key]
-                        }
-                        this.form.worktypeIdList = res.worktypeList.map(item => {
-                            return {
-                                worktypeId: item.worktypeId
-                            }
-                        })
-                    })
-            },
-            callback() {
-                this.$emit('success')
-                this.visible = false
-            }
-        }
+import BaseOpera from '@/components/base/BaseOpera'
+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,
+  components: { GlobalWindow, OperaSolutionsWindow },
+  data () {
+    return {
+      // 琛ㄥ崟鏁版嵁
+      form: {
+        id: null,
+        name: '',
+        companyName: '',
+        insuranceId: '',
+        validType: 0,
+        type: 0,
+        minAge: '',
+        maxAge: '',
+        price: '',
+        timeUnit: '',
+        insureCycle: '',
+        shopName: '',
+        insureCycleUnit: '',
+        validTypeNum: '',
+        email: '',
+        canReduce: 0,
+        canChangeUnit: 0,
+        addValidDays: 0,
+        delValidDays: 0,
+        delOnlyReplace: 0,
+        canAdd: 0,
+        specialAgreement: '',
+        specialInfo: '',
+        ortherInfo: '',
+        insuranceName: '',
+        signKeyword: '',
+        worktypeList: [],
+        worktypeIdList: []
+      }
     }
+  },
+  computed: {
+    ...mapState(['userInfo'])
+  },
+  created () {
+    this.config({
+      api: '/business/solutions',
+      'field.id': 'id'
+    })
+  },
+  methods: {
+    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,
+        canReduce: 0,
+        canChangeUnit: 0,
+        addValidDays: 0,
+        delValidDays: 0,
+        delOnlyReplace: 0,
+        canAdd: 0,
+        insuranceName: '',
+        signKeyword: '',
+        worktypeList: [],
+        worktypeIdList: []
+      }
+
+      this.$nextTick(() => {
+        for (const key in this.form) {
+          this.form[key] = target[key]
+        }
+        this.getDetails()
+      })
+    },
+    openFile (url) {
+      setTimeout(() => {
+        window.open(url)
+      }, 500)
+    },
+    getDetails () {
+      solutionsId(this.form.id)
+        .then(res => {
+          for (const key in this.form) {
+            this.form[key] = res[key]
+          }
+          this.form.worktypeIdList = res.worktypeList.map(item => {
+            return {
+              worktypeId: item.worktypeId
+            }
+          })
+        })
+    },
+    callback () {
+      this.$emit('success')
+      this.visible = false
+    }
+  }
+}
 </script>
 
 <style lang="scss" scoped>

--
Gitblit v1.9.3