Blame view

admin-web-master/src/views/detect/examine/index.vue 31.6 KB
2506ad54   wesley88   2
1
2
3
4
5
  <template>
    <div style="background-color:#f7f7f7;padding:10px 10px;">
      <div class="zhuti" v-if="onaction == '1'">
        <div style="height:58px;line-height:58px;">
          <div style="color:#0006"> <span>招商资源监测</span> <span style="padding:0 5px;">></span> <span
0c5d2ce8   wesley88   1
6
              style="color:#000000e6">资源发布审核</span></div>
2506ad54   wesley88   2
7
8
9
10
        </div>
        <!-- 线上 -->
        <div>
          <!-- 搜索 -->
a182f238   wesley88   1
11
12
13
14
15
16
17
          <div class="formSearch">
            <el-form :inline="true">
              <el-form-item label="资源名称" prop="name">
                <el-input v-model="name" placeholder="请输入" maxlength="50"></el-input>
              </el-form-item>
              <el-form-item label="策略名称" prop="clName">
                <el-input v-model="clName" placeholder="请输入" maxlength="50"></el-input>
2506ad54   wesley88   2
18
              </el-form-item>
a182f238   wesley88   1
19
20
              <el-form-item label="审核状态" prop="publishStatus">
                <el-select v-model="publishStatus" placeholder="请选择"
2506ad54   wesley88   2
21
                  style="width: 168px;margin-right: 15px">
a182f238   wesley88   1
22
                  <el-option label="待审核" value="3"></el-option>
2506ad54   wesley88   2
23
24
25
26
27
28
29
30
31
32
33
                </el-select>
              </el-form-item>
            </el-form>
  
            <div>
              <el-button @click="onSubmit" style="background-color: #3F9B6A;color: #fff">查询
              </el-button>
              <el-button @click="resetting" class="buttonHover"
                style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">重置
              </el-button>
            </div>
a182f238   wesley88   1
34
35
          </div>
          <div style="margin-bottom: 20px;">
2506ad54   wesley88   2
36
37
38
            <div style="display: flex;font-size: 14px">
              <div style="margin-right: 25px;cursor: pointer;" @click="chenge('1')" :class="ontype=='1'?'chengeXia':''">商铺
              </div>
a182f238   wesley88   1
39
              <div style="margin-right: 25px;cursor: pointer;" @click="chenge('2')" :class="ontype=='2'?'chengeXia':''">
2506ad54   wesley88   2
40
41
                广告位</div>
              <div style="margin-right: 25px;cursor: pointer;" @click="chenge('3')" :class="ontype=='3'?'chengeXia':''">场地
a182f238   wesley88   1
42
              </div>
2506ad54   wesley88   2
43
44
45
            </div>
          </div>
          <!-- 表格 -->
0c5d2ce8   wesley88   1
46
          <!--  -->
a182f238   wesley88   1
47
          <el-table  v-if="ontype=='1'"  :span-method="objectSpanMethod" :data="tableData"
2506ad54   wesley88   2
48
            :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
0c5d2ce8   wesley88   1
49
            <el-table-column label="商铺名称" prop="shopName" show-overflow-tooltip>
2506ad54   wesley88   2
50
              <template slot-scope="scope">
0c5d2ce8   wesley88   1
51
                {{scope.row.cereBasicInformationShop.shopName}}
2506ad54   wesley88   2
52
53
              </template>
            </el-table-column>
2506ad54   wesley88   2
54
            <el-table-column prop="detailedLocation" label="详细地址" show-overflow-tooltip>
0c5d2ce8   wesley88   1
55
56
57
              <template slot-scope="scope">
                {{scope.row.cereBasicInformationShop.detailedLocation}}
              </template>
2506ad54   wesley88   2
58
59
            </el-table-column>
            <el-table-column label="实际使用面积" prop="actualUsableArea" show-overflow-tooltip>
0c5d2ce8   wesley88   1
60
61
62
63
64
65
66
67
              <template slot-scope="scope">
                {{scope.row.cereBasicInformationShop.actualUsableArea}}
              </template>
            </el-table-column>
            <el-table-column label="策略名称" prop="policyName" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.shopinfo.policyName}}
              </template>
2506ad54   wesley88   2
68
            </el-table-column>
0c5d2ce8   wesley88   1
69
70
71
72
            <el-table-column label="租金/周期" prop="rentalPrice" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.shopinfo.rentalPrice}} /{{ scope.row.shopinfo.leaseTerm }}
              </template>
2506ad54   wesley88   2
73
            </el-table-column>
0c5d2ce8   wesley88   1
74
75
76
77
            <el-table-column label="付款日" prop="payDay" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.shopinfo.payDay}}
              </template>
