Blame view

admin-web-master/src/views/detect/examine/index.vue 34.8 KB
2506ad54   wesley88   2
1
  <template>
2bb042d7   wesley88   1
2
3
    <div style="background-color:#f7f7f7;padding:10px 10px;" >
      <div class="zhuti boxqw" v-if="onaction == '1'">
2506ad54   wesley88   2
4
5
        <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>
          <!-- 搜索 -->
9b392fc6   wesley88   1
11
          <!-- <div class="formSearch">
a182f238   wesley88   1
12
13
14
15
16
17
            <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
              <el-form-item label="审核状态" prop="publishStatus">
9b392fc6   wesley88   1
20
                <el-select v-model="publishStatus" placeholder="请选择" style="width: 168px;margin-right: 15px">
a182f238   wesley88   1
21
                  <el-option label="待审核" value="3"></el-option>
2506ad54   wesley88   2
22
23
24
25
26
27
28
29
30
31
32
                </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>
9b392fc6   wesley88   1
33
          </div> -->
a182f238   wesley88   1
34
          <div style="margin-bottom: 20px;">
2506ad54   wesley88   2
35
36
37
            <div style="display: flex;font-size: 14px">
              <div style="margin-right: 25px;cursor: pointer;" @click="chenge('1')" :class="ontype=='1'?'chengeXia':''">商铺
              </div>
4e955529   杨鑫   '1'
38
             <div style="margin-right: 25px;cursor: pointer;" @click="chenge('2')" :class="ontype=='2'?'chengeXia':''">
2506ad54   wesley88   2
39
40
                广告位</div>
              <div style="margin-right: 25px;cursor: pointer;" @click="chenge('3')" :class="ontype=='3'?'chengeXia':''">场地
4e955529   杨鑫   '1'
41
              </div>
2506ad54   wesley88   2
42
43
44
            </div>
          </div>
          <!-- 表格 -->
2bb042d7   wesley88   1
45
          <el-table v-if="ontype=='1' && ishow" :span-method="tableSpanMethod" :data="tableData"
2506ad54   wesley88   2
46
            :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
0c5d2ce8   wesley88   1
47
            <el-table-column label="商铺名称" prop="shopName" show-overflow-tooltip>
2506ad54   wesley88   2
48
              <template slot-scope="scope">
0c5d2ce8   wesley88   1
49
                {{scope.row.cereBasicInformationShop.shopName}}
2506ad54   wesley88   2
50
51
              </template>
            </el-table-column>
2506ad54   wesley88   2
52
            <el-table-column prop="detailedLocation" label="详细地址" show-overflow-tooltip>
0c5d2ce8   wesley88   1
53
54
55
              <template slot-scope="scope">
                {{scope.row.cereBasicInformationShop.detailedLocation}}
              </template>
2506ad54   wesley88   2
56
            </el-table-column>
9b392fc6   wesley88   1
57
            <el-table-column label="商铺类型" prop="shopType" show-overflow-tooltip>
0c5d2ce8   wesley88   1
58
              <template slot-scope="scope">
9b392fc6   wesley88   1
59
60
61
                <div class="duiqi">
                  {{scope.row.cereBasicInformationShop.shopType=='1'?'移动铺位':scope.row.cereBasicInformationShop.shopType=='2'?'固定铺位':'无'}}
                </div>
0c5d2ce8   wesley88   1
62
63
64
65
66
67
              </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
            <el-table-column label="租金/周期" prop="rentalPrice" show-overflow-tooltip>
              <template slot-scope="scope">
2210df30   wesley88   1
71
             <span v-if="scope.row.shopinfo.rentalPrice!=''">{{scope.row.shopinfo.rentalPrice}} 元/{{ scope.row.shopinfo.leaseTerm }}</span>
6106f9fa   杨鑫   '最新'
72
             <span v-else>无</span>
0c5d2ce8   wesley88   1
73
              </template>
2506ad54   wesley88   2
74
            </el-table-column>
eb438c24   wesley88   1
75
            <!-- <el-table-column label="付款日" prop="payDay" show-overflow-tooltip>
0c5d2ce8   wesley88   1
76
77
78
              <template slot-scope="scope">
                {{scope.row.shopinfo.payDay}}
              </template>
eb438c24   wesley88   1
79
            </el-table-column> -->
2506ad54   wesley88   2
80
81
            <el-table-column label="状态" prop="publishStatus" show-overflow-tooltip>
              <template slot-scope="scope">
