activityBian.vue 26.8 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
<template>
  <div>
	<div style="height:58px;line-height:58px;background:#fff;padding-left:20px;">
	  <div style="color:#0006"> <span>品牌策划</span>   <span style="padding:0 5px;">></span>  <span style="color:#000000e6">活动方案编辑</span></div>
	</div>
  <div style="font-size: 14px;background:#fff;">
    <div style="padding: 20px">
      <div style="border: solid 1px #E5E5E5;border-radius: 5px">
        <div style="border-bottom: 1px solid #E5E5E5;padding: 1px">
          <div style="padding: 10px 20px;background-color: #FAFAFA">
            基本信息
          </div>
        </div>
        <div style="padding: 20px 40px 20px 20px">
          <el-form  label-position="right" ref="jibenFrom" :model="secondData" :rules="rules" label-width="120px"
            style="position: relative">
            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="方案名称" class="grid-content bg-purple device-from" prop="planName">
                  <el-input v-model="secondData.planName" placeholder="请输入" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="类型" class="grid-content bg-purple" prop="planType">
                  <el-select v-model="secondData.planType" placeholder="请选择" disabled style="width: 100%">
                    <el-option label="活动策划" value="活动策划"></el-option>
                  </el-select>
                </el-form-item>
              </el-col>


            </el-row>

            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="活动地点" class="grid-content bg-purple" prop="eventAddrs">
                  <el-input v-model="secondData.eventAddrs" placeholder="请输入" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="活动时间" class="grid-content bg-purple" prop="planTime"
                  style="position: relative">
                  <el-date-picker style="width: 100%;" v-model="planTime" value-format="yyyy-MM-dd HH:mm:ss"
                    type="datetimerange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期"
                    align="right" @change="dateFormat">
                  </el-date-picker>
                </el-form-item>
              </el-col>
            </el-row>
            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="活动主题" class="grid-content bg-purple" prop="eventTheme">
                  <el-input v-model="secondData.eventTheme" placeholder="请输入" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="活动主办方" class="grid-content bg-purple" prop="sponsor">
                  <el-input v-model="secondData.sponsor" placeholder="请输入" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="活动参与方" prop="participants" class="grid-content bg-purple">
                  <el-input v-model="secondData.participants" placeholder="请输入" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="活动主要目的" prop="mainPurpose" class="grid-content bg-purple">
                  <el-input v-model="secondData.mainPurpose" placeholder="请输入" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="范围设置" class="grid-content bg-purple" prop="sponsor">
                  <el-select v-model="secondData.rangeSetting" placeholder="请选择"  style="width: 100%">
                    <!-- <el-option label="活动绿道段内" value="活动绿道段内"></el-option>
                    <el-option label="活动场地内" value="活动场地内"></el-option> -->
                    <el-option v-for="(item,index) in rangeSettingList" :key="index" :label="item.label" :value="item.value"></el-option>
                  </el-select>
                </el-form-item>
              </el-col>
            </el-row>
            <div style="padding: 10px">
              <el-row :gutter="20">
                  <el-col :span="24">
                    <el-form-item label="活动封面海报" prop="cover_poster" class="grid-content bg-purple">
                      <upimg filePath="act" :value="secondData.coverPoster==''?'':secondData.coverPoster" inputtype="coverPoster" :limit="1" @changimg="e=>changimg(e,'coverPoster')"></upimg>
                      <!-- <upimg v-model="secondData.coverPoster" :value="secondData.coverPoster==''?'':secondData.coverPoster" :limit="1" :fileSize="1" :isShowTip="false"></upimg> -->
                    </el-form-item>
                     </el-col>
              </el-row>
            </div>
          </el-form>
        </div>
      </div>
    </div>
    <div style="padding: 0px 20px 20px 20px">
      <div style="border: solid 1px #E5E5E5;border-radius: 5px">
        <div style="border-bottom: 1px solid #E5E5E5;padding: 1px;display: flex">
          <div style="padding: 10px 20px;background-color: #FAFAFA">
            活动明细信息
          </div>
          <div style="padding: 10px 0;color: #2d8a58" @click="addMing = true">
            添加明细
          </div>
        </div>
        <div style="padding: 20px 20px 20px 20px">
          <el-table :data="tableDa"
          :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}"
             style="width: 100%">
            <!-- <el-table-column label="序号" width="auto" min-width="5%" prop="date" align="center">
              <template slot-scope="scope">
                {{scope.$index + 1}}
                </template>
            </el-table-column> -->
            <el-table-column label="明细项名称" prop="detailLtemName" width="auto" min-width="22%">

            </el-table-column>
            <el-table-column label="预估数量" prop="estimatedQuantity" width="auto" min-width="15%">

            </el-table-column>
            <el-table-column label="预估费用(元)" prop="estimatedCost" width="auto" min-width="15%">
            </el-table-column>
            <el-table-column prop="notes" label="备注" width="auto" min-width="15%">
            </el-table-column>
            <el-table-column label="操作" width="auto" min-width="18%">
              <template slot-scope="scope">
                <!-- <div class="tableBtn greens">详情</div> -->
                <div class="tableBtn greens" @click="mingDel(scope.row)">删除</div>
              </template>
            </el-table-column>
          </el-table>
        </div>
      </div>
    </div>
    <div style="padding: 20px">
      <div style="border: solid 1px #E5E5E5;border-radius: 5px;padding-bottom: 20px;">
        <div style="border-bottom: 1px solid #E5E5E5;padding: 1px">
          <div style="padding: 10px 20px;background-color: #FAFAFA">
            活动成本信息
          </div>
        </div>
        <div style="padding: 20px 40px 0px 20px">
          <el-form  label-position="top" ref="ruleFormInfo" :model="secondData" label-width="130px"
            style="position: relative">
            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="内部人力成本预估(元)" class="grid-content bg-purple device-from" prop="name">
                  <el-input v-model="secondData.internalLaborCostEstimation" placeholder="请输入" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="外部人力成本预估(元)" class="grid-content bg-purple" prop="name">
                  <el-input v-model="secondData.externalLaborCostEstimation" placeholder="请输入" />
                </el-form-item>
              </el-col>


            </el-row>

            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="商品成本预估(元)" class="grid-content bg-purple" prop="name">
                  <el-input v-model="secondData.costEstimationGoods" placeholder="请输入" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="设备成本(元)" class="grid-content bg-purple" prop="name">
                  <el-input v-model="secondData.setCostEstimate" placeholder="请输入" />
                </el-form-item>
              </el-col>

            </el-row>
