Blame view

admin-web-master/src/components/add/addht.vue 21.3 KB
93c8bac5   李宇   1
1
2
  <template>
    <div>
9a707dae   wesley88   1
3
4
5
6
7
8
9
10
11
12
13
14
15
16
      <div v-if="contractChangeReason == ''">
        <TitleWithCircle title="模版" style="margin-bottom: 20px;" />
        <el-form :model="mbinfo" :rules="rulesmbinfo" ref="rulesmbinfoForm" label-width="130px" class="demo-ruleForm">
          <el-row :gutter="20">
            <el-col :span="12">
              <el-form-item label="模板" prop="type">
                <el-select filterable v-model="mbinfo.type" placeholder="请选择" style="width: 100%;" @change="changeRelatedMerchants">
                  <el-option :label="item.templateName" :value="index" v-for="(item,index) in mbData" :key="index"></el-option>
                </el-select>
              </el-form-item>
            </el-col>
          </el-row>
        </el-form>
        <TitleWithCircle title="合同信息" style="margin-bottom: 20px;" />
d6ddfcc4   wesley88   1
17
        <mbadd v-if="isshow" ref="rulesallForm" :list1="list1" :isdel="isdel" @changeContractType="changeContractType"/>
9a707dae   wesley88   1
18
19
20
21
22
23
24
25
26
27
28
29
30
31
        <div style="margin-top: 20px;margin-left: 65px;">
          <el-button @click="close()" class="buttonHover" style="color: #606266;border: 1px solid #DBDBDB;background-color: #fff;">取消</el-button>
          <el-button @click="add()" style="background-color: #3F9B6A;color: #fff;">确定</el-button>
          <el-button @click="ylht()" style="background-color: #3F9B6A;color: #fff;">预览</el-button>
        </div>
      </div>
      <div v-else>
        <TitleWithCircle title="合同信息" style="margin-bottom: 20px;" />
        <mbadd v-if="isshow" ref="rulesallForm" :list1="list1" />
        <div style="margin-top: 20px;margin-left: 65px;">
          <el-button @click="close()" class="buttonHover" style="color: #606266;border: 1px solid #DBDBDB;background-color: #fff;">取消</el-button>
          <el-button @click="add1()" style="background-color: #3F9B6A;color: #fff;">确定</el-button>
          <el-button @click="ylht()" style="background-color: #3F9B6A;color: #fff;">预览</el-button>
        </div>
6abe0316   wesley88   1
32
      </div>
93c8bac5   李宇   1
33
34
    </div>
  </template>
93c8bac5   李宇   1
35
  <script>
6abe0316   wesley88   1
36
37
38
    import TitleWithCircle from '@/components/top/index';
    import mbadd from '@/components/change/mbadd';
    import {contractinsertAdd} from '@/api/manage.js'
93c8bac5   李宇   1
39
    import {
6abe0316   wesley88   1
40
      cereContractTemplate,cerePlatformMerchant
9d8bcb26   wesley88   2
41
    } from '@/api/newly.js'
173aa0e0   wesley88   1
42
    import {
542e27d5   wesley88   1
43
44
      dataInprotDocument,modifyResourceStatus,
      cereAssetShopInformationqueryByPage,cereAssetShopInformationedit
6abe0316   wesley88   1
45
    } from '@/api/newly.js'
9a707dae   wesley88   1
46
47
48
49
50
51
52
53
54
  import {
      msgedit
    } from '@/api/cereBusinessInfo'
    import {
      AdvertiserInfoEdit
    } from '@/api/advertisement.js'
    import {
      cereContractInformation
    } from '@/api/commodityLease.js'
