Blame view

admin-web-master/src/components/chakan/ggsh.vue 16.3 KB
9b392fc6   wesley88   1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  <template>
    <div>
      <div>
        <el-tabs v-model="xiangTab">
          <el-tab-pane label="申请内容" name="first">
            <div style="margin-top: 30px;" class="editcss">
              <TitleWithCircle title="申请信息" />
              <div style="padding: 20px;margin-top: 10px;">
                <el-form :model="info" ref="ruleForm" label-width="140px" class="demo-ruleForm">
                  <el-form-item label="Banner图" prop="coverImage">
                    <el-image  style="width: 200px;margin-right: 10px;"  v-for="item in info.coverImage.split(',')" :src="$baseURL+item" fit="contain"></el-image>
                  </el-form-item>
                  <el-form-item label="投放内容" prop="adTitle">
                    <div class="duiqi">{{info.adTitle}}</div>
                  </el-form-item>
                </el-form>
              </div>
              <TitleWithCircle title="营业执照信息" />
              <div style="padding: 20px;margin-top: 10px;">
                <el-form :model="info" ref="ruleForm" label-width="140px" class="demo-ruleForm">
                  <el-row :gutter="20">
                    <el-col :span="9">
cfcb44ef   杨鑫   '改bug版'
23
24
                      <el-form-item label="主体名称" prop="subjectName">
                        <div class="duiqi">{{info.subjectName}}</div>