2210df30   wesley88   1
82
                {{scope.row.cereBasicInformationShop.publishStatus=='0'?'待发布':scope.row.cereBasicInformationShop.publishStatus=='1'?'待审核':scope.row.cereBasicInformationShop.publishStatus=='2'?'已发布':scope.row.cereBasicInformationShop.publishStatus=='3'?'不通过':scope.row.publishStatus=='4'?'已租赁':'-'}}
2506ad54   wesley88   2
83
84
              </template>
            </el-table-column>
9b392fc6   wesley88   1
85
            <el-table-column label="操作" fixed="right" prop="sh">
2506ad54   wesley88   2
86
              <template slot-scope="scope">
98bc35a2   wesley88   1
87
                <div @click="details(scope.row.cereBasicInformationShop,'1')" class="tableBtn greens">查看</div>
9b392fc6   wesley88   1
88
89
                <div v-if="scope.row.cereBasicInformationShop.publishStatus=='1'"
                  @click="details(scope.row.cereBasicInformationShop,'2')" class="tableBtn greens">审核</div>
2506ad54   wesley88   2
90
91
92
              </template>
            </el-table-column>
          </el-table>
2bb042d7   wesley88   1
93
          <el-table v-if="ontype=='2' && ishow" :span-method="tableSpanMethod" :data="tableData"
2506ad54   wesley88   2
94
            :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
a182f238   wesley88   1
95
            <el-table-column label="广告位名称" prop="advertisingName" show-overflow-tooltip>
2506ad54   wesley88   2
96
              <template slot-scope="scope">
a182f238   wesley88   1
97
                {{scope.row.cereAdvertisingInformation.advertisingName}}
2506ad54   wesley88   2
98
99
              </template>
            </el-table-column>
a182f238   wesley88   1
100
101
102
103
            <el-table-column prop="advertisingType" label="广告位类型" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.cereAdvertisingInformation.advertisingType}}
              </template>
2506ad54   wesley88   2
104
            </el-table-column>
a182f238   wesley88   1
105
106
107
108
            <el-table-column label="所属端" prop="affiliation" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.cereAdvertisingInformation.affiliation}}
              </template>
2506ad54   wesley88   2
109
            </el-table-column>
a182f238   wesley88   1
110
111
112
113
            <el-table-column label="策略名称" prop="policyName" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.shopinfo.policyName}}
              </template>
2506ad54   wesley88   2
114
            </el-table-column>
a182f238   wesley88   1
115
            <el-table-column label="租金/周期" prop="rentalPrice" show-overflow-tooltip>
2506ad54   wesley88   2
116
              <template slot-scope="scope">
2210df30   wesley88   1
117
              <span v-if="scope.row.shopinfo.rentalPrice!=''">{{scope.row.shopinfo.rentalPrice}} 元/{{ scope.row.shopinfo.leaseTerm }}</span>
6106f9fa   杨鑫   '最新'
118
              <span v-else>无</span>
2506ad54   wesley88   2
119
              </template>
a182f238   wesley88   1
120
            </el-table-column>
eb438c24   wesley88   1
121
            <!-- <el-table-column label="付款日" prop="payDay" show-overflow-tooltip>
2506ad54   wesley88   2
122
              <template slot-scope="scope">
a182f238   wesley88   1
123
                {{scope.row.shopinfo.payDay}}
2506ad54   wesley88   2
124
              </template>
eb438c24   wesley88   1
125
            </el-table-column> -->
a182f238   wesley88   1
126
127
            <el-table-column label="状态" prop="publishStatus" show-overflow-tooltip>
              <template slot-scope="scope">
2210df30   wesley88   1
128
                {{scope.row.cereAdvertisingInformation.publishStatus=='0'?'待发布':scope.row.cereAdvertisingInformation.publishStatus=='1'?'待审核':scope.row.cereAdvertisingInformation.publishStatus=='2'?'已发布':scope.row.cereAdvertisingInformation.publishStatus=='3'?'不通过':scope.row.publishStatus=='4'?'已租赁':'-'}}
a182f238   wesley88   1
129
              </template>
2506ad54   wesley88   2
130
            </el-table-column>
9b392fc6   wesley88   1
131
            <el-table-column label="操作" fixed="right" prop="sh">
2506ad54   wesley88   2
132
              <template slot-scope="scope">