2506ad54   wesley88   2
78
79
80
            </el-table-column>
            <el-table-column label="状态" prop="publishStatus" show-overflow-tooltip>
              <template slot-scope="scope">
a182f238   wesley88   1
81
                {{scope.row.cereBasicInformationShop.publishStatus=='0'?'待发布':scope.row.cereBasicInformationShop.publishStatus=='1'?'已发布':scope.row.cereBasicInformationShop.publishStatus=='2'?'空置中':scope.row.cereBasicInformationShop.publishStatus=='3'?'待审核':scope.row.cereBasicInformationShop.publishStatus=='4'?'驳回':'-'}}
2506ad54   wesley88   2
82
83
              </template>
            </el-table-column>
0c5d2ce8   wesley88   1
84
            <el-table-column label="操作" fixed="right">
2506ad54   wesley88   2
85
              <template slot-scope="scope">
98bc35a2   wesley88   1
86
87
88
                <div @click="details(scope.row.cereBasicInformationShop,'1')" class="tableBtn greens">查看</div>
                <div @click="details(scope.row.cereBasicInformationShop,'2')" class="tableBtn greens">审核</div>
                <!-- <div v-if="scope.row.cereBasicInformationShop.publishStatus=='3'" class="tableBtn greens" 
2d4e37fb   wesley88   1
89
90
                  @click="removeinfozz(scope.row.cereBasicInformationShop,'1','通过')">通过</div>
                <div v-if="scope.row.cereBasicInformationShop.publishStatus=='3'" class="tableBtn greens"
98bc35a2   wesley88   1
91
                  @click="removeinfozz(scope.row.cereBasicInformationShop,'4','驳回')">驳回</div> -->
2506ad54   wesley88   2
92
93
94
              </template>
            </el-table-column>
          </el-table>
a182f238   wesley88   1
95
          <el-table v-if="ontype=='2'" :span-method="objectSpanMethod"   :data="tableData"
2506ad54   wesley88   2
96
            :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
a182f238   wesley88   1
97
            <el-table-column label="广告位名称" prop="advertisingName" show-overflow-tooltip>
2506ad54   wesley88   2
98
              <template slot-scope="scope">
a182f238   wesley88   1
99
                {{scope.row.cereAdvertisingInformation.advertisingName}}
2506ad54   wesley88   2
100
101
              </template>
            </el-table-column>
a182f238   wesley88   1
102
103
104
105
            <el-table-column prop="advertisingType" label="广告位类型" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.cereAdvertisingInformation.advertisingType}}
              </template>
2506ad54   wesley88   2
106
            </el-table-column>
a182f238   wesley88   1
107
108
109
110
            <el-table-column label="所属端" prop="affiliation" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.cereAdvertisingInformation.affiliation}}
              </template>
2506ad54   wesley88   2
111
            </el-table-column>
a182f238   wesley88   1
112
113
114
115
            <el-table-column label="策略名称" prop="policyName" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.shopinfo.policyName}}
              </template>
2506ad54   wesley88   2
116
            </el-table-column>
a182f238   wesley88   1
117
            <el-table-column label="租金/周期" prop="rentalPrice" show-overflow-tooltip>
2506ad54   wesley88   2
118
              <template slot-scope="scope">
a182f238   wesley88   1
119
                {{scope.row.shopinfo.rentalPrice}} /{{ scope.row.shopinfo.leaseTerm }}
2506ad54   wesley88   2
120
              </template>
a182f238   wesley88   1
121
122
            </el-table-column>
            <el-table-column label="付款日" prop="payDay" show-overflow-tooltip>
2506ad54   wesley88   2
123
              <template slot-scope="scope">
a182f238   wesley88   1
124
                {{scope.row.shopinfo.payDay}}
2506ad54   wesley88   2
125
126
              </template>
            </el-table-column>
a182f238   wesley88   1
127
128
129
130
            <el-table-column label="状态" prop="publishStatus" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.cereAdvertisingInformation.publishStatus=='0'?'待发布':scope.row.cereAdvertisingInformation.publishStatus=='1'?'已发布':scope.row.cereAdvertisingInformation.publishStatus=='2'?'空置中':scope.row.cereAdvertisingInformation.publishStatus=='3'?'待审核':scope.row.cereAdvertisingInformation.publishStatus=='4'?'驳回':'-'}}
              </template>
2506ad54   wesley88   2
131
            </el-table-column>
a182f238   wesley88   1
132
133
          
            <el-table-column label="操作" fixed="right">
2506ad54   wesley88   2
134
              <template slot-scope="scope">
a182f238   wesley88   1
135
                <div @click="details(scope.row.cereAdvertisingInformation)" class="tableBtn greens">查看</div>