<el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="宣传费用(元)" class="grid-content bg-purple" prop="name">
                  <el-input v-model="secondData.estimatedPromotionalExpenses" placeholder="请输入" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="其他成本(元)" class="grid-content bg-purple" prop="name">
                  <el-input v-model="secondData.otherNecessaryEstimates" placeholder="请输入" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="总成本(元)" prop="name" class="grid-content bg-purple">
                  <el-input v-model="secondData.totalCostEstimation" placeholder="请输入" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="备注" prop="name" class="grid-content bg-purple">
                  <el-input v-model="secondData.notes" placeholder="请输入" />
                </el-form-item>
              </el-col>
            </el-row>
          </el-form>
        </div>
      </div>
    </div>

    <div style="padding: 20px">
      <div style="border: solid 1px #E5E5E5;border-radius: 5px;padding-bottom: 20px;">
        <div style="border-bottom: 1px solid #E5E5E5;padding: 1px">
          <div style="padding: 10px 20px;background-color: #FAFAFA">
            预估效果
          </div>
        </div>
        <div style="padding: 20px 40px 0px 20px">
          <el-form  label-position="top" ref="ruleFormInfo" :model="secondData" label-width="130px"
            style="position: relative">
            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="预估吸引流量" class="grid-content bg-purple device-from" prop="name">
                  <el-input v-model="secondData.expectedAttractTraffic" placeholder="请输入" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="预估参与人数" class="grid-content bg-purple" prop="name">
                  <el-input v-model="secondData.expectedParticipation" placeholder="请输入" />
                </el-form-item>
              </el-col>
            </el-row>
            <el-row :gutter="20">
              <el-col :span="12">
                <el-form-item label="预估直接收益(元)" class="grid-content bg-purple" prop="name">
                  <el-input v-model="secondData.expectedDirectBenefits" placeholder="请输入" />
                </el-form-item>
              </el-col>
              <el-col :span="12">
                <el-form-item label="预估间接收益(元)" class="grid-content bg-purple" prop="name">
                  <el-input v-model="secondData.expectedIndirectBenefits" placeholder="请输入" />
                </el-form-item>
              </el-col>

            </el-row>
          </el-form>
        </div>
      </div>
    </div>

    <div style="padding: 20px">
      <div style="border: solid 1px #E5E5E5;border-radius: 5px;padding-bottom: 20px;">
        <div style="border-bottom: 1px solid #E5E5E5;padding: 1px;display: flex">
          <div style="padding: 10px 20px;background-color: #FAFAFA">
            相关附件信息
          </div>
          <div>
            <upfile filePath="act" inputtype="otherImageVideos" :islist="false" :accept="'.docx'" :value="ruleForm.otherImageVideos" @changimg="e=>changimg(e,'otherImageVideos')"></upfile>
            <!-- <el-upload class="upload-demo" ref="upload"
            :action="uploadFileUrl"
            :on-success="handleUploadSuccess"
              :file-list="fileData" :show-file-list="false">
              <div style="color: #2d8a58;margin-left: 10px;margin-top: 10px;" slot="trigger">
                上传附件
              </div>
            </el-upload> -->
          </div>
        </div>
        <div style="padding: 20px 40px 0px 20px">
          <el-table :data="dataList"
          :header-cell-style="{fontSize: '14px',color:'#0009',fontWeight: 'normal',backgroundColor:'#F2F3F5'}"
             style="width: 100%">
            <!-- <el-table-column label="序号" width="auto" min-width="7%" prop="date" align="center">
              <template slot-scope="scope">
                {{scope.$index +1}}
               </template>
            </el-table-column> -->
            <el-table-column label="附件名称" prop="attachmentName" width="auto" min-width="75%">
            </el-table-column>
            <el-table-column label="操作" width="auto" min-width="18%">
              <template slot-scope="scope">
                <div @click="handleDelete(scope.row)" class="tableBtn greens">删除</div>
              </template>
            </el-table-column>
          </el-table>
        </div>
      </div>
    </div>

      <div style="padding: 20px;display:flex;justify-content: flex-end">
        <el-button plain @click="close" class="buttonHover"  style="background-color: #fff;color: #000;border: 1px solid #dcdfe6;">返回
        </el-button>
        <el-button plain @click="bianji"  style="background-color: #3F9B6A;color: #fff">保存
        </el-button>
      </div>

  </div>
  <el-dialog title="新增明细" :visible.sync="addMing" custom-class='ming_css' style="padding: 0;" width="50%"
  append-to-body
      center :close-on-click-modal="false" :close-on-press-escape="false" :show-close="false">
      <div style="padding: 15px;width:100%">
        <div style="">
          <div style="padding: 15px;">
            <el-form  label-position="right" ref="ruleFormInfo" :model="mingFrom" label-width="140px"
              style="position: relative">
                  <el-form-item label="明细项名称" class="grid-content bg-purple device-from" prop="planName">
                    <el-input v-model="mingFrom.detailLtemName" placeholder="请输入" />
                  </el-form-item>
                  <el-form-item label="预估数量" class="grid-content bg-purple" prop=" planType">
                    <el-input v-model="mingFrom.estimatedQuantity" placeholder="请输入" />
                  </el-form-item>

                  <el-form-item label="预估费用(元)" class="grid-content bg-purple" prop="eventAddrs">
                    <el-input v-model="mingFrom.estimatedCost" placeholder="请输入" />
                  </el-form-item>
            <el-form-item label="备注" class="grid-content bg-purple device-from" prop="planName">
              <el-input v-model="mingFrom.notes" placeholder="请输入" />
            </el-form-item>
            </el-form>
          </div>
        </div>

      </div>
      <div style="display: flex;justify-content: flex-end;padding: 10px 20px 0 0">
		  <el-button plain @click="addMing=false"  style="background-color: #3F9B6A;color: #fff;">取消
		  </el-button>
        <el-button plain @click="addming"  style="background-color: #3F9B6A;color: #fff;">保存
        </el-button>
      
      </div>
   </el-dialog>