9b392fc6   wesley88   1
133
134
135
                <div @click="details(scope.row.cereAdvertisingInformation,'1')" class="tableBtn greens">查看</div>
                <div v-if="scope.row.cereAdvertisingInformation.publishStatus=='1'"
                  @click="details(scope.row.cereAdvertisingInformation,'2')" class="tableBtn greens">审核</div>
2506ad54   wesley88   2
136
137
138
              </template>
            </el-table-column>
          </el-table>
2bb042d7   wesley88   1
139
          <el-table v-if="ontype=='3' && ishow" :span-method="tableSpanMethod" :data="tableData"
2506ad54   wesley88   2
140
            :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
a182f238   wesley88   1
141
            <el-table-column label="场地名称" prop="venueName" show-overflow-tooltip>
2506ad54   wesley88   2
142
              <template slot-scope="scope">
a182f238   wesley88   1
143
                {{scope.row.cereBasicInformationVenue.venueName}}
2506ad54   wesley88   2
144
145
              </template>
            </el-table-column>
a182f238   wesley88   1
146
147
148
149
            <el-table-column prop="venueType" label="场地类型" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.cereBasicInformationVenue.venueType}}
              </template>
2506ad54   wesley88   2
150
            </el-table-column>
c3f8e431   wesley88   1
151
            <el-table-column label="实际使用面积" prop="actualArea" show-overflow-tooltip>
a182f238   wesley88   1
152
              <template slot-scope="scope">
c3f8e431   wesley88   1
153
                {{scope.row.cereBasicInformationVenue.actualArea}}
a182f238   wesley88   1
154
              </template>
2506ad54   wesley88   2
155
            </el-table-column>
a182f238   wesley88   1
156
157
158
159
            <el-table-column label="策略名称" prop="policyName" show-overflow-tooltip>
              <template slot-scope="scope">
                {{scope.row.shopinfo.policyName}}
              </template>
2506ad54   wesley88   2
160
            </el-table-column>
a182f238   wesley88   1
161
162
            <el-table-column label="租金/周期" prop="rentalPrice" show-overflow-tooltip>
              <template slot-scope="scope">
2210df30   wesley88   1
163
                <span v-if="scope.row.shopinfo.rentalPrice!=''">{{scope.row.shopinfo.rentalPrice}} 元/{{ scope.row.shopinfo.leaseTerm }}</span>
6106f9fa   杨鑫   '最新'
164
  			  <span v-else>无</span>
a182f238   wesley88   1
165
              </template>
2506ad54   wesley88   2
166
            </el-table-column>
eb438c24   wesley88   1
167
            <!-- <el-table-column label="付款日" prop="payDay" show-overflow-tooltip>
a182f238   wesley88   1
168
169
170
              <template slot-scope="scope">
                {{scope.row.shopinfo.payDay}}
              </template>
eb438c24   wesley88   1
171
            </el-table-column> -->
a182f238   wesley88   1
172
            <el-table-column label="状态" prop="publishStatus" show-overflow-tooltip>
2506ad54   wesley88   2
173
              <template slot-scope="scope">
2210df30   wesley88   1
174
                {{scope.row.cereBasicInformationVenue.publishStatus=='0'?'待发布':scope.row.cereBasicInformationVenue.publishStatus=='1'?'待审核':scope.row.cereBasicInformationVenue.publishStatus=='2'?'已发布':scope.row.cereBasicInformationVenue.publishStatus=='3'?'不通过':scope.row.publishStatus=='4'?'已租赁':'-'}}
2506ad54   wesley88   2
175
176
              </template>
            </el-table-column>
9b392fc6   wesley88   1
177
            <el-table-column label="操作" fixed="right" prop="sh">
2506ad54   wesley88   2
178
              <template slot-scope="scope">
9b392fc6   wesley88   1
179
180
181
                <div @click="details(scope.row.cereBasicInformationVenue,'1')" class="tableBtn greens">查看</div>
                <div v-if="scope.row.cereBasicInformationVenue.publishStatus=='1'"
                  @click="details(scope.row.cereBasicInformationVenue,'2')" class="tableBtn greens">审核</div>
2506ad54   wesley88   2
182
183
184
              </template>
            </el-table-column>
          </el-table>
9b392fc6   wesley88   1
185
          <div v-if="false" style="display: flex;justify-content: space-between;" class="bom">