9b392fc6   wesley88   1
25
26
27
28
29
30
31
32
33
34
                      </el-form-item>
                    </el-col>
                    <el-col :span="9">
                      <el-form-item label="统一社会信用代码" prop="unifiedSocialCreditCode">
                        <div class="duiqi">{{info.unifiedSocialCreditCode}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="9">
cfcb44ef   杨鑫   '改bug版'
35
36
                      <el-form-item label="类型" prop="type">
                        <div class="duiqi">{{info.type}}</div>
9b392fc6   wesley88   1
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
                      </el-form-item>
                    </el-col>
                    <el-col :span="9">
                      <el-form-item label="法定代表人" prop="legalRepresentative">
                        <div class="duiqi">{{info.legalRepresentative}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-form-item label="经营范围" prop="businessScope">
                    <div class="duiqi">{{info.businessScope}}</div>
                  </el-form-item>
                  <el-row :gutter="20">
                    <el-col :span="9">
                      <el-form-item label="注册资本" prop="registeredCapital">
                        <div class="duiqi">{{info.registeredCapital}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="9">
                      <el-form-item label="成立日期" prop="establishmentDate">
                        <div class="duiqi">{{info.establishmentDate}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
cfcb44ef   杨鑫   '改bug版'
60
61
                  <el-form-item label="住所" prop="address">
                    <div class="duiqi">{{info.address}}</div>
9b392fc6   wesley88   1
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
                  </el-form-item>
                  <el-row :gutter="20">
                    <el-col :span="9">
                      <el-form-item label="邮箱地址" prop="emailAddress">
                        <div class="duiqi">{{info.emailAddress}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="9">
                      <el-form-item label="营业期限" prop="businessStartDate">
                        <div class="duiqi">{{info.businessStartDate}} - {{info.businessEndDate}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-form-item label="营业执照" prop="businessLicense">
                    <!-- <div class="duiqi">{{info.businessLicense}}</div> -->
                    <el-image style="width: 200px;" :src="$baseURL+info.businessLicense" fit="contain"></el-image>
                  </el-form-item>
                </el-form>
              </div>
            </div>
          </el-tab-pane>
          <el-tab-pane label="商家信息" name="second">
            <div style="margin-top: 30px;" class="editcss">
              <TitleWithCircle title="基础信息" />
              <div style="padding: 20px;margin-top: 10px;">
3b97e418   wesley88   1
87
                <el-form :model="shopMsg" ref="ruleForm" label-width="140px" class="demo-ruleForm">
9b392fc6   wesley88   1
88
89
                  <el-row :gutter="20">
                    <el-col :span="9">
cfcb44ef   杨鑫   '改bug版'
90
91
                      <el-form-item label="姓名" prop="name">
                        <div class="duiqi">{{shopMsg.name}}</div>
9b392fc6   wesley88   1
92
93
94
95
                      </el-form-item>
                    </el-col>
                    <el-col :span="9">
                      <el-form-item label="手机号" prop="phone">
cfcb44ef   杨鑫   '改bug版'
96
                        <div class="duiqi">{{shopMsg.phone}}</div>
9b392fc6   wesley88   1
97
98
99
100
101
102
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20">
                    <el-col :span="9">
                      <el-form-item label="证件类型" prop="idCardType">
cfcb44ef   杨鑫   '改bug版'
103
                        <div class="duiqi">{{shopMsg.idCardType}}</div>
9b392fc6   wesley88   1
104
105
106
                      </el-form-item>
                    </el-col>
                    <el-col :span="9">
cfcb44ef   杨鑫   '改bug版'
107
108
                      <el-form-item label="身份证号码" prop="idCardNumber">
                        <div class="duiqi">{{shopMsg.idCardNumber}}</div>
9b392fc6   wesley88   1
109
110
111
                      </el-form-item>
                    </el-col>
                  </el-row>
cfcb44ef   杨鑫   '改bug版'
112
                  <el-form-item label="身份证照片(正)" prop="idCardFrontImage">
9b392fc6   wesley88   1
113
                    <div style="margin-top: 10px;">
4e955529   杨鑫   '1'
114
                      <el-image style="width: 200px;height:200px" :src="$baseURL+shopMsg.idCardFrontImage" fit="contain"></el-image>
9b392fc6   wesley88   1
115
116
                    </div>
                  </el-form-item>
cfcb44ef   杨鑫   '改bug版'
117
                  <el-form-item label="身份证照片(反)" prop="idCardBackImage">
9b392fc6   wesley88   1
118
                    <div style="margin-top: 10px;">
4e955529   杨鑫   '1'
119
                      <el-image style="width: 200px;height:200px" :src="$baseURL+shopMsg.idCardBackImage" fit="contain"></el-image>
9b392fc6   wesley88   1
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
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
                    </div>
                  </el-form-item>
                </el-form>
              </div>
            </div>
          </el-tab-pane>
          <el-tab-pane label="广告位信息" name="third">
            <div style="margin-top: 30px;" class="editcss">
              <TitleWithCircle title="基础信息" />
              <div style="padding: 20px;" v-if="info.cereAdvertisingInformation.id">
                <el-form :model="info.cereAdvertisingInformation" ref="ruleForm" label-width="140px"
                  class="demo-ruleForm">
                  <el-row :gutter="20">
                    <el-col :span="8">
                      <el-form-item label="广告位名称" prop="advertisingName">
                        <div class="duiqi">{{info.cereAdvertisingInformation.advertisingName || '无'}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="广告位编号" prop="advertisingSpaceNumber">
                        <div class="duiqi">{{info.cereAdvertisingInformation.advertisingSpaceNumber || '无'}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="广告位类型" prop="advertisingType">
                        <div class="duiqi">{{info.cereAdvertisingInformation.advertisingType || '无'}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20" v-if="info.cereAdvertisingInformation.advertisingType == '线上广告位'">
                    <el-col :span="8">
                      <el-form-item label="所属端" prop="affiliation" >
                        <div class="duiqi">{{info.cereAdvertisingInformation.affiliation || '无'}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="广告位数量" prop="advertisingNumber" >
                        <div class="duiqi">{{info.cereAdvertisingInformation.advertisingNumber || '无'}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="广告尺寸" prop="dimensions">
                        <div class="duiqi">{{info.cereAdvertisingInformation.dimensions || '无'}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="可上传大小" prop="size">
                        <div class="duiqi">{{info.cereAdvertisingInformation.size || '无'}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="播放时长" prop="playDuration">
                        <div class="duiqi">{{info.cereAdvertisingInformation.playDuration || '无'}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="推送地址" prop="pushAddress">
                        <div class="duiqi">{{info.cereAdvertisingInformation.pushAddress || '无'}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-row :gutter="20" v-if="info.cereAdvertisingInformation.advertisingType == '实体广告位'">
                    <el-col :span="8">
                      <el-form-item label="设备类型" prop="deviceType" >
                        <div class="duiqi">{{info.cereAdvertisingInformation.deviceType || '无'}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="设备大小" prop="equipmentSize" >
                        <div class="duiqi">{{info.cereAdvertisingInformation.equipmentSize || '无'}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="广告尺寸" prop="dimensions">
                        <div class="duiqi">{{info.cereAdvertisingInformation.dimensions || '无'}}</div>
                      </el-form-item>
                    </el-col>
                    <el-col :span="8">
                      <el-form-item label="广告材质" prop="advertisingMaterial">
                        <div class="duiqi">{{info.cereAdvertisingInformation.advertisingMaterial || '无'}}</div>
                      </el-form-item>
                    </el-col>
                  </el-row>
                  <el-form-item label="详细位置" prop="detailedLocation" v-if="info.cereAdvertisingInformation.advertisingType == '实体广告位'">
                    <div class="duiqi">{{info.cereAdvertisingInformation.detailedLocation || '无'}}</div>
                  </el-form-item>
                  <el-form-item label="地图标点" prop="mapPunctuation" v-if="info.cereAdvertisingInformation.advertisingType == '实体广告位'">
                    <div style="width: 100%;height: 300px;">
                      <newmap :isx="false" :message="info.cereAdvertisingInformation.mapPunctuation"></newmap>
                    </div>
                  </el-form-item>
                  <el-form-item label="位置示意图" prop="locationDiagram">
                    <img  v-for="item in info.cereAdvertisingInformation.locationDiagram.split(',')" :src="$baseURL+item" alt="" style="width:140px;height:140px;margin-left: 15px;">
                  </el-form-item>
cfcb44ef   杨鑫   '改bug版'
214
  
9b392fc6   wesley88   1
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
                  <el-form-item label="备注信息" prop="memo" v-if="info.cereAdvertisingInformation.advertisingType == '线上广告位'">
                    <div class="duiqi">{{info.cereAdvertisingInformation.memo || '无'}}</div>
                  </el-form-item>
                </el-form>
              </div>
  
            </div>
          </el-tab-pane>
        </el-tabs>
      </div>
      <div v-if="info.auditStatus == 1 && issp == '2'" style="border-top: 2px solid #eee;">
        <div style="padding-left: 130px;margin: 25px 0;">
          <el-radio v-model="radio" label="2">同意</el-radio>
          <el-radio v-model="radio" label="3">拒绝</el-radio>
        </div>
        <el-form :model="info" label-width="130px" class="demo-ruleForm">
          <el-form-item label="审核意见">
            <el-input maxlength="200" show-word-limit rows="4" v-model="auditComments" placeholder="请输入审核意见"
              type="textarea" />
          </el-form-item>
        </el-form>
      </div>
      <div v-if="(info.auditStatus == '2' || info.auditStatus == '3') && xiangTab == 'first'">
        <TitleWithCircle title="审核结果"/>
        <div style="padding: 20px;">
          <el-form :model="editbgid" label-width="100px" class="demo-ruleForm">
            <el-form-item label="状态">
              <div class="duiqi">{{info.auditStatus=='2'?'已发布':info.auditStatus=='3'?'不通过':'无'}}</div>
            </el-form-item>
            <el-form-item label="审核意见">
              <div class="duiqi">{{info.auditComments || '无'}}</div>
            </el-form-item>
          </el-form>
        </div>
      </div>
      <div>
        <el-button v-if="info.auditStatus == 1 && issp == '2'" @click="minSev"
          style="background-color: #3F9B6A;color: #fff;">确定</el-button>
        <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 newmap from "@/components/newmap/index";
    import {
      AdvertiserInfoEdit,
    } from '@/api/advertisement.js'
cfcb44ef   杨鑫   '改bug版'
265
266
267
    import {
      cerePlatformMerchant
    } from '@/api/newly.js'
9b392fc6   wesley88   1
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
    import TitleWithCircle from '@/components/top/index';
    import MapXian from "@/components/MapContainer/MapXian";
    export default {
      components: {
        TitleWithCircle,
        MapXian,
        newmap
      },
      props: {
        info: {
          type: Object,
          default: function() {
            return {}; // 返回一个空数组作为默认值
          },
        },
        issp: {
          type: String,
          default: function() {
            return '1';
          },
        },
      },
      data() {
        return {
          auditComments:'',
          radio: '2',
          ontype: '线上广告位',
          url: '',
          type: '1',
          tableData: [],
          xiangTab: 'first',
          siteIds: [],
          list: [],
          advIds: [],
          shopIds: [],
          shop: {},
          newshop: {},
          newinfo: {},
cfcb44ef   杨鑫   '改bug版'
306
307
308
309
310
          parentMessage: {},
          pagequery: {
            pageNumber: 0,
            pageSize: 10,
            checkState:'2',
4e955529   杨鑫   '1'
311
            phone: '',
cfcb44ef   杨鑫   '改bug版'
312
313
          },
          shopMsg:{}
9b392fc6   wesley88   1
314
315
316
317
        }
      },
      created() {
        console.log(this.info)
4e955529   杨鑫   '1'
318
        this.pagequery.phone = this.info.applicant
cfcb44ef   杨鑫   '改bug版'
319
320
321
        cerePlatformMerchant(this.pagequery).then(res=>{
           this.shopMsg = res.data.content[0]
        })
9b392fc6   wesley88   1
322
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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
      },
      computed: {
  
      },
      methods: {
        minSev() {
          console.error(this.info)
          console.error(this.radio)
  
          AdvertiserInfoEdit({
            id: this.info.id,
            'auditStatus': this.radio,
            auditComments: this.auditComments
          }).then(res => {
            console.error(res)
            if (res.code == 200) {
              this.$message({
                message: '处理成功',
                type: 'success'
              })
              this.info.auditStatus = this.radio
            } else {
              this.$message({
                message: '处理失败',
                type: 'error'
              })
            }
          })
        },
        openfile(e) {
          if (e) {
            const fullUrl = this.$baseURL + e;
            try {
              window.open(fullUrl, '_blank'); // 在新标签页中打开文件
            } catch (error) {
              console.error('打开文件失败:', error);
            }
          } else {
            console.error('无文件可查看');
          }
        },
        changetype() {
          this.xiangTab = 'first'
          if (this.type == '1') {
            this.$emit('removeonaction', '1')
          } else {
            this.type = '1'
          }
        },
        open(row) {
          console.error(row)
          this.type = '2'
          this.newinfo = row
          businessListGetById({
            shopId: row.relatedMerchants
          }).then(res => {
            console.log(res)
            this.newshop = res.data
          })
        },
        closeFn() {
          this.$emit('change', false);
        },
      }
    }
  </script>
  <style>
    .el-form-item__label {
      color: #a2a2a2;
    }
  
    .greens {
      color: #3F9B6A;
    }
  </style>