addht copy.vue 27.5 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 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 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 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 214 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 265 266 267 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 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 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 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 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 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833
<template>
  <div>
    <el-form :model="formInline" :rules="rulesHetong" ref="heForm" label-width="130px" class="demo-ruleForm">
      <el-row :gutter="20">
        <el-col :span="12">
          <el-form-item label="合同类型" prop="contractType">
            <el-select v-model="formInline.contractType" placeholder="请选择" style="width: 100%;">
              <el-option label="商铺合同" value="商铺合同"></el-option>
              <el-option label="广告位合同" value="广告位合同"></el-option>
              <el-option label="场地合同" value="场地合同"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="合同编号" prop="contractNumber">
            <el-input v-model="formInline.contractNumber" placeholder="请输入" maxlength="20"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="12">
          <el-form-item label="标段号" prop="sectionNumber">
            <el-input v-model="formInline.sectionNumber" placeholder="请输入" maxlength="20"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="合同名称" prop="contractName">
            <el-input v-model="formInline.contractName" placeholder="请输入" maxlength="50"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="12">
          <el-form-item label="合同签订日期" prop="contractSigningDate">
            <el-date-picker v-model="formInline.contractSigningDate" type="date" value-format="yyyy-MM-dd"
              placeholder="选择日期" style="width: 100%;">
            </el-date-picker>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="押金" prop="earnestMoney">
            <el-input v-model="formInline.earnestMoney" placeholder="请输入" maxlength="20"></el-input>
          </el-form-item>

        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="12">
          <el-form-item label="起租日期" prop="leaseStartDate">
            <el-date-picker v-model="formInline.leaseStartDate" type="date" value-format="yyyy-MM-dd" placeholder="选择日期"
              style="width: 100%;">
            </el-date-picker>
          </el-form-item>

        </el-col>
        <el-col :span="12">
          <el-form-item label="终止日期" prop="contractTerminationDate">
            <el-date-picker v-model="formInline.contractTerminationDate" type="date" value-format="yyyy-MM-dd"
              placeholder="选择日期" style="width: 100%;">
            </el-date-picker>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="12">
          <el-form-item label="付款周期" prop="paymentCycle">
            <el-select v-model="formInline.paymentCycle" placeholder="请选择" style="width: 100%;">
              <el-option label="按年" value="按年"></el-option>
              <el-option label="按月" value="按月"></el-option>
              <el-option label="按日" value="按日"></el-option>
              <el-option label="季度" value="季度"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="租金" prop="contractAmount">
            <el-input v-model="formInline.contractAmount" placeholder="请输入" maxlength="20"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="12">
          <el-form-item label="付款日" prop="paymentDay">
            <el-select v-model="formInline.paymentDay" placeholder="请选择" style="width: 100%;">
              <el-option :label="val+'号'" :value="val+'号'" v-for="val in 31"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="承租人银行账号" prop="tenantBankAccount">
            <el-input v-model="formInline.tenantBankAccount" placeholder="请输入" maxlength="20"></el-input>
          </el-form-item>
        </el-col>
      </el-row>
      <el-form-item label="绑定商家" prop="relatedMerchants">
        <el-select style="width: 100%;" v-model="formInline.relatedMerchants" placeholder="请输入关键词搜索" filterable
          @change="changeRelatedMerchants">
          <el-option v-for="(item,index) in shopList" :key="index" :label="item.name+ ' ' + item.phone"
            :value="item.id+''" />
        </el-select>
      </el-form-item>
      <el-row :gutter="20">
        <el-col :span="12">
          <el-form-item label="承租人名称" prop="tenantName">
            <el-input v-model="formInline.tenantName" placeholder="请输入" maxlength="20"></el-input>
          </el-form-item>
        </el-col>
        <el-col :span="12">
          <el-form-item label="联系电话" prop="tenantTelephone">
            <el-input v-model="formInline.tenantTelephone" placeholder="请输入" maxlength="20"></el-input>
          </el-form-item>

        </el-col>

      </el-row>
      <el-form-item label="附件信息" prop="appendicesContract">

        <el-upload :auto-upload="false" class="video-uploader" :action="uploadFileUrl" :on-remove="hefuRemove"
          :on-change="hefuSuccess" :file-list="hefuData">
          <el-button style="background-color: #fff;color: #3F9B6A;border: 1px solid #dcdfe6;" class="buttonHover"
            v-if="hefuData.length==0">+点击上传</el-button>
          <div v-if="hefuData.length==0" slot="tip" class="el-upload__tip">(不超过50M,格式支持word、excel、ppt、pdf)</div>
        </el-upload>

      </el-form-item>
      <el-row :gutter="20">
        <el-col :span="24">
          <el-form-item label="绑定资源" prop="shopNumber">
            <div style="border: 1px solid #E5E5E5;padding: 1px" id="huodong">
              <div
                style="font-size: 14px;border-bottom: 1px solid #E5E5E5;display: flex;justify-content: space-between;line-height:20px;background:#F2F3F5;">
                <div></div>
                <div v-if="AddData.length != 1" style="color: #3F9B6A;padding:10px;" @click="mingShow">
                  添加
                </div>
              </div>
              <div style="padding: 15px;">
                <div style="padding: 0px 20px 0px 0px">
                  <el-table :data="AddData"
                    :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}">
                    <el-table-column label="序号" min-width="5%">
                      <template slot-scope="scope">
                        {{scope.$index + 1}}
                      </template>
                    </el-table-column>
                    <el-table-column label="资源名称" min-width="20%" show-overflow-tooltip>
                      <template slot-scope="scope">
                        {{scope.row.shopName ? scope.row.shopName :  scope.row.advertisingName?scope.row.advertisingName:scope.row.venueName}}
                      </template>
                    </el-table-column>
                    <el-table-column label="资源类型" min-width="10%">
                      <template slot-scope="scope">
                        {{scope.row.shopName ? '商铺' : scope.row.advertisingType?scope.row.advertisingType:'场地'}}
                      </template>
                    </el-table-column>

                    <el-table-column label="详细地址" min-width="20%">
                      <template slot-scope="scope">
                        {{scope.row.detailedLocation}}
                      </template>
                    </el-table-column>

                    <el-table-column prop="notes" label="实际使用面积" min-width="25%">
                      <template slot-scope="scope">
                        {{scope.row.actualArea ? scope.row.actualArea :  scope.row.actualUsableArea?scope.row.actualUsableArea:'-'}}
                      </template>

                    </el-table-column>

                    <el-table-column label="操作" min-width="15%">
                      <template slot-scope="scope">
                        <div @click="MingDelete(scope.$index)" class="tableBtn greens">删除</div>
                      </template>
                    </el-table-column>
                  </el-table>
                </div>
              </div>
            </div>
          </el-form-item>
        </el-col>
      </el-row>
      <el-row :gutter="20">
        <el-col :span="12">
          <el-form-item>
            <div style="margin-top: 20px">
              <el-button @click="add()" style="background-color: #3F9B6A;color: #fff;">确定</el-button>
              <el-button @click="close()" class="buttonHover"
                style="color: #606266;border: 1px solid #DBDBDB;background-color: #fff;">取消</el-button>
            </div>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <el-dialog :visible.sync="addMing" title="选择资源" style="padding: 0;" width="65%" append-to-body center
      :close-on-click-modal="false" :close-on-press-escape="false" :show-close="false">
      <div style="max-height:50vh;overflow-y: auto;">
        <el-table :data="ziyuanData" tooltip-effect="dark" @row-click="handleSelectionChange"
          :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}" highlight-current-row>
          <!-- <el-table-column label="选择" type="selection" width="55">
          </el-table-column> -->
          <el-table-column label="序号">
            <template slot-scope="scope">
              {{scope.$index + 1}}
            </template>
          </el-table-column>
          <el-table-column label="编号" prop="id">

          </el-table-column>
          <el-table-column label="资源名称">
            <template slot-scope="scope">
              {{scope.row.shopName ? scope.row.shopName :  scope.row.advertisingName?scope.row.advertisingName:scope.row.venueName}}
            </template>
          </el-table-column>
          <el-table-column label="资源类型">
            <template slot-scope="scope">
              {{scope.row.shopName ? '商铺' : scope.row.advertisingType?scope.row.advertisingType:'场地'}}
            </template>
          </el-table-column>
        </el-table>
      </div>
      <template #footer>
        <div style="display: flex; justify-content: flex-end; align-items: center;">
          <el-button @click="minSev" style="background-color: #3F9B6A;color: #fff;">确定</el-button>
          <el-button @click="mingClose" class="buttonHover"
            style="color: #606266;border: 1px solid #dddfe5;background-color: #fff;">取消</el-button>
        </div>
      </template>
    </el-dialog>
  </div>