2506ad54   wesley88   2
186
            <div style="font-size: 14px;">共 <span style="color: #3F9B6A;">{{total}}</span> 项数据</div>
9b392fc6   wesley88   1
187
            <!-- <el-pagination :current-page="pagequery.pageNumber+1" :page-sizes="[10, 20, 50, 100]" :page-size="10"
2506ad54   wesley88   2
188
189
              background small layout="prev, pager, next" :total="total" @size-change="handleSizeChange"
              @current-change="handleCurrentChange">
9b392fc6   wesley88   1
190
            </el-pagination> -->
2506ad54   wesley88   2
191
192
193
194
195
196
197
198
199
200
201
202
203
          </div>
  
        </div>
  
      </div>
  
  
  
  
  
  
      <div class="zhuti" v-if="onaction == '2'">
        <div style="height:58px;line-height:58px;">
0c5d2ce8   wesley88   1
204
205
206
207
          <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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
        </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
231
232
233
234
          <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
235
236
        </div>
        <div v-if="ontype == '1'">
98bc35a2   wesley88   1
237
          <resourceCommodity :issp="issp" :editbgid="detailsinfo" @removeonaction="removeonaction"></resourceCommodity>
2506ad54   wesley88   2
238
239
        </div>
        <div v-if="ontype == '2'">
98bc35a2   wesley88   1
240
          <chakanmap :issp="issp" :editbgid="detailsinfo" @removeonaction="removeonaction" :leixing="leixing"></chakanmap>
2506ad54   wesley88   2
241
242
        </div>
        <div v-if="ontype == '3'">
98bc35a2   wesley88   1
243
          <chakancd :issp="issp" :editbgid="detailsinfo" @removeonaction="removeonaction"></chakancd>
2506ad54   wesley88   2
244
245
246
247
        </div>
      </div>
      <div class="zhuti" v-if="onaction == '4'">
        <div style="height:58px;line-height:58px;">
0c5d2ce8   wesley88   1
248
249
250
251
          <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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
        </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
274
275
      cereResourceStrategy,
      getResourceStrategy
2506ad54   wesley88   2
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
    } 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
296
    import cl from '@/components/change/cl.vue'
2506ad54   wesley88   2
297
298
299
300
301
302
    import {
      on
    } from 'screenfull';
    export default {
      data() {
        return {
2bb042d7   wesley88   1
303
          ishow:true,
9b392fc6   wesley88   1
304
305
306
307
          issp: '1',
          publishStatus: '',
          clName: '',
          name: '',
2506ad54   wesley88   2
308
309
310
311
312
313
314
315
316
317
318
319
          oninfo: {},
          celueData: [],
          clData: [],
          multipleSelection: [],
          addcl: false,
          leixing: true,
          //传地图数据
          parentMessage: [],
          ontype: '1',
          contractChangeReason: '',
          detailsinfo: {},
          pagequery: {
9b392fc6   wesley88   1
320
            publishStatus: '1',
2506ad54   wesley88   2
321
322
            pageNumber: 0,
            pageSize: 10,
2506ad54   wesley88   2
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
          },
          tableData: [],
          total: 0,
          onaction: '1',
          formInline: {},
          pageindex: {
            pageNumber: 1,
            pageSize: 10,
          },
        }
      },
      components: {
        cl,
        chakancd,
        addcd,
        addmap,
        chakanmap,
        MapContainer,
        add,
        resourceCommodity,
      },
      created() {
        this.getAll()
      },
      methods: {
9b392fc6   wesley88   1
348
349
350
351
352
353
354
              /**
         * 表格行合并逻辑
         */
        tableSpanMethod({ row, column, rowIndex }) {
          if (["shopName", "detailedLocation", "shopType", "publishStatus", "sh","advertisingName","advertisingType","affiliation","venueName","venueType","actualUsableArea"].includes(column.property)) {
            // 判断 num 是否相同,合并行
            const num = row.num;
60cd6339   杨鑫   '最新'
355
356
357
358
359
360
            const typeid = row.typeid;
  
            const startRowIndex = this.findStartRowIndex(rowIndex, num,typeid);
  
            return startRowIndex === rowIndex
              ? { rowspan: num, colspan: 1 }
9b392fc6   wesley88   1
361
362
363
364
365
366
              : { rowspan: 0, colspan: 0 };
          }
        },
        /**
         * 查找当前行的 num 对应的起始行索引
         */
60cd6339   杨鑫   '最新'
367
        findStartRowIndex(rowIndex, num,typeid) {
9b392fc6   wesley88   1
368
369
          let startRowIndex = rowIndex;
          for (let i = rowIndex - 1; i >= 0; i--) {
60cd6339   杨鑫   '最新'
370
            if (this.tableData[i].num === num && this.tableData[i].typeid === typeid) {
9b392fc6   wesley88   1
371
              startRowIndex = i;
0c5d2ce8   wesley88   1
372
            } else {
9b392fc6   wesley88   1
373
              break;
0c5d2ce8   wesley88   1
374
            }
0c5d2ce8   wesley88   1
375
          }
9b392fc6   wesley88   1
376
          return startRowIndex;
0c5d2ce8   wesley88   1
377
        },
2506ad54   wesley88   2
378
379
380
381
382
383
384
385
386
        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
387
            resourcesId: this.oncetype + this.oninfo.id,
2506ad54   wesley88   2
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
            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
413
        async opencl(row, e) {
2506ad54   wesley88   2
414
415
416
417
418
419
420
421
422
423
424
425
426
427
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
          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'
                  })
                }
              })
            }
  
          })
        },