</div>
</template>

<script>
  import {
    deleteById,
    queryByPage,
    xiangByPage,
    fujiaTable,
    mingTable,
    danqueryById,
    xiangedit,
    Mingdan,
    MingAdd,
    MingDel,
    fujiaAdd,
    fujiaDel
  } from '../../api/activityBz'
  import Vue from 'vue'
  import { uploadUrl } from '@/utils/request'
  import upimg from "@/components/ImageUpload/index"
  import upfile from "@/components/fujianUpload/fujianList"
   export default {
     props:{
       showBian:{
           type: Object,
            default: () => ({})
       }
     },
     components: { upimg,upfile},
      data() {
        return {
           uploadFileUrl: uploadUrl, // 请求地址
          secondData:{},
          rules:{
            planName:[{ required: true, message: '请输入方案名称', trigger: 'blur' }],
            planType:[{ required: true, message: '请选择方案类型', trigger: 'change' }],
            eventAddrs:[{ required: true, message: '请输入活动地点', trigger: 'blur' }],
            plan_Time:[{ required: true, message: '请选择活动时间', trigger: 'change' }],
            eventTheme:[{ required: true, message: '请输入活动主题', trigger: 'blur' }],
            sponsor:[{ required: true, message: '请输入活动主办方', trigger: 'blur' }],
          },
          ggXin:true,
          addMing:false,
          tableDa:[],
          planTime:'',
          dataList:[],
          fileData:[],
          mingFrom:{
            detailLtemName:'',
            estimatedQuantity:'',
            estimatedCost:'',
            notes:''
          },
          ruleForm:{}
        }
      },

      watch: {
            'showBian': {
                handler(newValue) {
					console.log(newValue)
                  // 当 showBian.acBian 发生变化时,更新 secondData
                  this.secondData = { ...newValue };
                   this.planTime = [newValue.eventStartTime, newValue.eventEndTime]
                   this.fucha(this.secondData.id)
                  this.mingcha(this.secondData.id)
                },
                immediate: true // 立即执行一次处理函数
              }
        },
        created() {

          },
          computed: {
            rangeSettingList() {
        return this.$store.state.cent.rangeSettingList;
      },
    },        mounted() {
          },
       methods: {
         changimg(e,type) {
			 console.log(e)
           this.secondData[type] = e
		
           if(type=='otherImageVideos'){
          const parts = e.split('/');
          const filename = parts[parts.length - 1];
             // let file ={
             //   url:e,
             //   attachmentName:filename
             // }
             let fuji={
                            detailsId:this.secondData.id,
                            attachmentName:filename,
                            attachmentUrl:e,
                          }
                          fujiaAdd(fuji).then(res=>{
             this.fucha(this.secondData.id)
                          })
             // this.dataList.push(file)
           }
         },
         //获取当前时间
          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');

               return  `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
             },
         dateFormat(){

         },
         // 附件新增
         handleUploadSuccess(response, file, fileList){
             let fuji={
               detailsId:this.secondData.id,
               attachmentName:file.name,
               attachmentUrl:file.response.data.url,
             }
             fujiaAdd(fuji).then(res=>{
this.fucha(this.secondData.id)
             })

         },
         // 查询明细
         mingcha(id){
           mingTable({detailsId:id,pageNumber:1,pageSize:10}).then(res=>{
             this.tableDa = res.data.content
           })
         },
         // 新增明细
       async addming(){
           this.mingFrom.detailsId = this.secondData.id
             await MingAdd(this.mingFrom)
            this.mingcha(this.secondData.id)
            this.mingFrom = {
                  detailLtemName:'',
                  estimatedQuantity:'',
                  estimatedCost:'',
                  notes:''
                }
            this.addMing = false
         },
         // 删除明细
         mingDel(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') {
                         MingDel({id:item.id}).then(res=>{
                            this.mingcha(this.secondData.id)
                           done();
                         })
                       } else {
                         done();
                       }
         }
         })
        },
        // 附件查询
        fucha(id){
          fujiaTable({detailsId:id,pageNumber:1,pageSize:10}).then(res=>{
            this.dataList = res.data.content
          })
        },

        // 附件删除
        handleDelete(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') {
                           fujiaDel({id:item.id}).then(res=>{
                              this.fucha(this.secondData.id)
                             done();
                           })
                         } else {
                           done();
                         }
           }
           })

        },
       bianji() {
        this.secondData.pageNumber = 1
        this.secondData.pageSize = 10
		this.secondData.updateDate = this.updateCurrentTime()
		this.secondData.updateUser = localStorage.getItem('roleName')
        let that = this
        Vue.delete(that.secondData,'createDate')
        let newobj = this.removeEmptyValues(this.secondData)
         this.$refs.jibenFrom.validate((valid) => {
           if (valid) {
     
            xiangedit(newobj).then(res=>{
              this.$emit('BianchildClose', false)
            })

           }else{
             return false;
           }
         })
      },
      removeEmptyValues(obj) {
        if (typeof obj !== 'object' || obj === null) {
          return obj;
        }
        const newObj = Array.isArray(obj) ? [] : {};

        for (const key in obj) {
          if (Object.prototype.hasOwnProperty.call(obj, key)) {
            const value = obj[key];
            if (value !== null && value !== undefined && value !== '' && !this.isEmptyObject(value)) {
              if (Array.isArray(newObj)) {
                newObj.push(this.removeEmptyValues(value));
              } else {
                newObj[key] = this.removeEmptyValues(value);
              }
            }
          }
        }
        return newObj;
      },
      isEmptyObject(obj) {
        return Object.keys(obj).length === 0 && obj.constructor === Object;
      },
      close(){
        this.$emit('BianchildClose', false);
      }
       }
   }
</script>

<style lang="scss" scoped>
::v-deep .bian_css{
   margin-top:9vh !important;
   margin-left:20%;
   height:600px;
   overflow-y: auto;
    .el-dialog__body {
      padding: 0px;
      background-color: #fff;
    }
    .el-dialog__header {
      background-color: #fff;
      padding:10px 20px 10px 20px;
      border-bottom: 1px solid #EFEFEF;
    }
    .el-dialog__title {
     font-size: 14px;
     color: #000000e6;
    }
    .el-date-table td.available:hover{
      background-color:#3F9B6A;
    }
  .el-date-table td.start-date span{
      background-color:#3F9B6A;
    }
  }
  ::v-deep .ming_css{
     margin-top:9vh !important;
     margin-left:20%;
     height:400px;
     overflow-y: auto;
      .el-dialog__body {
        padding: 0px;
        background-color: #fff;
      }
      .el-dialog__header {
        background-color: #fff;
        padding:10px 20px 10px 20px;
        border-bottom: 1px solid #EFEFEF;
      }
      .el-dialog__title {
       font-size: 14px;
       color: #000000e6;
      }
      .el-date-table td.available:hover{
        background-color:#3F9B6A;
      }
    .el-date-table td.start-date span{
        background-color:#3F9B6A;
      }
    }
  .greens {
    color: #3F9B6A;
  }
  .tableBtn {
    display: inline-block;
    margin-right: 10px;
  }
  .el-button--primary{
    background: #3F9B6A;
    border-color: #3F9B6A;
    color: #fff;
  }
  ::v-deep .el-button--primary:focus, .el-button--primary:hover{
    background: #3F9B6A;
    border-color: #3F9B6A;
    color: #fff;
  }
/* 修改 取消 按钮默认的边框颜色 */
::v-deep .oe-dialog-btn .el-button:first-child {
    border-color: #dcdfe6;
}
/* 修改 确认 按钮默认的边框颜色 */
::v-deep .oe-dialog-btn .el-button:last-child {
    background: #3F9B6A;
    border-color: #3F9B6A;
    color: #fff;
}
/* 修改 取消 按钮悬浮时的边框色、背景色和文字颜色 */
.oe-dialog-btn .el-button:first-child:hover{
    border-color: #dcdfe6;
    background: #fff;
    color: #000;
}
/* 修改 确认 按钮悬浮时的边框色、背景色和文字颜色 */
.oe-dialog-btn .el-button:last-child:hover{
   background: #3F9B6A;
   border-color: #3F9B6A;
   color: #fff;
}
/* 修改 取消 按钮点击时的边框色、背景色和文字颜色 */
.oe-dialog-btn .el-button:first-child:active{
 border-color: #dcdfe6;
 background: #fff;
 color: #000;
}
/* 修改 确认 按钮点击时的边框色、背景色和文字颜色 */
.oe-dialog-btn .el-button:last-child:active{
    background: #3F9B6A;
    border-color: #3F9B6A;
    color: #fff;
}
  ::v-deep .buttonHover:hover{
    color:#3f9b6a !important;
    border-color: #c5e1d2 !important;
    background-color: #ecf5f0 !important;
    outline: none;
  }
  ::v-deep .el-input__inner{
    height:32px;
    line-height:32px;
  }
  ::v-deep .el-form-item__label {
    font-weight: 100;
    font-size: 14px;
    color:#000000e6;
  }
  ::v-deep .el-form-item{
    margin-bottom:16px;
  }

</style>