</template>

<script>
  import {
    businessListGetAll,
  } from '@/api/business'
  import upimg from "@/components/ImageUpload/index"
  import {
    uploadUrl
  } from '@/utils/request'
  import {
    getAlls,
    changAlls
  } from '@/api/information.js'
  import {
    getAlls as map1
  } from '@/api/map1.js'
  import {
    miniioupload
  } from '@/api/commodityLease.js'
  import {

    contractinsertAdd
  } from '@/api/manage.js'
  import {
    cerePlatformMerchant
  } from '@/api/newly.js'
  import {
    msgedit
  } from '@/api/cereBusinessInfo'
  import {
    AdvertiserInfoEdit
  } from '@/api/advertisement.js'
  export default {
    components: {
      upimg
    },
    data() {
      return {
        list1: [
          {
            name: '合同类型',
            key: 'contractType',
            type: '下拉选择',
            isrequired: '是',
            width: '50%(半行)',
            length: '20',
            value: '',
            list: [{
                label: '商铺合同',
                value: '商铺合同',
              },
              {
                label: '广告位合同',
                value: '广告位合同',
              },
              {
                label: '场地合同',
                value: '场地合同',
              },
            ]
          },
          {
            name: '合同编号',
            key: 'contractNumber',
            type: '单行文本',
            isrequired: '是',
            width: '50%(半行)',
            length: '20',
            value: '',
          },
          {
            name: '标段号',
            key: 'sectionNumber',
            type: '单行文本',
            isrequired: '是',
            width: '50%(半行)',
            length: '20',
            value: '',
          },
          {
            name: '合同名称',
            key: 'contractName',
            type: '单行文本',
            isrequired: '是',
            width: '50%(半行)',
            length: '50',
            value: '',
          },
          {
            name: '合同签订日期',
            key: 'contractSigningDate',
            type: '日期',
            isrequired: '是',
            width: '50%(半行)',
            length: '',
            value: '',
          },
          {
            name: '押金',
            key: 'earnestMoney',
            type: '单行数字文本',
            isrequired: '是',
            width: '50%(半行)',
            length: '20',
            value: '',
          },
          {
            name: '起租日期',
            key: 'leaseStartDate',
            type: '日期',
            isrequired: '是',
            width: '50%(半行)',
            length: '',
            value: '',
          },
          {
            name: '终止日期',
            key: 'contractTerminationDate',
            type: '日期',
            isrequired: '是',
            width: '50%(半行)',
            length: '',
            value: '',
          },
          {
            name: '付款周期',
            key: 'paymentCycle',
            type: '下拉选择',
            isrequired: '是',
            width: '50%(半行)',
            length: '20',
            value: '',
            list: [{
                label: '按年',
                value: '按年',
              },
              {
                label: '按月',
                value: '按月',
              },
              {
                label: '按日',
                value: '按日',
              },
              {
                label: '季度',
                value: '季度',
              },
            ]
          },
          {
            name: '租金',
            key: 'contractAmount',
            type: '单行数字文本',
            isrequired: '是',
            width: '50%(半行)',
            length: '20',
            value: '',
          },
          {
            name: '付款日',
            key: 'paymentDay',
            type: '付款日',
            isrequired: '是',
            width: '50%(半行)',
            length: '20',
            value: '',
          },
          {
            name: '承租人银行账号',
            key: 'tenantBankAccount',
            type: '单行数字文本',
            isrequired: '是',
            width: '50%(半行)',
            length: '20',
            value: '',
          },
          {
            name: '绑定商家',
            key: 'relatedMerchants',
            type: '商家',
            isrequired: '是',
            width: '100%(一行)',
            length: '',
            value: '',
          },
          {
            name: '承租人名称',
            key: 'tenantName',
            type: '单行文本',
            isrequired: '是',
            width: '50%(半行)',
            length: '20',
            value: '',
          },
          {
            name: '联系电话',
            key: 'tenantTelephone',
            type: '单行数字文本',
            isrequired: '是',
            width: '50%(半行)',
            length: '20',
            value: '',
          },
          {
            name: '附件信息',
            key: 'appendicesContract',
            type: '附件',
            isrequired: '是',
            width: '100%(一行)',
            length: '',
            value: '',
          },
          {
            name: '绑定资源',
            key: 'shopNumber',
            type: '资源',
            isrequired: '是',
            width: '100%(一行)',
            length: '',
            value: '',
            list:[]
          },
        ],
        AddData: [], //最后资源
        multipleSelection: [], //资源
        addMing: false,
        ziyuanData: [],
        shopId: null,
        hefuData: [], //合同附件
        uploadFileUrl: uploadUrl, // 请求地址
        shopList: [],
        formInline: {
          // 合同类型
          contractType: '',
          // 合同编号
          contractNumber: '',
          // 标段号
          sectionNumber: '',
          // 合同名称
          contractName: '',
          // 押金
          earnestMoney: '',
          // 合同签订日期
          contractSigningDate: '',
          // 合同终止日期
          contractTerminationDate: '',
          // 起租日期
          leaseStartDate: '',
          // 付款周期
          paymentCycle: '',
          // 合同金额(租金)
          contractAmount: '',
          // 付款日
          paymentDay: '',
          // 承租人名称
          tenantName: '',
          // 承租人联系电话
          tenantTelephone: '',
          // 承租人银行账号
          tenantBankAccount: '',
          // 关联商家
          relatedMerchants: '',
          // 商铺编号(绑定资源)
          shopNumber: '',
          // 合同附件
          appendicesContract: '',
          //合同状态
          dataStatus: '1'
        },
        rulesHetong: {
          contractType: [{
            required: true,
            message: '请选择合同类型',
            trigger: 'change'
          }],
          contractNumber: [{
            required: true,
            message: '请输入合同编号',
            trigger: 'blur'
          }],
          sectionNumber: [{
            required: true,
            message: '请输入标段号',
            trigger: 'blur'
          }],
          contractName: [{
            required: true,
            message: '请输入合同名称',
            trigger: 'blur'
          }],
          earnestMoney: [{
            required: true,
            message: '请输入押金',
            trigger: 'blur'
          }],
          contractSigningDate: [{
            required: true,
            message: '请选择签订日期',
            trigger: 'change'
          }],
          contractTerminationDate: [{
            required: true,
            message: '请选择终止日期',
            trigger: 'change'
          }],
          leaseStartDate: [{
            required: true,
            message: '请选择起租日期',
            trigger: 'change'
          }],
          paymentCycle: [{
            required: true,
            message: '请选择付款周期',
            trigger: 'change'
          }],
          contractAmount: [{
            required: true,
            message: '请输入租金',
            trigger: 'blur'
          }],
          paymentDay: [{
            required: true,
            message: '请选择付款日',
            trigger: 'change'
          }],
          tenantName: [{
            required: true,
            message: '请输入承租人名称',
            trigger: 'blur'
          }],
          tenantTelephone: [{
            required: true,
            message: '请输入联系电话',
            trigger: 'blur'
          }],
          tenantBankAccount: [{
            required: true,
            message: '请输入承租人银行账号',
            trigger: 'blur'
          }],
          relatedMerchants: [{
            required: true,
            message: '请选择绑定商家',
            trigger: 'change'
          }],
          shopNumber: [{
            required: true,
            message: '请选择绑定资源',
            trigger: 'change'
          }],
          appendicesContract: [{
            required: true,
            message: '请上传合同附件',
            trigger: 'blur'
          }],
        },
        shopfrom: {
          checkState:'2',
          pageNumber: 0,
          pageSize: 1000,
        },
        pageindex: {
          pageNumber: 0,
          pageSize: 20,
        },
        baseURL: 'http://192.168.2.38:9003',
        uploadFiles: [],
        filesLength: 1
      };
    },
    props: {
      info: {
        type: Object,
        default: {}
      }
    },
    async created() {
      console.error({...this.info})
      await cerePlatformMerchant(this.shopfrom).then(res => {
        this.shopList = res.data.content
        console.error(this.shopList)
      })
      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)
        }
        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
          }
        }
      }
    },
    methods: {
      add() {
        console.error({
            ...this.formInline
          })
          // return
        console.error(this.AddData)
        console.error(this.hefuData)
        // console.error()
        let c1 = ''
        for (let i = 0; i < this.hefuData.length; i++) {
          if (i == 0) {
            c1 = this.hefuData[i].url
          } else {
            c1 = c1 + ',' + this.hefuData[i].url
          }
        }
        let c2 = ''
        for (let i = 0; i < this.AddData.length; i++) {
          let cnet = ''
          if (this.AddData[i].shopName) {
            cnet = 'sp' + this.AddData[i].id
          } else if (this.AddData[i].advertisingType) {
            cnet = 'gg' + this.AddData[i].id
          } else {
            cnet = 'cd' + this.AddData[i].id
          }
          if (i == 0) {
            c2 = cnet
          } else {
            c2 = c2 + ',' + cnet
          }
        }

        if (this.formInline.id) {
          // this.$refs[formName].validate((valid) => {
          //   console.log(valid)
          //   if (valid) {
          //     contractinsertAdd(this.formInline).then(res => {

          //     })
          //   } else {
          //     this.$message({
          //       message: '请填写完整信息',
          //       type: 'error'
          //     })
          //     return false;
          //   }
          // })
        } else {

          this.formInline.appendicesContract = c1
          this.formInline.shopNumber = c2
          console.error({
            ...this.formInline
          })
          this.$refs.heForm.validate((valid) => {
            console.log(valid)
            if (valid) {
              contractinsertAdd({
                ...this.formInline,
                relatedMerchants: this.shopId,
                updateUser: localStorage.getItem('roleName')
              }).then(res => {
                console.error(res)
                if (res.code == 200) {
                  this.$message({
                    message: '添加成功',
                    type: 'success'
                  })
                  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
                      })
                    }

                  }
                  this.$emit('removeonaction', '1')
                } else {
                  this.$message({
                    message: res.msg,
                    type: 'error'
                  })
                }

              })
            } else {
              this.$message({
                message: '请填写完整信息',
                type: 'error'
              })
              return false;
            }
          })

        }
      },
      close() {
        this.$emit('removeonaction', '1')
      },
      MingDelete(item) {
        this.AddData.splice(item, 1);
      },
      async mingShow() {
        const ziyuan = await getAlls(this.pageindex)
        const ggw = await map1(this.pageindex)
        const changdi = await changAlls(this.pageindex)
        this.ziyuanData = [...ziyuan.data.content, ...ggw.data.content, ...changdi.data.content]
        console.error(this.ziyuanData)
        this.addMing = true
      },
      handleSelectionChange(selection) {
        // 处理选择变化的逻辑
        console.error(selection)
        this.multipleSelection= []
        this.multipleSelection.push(selection)
      },
      minSev() {
        // this.AddData = this.multipleSelection
        const filteredAddData = this.AddData.filter(itemAdd => {
          // 使用 some 方法检查 this.multipleSelection 中是否存在具有相同 id 的元素
          return !this.multipleSelection.some(itemMultiple => itemMultiple.id === itemAdd.id);
        });
        this.AddData = filteredAddData.concat(this.multipleSelection)
        this.addMing = false
        this.multipleSelection = []

      },
      mingClose() {
        this.multipleSelection = []
        this.ziyuanData = []
        this.addMing = false
      },
      changeRelatedMerchants(e) {
        console.error(e)
        this.shopId = this.shopList[e].id
        this.formInline.tenantName = this.shopList[e].name
        this.formInline.tenantTelephone = this.shopList[e].phone
      },
      hefuRemove() {
        this.hefuData = []
      },
      hefuSuccess(response, file, fileList) {
        this.hefuData = []
        console.error(response)
        let fd = new FormData()
        fd.append('file', response.raw)
        fd.append('filePath', 'hetong')
        miniioupload(fd).then(res => {
          console.error(res)
          const fileMsg = {
            name: response.name,
            url: res.data,
          }
          this.hefuData.push(fileMsg)
        })
      },


    },
  };
</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;
  }
</style>