9b392fc6   wesley88   1
532
        details(row, e) {
98bc35a2   wesley88   1
533
          this.issp = e
2506ad54   wesley88   2
534
535
536
537
538
539
540
541
542
          this.detailsinfo = row
          this.onaction = '3'
        },
        removeinfo(row, e) {
          this.contractChangeReason = e
          this.detailsinfo = row
          this.onaction = '4'
        },
        async getAll() {
2bb042d7   wesley88   1
543
544
545
546
547
548
          this.ishow = false
          const loading = this.$loading({
            target: document.querySelector('.boxqw'),
            fullscreen: true
          })
     
9b392fc6   wesley88   1
549
550
          this.tableData = []
          let list = []
2506ad54   wesley88   2
551
          if (this.ontype == '1') {
0c5d2ce8   wesley88   1
552
553
            const res = await getResourceStrategy({
              ...this.pagequery,
a182f238   wesley88   1
554
              resourcesId: 'sp',
9b392fc6   wesley88   1
555
556
              shopName: this.name,
              publishStatus: '1'
0c5d2ce8   wesley88   1
557
558
            })
            let c1 = []
548bfd9e   wesley88   1
559
560
            for (let index = 0; index < res.data.length; index++) {
              const element = res.data[index];
0c5d2ce8   wesley88   1
561
              if (element.cereBasicInformationShop.id) {
0c5d2ce8   wesley88   1
562
                for (let i = 0; i < element.cereRentalPolicies.length; i++) {
d64cd58f   wesley88   上传验收小程序
563
                  var element1 = element.cereRentalPolicies[i];
9b392fc6   wesley88   1
564
  
d64cd58f   wesley88   上传验收小程序
565
566
567
                  var obj = {
                    cereBasicInformationShop: element.cereBasicInformationShop,
                    num: element.cereRentalPolicies.length,
60cd6339   杨鑫   '最新'
568
                    shopinfo: element1,
2bb042d7   wesley88   1
569
                    typeid:'sp'+element.cereBasicInformationShop.id,
d64cd58f   wesley88   上传验收小程序
570
571
                  };
                  c1.push(obj);
0c5d2ce8   wesley88   1
572
                }
0c5d2ce8   wesley88   1
573
574
              }
            }
9b392fc6   wesley88   1
575
576
            list = c1
            // 已审核
4dac8c0b   wesley88   1
577
578
579
580
581
582
            // const res1 = await getResourceStrategy({
            //   ...this.pagequery,
            //   resourcesId: 'sp',
            //   shopName: this.name,
            //   publishStatus: '2',
            // })
9b392fc6   wesley88   1
583
            let c2 = []
4dac8c0b   wesley88   1
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
            // for (let index = 0; index < res1.data.length; index++) {
            //   const element = res1.data[index];
            //   if (element.cereBasicInformationShop.id) {
            //     for (let i = 0; i < element.cereRentalPolicies.length; i++) {
            //       var element1 = element.cereRentalPolicies[i];
  
            //       var obj = {
            //         cereBasicInformationShop: element.cereBasicInformationShop,
            //         num: element.cereRentalPolicies.length,
            //         shopinfo: element1,
            //         typeid:'sp'+element.cereBasicInformationShop.id
            //       };
            //       c2.push(obj);
            //     }
            //   }
            // }
9b392fc6   wesley88   1
600
601
602
            list = [...list, ...c2]
            this.tableData = list
            console.log(this.tableData);
2506ad54   wesley88   2
603
          } else if (this.ontype == '2') {
0c5d2ce8   wesley88   1
604
605
            const res = await getResourceStrategy({
              ...this.pagequery,
a182f238   wesley88   1
606
              resourcesId: 'gg',
9b392fc6   wesley88   1
607
608
              advertisingName: this.name,
              publishStatus: '1'
0c5d2ce8   wesley88   1
609
            })
a182f238   wesley88   1
610
611
612
613
614
615
            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];
9b392fc6   wesley88   1
616
  
a182f238   wesley88   1
617
618
619
                  var obj = {
                    cereAdvertisingInformation: element.cereAdvertisingInformation,
                    num: element.cereRentalPolicies.length,
60cd6339   杨鑫   '最新'
620
621
                    shopinfo: element1,
                    typeid:'gg'+element.cereAdvertisingInformation.id
a182f238   wesley88   1
622
623
624
625
626
                  };
                  c1.push(obj);
                }
              }
            }