98bc35a2   wesley88   1
136
137
                <div @click="details(scope.row.cereAdvertisingInformation)" class="tableBtn greens">审核</div>
                <!-- <div v-if="scope.row.cereAdvertisingInformation.publishStatus=='3'" class="tableBtn greens" 
a182f238   wesley88   1
138
139
                  @click="removeinfozz(scope.row.cereAdvertisingInformation,'1','通过')">通过</div>
                <div v-if="scope.row.cereAdvertisingInformation.publishStatus=='3'" class="tableBtn greens"
98bc35a2   wesley88   1
140
                  @click="removeinfozz(scope.row.cereAdvertisingInformation,'4','驳回')">驳回</div> -->
2506ad54   wesley88   2
141
142
143
              </template>
            </el-table-column>
          </el-table>
a182f238   wesley88   1
144
          <el-table  v-if="ontype=='3'" :span-method="objectSpanMethod" :data="tableData"
2506ad54   wesley88   2
145
            :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
a182f238   wesley88   1
146
            <el-table-column label="场地名称" prop="venueName" show-overflow-tooltip>
2506ad54   wesley88   2
147
              <template slot-scope="scope">
a182f238   wesley88   1
148
                {{scope.row.cereBasicInformationVenue.venueName}}
2506ad54   wesley88   2
149
150
              </template>
            </el-table-column>
a182f238   wesley88   1
151
152
153
154
            <el-table-column prop="venueType" label="场地类型" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.cereBasicInformationVenue.venueType}}
              </template>
2506ad54   wesley88   2
155
            </el-table-column>
a182f238   wesley88   1
156
157
158
159
            <el-table-column label="实际使用面积" prop="actualUsableArea" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.cereBasicInformationVenue.actualUsableArea}}
              </template>
2506ad54   wesley88   2
160
            </el-table-column>
a182f238   wesley88   1
161
162
163
164
            <el-table-column label="策略名称" prop="policyName" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.shopinfo.policyName}}
              </template>
2506ad54   wesley88   2
165
            </el-table-column>
a182f238   wesley88   1
166
167
168
169
            <el-table-column label="租金/周期" prop="rentalPrice" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.shopinfo.rentalPrice}} /{{ scope.row.shopinfo.leaseTerm }}
              </template>
2506ad54   wesley88   2
170
            </el-table-column>
a182f238   wesley88   1
171
172
173
174
            <el-table-column label="付款日" prop="payDay" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.shopinfo.payDay}}
              </template>
2506ad54   wesley88   2
175
            </el-table-column>
a182f238   wesley88   1
176
            <el-table-column label="状态" prop="publishStatus" show-overflow-tooltip>
2506ad54   wesley88   2
177
              <template slot-scope="scope">
a182f238   wesley88   1
178
                {{scope.row.cereBasicInformationVenue.publishStatus=='0'?'待发布':scope.row.cereBasicInformationVenue.publishStatus=='1'?'已发布':scope.row.cereBasicInformationVenue.publishStatus=='2'?'空置中':scope.row.cereBasicInformationVenue.publishStatus=='3'?'待审核':scope.row.cereBasicInformationVenue.publishStatus=='4'?'驳回':'-'}}
2506ad54   wesley88   2
179
180
              </template>
            </el-table-column>
a182f238   wesley88   1
181
            <el-table-column label="操作" fixed="right">
2506ad54   wesley88   2
182
              <template slot-scope="scope">
a182f238   wesley88   1
183
184
185
186
187
                <div @click="details(scope.row.cereBasicInformationVenue)" class="tableBtn greens">查看</div>
                <div v-if="scope.row.cereBasicInformationVenue.publishStatus=='3'" class="tableBtn greens" 
                  @click="removeinfozz(scope.row.cereBasicInformationVenue,'1','通过')">通过</div>
                <div v-if="scope.row.cereBasicInformationVenue.publishStatus=='3'" class="tableBtn greens"
                  @click="removeinfozz(scope.row.cereBasicInformationVenue,'4','驳回')">驳回</div>
2506ad54   wesley88   2
188
189
190
              </template>
            </el-table-column>
          </el-table>
a182f238   wesley88   1
191
          <div v-if="total>0" style="display: flex;justify-content: space-between;" class="bom">
2506ad54   wesley88   2
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
            <div style="font-size: 14px;">共 <span style="color: #3F9B6A;">{{total}}</span> 项数据</div>
            <el-pagination :current-page="pagequery.pageNumber+1" :page-sizes="[10, 20, 50, 100]" :page-size="10"
              background small layout="prev, pager, next" :total="total" @size-change="handleSizeChange"
              @current-change="handleCurrentChange">
            </el-pagination>
          </div>
  
        </div>
  
      </div>
  
  
  
  
  
  
      <div class="zhuti" v-if="onaction == '2'">
        <div style="height:58px;line-height:58px;">
