Blame view

admin-web-master/src/components/chakan/sam.vue 5.85 KB
90d96766   wesley88   1
1
2
3
4
  <template>
    <div>
      <div>
        <el-tabs v-model="xiangTab">
bdbe3660   wesley88   1
5
          <el-tab-pane label="策略信息" name="first">
90d96766   wesley88   1
6
7
8
9
10
11
            <div style="margin-top: 30px;" class="editcss">
              <TitleWithCircle title="基础信息" />
              <div style="padding: 20px;">
                <el-form :model="editbgid" ref="formInline" label-width="120px" class="demo-ruleForm">
                  <el-row :gutter="20">
                    <el-col :span="8">
bdbe3660   wesley88   1
12
13
                      <el-form-item label="策略名称" prop="policyName">
                        <div class="duiqi">{{editbgid.policyName  || '无'}}</div>
90d96766   wesley88   1
14
15
16
                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
bdbe3660   wesley88   1
17
18
                      <el-form-item label="适用资源" prop="applicableResources">
                        <div class="duiqi">{{editbgid.applicableResources  || '无'}}</div>
90d96766   wesley88   1
19
20
21
                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
bdbe3660   wesley88   1
22
23
                      <el-form-item label="是否出租" prop="isRental">
                        <div class="duiqi">{{editbgid.isRental=='0'?'自营':editbgid.isRental=='1'?'是':'无'}}</div>
90d96766   wesley88   1
24
25
26
27
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
523cfe19   wesley88   1
28
                    <!-- <el-col :span="8">
bdbe3660   wesley88   1
29
30
                      <el-form-item label="付款日" prop="payDay">
                        <div  class="duiqi">{{editbgid.payDay  || '无'}}</div>
90d96766   wesley88   1
31
                      </el-form-item>
523cfe19   wesley88   1
32
                    </el-col> -->
90d96766   wesley88   1
33
                    <el-col :span="8">
bdbe3660   wesley88   1
34
                      <el-form-item label="租金" prop="rentalPrice">
2210df30   wesley88   1
35
                        <div  class="duiqi">{{editbgid.rentalPrice?editbgid.rentalPrice+' 元':'无'}} <span v-if="editbgid.applicableResources == '商铺'">/m²</span></div>
90d96766   wesley88   1
36
37
38
                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
bdbe3660   wesley88   1
39
40
                      <el-form-item label="付款周期" prop="leaseTerm">
                        <div  class="duiqi">{{editbgid.leaseTerm  || '无'}}</div>
90d96766   wesley88   1
41
42
                      </el-form-item>
                    </el-col>
90d96766   wesley88   1
43
                    <el-col :span="8">
bdbe3660   wesley88   1
44
                      <el-form-item label="租赁时段" prop="contact">
90d96766   wesley88   1
45
46
47
                        <div  class="duiqi">{{editbgid.contact  || '无'}}</div>
                      </el-form-item>
                    </el-col>
523cfe19   wesley88   1
48
49
                  </el-row>
                  <el-row :gutter="20">
90d96766   wesley88   1
50
                    <el-col :span="8">
bdbe3660   wesley88   1
51
52
53
54
55
56
57
                      <el-form-item label="免租条件" prop="rentFreeCondition">
                        <div  class="duiqi">{{editbgid.rentFreeCondition  || '无'}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="免租期" prop="rentFreePeriod">
                        <div  class="duiqi">{{editbgid.rentFreePeriod  || '无'}}</div>
90d96766   wesley88   1
58
59
                      </el-form-item>
                    </el-col>
523cfe19   wesley88   1
60
                    <el-col :span="8"  v-if="editbgid.applicableResources == '商铺'">
bdbe3660   wesley88   1
61
62
63
64
65
66
67
68
                      <el-form-item label="经营类型" prop="businessType">
                        <div  class="duiqi" >{{editbgid.businessType  || '无'}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-form-item label="优惠政策" prop="preferentialPolicy">
                    <div  class="duiqi" v-if="editbgid.preferentialPolicy" v-html="editbgid.preferentialPolicy"></div>
                    <div class="duiqi" v-else>无</div>
90d96766   wesley88   1
69
                  </el-form-item>
bdbe3660   wesley88   1
70
71
72
                  <el-form-item label="其他说明" prop="otherDescription">
                    <div v-if="editbgid.otherDescription"  class="duiqi" v-html="editbgid.otherDescription"></div>
                    <div class="duiqi" v-else>无</div>
90d96766   wesley88   1
73
74
75
76
77
                  </el-form-item>
                </el-form>
              </div>
            </div>
          </el-tab-pane>
90d96766   wesley88   1
78
  
90d96766   wesley88   1
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
        </el-tabs>
      </div>
      <div>
        <el-button class="buttonHover"
          style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;margin-top: 20px;"
          @click="changetype">返回</el-button>
      </div>
    </div>
  </template>
  
  <script>
    import MapXian from "@/components/MapContainer/MapXian";
    import TitleWithCircle from '@/components/top/index';
    import {
      cereResourceStrategylist,
      cereBusinessPlan
    } from '@/api/newly';
    import newmap from "@/components/newmap/index";
    export default {
      components: {
        TitleWithCircle,
        newmap,
        MapXian
      },
      props: {
        leixing: {
          type: Boolean,
          default: true
        },
        editbgid: {
          type: Object,
          default: function() {
            return {};
          },
        },
      },
      data() {
        return {
          xiangTab: 'first',
          list: [],
          parentMessage: {},
          datalist: [],
          datalist1:[]
        }
      },
      created() {
        if (this.editbgid.id) {
          let c1 = {
            pageNumber: 0,
            pageSize: 10,
            resourcesId: 'cd' + this.editbgid.id
          }
          cereResourceStrategylist(c1).then(res => {
            console.error(res)
            this.datalist = res.data
          })
          cereBusinessPlan(c1).then(res => {
            console.error(res)
            this.datalist1 = res.data
          })
  
        }
        
      },
      computed: {
  
      },
      methods: {
        openfile(e) {
          if (e) {
            const fullUrl = e;
            try {
              window.open(fullUrl, '_blank'); // 在新标签页中打开文件
            } catch (error) {
              console.error('打开文件失败:', error);
            }
          } else {
            console.error('无文件可查看');
          }
        },
        changetype() {
          this.xiangTab = 'first'
          this.$emit('removeonaction', '1')
        },
      }
    }
  </script>
  <style>
    .el-form-item__label {
      color: #a2a2a2;
    }
  
    .greens {
      color: #3F9B6A;
    }
  </style>