93c8bac5   李宇   1
55
56
    export default {
      components: {
6abe0316   wesley88   1
57
58
        TitleWithCircle,
        mbadd
93c8bac5   李宇   1
59
60
61
      },
      data() {
        return {
6abe0316   wesley88   1
62
63
64
65
66
67
          mbinfo:{
            type:''
          },
          onmbinfo:{},
          mbData:[],
          list1: [],
d6ddfcc4   wesley88   1
68
          list2:[],
6abe0316   wesley88   1
69
70
71
72
73
74
75
76
          rulesmbinfo:{
            type: [{
              required: true,
              message: '请选择模板',
              trigger: 'change'
            }],
          },
          isshow: false,
93c8bac5   李宇   1
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
          formInline: {
            // 合同类型
            contractType: '',
            // 合同编号
            contractNumber: '',
            // 标段号
            sectionNumber: '',
            // 合同名称
            contractName: '',
            // 押金
            earnestMoney: '',
            // 合同签订日期
            contractSigningDate: '',
            // 合同终止日期
            contractTerminationDate: '',
            // 起租日期
            leaseStartDate: '',
            // 付款周期
            paymentCycle: '',
            // 合同金额(租金)
            contractAmount: '',
            // 付款日
            paymentDay: '',
            // 承租人名称
            tenantName: '',
            // 承租人联系电话
            tenantTelephone: '',
            // 承租人银行账号
            tenantBankAccount: '',
            // 关联商家
            relatedMerchants: '',
            // 商铺编号(绑定资源)
            shopNumber: '',
            // 合同附件
900ab311   李宇   1
111
112
            appendicesContract: '',
            //合同状态
c4af7f82   wesley88   1
113
            dataStatus: '4',
6abe0316   wesley88   1
114
            //模版信息
9a707dae   wesley88   1
115
116
            templateInformation:'',
            //模版url
d6ddfcc4   wesley88   1
117
118
119
120
121
122
            templateInformationUrl:'',
  
             //跳转链接
             redirectUrl:'',
              //封面图片
              coverImage:'',
93c8bac5   李宇   1
123
          },
9a707dae   wesley88   1
124
          templateAttachment:'',
542e27d5   wesley88   1
125
          AddData:[],
d6ddfcc4   wesley88   1
126
127
128
          dpinfo:null,
          redirectUrl:'',
          coverImage:'',
93c8bac5   李宇   1
129
130
        }
      },
9a707dae   wesley88   1
131
132
133
134
135
      props: {
        info: {
          type: Object,
          default: {}
        },
5149de3a   wesley88   1
136
137
138
139
        isdel: {
          type: String,
          default:''
        },
9a707dae   wesley88   1
140
141
142
143
144
        contractChangeReason: {
          type: String,
          default: ''
        },
      },
173aa0e0   wesley88   1
145
      async created() {
6abe0316   wesley88   1
146
        this.getmb()
9a707dae   wesley88   1
147
148
149
150
151
152
153
154
155
156
157
158
        console.error({...this.info})
        // console.error(this.templateInformation)
        if(this.info.id) {
          if(this.info.cereBasicInformationShop && this.info.cereBasicInformationShop.id) {
            this.AddData.push(this.info.cereBasicInformationShop)
          }
          if(this.info.cereAdvertisingInformation && this.info.cereAdvertisingInformation.id) {
            this.AddData.push(this.info.cereAdvertisingInformation)
          }
          if(this.info.cereBasicInformationVenue && this.info.cereBasicInformationVenue.id) {
            this.AddData.push(this.info.cereBasicInformationVenue)
          }
542e27d5   wesley88   1
159
160
161
162
163
164
          cereAssetShopInformationqueryByPage({"pageNumber":0,"pageSize":10,"contractId":this.info.id}).then(res => {
            console.error(res.data.content)
            if(res.data.content.length>0){
              this.dpinfo = res.data.content[0]
            }
          })
9a707dae   wesley88   1
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
          // for (let index = 0; index < this.shopList.length; index++) {
          //   const element = this.shopList[index];
          //   console.error(element)
          //   if(element.phone == this.info.applicant) {
          //     this.shopId = element.id+''
          //     this.formInline.relatedMerchants = element.id+''
          //     this.formInline.tenantName = element.name
          //     this.formInline.tenantTelephone = element.phone
          //   }
          // }
        }
        if(this.info.templateInformation) {
          let listall = JSON.parse(this.info.templateInformation)
          console.error(listall)
          let listallcl = listall.map((item) => {
            if(item.type != '资源' && item.type != '商家' && item.key != 'tenantName' && item.key != 'tenantTelephone') {
              item.value = ''
              return item;
            } else {
              item.ishow = true
              return item
            }
          });
          // console.error(listallcl)
          this.list1 = listallcl
          this.isshow = true
        }
        if(this.info.templateInformationUrl){
          this.templateAttachment =  this.info.templateInformationUrl
        }
d6ddfcc4   wesley88   1
195
196
197
198
        if(this.info.redirectUrl){
          this.redirectUrl =  this.info.redirectUrl
        }
        if(this.info.coverImage){
3bfff9e5   杨鑫   最新1
199
          this.coverImage = this.info.coverImage
d6ddfcc4   wesley88   1
200
        }
93c8bac5   李宇   1
201
202
      },
      methods: {
d6ddfcc4   wesley88   1
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
        changeContractType(e) {
          console.error(e)
          this.isshow = false
          if(e == '广告位合同') {
            this.list1.push({
  						name: '跳转链接',
  						key: 'redirectUrl',
  						type: '单行文本',
  						isrequired: '是',
  						width: '100%(一行)',
  						length: '20',
  						value: this.redirectUrl ,
  					})
            this.list1.push({
  					  name: '封面图片',
  					  key: 'coverImage',
  					  type: '图片',
  					  isrequired: '是',
  					  width: '100%(一行)',
  					  length: '',
  					  value: this.coverImage,
  					})
            
          } else {
            this.list1 = this.list2
          }
          setTimeout(() => {
            this.isshow = true
          }, 100)
        },
9a707dae   wesley88   1
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
        async add1() {
          // this.addinfo1()
          // return
          let isjx = await this.$refs.rulesallForm.yanzhen()
          console.error(isjx)
          if(isjx) {
            console.error(']]]]]')
            this.addinfo1()
          }
        },
        async addinfo1() {
          let dataStatus = this.contractChangeReason == '合同变更' ? '2' : this.contractChangeReason == '合同续约' ? '2' : this.contractChangeReason == '合同终止' ? '3' : '1'
          let info1 = {}
          for (let index = 0; index < this.list1.length; index++) {
            const element = this.list1[index];
            console.error({...element})
            if(element.type == '资源') {
              if(element.value && typeof element.value == 'object') {
                if (element.value.shopName) {
                  info1.shopNumber = 'sp' + element.value.id
                } else if (element.value.advertisingType) {
                  info1.shopNumber = 'gg' + element.value.id
d6ddfcc4   wesley88   1
255
                  this.formInline.carouselId = element.value.carouselId
9a707dae   wesley88   1
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
                } else {
                  info1.shopNumber = 'cd' + element.value.id
                }
              }
            }else if(element.type == '商家') {
              info1.relatedMerchants = element.value
            } else{
              info1[element.key] = element.value+''
            }
            
          }
          console.error(info1)
          for (let key in info1) {
            if (this.formInline.hasOwnProperty(key)) {
              this.formInline[key] = info1[key];
            }
          }
          this.formInline.templateInformation = JSON.stringify(this.list1)
3bfff9e5   杨鑫   最新1
274
  		
9a707dae   wesley88   1
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
          let from = {
            ...this.formInline,
            contractChangeReason: this.contractChangeReason,
            dataStatus: dataStatus,
            contractNumber: this.info.contractNumber,
            newContractCode:this.formInline.contractNumber,
            originalContractCode: this.info.originalContractCode?this.info.originalContractCode:this.info.contractNumber,
            updateDate: this.updateCurrentTime(),
            contractChangeTime: this.updateCurrentTime(),
            updateUser:localStorage.getItem('roleName'),
            relatedMerchants: this.info.relatedMerchants,
            tenantName: this.info.tenantName,
            tenantTelephone: this.info.tenantTelephone,
            shopNumber: this.info.shopNumber,
            templateInformationUrl:this.templateAttachment,
c3f8e431   wesley88   1
290
291
            createDate:this.updateCurrentTime(),
            createUser: localStorage.getItem('roleName'),
9a707dae   wesley88   1
292
          }
3bfff9e5   杨鑫   最新1
293
294
  		// console.log(from)
  		// return
9a707dae   wesley88   1
295
296
297
298
          console.error(from)
          let info = await this.culfj()
          console.error(info)
          let c1 =  {
c0c9fa7a   wesley88   1
299
            documentAddress:  this.templateAttachment,
9a707dae   wesley88   1
300
301
302
303
304
305
306
307
308
309
310
311
312
            insertData: JSON.stringify(info)
          }
          dataInprotDocument(c1).then(res => {
            console.error(res)
            if(res.code == 200 && res.data) {
              from.appendicesContract = res.data
              cereContractInformation(from).then(res => {
                console.error(res)
                if (res.code == 200) {
                  this.$message({
                    message: '添加成功',
                    type: 'success'
                  })
ad5052c5   wesley88   1
313
314
315
316
317
318
                  modifyResourceStatus({
                    resourcesId: info1.shopNumber,
                    status:"4"
                  }).then(res => {
                    console.error(res)
                  })
542e27d5   wesley88   1
319
320
321
322
323
324
325
326
                  if(this.dpinfo) {
                    cereAssetShopInformationedit({
                      ...this.dpinfo,
                      contractId:res.data
                    }).then(res => {
                      console.error(res)
                    })
                  }
9a707dae   wesley88   1
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
                  this.$emit('removeonaction', '1')
                } else {
                  this.$message({
                    message: res.msg,
                    type: 'error'
                  })
                }
              })
            } else {
              this.$message({
                type: 'error',
                message: '附件生成失败'
              })
  
            }
          })    
  
        },
6abe0316   wesley88   1
345
        async add() {
3bfff9e5   杨鑫   最新1
346
  		
6abe0316   wesley88   1
347
348
349
350
          let ismb = false
          await this.$refs.rulesmbinfoForm.validate((valid) => {
            if (valid) {
              ismb = true
93c8bac5   李宇   1
351
            } else {
6abe0316   wesley88   1
352
353
354
355
356
              this.$message({
                message: '请填写完整信息',
                type: 'error'
              })
              ismb = false
93c8bac5   李宇   1
357
            }
6abe0316   wesley88   1
358
359
360
361
362
363
          })
          let isjx = await this.$refs.rulesallForm.yanzhen()
          console.error(ismb,isjx)
          if(ismb && isjx) {
            console.error(']]]]]')
            this.addinfo()
93c8bac5   李宇   1
364
          }
6abe0316   wesley88   1
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
        },
        close() {
          this.$emit('removeonaction', '1')
        },
        async addinfo(){
          let info1 = {}
          for (let index = 0; index < this.list1.length; index++) {
            const element = this.list1[index];
            console.error({...element})
            if(element.type == '资源') {
              if(element.value && typeof element.value == 'object') {
                if (element.value.shopName) {
                  info1.shopNumber = 'sp' + element.value.id
                } else if (element.value.advertisingType) {
                  info1.shopNumber = 'gg' + element.value.id
d6ddfcc4   wesley88   1
380
                  this.formInline.carouselId = element.value.carouselId
6abe0316   wesley88   1
381
382
383
384
385
386
387
388
                } else {
                  info1.shopNumber = 'cd' + element.value.id
                }
              }
            }else if(element.type == '商家') {
              info1.relatedMerchants = element.value
            } else{
              info1[element.key] = element.value+''
93c8bac5   李宇   1
389
            }
6abe0316   wesley88   1
390
391
392
393
394
395
            
          }
          console.error(info1)
          for (let key in info1) {
            if (this.formInline.hasOwnProperty(key)) {
              this.formInline[key] = info1[key];
93c8bac5   李宇   1
396
397
            }
          }
6abe0316   wesley88   1
398
399
400
          this.formInline.templateInformation = JSON.stringify(this.list1)
          let info = await this.culfj()
          console.error(info)
6abe0316   wesley88   1
401
          let c1 =  {
c0c9fa7a   wesley88   1
402
            documentAddress:  this.templateAttachment,
6abe0316   wesley88   1
403
404
            insertData: JSON.stringify(info)
          }
3bfff9e5   杨鑫   最新1
405
406
407
408
409
410
  
  		if(this.formInline.coverImage){
  			this.formInline.coverImage = this.$baseURL+this.formInline.coverImage
  		}
  		console.log(this.formInline.coverImage,'this.formInline.coverImagethis.formInline.coverImagethis.formInline.coverImage')
  		return
6abe0316   wesley88   1
411
412
413
414
          dataInprotDocument(c1).then(res => {
            console.error(res)
            if(res.code == 200 && res.data) {
              this.formInline.appendicesContract = res.data
d6ddfcc4   wesley88   1
415
              
3bfff9e5   杨鑫   最新1
416
  			
6abe0316   wesley88   1
417
418
              contractinsertAdd({
                ...this.formInline,
9a707dae   wesley88   1
419
                templateInformationUrl:this.templateAttachment,
6abe0316   wesley88   1
420
                createDate:this.updateCurrentTime(),
9a707dae   wesley88   1
421
422
423
                createUser: localStorage.getItem('roleName'),
                updateDate: this.updateCurrentTime(),
                updateUser:localStorage.getItem('roleName'),
6abe0316   wesley88   1
424
425
426
427
428
429
430
              }).then(res => {
                console.error(res)
                if (res.code == 200) {
                  this.$message({
                    message: '添加成功',
                    type: 'success'
                  })
ad5052c5   wesley88   1
431
432
433
434
435
436
                  modifyResourceStatus({
                    resourcesId: info1.shopNumber,
                    status:"4"
                  }).then(res => {
                    console.error(res)
                  })
c3f8e431   wesley88   1
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
                  if(this.info.id) {
                    if(this.info.cereBasicInformationShop && this.info.cereBasicInformationShop.id) {
                      msgedit({
                        auditStatus: '4',
                        id: this.info.id,
                        contractNumber: this.formInline.contractNumber
                      })
                    }
                    if(this.info.cereAdvertisingInformation && this.info.cereAdvertisingInformation.id) {
                      AdvertiserInfoEdit({
                        auditStatus: '4',
                        id: this.info.id,
                        contractId: this.formInline.contractNumber
                      }).then(item => {
                        this.getAll()
                      })
                    }
                    if(this.info.cereBasicInformationVenue && this.info.cereBasicInformationVenue.id) {
                      msgedit({
                        auditStatus: '4',
                        id: this.info.id,
                        contractNumber: this.formInline.contractNumber
                      })
                    }
                  }
6abe0316   wesley88   1
462
463
464
465
466
467
468
469
470
471
472
473
474
                  this.$emit('removeonaction', '1')
                } else {
                  this.$message({
                    message: res.msg,
                    type: 'error'
                  })
                }
              })
            } else {
              this.$message({
                type: 'error',
                message: '附件生成失败'
              })
93c8bac5   李宇   1
475
  
6abe0316   wesley88   1
476
477
478
479
            }
          })
          console.error({...this.formInline})
        },
9a707dae   wesley88   1
480
        async changeRelatedMerchants(e) {
6abe0316   wesley88   1
481
482
          console.error(e)
          this.isshow = false
9a707dae   wesley88   1
483
          this.templateAttachment = this.mbData[e].templateAttachment
6abe0316   wesley88   1
484
485
486
487
488
          console.error(this.mbData[e])
          this.onmbinfo = this.mbData[e]
          //判断是否是字符串
          if (typeof this.mbData[e].otherInfo == 'string') {
            this.list1 = JSON.parse(this.mbData[e].otherInfo)
93c8bac5   李宇   1
489
          } else {
6abe0316   wesley88   1
490
491
            this.list1 = this.mbData[e].otherInfo
          }
9a707dae   wesley88   1
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
          for (let i = 0; i < this.list1.length; i++) {
            if(this.list1[i].type == '资源'){
              if(this.AddData.length>0){
                this.list1[i].list = this.AddData
                this.list1[i].value = this.list1[i].list[0]
              }
            } else if(this.list1[i].type == '商家'){
              if(this.info.applicant) {
                await cerePlatformMerchant({
                  checkState: '2',
                  pageNumber: 0,
                  pageSize: 1000,
                  phone: this.info.applicant
                }).then(res => {
                  console.error(res)
                  this.list1[i].value = res.data.content.length>0?res.data.content[0].id+'':''
                })
              }
            }
          }
d6ddfcc4   wesley88   1
512
          this.list2 = this.list1
6abe0316   wesley88   1
513
514
515
516
517
518
519
520
521
522
523
524
525
526
          //延迟2秒
          setTimeout(() => {
            this.isshow = true
          }, 100)
        },
        async getmb() {
          const res = await cereContractTemplate({ pageNumber: 0,pageSize: 100})
          this.mbData = res.data.content
        },
        async culfj(){
          let info = {}
          for (let index = 0; index < this.list1.length; index++) {
            const element = this.list1[index];
            // console.error({...element})
72e22e26   杨鑫   最新修改
527
  		  
6abe0316   wesley88   1
528
            if(element.type == '资源') {
72e22e26   杨鑫   最新修改
529
  			  console.log(element.value,'element.value')
6abe0316   wesley88   1
530
              if(element.value && typeof element.value == 'object') {
72e22e26   杨鑫   最新修改
531
532
533
534
535
536
537
538
539
                info['资源名称'] =element.value.shopName?element.value.shopName:element.value.advertisingName?element.value.advertisingName:element.value.venueName?element.value.venueName:'暂无'
  			  
                info['资源类型'] =element.value.shopName?'商铺':element.value.advertisingType?element.value.advertisingType:element.value.venueName?'场地':'暂无'
  			  if(element.value.venueName){
  				  info['详细地址'] ='暂无'
  			  }else{
  				info['详细地址'] = element.value.detailedLocation?element.value.detailedLocation:'暂无'  
  			  }
                
6abe0316   wesley88   1
540
541
542
543
544
545
546
547
548
549
550
551
552
553
                info['实际使用面积'] = element.value.actualArea?element.value.actualArea:element.value.actualUsableArea?element.value.actualUsableArea:'暂无'
              } else {
                info['资源名称'] = '暂无'
                info['资源类型'] = '暂无'
                info['详细地址'] = '暂无'
                info['实际使用面积'] = '暂无'
              }
            } else if(element.type == '商家') {
              if(element.value){
                await cerePlatformMerchant({
                  checkState: '2',
                  pageNumber: 0,
                  pageSize: 1000,
                  id: element.value
4373acf5   wesley88   1
554
                }).then(res => {
93c8bac5   李宇   1
555
                  console.error(res)
9a707dae   wesley88   1
556
                  info['商家'] = res.data.content.length>0?res.data.content[0].name:'暂无'
93c8bac5   李宇   1
557
558
                })
              } else {
9a707dae   wesley88   1
559
                info['商家'] = '暂无'
93c8bac5   李宇   1
560
              }
6abe0316   wesley88   1
561
562
563
564
565
              
            } else{
              info[element.name] = element.value?element.value+'':'暂无'
            }
            
93c8bac5   李宇   1
566
          }
72e22e26   杨鑫   最新修改
567
  		
6abe0316   wesley88   1
568
          return info
93c8bac5   李宇   1
569
        },
6abe0316   wesley88   1
570
571
572
573
        async ylht(){
          let info = await this.culfj()
          console.error(info)
          let c1 =  {
c0c9fa7a   wesley88   1
574
            documentAddress:  this.templateAttachment,
6abe0316   wesley88   1
575
576
577
578
579
580
581
582
583
584
585
586
587
588
            insertData: JSON.stringify(info)
          }
          dataInprotDocument(c1).then(res => {
            console.error(res)
            if(res.code == 200 && res.data) {
              this.openfile(this.$baseURL+res.data)
            } else {
              this.$message({
                type: 'error',
                message: '预览失败'
              })
  
            }
          })
93c8bac5   李宇   1
589
        },
6abe0316   wesley88   1
590
591
592
593
594
595
596
597
598
599
600
        openfile(e) {
          if (e) {
            const fullUrl = e;
            try {
              window.open(fullUrl, '_blank'); // 在新标签页中打开文件
            } catch (error) {
              console.error('打开文件失败:', error);
            }
          } else {
            console.error('无文件可查看');
          }
93c8bac5   李宇   1
601
602
        },
        async mingShow() {
6abe0316   wesley88   1
603
          this.addzy = true
93c8bac5   李宇   1
604
        },
6abe0316   wesley88   1
605
606
607
608
609
610
611
612
613
          //获取当前时间
        updateCurrentTime() {
            const now = new Date();
            const year = now.getFullYear();
            const month = (now.getMonth() + 1).toString().padStart(2, '0');
            const day = now.getDate().toString().padStart(2, '0');
            const hours = now.getHours().toString().padStart(2, '0');
            const minutes = now.getMinutes().toString().padStart(2, '0');
            const seconds = now.getSeconds().toString().padStart(2, '0');
93c8bac5   李宇   1
614
  
6abe0316   wesley88   1
615
            return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
93c8bac5   李宇   1
616
        },
6abe0316   wesley88   1
617
618
      }
    }
93c8bac5   李宇   1
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
  </script>
  <style lang="css">
    .el-upload {
      display: block;
      text-align: left;
    }
  
    .el-dialog__header {
      background-color: #F2F3F5;
      text-align: left;
    }
  
    .el-dialog__title {
      line-height: 30px;
      font-size: 15px;
      color: #303133;
    }
6abe0316   wesley88   1
636
637
638
639
640
641
642
  
    .iterem {
      z-index: 99;
      margin-left: 10px;
      height: 40px;
      line-height: 25px;
    }
93c8bac5   李宇   1
643
  </style>