0c5d2ce8   wesley88   1
210
211
212
213
          <div style="color:#0006">
            <span>{{onaction == '1'?'商铺基本信息':onaction == '2'?'广告位基本信息管理':onaction == '3'?'场地基本信息管理':'-'  }}</span> <span
              style="padding:0 5px;">></span> <span style="color:#000000e6">新增</span>
          </div>
2506ad54   wesley88   2
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
        </div>
        <div style="margin: 20px 0;">
          <div style="display: flex;font-size: 14px">
            <div style="margin-right: 25px;cursor: pointer;" @click="chenge('1')" :class="ontype=='1'?'chengeXia':''">商铺
            </div>
            <div style="margin-right: 25px;cursor: pointer;" @click="chenge('2')" :class="ontype=='2'?'chengeXia':''">
              广告位</div>
            <div style="margin-right: 25px;cursor: pointer;" @click="chenge('3')" :class="ontype=='3'?'chengeXia':''">场地
            </div>
          </div>
        </div>
        <div v-if="ontype == '1'" style="padding: 20px 20px 20px 0;">
          <add @removeonaction="removeonaction"></add>
        </div>
        <div v-if="ontype == '2'" style="padding: 20px 20px 20px 0;">
          <addmap @removeonaction="removeonaction" :leixing="leixing"></addmap>
        </div>
        <div v-if="ontype == '3'" style="padding: 20px 20px 20px 0;">
          <addcd @removeonaction="removeonaction"></addcd>
        </div>
      </div>
      <div class="zhuti" v-if="onaction == '3'">
        <div style="height:58px;line-height:58px;">
0c5d2ce8   wesley88   1
237
238
239
240
          <div style="color:#0006">
            <span>{{onaction == '1'?'商铺基本信息':onaction == '2'?'广告位基本信息管理':onaction == '3'?'场地基本信息管理':'-'  }}</span> <span
              style="padding:0 5px;">></span> <span style="color:#000000e6">查看</span>
          </div>
2506ad54   wesley88   2
241
242
        </div>
        <div v-if="ontype == '1'">
98bc35a2   wesley88   1
243
          <resourceCommodity :issp="issp" :editbgid="detailsinfo" @removeonaction="removeonaction"></resourceCommodity>
2506ad54   wesley88   2
244
245
        </div>
        <div v-if="ontype == '2'">
98bc35a2   wesley88   1
246
          <chakanmap :issp="issp" :editbgid="detailsinfo" @removeonaction="removeonaction" :leixing="leixing"></chakanmap>
2506ad54   wesley88   2
247
248
        </div>
        <div v-if="ontype == '3'">
98bc35a2   wesley88   1
249
          <chakancd :issp="issp" :editbgid="detailsinfo" @removeonaction="removeonaction"></chakancd>
2506ad54   wesley88   2
250
251
252
253
        </div>
      </div>
      <div class="zhuti" v-if="onaction == '4'">
        <div style="height:58px;line-height:58px;">
0c5d2ce8   wesley88   1
254
255
256
257
          <div style="color:#0006">
            <span>{{onaction == '1'?'商铺基本信息':onaction == '2'?'广告位基本信息管理':onaction == '3'?'场地基本信息管理':'-'  }}</span> <span
              style="padding:0 5px;">></span> <span style="color:#000000e6">{{contractChangeReason}}</span>
          </div>
2506ad54   wesley88   2
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
        </div>
        <div v-if="ontype == '1'" style="padding: 20px 20px 20px 0;">
          <add :info="detailsinfo" @removeonaction="removeonaction"></add>
        </div>
        <div v-if="ontype == '2'" style="padding: 20px 20px 20px 0;">
          <addmap :info="detailsinfo" @removeonaction="removeonaction" :leixing="leixing"></addmap>
        </div>
        <div v-if="ontype == '3'" style="padding: 20px 20px 20px 0;">
          <addcd :info="detailsinfo" @removeonaction="removeonaction"></addcd>
        </div>
      </div>
      <el-dialog :visible.sync="addcl" style="padding: 0px;" width="65%" append-to-body center
        :close-on-click-modal="false" :close-on-press-escape="false" :show-close="false">
        <cl @minSev="minSev" @mingClose="mingClose"></cl>
      </el-dialog>
    </div>
  
  
  </template>
  
  <script>
    import {
0c5d2ce8   wesley88   1
280
281
      cereResourceStrategy,
      getResourceStrategy
2506ad54   wesley88   2
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
    } from '@/api/newly.js'
    import {
      ceGetAll
    } from '@/api/sam.js'
    import * as information from '@/api/information';
    import * as map1 from '@/api/map1';
    import {
      likeGet,
    } from '@/api/map1'
    import {
      getAlls,
      changAlls
    } from '@/api/information';
    import add from '@/components/add/addinformation'
    import resourceCommodity from '@/components/resourceCommodity/index'
    import MapContainer from "@/components/MapContainer/MapContainer"
    import addmap from '@/components/add/addmap'
    import addcd from '@/components/add/addcd'
    import chakanmap from '@/components/chakan/map'
    import chakancd from '@/components/chakan/cd'