9b392fc6   wesley88   1
627
628
629
  
            list = c1
            // 已审核
4dac8c0b   wesley88   1
630
631
632
633
634
635
            // const res1 = await getResourceStrategy({
            //   ...this.pagequery,
            //   resourcesId: 'gg',
            //   advertisingName: this.name,
            //   publishStatus: '2',
            // })
9b392fc6   wesley88   1
636
            let c2 = []
4dac8c0b   wesley88   1
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
            // for (let index = 0; index < res1.data.length; index++) {
            //   const element = res1.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,
            //         typeid:'gg'+element.cereAdvertisingInformation.id
            //       };
            //       c2.push(obj);
            //     }
            //   }
            // }
9b392fc6   wesley88   1
653
654
655
            list = [...list, ...c2]
            this.tableData = list
            console.log(this.tableData);
2506ad54   wesley88   2
656
          } else if (this.ontype == '3') {
0c5d2ce8   wesley88   1
657
658
            const res = await getResourceStrategy({
              ...this.pagequery,
a182f238   wesley88   1
659
              resourcesId: 'cd',
9b392fc6   wesley88   1
660
661
              venueName:this.name,
              publishStatus: '1'
0c5d2ce8   wesley88   1
662
            })
a182f238   wesley88   1
663
664
665
666
667
668
            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];
9b392fc6   wesley88   1
669
  
a182f238   wesley88   1
670
671
672
                  var obj = {
                    cereBasicInformationVenue: element.cereBasicInformationVenue,
                    num: element.cereRentalPolicies.length,
60cd6339   杨鑫   '最新'
673
674
                    shopinfo: element1,
                    typeid:'cd'+element.cereBasicInformationVenue.id
a182f238   wesley88   1
675
676
677
678
679
                  };
                  c1.push(obj);
                }
              }
            }
9b392fc6   wesley88   1
680
681
            list = c1
            // 已审核
4dac8c0b   wesley88   1
682
683
684
685
686
687
            // const res1 = await getResourceStrategy({
            //   ...this.pagequery,
            //   resourcesId: 'cd',
            //   venueName:this.name,
            //   publishStatus: '2'
            // })
9b392fc6   wesley88   1
688
            let c2 = []
4dac8c0b   wesley88   1
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
            // for (let index = 0; index < res1.data.length; index++) {
            //   const element = res1.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,
            //         typeid:'cd'+element.cereBasicInformationVenue.id
            //       };
            //       c2.push(obj);
            //     }
            //   }
            // }
9b392fc6   wesley88   1
705
706
            list = [...list, ...c2]
            this.tableData = list
2bb042d7   wesley88   1
707
  
9b392fc6   wesley88   1
708
            console.log(this.tableData);
2506ad54   wesley88   2
709
          }
2bb042d7   wesley88   1
710
711
712
713
714
          setTimeout(() => {
            this.ishow = true
            loading.close();
            this.$forceUpdate();
          }, 100)
2506ad54   wesley88   2
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
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
        },
        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
1058
1059
  
    .el-dialog__header {
2506ad54   wesley88   2
1060
1061
1062
      padding: 0 0 !important;
    }
  </style>