0c5d2ce8   wesley88   1
302
    import cl from '@/components/change/cl.vue'
2506ad54   wesley88   2
303
304
305
306
307
308
    import {
      on
    } from 'screenfull';
    export default {
      data() {
        return {
98bc35a2   wesley88   1
309
          issp:'1',
a182f238   wesley88   1
310
311
312
          publishStatus:'',
          clName:'',
          name:'',
2506ad54   wesley88   2
313
314
315
316
317
318
319
320
321
322
323
324
          oninfo: {},
          celueData: [],
          clData: [],
          multipleSelection: [],
          addcl: false,
          leixing: true,
          //传地图数据
          parentMessage: [],
          ontype: '1',
          contractChangeReason: '',
          detailsinfo: {},
          pagequery: {
2d4e37fb   wesley88   1
325
            publishStatus: '3',
2506ad54   wesley88   2
326
327
            pageNumber: 0,
            pageSize: 10,
2506ad54   wesley88   2
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
          },
          tableData: [],
          total: 0,
          onaction: '1',
          formInline: {},
          pageindex: {
            pageNumber: 1,
            pageSize: 10,
          },
        }
      },
      components: {
        cl,
        chakancd,
        addcd,
        addmap,
        chakanmap,
        MapContainer,
        add,
        resourceCommodity,
      },
      created() {
        this.getAll()
      },
      methods: {
0c5d2ce8   wesley88   1
353
354
355
356
357
358
        objectSpanMethod({
          row,
          column,
          rowIndex,
          columnIndex
        }) {
548bfd9e   wesley88   1
359
          
0c5d2ce8   wesley88   1
360
          if (columnIndex != 3 && columnIndex != 4 && columnIndex != 5) {
d64cd58f   wesley88   上传验收小程序
361
362
363
364
365
366
367
368
369
370
371
372
            if (row.num % 2 == 0) {
              if (rowIndex % row.num === 0) {
                return {
                  rowspan: row.num,
                  colspan: 1
                };
              } else {
                return {
                  rowspan: 0,
                  colspan: 0
                };
              }
0c5d2ce8   wesley88   1
373
            } else {
98bc35a2   wesley88   1
374
              
d64cd58f   wesley88   上传验收小程序
375
376
377
378
379
380
              if ((rowIndex+1) % row.num === 0) {
                return {
                  rowspan: row.num,
                  colspan: 1
                };
              } else {
98bc35a2   wesley88   1
381
                console.error(rowIndex)
d64cd58f   wesley88   上传验收小程序
382
383
384
385
386
                return {
                  rowspan: 0,
                  colspan: 0
                };
              }
0c5d2ce8   wesley88   1
387
            }
d64cd58f   wesley88   上传验收小程序
388
  
0c5d2ce8   wesley88   1
389
390
391
          }
  
        },
2506ad54   wesley88   2
392
393
394
395
396
397
398
399
400
        minSev(e) {
          this.multipleSelection = e
          console.error(this.multipleSelection)
          let ids = []
          for (let index = 0; index < this.multipleSelection.length; index++) {
            ids.push(this.multipleSelection[index].id)
          }
          console.error(this.oninfo)
          let c1 = {
0c5d2ce8   wesley88   1
401
            resourcesId: this.oncetype + this.oninfo.id,
2506ad54   wesley88   2
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
            rentalPoliciesIds: ids,
            // resources:this.oninfo
            // rentalPoliciesId: 28,
            // resourcesId: "sp65"
          }
          console.error(c1)
          cereResourceStrategy(c1).then(res => {
            if (res.code == 200) {
              this.addcl = false
              this.$message({
                message: '绑定成功',
                type: 'success'
              })
            } else {
              this.$message({
                message: '绑定失败',
                type: 'error'
              })
            }
          })
        },
        mingClose() {
          this.multipleSelection = []
          this.addcl = false
        },
0c5d2ce8   wesley88   1
427
        async opencl(row, e) {
2506ad54   wesley88   2
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
          this.oncetype = e
          this.oninfo = row
          this.multipleSelection = []
          this.addcl = true
        },
        handleSelectionChange(val) {
          this.multipleSelection = val
        },
        chenge(e) {
          this.ontype = e
          this.pagequery.pageNumber = 0
          this.getAll()
        },
        gettime() {
          // 获取当前时间
          let currentTime = new Date();
  
          // 获取年份
          let year = currentTime.getFullYear();
  
          // 获取月份(注意月份是从0开始计数的,所以需要加1)
          let month = currentTime.getMonth() + 1;
  
          // 获取日期
          let day = currentTime.getDate();
  
          // 获取小时
          let hours = currentTime.getHours();
  
          // 获取分钟
          let minutes = currentTime.getMinutes();
  
          // 获取秒数
          let seconds = currentTime.getSeconds();
  
          // 获取毫秒数
          let milliseconds = currentTime.getMilliseconds();
  
          // 格式化时间为 YYYY-MM-DD
          let formattedDate = `${year}-${month.toString().padStart(2, '0')}-${day.toString().padStart(2, '0')}`;
  
          // 格式化时间为 HH:MM:SS
          let formattedTime =
            `${hours.toString().padStart(2, '0')}:${minutes.toString().padStart(2, '0')}:${seconds.toString().padStart(2, '0')}`;
  
          // 格式化时间为 YYYY-MM-DD HH:MM:SS
          let formattedDateTime = `${formattedDate} ${formattedTime}`;
          return formattedDateTime
  
        },
        removeinfozz(row, e, tit) {
          let that = this
          this.$confirm('确定要' + tit + '吗?', '提示', {
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            type: 'warning'
          }).then(() => {
            if (this.ontype == '1') {
              information.editList({
                ...row,
                publishStatus: e
              }).then(res => {
                console.error(res)
                if (res.code == 200) {
                  this.$message({
                    message: tit + '成功',
                    type: 'success'
                  })
                  this.removeonaction('1')
                } else {
                  this.$message({
                    message: res.msg,
                    type: 'error'
                  })
                }
              })
            } else if (this.ontype == '2') {
              map1.editList({
                ...row,
                publishStatus: e
              }).then(res => {
                console.error(res)
                if (res.code == 200) {
                  this.$message({
                    message: tit + '成功',
                    type: 'success'
                  })
                  this.removeonaction('1')
                } else {
                  this.$message({
                    message: res.msg,
                    type: 'error'
                  })
                }
              })
            } else if (this.ontype == '3') {
              information.changedit({
                ...row,
                publishStatus: e
              }).then(res => {
                console.error(res)
                if (res.code == 200) {
                  this.$message({
                    message: tit + '成功',
                    type: 'success'
                  })
                  this.removeonaction('1')
                } else {
                  this.$message({
                    message: res.msg,
                    type: 'error'
                  })
                }
              })
            }
  
          })
        },
98bc35a2   wesley88   1
546
547
        details(row,e) {
          this.issp = e
2506ad54   wesley88   2
548
549
550
551
552
553
554
555
556
557
          this.detailsinfo = row
          this.onaction = '3'
        },
        removeinfo(row, e) {
          this.contractChangeReason = e
          this.detailsinfo = row
          this.onaction = '4'
        },
        async getAll() {
          if (this.ontype == '1') {
0c5d2ce8   wesley88   1
558
559
            const res = await getResourceStrategy({
              ...this.pagequery,
a182f238   wesley88   1
560
561
              resourcesId: 'sp',
              shopName:this.name
0c5d2ce8   wesley88   1
562
563
            })
            let c1 = []
548bfd9e   wesley88   1
564
565
            for (let index = 0; index < res.data.length; index++) {
              const element = res.data[index];
0c5d2ce8   wesley88   1
566
              if (element.cereBasicInformationShop.id) {
0c5d2ce8   wesley88   1
567
                for (let i = 0; i < element.cereRentalPolicies.length; i++) {
d64cd58f   wesley88   上传验收小程序
568
569
570
571
572
573
574
575
                  var element1 = element.cereRentalPolicies[i];
                  
                  var obj = {
                    cereBasicInformationShop: element.cereBasicInformationShop,
                    num: element.cereRentalPolicies.length,
                    shopinfo: element1
                  };
                  c1.push(obj);
0c5d2ce8   wesley88   1
576
                }
0c5d2ce8   wesley88   1
577
578
579
580
581
              }
            }
            this.tableData = c1
            console.error(this.tableData)
            this.total = res.data.total
2506ad54   wesley88   2
582
          } else if (this.ontype == '2') {
0c5d2ce8   wesley88   1
583
584
            const res = await getResourceStrategy({
              ...this.pagequery,
a182f238   wesley88   1
585
586
              resourcesId: 'gg',
              advertisingName:this.name
0c5d2ce8   wesley88   1
587
            })
a182f238   wesley88   1
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
            let c1 = []
            for (let index = 0; index < res.data.length; index++) {
              const element = res.data[index];
              if (element.cereAdvertisingInformation.id) {
                for (let i = 0; i < element.cereRentalPolicies.length; i++) {
                  var element1 = element.cereRentalPolicies[i];
                  
                  var obj = {
                    cereAdvertisingInformation: element.cereAdvertisingInformation,
                    num: element.cereRentalPolicies.length,
                    shopinfo: element1
                  };
                  c1.push(obj);
                }
              }
            }
            this.tableData = c1
            console.error(this.tableData)
0c5d2ce8   wesley88   1
606
            this.total = res.data.total
2506ad54   wesley88   2
607
          } else if (this.ontype == '3') {
0c5d2ce8   wesley88   1
608
609
            const res = await getResourceStrategy({
              ...this.pagequery,
a182f238   wesley88   1
610
611
              resourcesId: 'cd',
              // venueName:this.name
0c5d2ce8   wesley88   1
612
            })
a182f238   wesley88   1
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
            let c1 = []
            for (let index = 0; index < res.data.length; index++) {
              const element = res.data[index];
              if (element.cereBasicInformationVenue.id) {
                for (let i = 0; i < element.cereRentalPolicies.length; i++) {
                  var element1 = element.cereRentalPolicies[i];
                  
                  var obj = {
                    cereBasicInformationVenue: element.cereBasicInformationVenue,
                    num: element.cereRentalPolicies.length,
                    shopinfo: element1
                  };
                  c1.push(obj);
                }
              }
            }
            this.tableData = c1
            console.error(this.tableData)
0c5d2ce8   wesley88   1
631
            this.total = res.data.total
2506ad54   wesley88   2
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
          }
  
        },
        removeonaction(e) {
          console.error(e)
          this.onaction = e
          this.pagequery.pageNumber = 0
          this.getAll()
        },
        handleCurrentChange(val) {
          this.pagequery.pageNumber = val - 1
          this.getAll()
        },
        handleSizeChange(val) {
          this.pagequery.pageSize = val
        },
        // 查询按钮
        async onSubmit() {
          this.pagequery.pageNumber = 0
          this.getAll()
        },
        //重置按钮
        resetting() {
          this.pagequery = {
              pageNumber: 0,
              pageSize: 10,
              dataStatus: '1',
              contractName: ''
            },
            this.getAll()
        },
        //删除
        closemsg(item) {
          const h = this.$createElement;
          this.$msgbox({
            title: '消息',
            message: h('p', null, [
              h('span', null, '是否删除 '),
            ]),
            showCancelButton: true,
            showClose: false,
            confirmButtonText: '确定',
            cancelButtonText: '取消',
            customClass: 'oe-dialog-btn',
            beforeClose: (action, instance, done) => {
              if (action === 'confirm') {
                if (this.ontype == '1') {
                  information.delList({
                    id: item.id
                  }).then(res => {
                    this.$message({
                      message: '删除成功',
                      type: 'success'
                    })
                    this.getAll()
                    done();
                  })
                } else if (this.ontype == '2') {
                  map1.delList({
                    id: item.id
                  }).then(res => {
                    this.$message({
                      message: '删除成功',
                      type: 'success'
                    })
                    this.getAll()
                    done();
                  })
                } else if (this.ontype == '3') {
                  information.changDel({
                    id: item.id
                  }).then(res => {
                    this.$message({
                      message: '删除成功',
                      type: 'success'
                    })
                    this.getAll()
                    done();
                  })
                }
              } else {
                done();
              }
            }
          })
        },
        //地图详细
        HandMapItem(item) {
          console.log(item)
  
  
          // if (this.activeName == 'first') {
          //   this.editbgid = item
          //   this.restype = '商铺'
  
          //   this.showBian = true
          //   if (typeof this.editbgid.mapPunctuation == 'string') {
          //     this.parentMessage = JSON.parse(this.editbgid.mapPunctuation)
          //   }
  
          // } else if (this.activeName == 'second') {
          //   this.editbgid = item
          //   this.restype = '广告位'
  
          //   this.showBian = true
          //   if (item.advertisingType == '线上广告位') {
          //     this.leixing = true
          //   } else {
          //     this.leixing = false
          //   }
  
          //   if (typeof this.editbgid.mapMarker == 'string') {
          //     this.parentMessage = JSON.parse(this.editbgid.mapMarker)
          //   }
          // } else if (this.activeName == 'third') {
          //   this.editbgid = item
          //   this.restype = '场地'
  
          //   this.showBian = true
          //   if (typeof this.editbgid.mapMarker == 'string') {
          //     this.parentMessage = JSON.parse(this.editbgid.mapMarker)
          //   }
          // } else if (this.activeName == 'fourth') {
  
          // }
  
  
        },
      }
  
    }
  </script>
  
  <style scoped>
    .el-table {
      /* height: calc(100vh - 330px); */
    }
  
    .zhuti {
      padding: 0 20px 20px 20px;
      min-height: calc(100vh - 50px - 20px);
      background-color: #Fff;
  
    }
  
    .chengeXia {
      border-bottom: 6px solid #3F9B6A;
      padding-bottom: 4px;
      color: #3F9B6A;
    }
  
    /* /deep/ .el-form-item__content {
      line-height: 0;
    } */
  
    .tableBtn {
      display: inline-block;
      margin-right: 10px;
      color: #ACACAC;
    }
  
    .formSearch {
      display: flex;
      width: 100%;
      font-size: 14px;
      justify-content: space-between;
    }
  
    .greens {
      color: #3F9B6A;
    }
  
    /deep/ .el-table__row {
      font-size: 14px;
      color: #000000e6;
      height: 42px;
    }
  
    .fenye {
      margin-top: 20px;
      display: flex;
      justify-content: space-between;
    }
  
    /deep/ .el-pagination.is-background .el-pager li:not(.disabled).active {
      background-color: #3F9B6A;
    }
  
  
  
    .el-col {
      border-radius: 4px;
    }
  
    .bg-purple-dark {
      background: #99a9bf;
    }
  
    .bg-purple {
      background: #d3dce6;
    }
  
    .bg-purple-light {
      background: #e5e9f2;
    }
  
    .grid-content {
      border-radius: 4px;
      min-height: 36px;
    }
  
    .row-bg {
      padding: 10px 0;
      background-color: #f9fafc;
    }
  
    /deep/ .bg-purple[data-v-0e3fe4ec] {
      background: #fff;
      height: 50px;
    }
  
    /deep/ .bg-purple[data-v-3bebae82] {
      background: #fff;
      height: 50px;
    }
  
    ::v-deep .bg-purple {
      background: #fff;
      height: 50px;
    }
  
    /deep/ .el-form--label-top .el-form-item__label {
      padding: 0;
    }
  
    ::v-deep .el-dialog__wrapper {
      .el-dialog__header {
        background-color: #fff;
      }
    }
  
  
  
    .dialog-footer {
      display: flex;
      justify-content: flex-end;
      border-top: solid rgba(209, 209, 209, 0.2) 2px;
      padding-top: 20px;
    }
  
  
  
  
    .el-select-dropdown__item.selected {
      color: #3F9B6A;
    }
  
    ::v-deep .el-dialog__title {
      color: #000;
    }
  
    ::v-deep .el-dialog__wrapper {
  
      .dialog_css {
        margin-right: 12px;
        margin-top: 61px !important;
  
      }
  
      .diaslog_zhong {
        margin-left: 222px;
        margin-top: 61px !important;
      }
  
    }
  
    /deep/ .el-table_1_column_8 .hetong {
      color: #7DBB9A;
      text-decoration: underline;
    }
  
    /deep/ .first-column-bg {
      background-color: #FAFAFA !important;
    }
  
    .el-table tr {
      height: 56px;
    }
  
    ::v-deep .table3 {
      .el-table__empty-block {
        display: none;
      }
    }
  
    ::v-deep .textarea {
      width: 85%;
  
      .el-textarea__inner {
        width: 100%;
      }
    }
  
    ::v-deep .el-button--mini {
      padding: 7px 10px;
    }
  
    ::v-deep .pass_input {
      width: 100%;
  
      .el-input__inner {
        border: none;
        padding: 0;
      }
    }
  
    ::v-deep .pass_select {
      width: 100%;
  
      .el-input__inner {
        border: none;
        padding: 0;
      }
  
      .el-icon-arrow-up:before {
        content: ''
      }
  
    }
  
    /deep/ .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
      background-color: #fff;
    }
  </style>
  <style lang="scss" scoped>
    ::v-deep .el-dialog__body {
      padding: 0 0 !important;
    }
  
    ::v-deep .buttonHover:hover {
      color: #3f9b6a !important;
      border-color: #c5e1d2 !important;
      background-color: #ecf5f0 !important;
      outline: none;
    }
0c5d2ce8   wesley88   1
977
978
  
    .el-dialog__header {
2506ad54   wesley88   2
979
980
981
      padding: 0 0 !important;
    }
  </style>