<style>
  @import "../../assets/css/newTravelManager.css";

  .color_red_order {
    color: #e95252 !important;
  }

  .groupTourOrderSearch {
    width: 100%;
    min-height: auto;
    overflow: hidden;
    padding: 0 0 20px 0;
  }

  .groupTourOrderSearch li {
    float: left;
    font-size: 12px;
    color: #666;
    margin: 20px 0 0px 0;
  }

  .groupTourOrderSearch li>span {
    display: inline-block;
  }

  .groupTourOrderSearch li span>em {
    display: inline-block;
    min-width: 60px;
    text-align: right;
    font-style: normal;
    margin: 0 12px 0 0;
  }

  .groupTourOrderSearch li:last-child {
    float: right;
  }

  .groupTourOrderSearch ul {
    overflow: hidden;
  }

  .groupTourOrderSearchTable {
    width: 100%;
    min-width: 1500px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
    border-collapse: collapse;
  }

  .groupTourOrderSearchTable tbody tr:last-child {
    border-bottom: 2px solid #333;
  }

  .groupTourOrderSearchTable tr:first-child td:first-child {
    border-bottom: 2px solid #333;
  }

  .groupTourOrderSearchTable tr th {
    background: #e6e6e6;
    height: 30px;
    font-size: 12px;
    text-align: left;
    text-indent: 15px;
    border-top: 1px solid #cccccc;
    border-left: 1px solid #cccccc;
  }

  .groupTourOrderSearchTable tr {
    background: #fff;
    text-align: left;
  }

  .groupTourOrderSearchTable tr td {
    height: 60px;
    padding: 10px;
    border-top: 1px solid #cccccc;
    border-left: 1px solid #cccccc;
  }

  .groupTourOrderSearchTable tr td p {
    line-height: 20px;
  }

  .groupTourOrderSearchTable span.personNo {
    text-decoration: underline;
    cursor: pointer;
  }

  .groupTourOrderSearchTable span.personNo:hover {
    font-weight: bold;
    color: #e95252;
  }

  .personNolayer p {
    height: 28px;
    line-height: 28px;
    padding-left: 15px;
  }

  .personNolayer p>span {
    font-size: 12px;
    color: #333;
    margin-right: 15px;
  }

  .personNolayer table {
    padding: 10px 0 0 20px;
    width: 100%;
    background-color: #ededed;
    border-collapse: collapse;
    border: 1px solid #d2d2d2;
    font-size: 12px;
  }

  .personNolayer table th {
    background-color: #ededed;
    height: 34px;
    text-indent: 15px;
  }

  .personNolayer table td {
    background-color: #ffffff;
    padding: 9px 15px;
    color: #333333;
    border: 1px solid #d2d2d2;
  }

  .personNolayer table ._color_666 {
    color: #666666;
  }

  .personNolayer table tr._color_666 th {
    padding: 9px 15px;
  }

  .groupSuperSearchLayer {}

  .groupSuperSearchLayer>p {
    padding: 20px 0;
    font-size: 14px;
    color: #333;
    font-weight: bold;
  }

  .groupSuperSearchLayerTable {
    font-size: 12px;
    color: #666;
  }

  .groupSuperSearchLayerTable tr {
    height: 50px;
  }

  .groupSuperSearchLayerTable td {
    padding-right: 15px;
  }

  .groupTourOrderIcon button {
    width: 30px;
    height: 30px;
    border-radius: 4px;
  }

  .groupTourOrderIcon .el-button--primary {
    padding: 5px;
    margin: 0;
    font-size: 14px !important;
  }

  .groupTourOrderIcon .el-button+.el-button {
    margin-left: 0 !important;
  }

  .productQuerybottomLayer {
    overflow: auto;
    position: fixed;
    /* max-height: 300px; */
    z-index: 50;
    bottom: 0;
    left: 0;
    border-top: 3px solid #38425d;
    background-color: #ffffff;
    padding: 10px 10px 0;
    width: 100%;
  }

  .productQuerybottomLayer .el-form-item__label {
    font-size: 12px !important;
  }

  .productQuerybottomLayer>p {
    border-left: 3px solid #e95252;
    text-indent: 15px;
    height: 16px;
    font-family: "PingFangSc-Fine";
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 14px;
    color: #000;
  }

  .productQuerybottomLayer .el-input-number {
    width: 100% !important;
  }

  .groupTourOrderLeaderItem {
    display: inline-block;
    min-width: 122px;
    padding: 10px 0;
    background: #fff;
    margin: 10px 0;
    height: 56px;
    border-radius: 4px;
  }

  .groupTourOrderLeaderItem>img {
    width: 36px;
    height: 36px;
    border-radius: 18px;
    float: left;
    margin: 0 8px;
  }

  .groupTourOrderSearchTable tr td>img {
    width: 32px;
    height: 32px;
    border-radius: 16px;
    vertical-align: middle;
    margin-right: 5px;
  }

  .groupTourOrder_more {
    margin: 0 -12px;
  }

  .groupTourOrder_more>div {
    width: 100%;
    height: 30px;
    line-height: 30px;
    text-align: center;
    font-size: 12px;
    color: #333333;
    background-color: #ffffff;
    cursor: pointer;
  }

  .groupTourOrder_more>div:hover {
    color: #297bef;
    background-color: #dcebff;
  }

  .groupTourOrder_remarks {
    font-size: 0px;
  }

  .groupTourOrder_remarks>div {}

  .groupTourOrder_remarks>div>div:nth-child(1) {
    float: left;
    display: flex;
    align-items: flex-start;
  }

  .groupTourOrder_remarks>div>div:nth-child(1)>span {
    line-height: 20px;
    font-size: 12px;
    color: #e95252;
    white-space: nowrap;
  }

  .groupTourOrder_remarks>div>div:nth-child(1)>p {
    line-height: 20px;
    font-size: 12px;
    color: #e95252;
  }

  .groupTourOrder_remarks>div>div:nth-child(2) {
    float: right;
    text-align: right;
    font-size: 12px;
    color: #e95252;
  }

  .groupTourOrder_remarks>div>div:nth-child(2)>i {
    font-size: 10px;
    cursor: pointer;
  }

  .groupTourOrder_remarks>div::after {
    display: block;
    clear: both;
    content: "";
    visibility: hidden;
    height: 0;
  }

  .groupTourOrder_remarks_btn {
    padding: 0px;
    width: 12px;
    height: 12px;
    border: none;
    background-color: transparent;
  }

  .groupTourOrder_remarks_btn>i {
    font-size: 12px;
    color: #e95252;
  }

  .groupTourOrder_remarks_popover>div {
    display: inline-block;
    font-size: 14px;
    color: #000000;
  }

  .groupTourOrder_remarks_popover>div::before {
    content: '';
    display: inline-block;
    margin: 0 5px 0 0;
    width: 2px;
    height: 12px;
    background-color: #e95252;
  }

  .groupTourOrder_remarks_popover>span {
    display: block;
    margin: 5px 0 0 0;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #000000;
  }

  .groupTourOrder_remarks_popover>p {
    margin: 5px 0 0 0;
    padding: 3px;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    font-size: 12px;
    color: #000000;
  }

  .groupTourOrder_remarks_popover>p:nth-child(even) {
    background-color: #E6E6E6;
  }

  .groupTourOrder_remarks_popover>p>span:nth-child(1) {
    float: left;
  }

  .groupTourOrder_remarks_popover>p>span:nth-child(2) {
    margin: 0 10px 0 0;
    float: right;
  }

  .groupTourOrder_remarks_popover>p::after {
    display: block;
    clear: both;
    content: "";
    visibility: hidden;
    height: 0;
  }

  .groupTourOrder_tickets>div {
    display: table;
  }

  .groupTourOrder_tickets>div>div {
    display: table-cell;
    cursor: pointer;
  }

  .groupTourOrder_tickets>div>div:nth-child(1) {
    width: 80px;
  }

  .groupTourOrder_tickets>div>div>span {
    display: inline-block;
    margin: 0 10px 0 0;
  }

  .groupTourOrder_tickets_red {
    color: #ff0000;
    text-decoration: underline;
  }

  .groupTourOrder_tickets_blue {
    color: #0000ff;
    text-decoration: underline;
  }

  .groupTourOrder_tickets_green {
    color: #008000;
    text-decoration: underline;
  }

  .groupTourOrder_tickets_black {
    color: #000000;
    text-decoration: underline;
  }

  .groupTourOrderByTuan_ico {
    margin: 0 10px 0 0;
  }

  .groupTourOrderByTuan_ico>i {
    display: inline-block;
    margin: 0 2px 0 0;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    vertical-align: middle;
  }

  .groupTourOrderByTuan_ico>span {
    vertical-align: middle;
  }


  .groupTourOrder_count_green {
    color: #1BC594;
  }

  .groupTourOrder_count_blue {
    color: #4D7AFD;
  }

  .groupTourOrder_count_yellow {
    color: #FF9C00;
  }

  .groupTourOrder_count_gray {
    color: #999999;
  }

  .groupTourOrder_count {
    margin: 0 0 20px 0;
    width: 100%;
    height: auto;
  }

  .groupTourOrder_count_col {
    height: 80px;
  }

  .groupTourOrder_count_item {
    font-weight: 400;
    padding: 10px;
    height: 100%;
    border: 1px solid #E6E6E6;
    background-color: #FFFFFF;
    color: #333333;
  }

  .groupTourOrder_count_item>div>i {
    font-size: 12px;
    vertical-align: bottom;
  }

  .groupTourOrder_count_item>div>span:nth-child(2) {
    font-size: 14px;
    vertical-align: bottom;
  }

  .groupTourOrder_count_item>div>span:nth-child(3) {
    font-weight: bold;
    font-size: 16px;
    vertical-align: bottom;
  }

  .groupTourOrder_count_item>p {
    font-size: 12px;
    line-height: 18px;
  }

  .groupTourOrder_count_item>p>span {
    margin: 0 5px 0 0;
    white-space: nowrap;
  }


  .groupTourOrderByTuan_transfer {
    position: fixed;
    z-index: 50;
    bottom: 0;
    left: 0;
    padding: 10px 10px;
    width: 100%;
    min-width: 1366px;
    min-height: 200px;
    border-top: 3px solid #38425d;
    background-color: #ffffff;
    overflow-y: auto;
  }

  .groupTourOrderByTuan_transfer>.transfer_header {
    position: relative;
    width: 100%;
    height: 30px;
  }

  .groupTourOrderByTuan_transfer>.transfer_header>div:nth-child(1) {
    display: inline-block;
    padding: 0 10px;
    width: 200px;
    height: 30px;
    line-height: 30px;
    border-left: 3px solid #e95252;
    text-indent: 10px;
    font-size: 16px;
    color: #000000;
  }

  .groupTourOrderByTuan_transfer>.transfer_header>div:nth-child(2) {
    position: absolute;
    top: 0px;
    right: 0px;
    height: 30px;
  }

  .groupTourOrderByTuan_transfer>.transfer_header>div:nth-child(2)>div:nth-child(1) {
    display: inline-block;
    padding: 0 15px;
    height: 30px;
    line-height: 28px;
    font-size: 14px;
    color: #E95252;
    border: 1px solid #E95252;
    background: #fff;
    border-radius: 15px;
    cursor: pointer;
    vertical-align: top;
  }

  .groupTourOrderByTuan_transfer>.transfer_header>div:nth-child(2)>div:nth-child(2) {
    display: inline-block;
    margin: 0 0 0 10px;
    padding: 0 15px;
    height: 30px;
    line-height: 28px;
    font-size: 14px;
    color: #fff;
    border: 1px solid #E95252;
    background: #E95252;
    border-radius: 15px;
    cursor: pointer;
    vertical-align: top;
  }

  .groupTourOrderByTuan_transfer>.transfer_info {
    padding: 20px 0;
    width: 100%;
    font-size: 0px;
    border-bottom: 1px dashed #999999;
  }

  .groupTourOrderByTuan_transfer>.transfer_info>div {
    display: inline-block;
    padding: 0 10px;
    width: 25%;
    height: 30px;
    vertical-align: top;
  }

  .groupTourOrderByTuan_transfer>.transfer_info>div>em {
    display: inline-block;
    padding: 0 10px;
    width: 35%;
    height: 30px;
    line-height: 30px;
    text-align: right;
    font-size: 16px;
    vertical-align: top;
  }

  .groupTourOrderByTuan_transfer>.transfer_info>div>span {
    display: inline-block;
    padding: 0 10px;
    width: 65%;
    height: 30px;
    line-height: 30px;
    text-align: left;
    font-size: 16px;
    border-radius: 3px;
    background-color: #E5E5E5;
    vertical-align: top;
  }

  .groupTourOrderByTuan_transfer>.transfer_input {
    padding: 20px 0;
    width: 100%;
    font-size: 0px;
  }

  .groupTourOrderByTuan_transfer>.transfer_input>div {
    display: inline-block;
    padding: 0 10px;
    width: 25%;
    height: 30px;
    vertical-align: top;
  }

  .groupTourOrderByTuan_transfer>.transfer_input>div>em {
    display: inline-block;
    padding: 0 10px;
    width: 35%;
    height: 30px;
    line-height: 30px;
    text-align: right;
    font-size: 16px;
    vertical-align: top;
  }

  .groupTourOrderByTuan_transfer>.transfer_input>div>.el-input {
    display: inline-block;
    width: 65%;
    height: 30px;
    line-height: 30px;
    text-align: left;
    font-size: 14px;
    vertical-align: top;
  }

  .groupTourOrderByTuan_seat>div {
    display: inline-block;
    margin: 0 5px;
    vertical-align: top;
  }

  .groupTourOrderByTuan_seat>div>span:nth-child(1) {
    font-size: 14px;
    color: #333333;
  }

  .groupTourOrderByTuan_seat>div>span:nth-child(2) {
    font-size: 14px;
    color: red;
  }

  .planeTicketEdit {
    overflow: auto;
    position: fixed;
    height: 550px;
    z-index: 100;
    bottom: 0;
    left: 0;
    border-top: 3px solid #38425d;
    background-color: #FFFFFF;
    padding: 10px 10px 0;
    width: 100%;
  }

  .planeTicketEdit .el-form-item__label {
    font-size: 12px !important;
  }

  .planeTicketEdit>p {
    border-left: 3px solid #E95252;
    text-indent: 15px;
    height: 16px;
    font-family: 'PingFangSc-Fine';
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 14px;
    color: #000;
  }

  .planeTicketEdit .el-input {
    width: auto !important
  }

  .GB_LeaderContent {
    float: left;
    margin: 7px 0 0 25px;
  }

  .GB_LeaderListContent {
    float: left;
    height: 56px;
    padding-right: 10px;
    background-color: #fff;
    border: 4px solid #eeeeee;
    border-radius: 4px;
    margin-right: 20px;
  }

  .GB_leftImg {
    float: left;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    margin: 6px 10px;
  }

  .GB_leftImg img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
  }

  .GB_rightNameList {
    float: right;
    font-size: 12px;
    color: #333333;
  }

  .GB_rightNameList div:first-child {
    margin: 5px 0;
  }

  .GB_rightNameList div:last-child {
    font-weight: bold;
  }

  .GB_zanwu {
    text-align: center;
    color: #666666;
    font-size: 12px;
    padding: 0 20px;
  }

  .GB_zanwu div:first-child {
    margin: 5px 0;
  }

  .GB_LeaderListDiv {
    width: 200px;
    height: 206px;
    margin-left: 30px;
    border: 1px solid #d1d1d1;
  }

  .GO_union {
    position: absolute;
    top: 2px;
    left: 2px;
    color: red;
    font-size: 15px;
  }

  .not_border tr,
  .not_border tr td {
    border-bottom: none !important;
  }

  .Ysze {
    position: relative;
  }

  .Ysze .changeYsze {
    position: absolute;
    left: 110%;
    z-index: 10000;
    top: 0;
    width: 700px;
    background: #fff;
    box-shadow: 0 0 8px #888;
    padding: 10px;
    box-sizing: border-box;
  }

  .Ysze .Ysze-button {
    position: absolute;
    left: 98%;
    top: 3px;
    border-radius: 4px;
    cursor: pointer;
  }

  .Ysze .changeYsze .el-form-item {
    display: inline-block;
    width: 30%;
    margin-bottom: 5px;
  }

  .Ysze .changeYsze .el-icon-close {
    position: absolute;
    right: 6px;
    top: 6px;
    color: #f78989;
    font-size: 20px;
    cursor: pointer;
  }

  .groupts .underline {
    text-decoration: underline;
    margin: 5px;
    text-align: center;
  }

  .passengerSaleList_table {
    width: 100%;
    color: #333;
    border-bottom: 1px solid #cccccc;
    border-right: 1px solid #cccccc;
  }

  .passengerSaleList_table tr {
    background: #fff;
  }

  .passengerSaleList_table tr th {
    background: #e6e6e6;
    height: 30px;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid #cccccc;
    border-left: 1px solid #cccccc;
  }


  .passengerSaleList_table tr td {
    padding: 10px 10px 25px 10px !important;
    font-size: 12px;
    text-align: center;
    border-top: 1px solid #cccccc;
    border-left: 1px solid #cccccc;
  }

</style>

<template>
  <div class="flexOne groupts" v-loading='loading'>
    <!-- 修改信息 -->
    <div class="planeTicketEdit ownScrollbarStyle" v-if="isShowLayer2">
      <p>{{$t('pub.updateMsg')}}
        <span class="fr">
          <input type="button" class="hollowFixedBtn" :value="$t('pub.cancelBtn')" @click="cancelSubmit2()" />
          <input type="button" class="normalBtn" :value="$t('pub.saveBtn')" @click="submitForm2('addMsgtWO')" />
        </span>
      </p>
      <el-form :model="addMsg" ref="addMsgtWO" label-position="right" :rules="rules2" label-width="80px">
        <el-row :gutter="20">
          <el-col :span="4">
            <el-form-item :label="$t('fnc.khleixing')" prop="CustomerType">
              <el-select v-model='addMsg.CustomerType' filterable :placeholder="$t('pub.pleaseSel')"
                @change='getTypePrice' :disabled="true">
                <el-option v-for="(item,index) in khlxList" :label='item.Name' :value='item.Id' :key='index'>
                </el-option>
              </el-select>
            </el-form-item>
            <el-form-item :label="$t('fnc.ctleixing')" prop="GroupType">
              <el-select v-model='addMsg.GroupType' disabled filterable :placeholder="$t('pub.pleaseSel')">
                <el-option v-for="(item,index) in ctlxList" :label='item.Name' :value='item.Id' :key='index'>
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('hotel.suplier_contact')" prop="ContactName" v-show='addMsg.CustomerType==3||addMsg.CustomerType==4'>
              <el-input v-model='addMsg.ContactName'></el-input>
            </el-form-item>
            <el-form-item :label="$t('scen.sc_tel')" prop="ContactMobile"
              v-show='addMsg.CustomerType==3||addMsg.CustomerType==4'>
              <el-input v-model='addMsg.ContactMobile'></el-input>
            </el-form-item>
            <el-form-item :label="$t('salesModule.CustomerStore')" prop="CustomerId"
              v-show="addMsg.CustomerType==1||addMsg.CustomerType==2||addMsg.CustomerType==''">
              <el-select v-model='addMsg.CustomerId' filterable :placeholder="$t('pub.pleaseSel')" @change='getSspt'
                v-if="addMsg.OrderForm !== 4" :disabled="true">
                <el-option v-for="(item,index) in khmdList" :label='item.customerName' :value='item.customerId'
                  :key='index'>
                </el-option>
              </el-select>
              <el-input v-else v-model='addMsg.allName' :disabled="true"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.TeamPrice')" prop="TC_Price">
              <el-input v-model='addMsg.TC_Price' :disabled="true"></el-input>
            </el-form-item>
            <el-form-item :label="$t('salesModule.StartLY')" v-show='addMsg.IsIntermodal==1&&addMsg.DepartureCityId!=SetOutCityId'>
              <el-input v-model='stratPrice' v-show='stratPriceShow' :disabled="true"></el-input>
              <span class="colorE95252" v-show='!stratPriceShow'>{{$t('pub.NoPrice')}}！</span>
            </el-form-item>
            <el-form-item :label="$t('salesModule.BackLY')" v-show='addMsg.IsReturnIntermodal==1&&addMsg.ReturnArriveCityId!=reOutCityId'>
              <el-input v-model='returnPrice' v-show='returnPriceShow' :disabled="true"></el-input>
              <span class="colorE95252" v-show='!returnPriceShow'>{{$t('pub.NoPrice')}}！</span>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('fnc.cjdanjia')" prop="Unit_Price">
              <!-- 第一个修改信息 -->
              <el-input v-model='addMsg.Unit_Price' @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()">
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <div style="width: 100%; border-top:1px dashed #ccc;margin-bottom:25px;"></div>
        <el-row :gutter="20">
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.AdultNum')" prop="ManNum">
              <el-input v-model='addMsg.ManNum' @keyup.native="checkInteger(addMsg,'ManNum')"
                @input='getNumber();getHouseNo();getTotalPrice()'></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.ChildNum')" prop="ChirdNoNeedBedNum">
              <el-input v-model='addMsg.ChirdNum' @keyup.native="checkInteger(addMsg,'ChirdNoNeedBedNum')"
                @input='getNumber();getHouseNo();getTotalPrice()'></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.BabyNum')" prop="BabyNum">
              <el-input v-model='addMsg.BabyNum' @keyup.native="checkInteger(addMsg,'BabyNum')"
                @input='getNumber();getTotalPrice()'></el-input>
            </el-form-item>
          </el-col>
          <!-- <el-col :span="4">
            <el-form-item :label="$t('salesModule.OldPeopleNum')" prop="OldPeopleNum">
              <el-input v-model='addMsg.OldPeopleNum' @keyup.native="checkInteger(addMsg,'OldPeopleNum')"
                @input='getNumber();getHouseNo();getTotalPrice()'></el-input>
            </el-form-item>
          </el-col> -->

        </el-row>

        <el-row :gutter="20">

          <el-col :span="4">
            <el-form-item :label="$t('fnc.yszonge')" prop="PreferPrice">
              <el-input v-model='addMsg.PreferPrice' :disabled="!IsUpdateOrderMoney"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.YJTC')" prop="Commission">
              <el-input v-model='addMsg.Commission' :disabled="true"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4" v-show="addMsg.CustomerType==1||addMsg.CustomerType==2">
            <el-form-item :label="$t('salesModule.SharePeople')" prop="CommissionSharePeople">
              <el-select :disabled="isUpdateSharePeople" filterable clearable @change='getTicheng'
                v-model='addMsg.CommissionSharePeople' :placeholder="$t('pub.pleaseSel')">
                <el-option :label="$t('fnc.no')" :value='comSelect'></el-option>
                <el-option v-for='item in employeeList' :label='item.EmName' :value='item.EmployeeId'
                  :key='item.EmployeeId'></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="4"
            v-show="addMsg.CommissionSharePeople!='-1'&&(addMsg.CustomerType==1||addMsg.CustomerType==2)">
            <el-form-item :label="$t('salesModule.ShareMoney')" prop="CommissionShareMoney">
              <el-input v-model='addMsg.CommissionShareMoney' :disabled="true"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.CustomFrom')" prop="ClientSource">
              <el-select v-model='addMsg.ClientSource' :disabled="true" filterable :placeholder="$t('pub.pleaseSel')">
                <el-option v-for="item in ddlyList" :label='item.Name' :value='item.Id' :key='item.Id'>
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>

          <el-col :span="4">
            &nbsp;
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="4">
          </el-col>
          <el-col :span="4">
            &nbsp;
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.SSPT')" prop="BrandId" v-show="addMsg.ClientSource==1">
              <el-select v-model='addMsg.BrandId' :disabled="false" filterable :placeholder="$t('pub.pleaseSel')">
                <el-option v-for="item in ssptList" :label='item.brandName' :value='item.dictId' :key='item.dictId'>
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('tips.jiaoyifangshi')" prop="TradeWay" v-show='addMsg.ClientSource==1'>
              <el-select v-model='addMsg.TradeWay' :disabled="true" filterable :placeholder="$t('pub.pleaseSel')">
                <el-option v-for="item in jyfsList" :label='item.Name' :value='item.Id' :key='item.Id'>
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="4" v-if='addMsg.TradeWay==1'>
            <el-form-item :label="$t('salesModule.PlatOrder')" prop="PlatformOrder">
              <el-input v-model='addMsg.PlatformOrder' @input='platformOrderMethods' :disabled="isAllowUpdate==0">
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="24">
            <el-form-item :label="$t('pub.pubRemark')" prop="Remarks">
              <el-input v-model='addMsg.Remarks' type='textarea' maxlength='500'></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <!-- 其他类型的修改信息2 -->
    <div class="productQuerybottomLayer ownScrollbarStyle" v-if="isShowLayer" :style="{ height: ScreenHeight }">
      <p>{{$t('pub.updateMsg')}}
        <span class="fr">
          <input type="button" class="hollowFixedBtn" :value="$t('pub.cancelBtn')" @click="cancelSubmit()" />
          <input type="button" class="normalBtn" :value="$t('pub.saveBtn')" @click="submitForm('addMsg')" />
        </span>
      </p>
      <el-form :model="addMsg" ref="addMsg" label-position="right" :rules="rules" label-width="90px">
        <el-row :gutter="20">
          <el-col :span="4">
            <el-form-item :label="$t('fnc.khleixing')" prop="CustomerType">
              <el-select v-model='addMsg.CustomerType' filterable :placeholder="$t('pub.pleaseSel')"
                @change='getTypePrice' :disabled="true">
                <el-option v-for="item in khlxList" :label='item.Name' :value='item.Id' :key='item.Id'>
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('hotel.suplier_contact')" prop="ContactName" v-show='addMsg.CustomerType==3||addMsg.CustomerType==4'>
              <el-input v-model='addMsg.ContactName'></el-input>
            </el-form-item>
            <el-form-item :label="$t('scen.sc_tel')" prop="ContactMobile"
              v-show='addMsg.CustomerType==3||addMsg.CustomerType==4'>
              <el-input v-model='addMsg.ContactMobile'></el-input>
            </el-form-item>
            <el-form-item :label="$t('salesModule.CustomerStore')" prop="CustomerId"
              v-show="addMsg.CustomerType==1||addMsg.CustomerType==2||addMsg.CustomerType==''">
              <el-select v-model='addMsg.CustomerId' filterable :placeholder="$t('pub.pleaseSel')" @change='getSspt'
                :disabled="true">
                <el-option v-for="item in khmdList" :label='item.customerName' :value='item.customerId'
                  :key='item.customerId'>
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.TeamPrice')" prop="TC_Price">
              <el-input v-model='addMsg.TC_Price' :disabled="true"></el-input>
            </el-form-item>
            <el-form-item :label="$t('salesModule.StartLY')" v-show='addMsg.IsIntermodal==1&&addMsg.DepartureCityId!=SetOutCityId'>
              <el-input v-model='stratPrice' v-show='stratPriceShow' :disabled="true"></el-input>
              <span class="colorE95252" v-show='!stratPriceShow'>{{$t('pub.NoPrice')}}！</span>
            </el-form-item>
            <el-form-item :label="$t('salesModule.BackLY')" v-show='addMsg.IsReturnIntermodal==1&&addMsg.ReturnArriveCityId!=reOutCityId'>
              <el-input v-model='returnPrice' v-show='returnPriceShow' :disabled="true"></el-input>
              <span class="colorE95252" v-show='!returnPriceShow'>{{$t('pub.NoPrice')}}！</span>
            </el-form-item>
          </el-col>
          <el-col :span="8" v-if="isChecked==true">
            <template>
              <el-form-item :label="$t('fnc.cjdanjia')" prop="Unit_Price" v-if="HightUnitPrice === '2'">
                <el-select v-model='addMsg.Unit_Price' filterable :placeholder="$t('pub.pleaseSel')"
                  @change="getTotalPrice(2)">
                  <el-option v-for="(item,index) in Unit_PriceList" :label='item.LessMoney' :value='item.ID'
                    :key='index+1'>
                  </el-option>
                </el-select>
              </el-form-item>
              <el-form-item :label="$t('fnc.cjdanjia')" prop="Unit_Price" v-else>
                <el-input v-model='addMsg.Unit_Price' @change="getTotalPrice(3)"></el-input>
              </el-form-item>
            </template>
            <div style="display: flex;flex-direction: row;align-items: center;">
              <el-form-item label="$t('salesModule.UpTeamPrice')" v-show="addMsg.GroupType != 4">
                <el-switch v-model="HightUnitPrice" active-value="1" inactive-value="2"></el-switch>
              </el-form-item>
              <el-form-item v-show="addMsg.GroupType != 4">
                <p v-if="LessMoney==0" style="line-height: 18px; color: #E95252;">{{$t('salesModule.Notice1')}}</p>
                <p v-else="LessMoney>0" style="line-height: 18px; color: #E95252;">注：最多少价{{LessMoney}}元，如需少价更多请联系上级主管
                </p>
              </el-form-item>
            </div>
          </el-col>
          <el-col :span="4" v-else>
            <el-form-item :label="$t('fnc.cjdanjia')" prop="Unit_Price">
              <el-input v-model='addMsg.Unit_Price' @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()">
              </el-input>
            </el-form-item>
            <el-form-item>
              <p style="line-height: 18px; color: #E95252;">{{$t('salesModule.Notice1')}}</p>
            </el-form-item>
          </el-col>
        </el-row>
        <div style="width: 100%; border-top:1px dashed #ccc;margin-bottom:25px;"></div>
        <el-row :gutter="20">
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.AdultNum')" v-show="addMsg.GroupType !== '4'">
              <el-input v-model='addMsg.ManNum' @keyup.native="checkInteger(addMsg,'ManNum')"
                @input='getNumber();getHouseNo();getTotalPrice()' @change="getNumGuest"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <p v-if='addObj&&addObj.IsSupportChildren==2'
              style="color: #E95252; font-size: 12px; line-height: 40px; text-align: center;">{{$t('salesModule.NoSupplier')}}</p>
            <el-form-item v-if='addObj&&addObj.IsSupportChildren==1' v-show="addMsg.GroupType !== '4'" :label="$t('salesModule.ChildNum')"
              prop="ChirdNoNeedBedNum">
              <el-input v-model='addMsg.ChirdNum' :disabled="addMsg.GroupType==='4'"
                @keyup.native="checkInteger(addMsg,'ChirdNoNeedBedNum')"
                @input='getNumber();getHouseNo();getTotalPrice();autoRemarks("ChirdNoNeedBedNum","儿童人数");'
                @change="getNumGuest"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4" v-if='IsChildrenTour==1'>
            <el-form-item :label="$t('salesModule.BabyNum')" v-show="addMsg.GroupType !== '4'">
              <el-input v-model='addMsg.BabyNum' @keyup.native="checkInteger(addMsg,'BabyNum')"
                @input='getNumber();getTotalPrice();getTotalPrice()' @change="getNumGuest"></el-input>
            </el-form-item>
          </el-col>
          <!-- <el-col :span="4">
            <el-form-item :label="$t('salesModule.OldPeopleNum')" v-show="addMsg.GroupType !== '4'">
              <el-input v-model='addMsg.OldPeopleNum' @keyup.native="checkInteger(addMsg,'OldPeopleNum')"
                @input='getNumber();getHouseNo();getTotalPrice()'></el-input>
            </el-form-item>
          </el-col> -->
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.SingDNum')" v-show="addMsg.GroupType !== '1'">
              <el-input v-model='addMsg.AirticketNum' @keyup.native="checkInteger(addMsg,'AirticketNum')"
                @input='getNumber();getTotalPrice();getHouseNo()'></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.SaleNum')">
              <el-input v-model='addMsg.SafeNum' @keyup.native="checkInteger(addMsg,'SafeNum')"
                @input='yzSafeNum();getTotalPrice()'></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4" class="Ysze">
            <el-form-item :label="$t('fnc.yszonge')" prop="PreferPrice">
              <el-input v-model='addMsg.PreferPrice' :disabled="!IsUpdateOrderMoney"></el-input>
            </el-form-item>
            <button @click="Yszefz" type="button" class="Ysze-button el-button--primary"
              style="background: rgb(0, 198, 255); border-color: rgb(0, 198, 255);">
              <i class="iconfont icon-nav-hangzheng" style="font-size:12px"></i>
            </button>
            <!-- 修改应收总额 -->
            <div class="changeYsze" v-show="Ysze">
              <el-form :model="addMsg_form" ref="addMsg_form" label-position="right" label-width="100px">
                <span class="el-icon-close" @click="Ysze=false"></span>
                <el-form-item :label="$t('Operation.Op_visaPrice')">
                  <el-input v-model='addMsg_form.VisaPrice' :disabled="!IsUpdateOrderMoney"></el-input>
                </el-form-item>
                <el-form-item :label="$t('Operation.Op_visafeeBack')">
                  <el-input v-model='addMsg_form.BackVisaPrice' :disabled="!IsUpdateOrderMoney"></el-input>
                </el-form-item>
                <el-form-item :label="$t('Operation.Op_zafei')">
                  <el-input v-model='addMsg_form.OtherPrice' :disabled="!IsUpdateOrderMoney"></el-input>
                </el-form-item>

                <el-form-item :label="$t('Operation.Op_oldmanSurcharge')">
                  <el-input v-model='addMsg_form.OldManChargePrice' :disabled="!IsUpdateOrderMoney"></el-input>
                </el-form-item>
                <el-form-item :label="$t('Operation.Op_childSurcharge')">
                  <el-input v-model='addMsg_form.BabyChargePrice' :disabled="!IsUpdateOrderMoney"></el-input>
                </el-form-item>
                <el-form-item :label="$t('Operation.Op_singleRoomcha')">
                  <el-input v-model='addMsg_form.SingleRoomPrice' :disabled="!IsUpdateOrderMoney"></el-input>
                </el-form-item>

                <el-form-item :label="$t('salesModule.ETZCZS')">
                  <el-input v-model='addMsg_form.ChildNeedPrice' :disabled="!IsUpdateOrderMoney"></el-input>
                </el-form-item>
                <el-form-item :label="$t('salesModule.ETBZCJM')">
                  <el-input v-model='addMsg_form.ChildNoNeedPrice' :disabled="!IsUpdateOrderMoney"></el-input>
                </el-form-item>
                <el-form-item :label="$t('salesModule.SSJE')">
                  <el-input v-model='addMsg_form.OpSetLossMoney' :disabled="true"></el-input>
                </el-form-item>

                <el-form-item :label="$t('salesModule.SingleJ')">
                  <el-input v-model='addMsg_form.SingleDMCPrice' :disabled="!IsUpdateOrderMoney"></el-input>
                </el-form-item>
                <el-form-item :label="$t('salesModule.BabyPrice')">
                  <el-input v-model='addMsg_form.BabyPrice' :disabled="!IsUpdateOrderMoney"></el-input>
                </el-form-item>
                <el-form-item v-if="IsUpdateOrderMoney">
                  <el-button type="primary" style="padding:6px 15px" @click="submitYSZEForm">{{$t('pub.sureBtn')}}</el-button>
                  <!-- <el-button type="danger" style="padding:6px"  @click="Ysze=false">{{$t('pub.closeSel')}}</el-button> -->
                </el-form-item>
              </el-form>
            </div>
          </el-col>


          <el-col :span="4">
            <el-form-item :label="$t('salesModule.YJTC')" prop="Commission">
              <el-input v-model='addMsg.Commission' :disabled="true"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4" v-show="addMsg.CustomerType==1||addMsg.CustomerType==2">
            <el-form-item :label="$t('salesModule.SharePeople')" prop="CommissionSharePeople">
              <el-select :disabled="isUpdateSharePeople" filterable clearable @change='getTicheng'
                v-model='addMsg.CommissionSharePeople' :placeholder="$t('pub.pleaseSel')">
                <el-option :label="$t('fnc.no')" :value='comSelect'></el-option>
                <el-option v-for='(item,index) in employeeList' :label='item.EmName' :value='item.EmployeeId'
                  :key='index'></el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="4"
            v-show="addMsg.CommissionSharePeople!='-1'&&(addMsg.CustomerType==1||addMsg.CustomerType==2)">
            <el-form-item :label="$t('salesModule.ShareMoney')" prop="CommissionShareMoney">
              <el-input v-model='addMsg.CommissionShareMoney' :disabled="true"></el-input>
            </el-form-item>
          </el-col>
          <!-- <el-col :span="4">
            <el-form-item label="可退景点">
              <el-select filterable multiple class='multiple_input' v-model='addMsg.ScenicRefundArr'
                :placeholder="$t('pub.pleaseSel')" @change='ScenicRefundMethods'>
                <el-option v-for='item in ScenicRefundList' :label='item.ScenicName' :value='item.Id'
                  :key='item.ScenicName'>
                </el-option>
              </el-select>
            </el-form-item>
          </el-col> -->
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.CustomFrom')" prop="ClientSource">
              <el-select v-model='addMsg.ClientSource' :disabled="addMsg.OrderForm!==4 ? true : false" filterable
                :placeholder="$t('pub.pleaseSel')">
                <el-option v-for="item in ddlyList" :label='item.Name' :value='item.Id' :key='item.Name'>
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('objFill.xinglisl')" prop="LuggageNum">
              <el-input v-model="addMsg.LuggageNum"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.SSPT')" prop="BrandId" v-show="addMsg.ClientSource==1">
              <el-select v-model='addMsg.BrandId' :disabled="false" filterable :placeholder="$t('pub.pleaseSel')">
                <el-option v-for="item in ssptList" :label='item.brandName' :value='item.dictId' :key='item.brandName'>
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('tips.jiaoyifangshi')" prop="TradeWay" v-show='addMsg.ClientSource==1'>
              <el-select v-model='addMsg.TradeWay' :disabled="addMsg.OrderForm !== 4 ? true : false" filterable
                :placeholder="$t('pub.pleaseSel')">
                <el-option v-for="item in jyfsList" :label='item.Name' :value='item.Id' :key='item.Name'>
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="4" v-if='addMsg.TradeWay==1'>
            <el-form-item :label="$t('fnc.fkuanzhanghu')">
              <el-select filterable v-model='addMsg.PlatformAccount' @change="changeSelect">
                <el-option v-for='item in PlatformAccountList' :label='item.Alias' :value='item.ID' :key='item.Alias'>
                </el-option>
              </el-select>
            </el-form-item>
          </el-col>
          <el-col :span="4" v-if='addMsg.TradeWay==1'>
            <el-form-item :label="$t('salesModule.PlatOrder')" prop="PlatformOrder">
              <el-input v-model='addMsg.PlatformOrder' @input='platformOrderMethods' :disabled="isAllowUpdate==0">
              </el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="20">

        </el-row>
        <el-row :gutter="20">
        </el-row>
        <el-row :gutter="20">



        </el-row>
        <el-row :gutter="20" style="margin-bottom: 20px;">
          <el-col :span="24">
            <el-form-item :label="$t('objFill.fangkexinxi')" prop="">
              <table class="passengerSaleList_table" border="0" cellspacing="0" cellpadding="0">
                <thead>
                  <tr>
                    <th width="20%" style="min-width: 260px;">{{$t('system.query_name')}}</th>
                    <th width="20%" style="min-width: 220px;">{{$t('system.table_sex')}}</th>
                    <th width="20%" style="min-width: 220px;">{{$t('admin.admin_Birthday')}}</th>
                    <th width="20%" style="min-width: 220px;">{{$t('visaT.nationality')}}</th>
                    <th width="20%" style="min-width: 220px;">{{$t('system.table_Passport')}}</th>
                    <th width="20%" style="min-width: 220px;">{{$t('hotel.table_tel')}}</th>
                  </tr>
                </thead>
                <tbody>
                  <tr v-for="(item,index) in addMsg.GuestList" :key="index">
                    <td width="20%" style="min-width: 260px;">
                      <div style="display: flex;flex-direction: row;">
                        <el-form-item style="width: 50%;" :label="`${$t('admin.admin_xing')} ${index+1} `" :prop="`GuestList.${index}.SurName`"
                          :rules="rules.SurName" label-width="50px" label-position="left">
                          <el-input size="small" v-model='item.SurName' :placeholder="$t('objFill.shuruxin')" style="width: 100%;"
                            @input="Transformation(item.SurName,'SurName',index)"></el-input>
                        </el-form-item>
                        <el-form-item style="width: 50%;" :label="`${$t('admin.admin_ming')} ${index+1} `" :prop="`GuestList.${index}.Name`"
                          :rules="rules.Name" label-width="50px" label-position="left">
                          <el-input size="small" v-model='item.Name' :placeholder="$t('objFill.shuruming')" style="width: 100%;"
                            @input="Transformation(item.Name,'Name',index)"></el-input>
                        </el-form-item>
                      </div>
                    </td>
                    <td width="20%" style="min-width: 220px;">
                      <el-form-item :label="`${$t('system.table_sex')} ${index+1} `" :prop="`GuestList.${index}.Sex`" :rules="rules.Sex"
                        label-width="70px" label-position="left">
                        <el-select v-model="item.Sex" :placeholder="$t('rule.qxzxb')" style="width: 100%;">
                          <el-option v-for="item in optionsList" :key="item.Id" :label="item.Name" :value="item.Id">
                          </el-option>
                        </el-select>
                      </el-form-item>
                    </td>
                    <td width="20%" style="min-width: 220px;">
                      <el-form-item :label="`${$t('admin.admin_BirthDate')} ${index+1} `" :prop="`GuestList.${index}.Birthday`"
                        :rules="rules.Birthday" label-width="100px" label-position="left">
                        <el-date-picker v-model="item.Birthday" type="date" value-format="yyyy-MM-dd"
                          :placeholder="$t('objFill.xuanzhecsrq')">
                        </el-date-picker>
                      </el-form-item>
                    </td>
                    <td width="20%" style="min-width: 220px;">
                      <el-form-item :label="`${$t('visaT.nationality')} ${index+1} `" :prop="`GuestList.${index}.Nationality`"
                        :rules="rules.PassportNo" label-width="80px" label-position="left">
                        <el-select v-model="item.Nationality" filterable size=mini class="w230">
                          <el-option v-for="item in countryList" :key="item.ID" :label="item.Name" :value="item.ID">
                          </el-option>
                        </el-select>
                      </el-form-item>
                    </td>
                    <td width="20%" style="min-width: 220px;">
                      <el-form-item :label="`${$t('system.table_Passport')} ${index+1} `" :prop="`GuestList.${index}.PassportNo`"
                        :rules="rules.PassportNo" label-width="80px" label-position="left">
                        <el-input size="small" v-model='item.PassportNo' :placeholder="$t('system.ph_Passport')" style="width: 100%;">
                        </el-input>
                      </el-form-item>
                    </td>
                    <td width="20%" style="min-width: 220px;">
                      <el-form-item :label="`${$t('system.table_phone')} ${index+1} `" :prop="`GuestList.${index}.MobilePhone`"
                        :rules="rules.MobilePhone" label-width="80px" label-position="left">
                        <el-input size="small" type="Number" v-model='item.MobilePhone' :placeholder="$t('admin.admin_phPhone')"
                          style="width: 100%;"></el-input>
                      </el-form-item>
                    </td>
                  </tr>
                  <tr v-if="addMsg.GuestList&&addMsg.GuestList.length==0">
                    <td colspan="5">{{$t('objFill.zhanwufkxx')}}</td>
                  </tr>
                </tbody>
              </table>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="12">
            <el-form-item :label="$t('objFill.jihedi')" prop="GatherAddress">
              <el-input type='textarea' size="small" v-model='addMsg.GatherAddress' :placeholder="$t('objFill.qingsrjhed')"
                style="width: 100%;"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="12">
            <el-form-item :label="$t('pub.pubRemark')" prop="Remarks">
              <el-input v-model='addMsg.Remarks' type='textarea' maxlength='500'></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <!-- 修改房型 -->
    <div class="productQuerybottomLayer ownScrollbarStyle" v-if="isShowHouse">
      <p>{{$t('salesModule.UpdateRoom')}}
        <span class="fr">
          <input type="button" class="hollowFixedBtn" :value="$t('pub.cancelBtn')" @click="houseCancel()" />
          <input type="button" class="normalBtn" :value="$t('pub.saveBtn')" @click="houseSubmit()" />
        </span>
      </p>
      <el-form :model="addMsg" ref="addMsg" label-position="right" :rules="rules" label-width="80px">
        <el-row :gutter="20">
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.AdultNum')" prop="ManNum">
              <el-input v-model='addMsg.ManNum' :disabled="true"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <p v-if='IsChildrenTour==2' style="color: #E95252; font-size: 12px; line-height: 40px; text-align: center;">
              {{$t('salesModule.NoSupplier')}}</p>
            <el-form-item v-if='IsChildrenTour==1' :label="$t('salesModule.ChildNum')" prop="ChirdNoNeedBedNum">
              <el-input v-model='addMsg.ChirdNum' :disabled="true"></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4" v-if='IsChildrenTour==1'>
            <el-form-item :label="$t('salesModule.BabyNum')" prop="BabyNum">
              <el-input v-model='addMsg.BabyNum' :disabled="true"></el-input>
            </el-form-item>
          </el-col>
          <!-- <el-col :span="4">
            <el-form-item :label="$t('salesModule.OldPeopleNum')" prop="OldPeopleNum">
              <el-input v-model='addMsg.OldPeopleNum' :disabled="true"></el-input>
            </el-form-item>
          </el-col> -->
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.SingDNum')" prop="AirticketNum">
              <el-input v-model='addMsg.AirticketNum' :disabled="true"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.SingleRoomNum')" prop="SingleRoomNum">
              <el-input v-model='addMsg.SingleRoomNum' @keyup.native="checkInteger(addMsg,'SingleRoomNum')"
                @input='yzBigBed2();getTotalPrice()'></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.BigRoomNum')" prop="BigRoomNum">
              <el-input v-model='addMsg.BigRoomNum' @keyup.native="checkInteger(addMsg,'BigRoomNum')"
                @input='yzBigBed();getTotalPrice()'></el-input>
            </el-form-item>
          </el-col>
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.TripleRoomNum')" prop="TripleRoomNum">
              <el-input v-model='addMsg.TripleRoomNum' @keyup.native="checkInteger(addMsg,'TripleRoomNum')"
                @input='yzBigBed1();getTotalPrice()'></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="4">
            <el-form-item :label="$t('salesModule.PredictRoomNum')" prop="PredictRoomNum">
              <el-input v-model='addMsg.PredictRoomNum' :disabled="true"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
        <el-row :gutter="20">
          <el-col :span="24">
            <el-form-item :label="$t('pub.pubRemark')" prop="Remarks">
              <el-input v-model='addMsg.Remarks' type='textarea' maxlength='500'></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>

    <div
      style="float:left; border-radius: 4px; margin: 20px 20px 20px 0; padding: 0 10px; height: 34px; line-height: 34px; background: #D2D2D2; font-size: 14px; color: #333; font-weight: bold;">
      {{tuanInfo.config&&tuanInfo.config.LtName}}&nbsp;&nbsp;{{tuanInfo.config&&tuanInfo.config.TCNUM}}&nbsp;&nbsp;<span
        style="padding: 2px 5px; font-weight: normal; background: #297BEF; border-radius: 4px; color: #fff;">
        {{tuanInfo.config&&tuanInfo.config.OutBranchName}}
      </span>
    </div>
    <div class="GB_LeaderContent clearfix">
      <div class="GB_LeaderListContent clearfix" v-if="tuanInfo.leader!=null">
        <div class="GB_leftImg">
          <img src="../../assets/img/bg_c3@3x.png">
        </div>
        <div class="GB_rightNameList">
          <div v-if="tuanInfo.leader.LeaderId>0&&tuanInfo.leader.LeaderName!=''">
            {{tuanInfo.leader.LeaderName}}/{{$t('leader.leader_Leader')}}
          </div>
          <div v-if="tuanInfo.leader.GuideId>0&&tuanInfo.leader.GuideName!=''">
            {{tuanInfo.leader.GuideName}}/{{$t('leader.leader_Guide')}}
          </div>
        </div>
      </div>
      <div v-else class="GB_LeaderListContent GB_zanwu">
        <div>{{$t('ground.zwanpai')}}</div>
        <div>{{$t('ground.lddaoyou')}}</div>
      </div>
    </div>
    <!--  -->
    <div v-if="tuanInfo.config.IsOrder!=1" style="float:right">
      <span style="color:#f78989">{{$t('objFill.v101.Rest.dindczygbrxxg')}}</span>
    </div>


    <div style="width: 100%; height: auto;  overflow-x: auto;" class="ownScrollbarStyle">
      <!-- 表格 -->
      <table class="groupTourOrderSearchTable" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <th width="230">{{$t('fnc.danhao')}}</th>
          <th width="100">{{$t('fnc.khxinxi')}}</th>
          <th width="100">{{$t('admin.admin_personNumber')}}/{{$t('salesModule.AirNum')}}</th>
          <th width="80">{{$t('fnc.danjia')}}</th>
          <th width="80">{{$t('fnc.cjdanjia')}}</th>
          <th width="80">{{$t('fnc.yszonge')}}</th>
          <th width="80">{{$t('fnc.shishou')}}</th>
          <th width="80">{{$t('fnc.youhui')}}</th>
          <th width="80">{{$t('fnc.tuikuan')}}</th>
          <th width="80">{{$t('fnc.ptshuijin')}}</th>
          <th width="80">{{$t('Operation.Op_platZaitu')}}</th>
          <th width="80">{{$t('objFill.xianshouzt')}}</th>
          <th width="80">{{$t('Operation.Op_daishou')}}</th>
          <th width="60">{{$t('admin.admin_status')}}</th>
          <th width="80">{{$t('visa.v_houbu')}}</th>
          <th width="100">{{$t('salesModule.QRH')}}</th>
          <th width="200">{{$t('hotel.table_operat')}}</th>
        </tr>
        <tr>
          <td v-show="list.length==0" colspan="17" align="center">{{$t('system.content_noData')}}</td>
        </tr>
        <template v-for="op in list">
          <tbody class="not_border">
            <tr>
              <td colspan="17">{{$t('system.query_type')}}：<span style="color: #e95252;">{{op.groupName}}</span></td>
            </tr>
          </tbody>
          <tbody v-for="(item,index) in op.list" :key="item.orderId">
            <tr>
              <td rowspan="3" style="position:relative;">
                <p v-if="item.isUnionOrder==1" class="GO_union">{{$t('Operation.Op_lian')}}</p>
                <p v-if="item.isChargeLossOrders==1" style="color:red">{{$t('fnc.sun')}}</p>
                <p class="fbold over_ellipsis" style="width: 100%;" :title="item.orderId">
                  <span>{{item.orderId}}</span>
                  <span style="font-weight: 100;text-decoration:underline;cursor:pointer;color: #e95252;"
                    v-if="item.scoreNum >= 0"
                    @click='goInvetig("investigationList", item.tcid, item.orderId)'>({{$t('salesModule.ScoreNUM')}}{{item.scoreNum}})</span>
                  <!-- <span style="font-weight: 100;" v-if="item.scoreNum >= 0">({{$t('salesModule.ScoreNUM')}}{{item.scoreNum}})</span> -->

                  <el-tooltip class="item" effect="dark" :content="$t('salesModule.ByProgram')" placement="top"
                    v-show="item.orderForm==4"> <i class="iconfont icon-xiaochengxu"
                      style="font-size:22px;color:red;"></i></el-tooltip>
                </p>
                <div>
                  {{item.createBy}}<br /><span v-if="item.leaveStr!=''" style="color:red">({{item.leaveStr}})</span>
                </div>
                <p class="fz12 over_ellipsis" style="width: 100%;">
                  {{item.commissionSPeopleName==$t('fnc.no')?'':item.commissionSPeopleName}}</p>
                <p>{{$t('restaurant.res_oderTime')}}：{{item.createDate}}</p>
                <p v-if="item.tradeWay ==1">{{item.platformOrder}}</p>
                <template v-if="item.isOwn==1||IsSupperOrderEdit||IsLookOrder||isUpdateOrder">
                  <p v-if='item.commissionMoney' style="color:red">{{$t('salesModule.CommissionNum')}}：{{item.commissionMoney}}
                    {{item.commissionCurrency}}</p>
                  <p v-else-if="item.latestCommissionMoney" style="color:red">{{$t('salesModule.CommissionNum')}}：{{item.latestCommissionMoney}}</p>
                </template>
              </td>
              <td>
                <p v-if='item.isOwn==1||IsSupperOrderEdit||IsLookOrder || isUpdateOrder' class="fz12 over_ellipsis"
                  style="width: 120px;" :title="item.contactName">{{item.contactName}}</p>
                <p v-if='item.isOwn==1||IsSupperOrderEdit||IsLookOrder || isUpdateOrder' class="fz12">
                  {{item.contactMobile}}</p>
                <p v-if='item.isOwn==2&&!IsSupperOrderEdit&&!IsLookOrder&&isUpdateOrder==false'>*****</p>

              </td>
              <td>
                <span v-if='item.guestNumStatus==1' style="color:#1AA86B;" class="personNo" slot="reference"
                  @click="getMembersDetail(item)">{{item.guestNum}}/{{item.ySeatNum>0? item.ySeatNum+'Y ':''}}{{item.eSeatNum>0? item.eSeatNum+'E ':''}}{{item.fSeatNum>0? item.fSeatNum+'F ':''}}</span>
                <span v-if='item.guestNumStatus==2' style="color:#E95252;" class="personNo" slot="reference"
                  @click="getMembersDetail(item)">{{item.guestNum}}/{{item.ySeatNum>0? item.ySeatNum+'Y ':''}}{{item.eSeatNum>0? item.eSeatNum+'E ':''}}{{item.fSeatNum>0? item.fSeatNum+'F ':''}}</span>
                <span v-if='item.guestNumStatus==3' style="color:#666;" class="personNo" slot="reference"
                  @click="getMembersDetail(item)">{{item.guestNum}}/{{item.ySeatNum>0? item.ySeatNum+'Y ':''}}{{item.eSeatNum>0? item.eSeatNum+'E ':''}}{{item.fSeatNum>0? item.fSeatNum+'F ':''}}</span>
              </td>
              <td style="color:#FF9C00">
                <span>{{item.tC_Price}}</span>
              </td>
              <td style="color:#FF9C00">
                <span v-if="item.isOwn==1||IsSupperOrderEdit||IsLookOrder||isUpdateOrder">{{moneyFormatN(item.unit_Price)}}</span>
                <span v-else>*****</span>
              </td>
              <td>
                <p style="color:#FF9C00">
                  <span v-if="item.isOwn==1||IsSupperOrderEdit||IsLookOrder||isUpdateOrder">{{moneyFormatN(item.preferPrice)}}</span>
                  <span v-else>*****</span>
                </p>
              </td>
              <td>
                <el-popover style='padding: 0;' width="370" trigger="click">
                  <div class="personNolayer">
                    <table border="0" cellspacing="1" cellpadding="1">
                      <tr>
                        <th>{{$t('salesModule.DJNUM')}}</th>
                        <th>{{$t('fnc.jine')}}</th>
                        <th>{{$t('advmanager.v_type')}}</th>
                        <th>{{$t('hotel.hotel_status')}}</th>
                      </tr>
                      <tr v-if='orderList.length>0' v-for="(item2,index2) in orderList" :key="index2">
                        <td>{{item2.FrID}}</td>
                        <td>
                          <span v-if="item.isOwn==1 || IsSupperOrderEdit || isUpdateOrder">{{moneyFormatN(item2.PayMoney)}}</span>
                          <span v-else>******</span>
                        </td>
                        <td>{{item2.TypeName}}</td>
                        <td>{{item2.StatusName}}</td>
                      </tr>
                      <tr v-if='orderList.length==0'>
                        <td colspan="5" align="center">{{$t('system.content_noData')}}</td>
                      </tr>
                    </table>
                  </div>
                  <span v-if='item.isOwn==1 || IsSupperOrderEdit || isUpdateOrder'
                    :style="{cursor: 'pointer',color:item.isEnd===0 ? '' : '#e95252' }" @click="getOrderDetail(item)"
                    slot="reference">{{moneyFormatN(item.income)}}</span>
                  <span v-else>******</span>
                </el-popover>

              </td>
              <!-- 优惠 -->
              <td>
                <el-popover style='padding: 0;' width="600" trigger="click">
                  <div class="personNolayer">
                    <table border="0" cellspacing="1" cellpadding="1">
                      <tr>
                        <th>{{$t('active.cl_couponName')}}</th>
                        <th>{{$t('active.cl_couponType')}}</th>
                        <th>{{$t('active.cl_dkjezk')}}</th>
                        <th>{{$t('active.cl_sytiaojian')}}</th>
                        <th>{{$t('active.cl_huoqufangshi')}}</th>
                        <th>{{$t('active.cl_hqriqi')}}</th>
                      </tr>
                      <tr v-if='item.couponAllotList.length>0' v-for="(item2,index2) in item.couponAllotList"
                        :key="index2">
                        <td>{{item2.couponsName}}</td>
                        <td>
                          <span v-if="item2.couponsType==1">{{$t('active.cl_dyquan')}}</span>
                          <span v-if="item2.couponsType==2">{{$t('active.cl_zkquan')}}</span>
                        </td>
                        <td>{{item2.denomination}}</td>
                        <td>{{$t('active.cl_man')}}{{item2.useCondition}}{{$t('active.cl_keyong')}}</td>
                        <td>
                          <span v-if="item2.accessType==1">{{$t('active.cl_choujiang')}}</span>
                          <span v-else></span>
                        </td>
                        <td>{{item2.acessDate}}</td>
                      </tr>
                      <tr v-if='item.couponAllotList.length==0'>
                        <td colspan="6" align="center">{{$t('system.content_noData')}}</td>
                      </tr>
                    </table>
                  </div>
                  <span v-if='item.isEnd==0' style="cursor: pointer;" @click="getOrderDetail(item)"
                    slot="reference">{{moneyFormatN(item.income)}}</span>
                  <span v-if='item.isEnd!=0' style="cursor: pointer;color: #e95252;" @click="getOrderDetail(item)"
                    slot="reference">{{moneyFormatN(item.discountMoney)}}</span>
                </el-popover>
              </td>
              <td>
                <span v-if="item.isOwn==1 || IsSupperOrderEdit || isUpdateOrder">{{moneyFormatN(item.refund)}}</span>
                <span v-else>******</span>
              </td>
              <td>
                <span v-if="item.isOwn==1 || IsSupperOrderEdit || isUpdateOrder">{{moneyFormatN(item.platformTax)}}</span>
                <span v-else>******</span>
              </td>
              <td>
                <span v-if="item.isOwn==1 || IsSupperOrderEdit || isUpdateOrder">{{moneyFormatN(item.zaiTuMoney)}}</span>
                <span v-else>******</span>
              </td>
              <td>
                <span v-if="item.isOwn==1 || IsSupperOrderEdit || isUpdateOrder">{{moneyFormatN(item.cashReceiptsMoney)}}</span>
                <span v-else>******</span>
              </td>
              <td>
                <span v-if="item.isOwn==1 || IsSupperOrderEdit || isUpdateOrder"
                  :class="{color_red_order:item.dueInMoney!==item.preferPrice}">{{moneyFormatN(item.dueInMoney)}}</span>
                <span v-else>******</span>
              </td>
              <td v-if="item.isChargeLossOrders==1" class="fz12" style="color: #e95252">{{$t('fnc.shousun')}}</td>
              <td v-else class="fz12" :style="item.orderState===3?'color: #e95252;':''">{{item.statsstr}}</td>
              <td class="fz12">
                <div v-if="item.orderState===3">
                  <span v-if="item.waitYNum>0" style="margin: 0 5px 0 0;">{{item.waitYNum}}(Y)</span>
                  <span v-if="item.waitENum>0" style="margin: 0 5px 0 0;">{{item.waitENum}}(E)</span>
                  <span v-if="item.waitFNum>0" style="margin: 0 5px 0 0;">{{item.waitFNum}}(F)</span>
                </div>
              </td>
              <td>
                <span v-if='item.confirmFileList.length>0' style="cursor:pointer" class="fz12 dowloadSpan"
                  @click="downLoadFile(item.confirmFileList)">
                  {{$t('salesModule.QRHXZ')}}
                </span>
                <i v-if='item.confirmFileList.length>0&&item.commissionSharePeople !== userId' @click="deleteFile(item)"
                  style="margin-left: 5px;" class="el-icon-error color999"></i>
                <el-upload v-if='(item.confirmFileList.length==0&&item.isOwn==1)||IsSupperOrderEdit' action=""
                  :http-request="uploadFileBtn" :multiple="false" :show-file-list="false">
                  <el-button size="small" type="danger" @click='getItem(item)'>{{$t('objFill.shangchuan')}}</el-button>
                </el-upload>
              </td>
              <td class="groupTourOrderIcon">
                <el-button-group v-if='item.isOwn==1 || IsSupperOrderEdit || isUpdateOrder'>
                  <el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start">
                    <el-button
                      v-if="(IsSupperOrderEdit || isUpdateOrder) || ( item.isOwn==1 &&item.isOrder=='1'&&item.isHaveFinance!='1'&&item.orderState!='1'&&item.orderState!='4')"
                      type="primary" style='background:#00C6FF; border-color:#00C6FF' icon="iconfont icon-bianji-smal"
                      @click='getDetail(item)'></el-button>
                  </el-tooltip>
                  <el-tooltip class="item" effect="dark" :content="$t('salesModule.UpRemarks')" placement="top-start">
                    <el-button
                      v-if="(IsSupperOrderEdit)|| ( item.isOwn==1 ||item.isHaveFinance=='1'||item.orderState=='1')"
                      type="primary" style='background:#a55eea; border-color:#a55eea' icon="iconfont icon-beizhu"
                      @click='getRemarks(item)'></el-button>
                  </el-tooltip>
                  <el-tooltip effect="dark" :content="$t('fnc.rizhi')" placement="top-start" style="float:left">
                    <el-popover width='230' trigger="click">
                      <div class="priceContentDiv">
                        <div class="AuditLog">{{$t('fnc.rizhi')}}</div>
                        <div class="logContact" style="background:#f9f9f9; padding:20px 10px 0;">
                          <div v-if='logList.length>0' v-for="(item,index) in logList" :key="index">
                            <div class="clearfix">
                              <div class="Auditcircle" style="left: 6px!important;"></div>
                              <div class="operateName" style="color:#005CAA;">{{item.emName}}</div>
                              <div class="operateDate fz12 color666">{{item.x}}</div>
                            </div>
                            <div class="fz12 color333">{{item.logInfo}}</div>
                          </div>
                          <div v-if='logList.length==0'>{{$t('system.content_noData')}}</div>
                        </div>
                      </div>
                      <el-button slot="reference" @click='getLogDetail(item)' type="primary"
                        style='background:#47BF8C; border-color:#47BF8C;border-top-right-radius: 0;border-bottom-right-radius: 0;'
                        icon="iconfont icon-rizhi1"></el-button>
                    </el-popover>
                  </el-tooltip>
                  <el-tooltip effect="dark" :content="$t('pub.more')" placement="top-start" style="float:left">
                    <el-popover width='100' trigger="hover">
                      <div class="groupTourOrder_more">
                        <div @click="goUrlT('confirmationOrder',item.orderId)">
                          {{$t('salesModule.QRH')}}{{item.operationState === 2 ? $t('objFill.shenhezt')[0]: item.operationState === 1 ?$t('objFill.shenhezt')[1] : item.operationState === 0 ? $t('objFill.shenhezt')[2] : ''}}
                        </div>
                        <div v-if="isEditOrderCreate==1||IsSupperOrderEdit" @click="getSalerInfo(item)">{{$t('salesModule.UpdateYWY')}}</div>
                        <!--v-if="item.isGuestOk=='1'&&item.outNotice==1"-->
                        <div @click="toTrip(item)">{{$t('Operation.Op_teamNotice')}}<span v-if="item.outNotice==1">(OK)</span><span
                            v-else>({{$t('visa.v_zanding')}})</span></div>
                        <div v-if="item.orderState!='4'" @click="goUrlP('旅客名单','passengerSaleList',item)">{{$t('salesModule.LKMD')}}</div>
                        <div v-if="item.isOrder=='1'&&(item.isHaveFinance=='1'||item.orderState=='1')"
                          @click='getHouse(item)'>{{$t('salesModule.UpdateRoom')}}</div>
                        <div v-if="item.isOrder=='1'&&item.orderState!='4' && TransferMission == true"
                          @click="transfer(item)">{{$t('salesModule.OrderGroup')}}</div>
                        <div v-if="isUpdateOrder" @click='zhuanLoading = true,OPRemarkMsg.OrderId = item.orderId'>{{$t('Operation.Op_remark')}}
                        </div>
                        <!-- v-if="item.isUpdateOrderCommission" -->
                        <div v-if="isUpdateOrderCommission"
                          @click='TCMsg.OrderId = item.orderId, TCMsg.CommissionMinusRate = item.commissionMinusRate,TCMsg.LatestCommissionMoney=item.latestCommissionMoney, TiChengLoading = true'>
                          {{$t('ground.xgtcheng')}}</div>
                        <div v-if="isUpdateOrderCommission"
                          @click='EwMsg.OrderId = item.orderId, EwMsg.ExtraRewardMoney = item.extraRewardMoney,EwMsg.ExtraDeductMoney=item.extraDeductMoney, OrderMoneyDialog = true'>
                          {{$t('ground.szewaijine')}}</div>

                        <div
                          v-if='item.confirmFileList.length>0 && ((item.receivableMoney - item.invoiceApplyTotal) > 0)'
                          @click='goUrlAdd("invoicesManagerAdd", item.orderId, item.tcid, item.customerId)'>{{$t('salesModule.ApplyInvoice')}}</div>
                        <div v-if="item.isOrder=='1'&&(item.orderState=='1'||item.orderState=='2')"
                          @click='setChargeLoss(item)'>
                          <span v-if="item.isChargeLossOrders==1">{{$t('salesModule.LossSheet')}}</span>
                          <span v-else>{{$t('salesModule.LossReceipt')}}</span>
                        </div>
                        <div v-if="item.orderState==2"
                          @click='Discount(item.tcid),SOMsg.OrderId = item.orderId,SOMsg.OrderUnitPrice  = item.unit_Price'>
                          {{$t('pub.ApplyYH')}}</div>

                        <div
                          v-if="item.isOrder=='1'&&(item.orderState=='1'||item.orderState=='2'||item.orderState=='3')"
                          @click='deleteItem(item)'>{{$t('pub.cancelBtn')}}</div>
                        <div v-if="item.scoreNum >= 0" @click='goInvetig("investigationList", item.tcid, item.orderId)'>
                          {{$t('salesModule.LookTourse')}}</div>
                      </div>
                      <el-button slot="reference" type="primary"
                        style='background:#297BEF; border-color:#297BEF;border-top-left-radius: 0;border-bottom-left-radius: 0;'
                        icon="iconfont icon-more"></el-button>
                    </el-popover>
                  </el-tooltip>
                </el-button-group>
                <payurlItem v-if='item.isOwn==1' :item="item" :showID="showID"
                  v-show="item.orderState!='4'&&item.orderState!='3'" v-on:childByValue="childByValue"></payurlItem>
              </td>
            </tr>
            <tr style="height:20px">
              <td colspan="16" class="RL_Order" style="height:20px">
                <span class="RL-remarkTitle"
                  v-if="item.guestList.length>0  && (item.isOwn==1||IsSupperOrderEdit||IsLookOrder||isUpdateOrder) ">{{$t('salesModule.MD')}}:</span>
                <span class="RL-redType RL-remarkCon"
                  v-if="item.guestList.length>0 && (item.isOwn==1||IsSupperOrderEdit||IsLookOrder||isUpdateOrder) ">
                  <span v-for="(childItem) in item.guestList">{{childItem.userName}}&nbsp;&nbsp;</span>
                </span>
                <span style="display: block">{{$t('salesModule.RoomInfo')}}:{{item.orderGuestHouseStr}}</span>
                <p v-if="item.luggageNum">{{$t('objFill.xinglisl')}}：{{item.luggageNum}}</p>
                <span v-if="item.tipMoney" style="color:red">（{{$t('fnc.xiaofei')}}：{{item.tipMoney}}）</span>
              </td>
            </tr>
            <tr>
              <td colspan="5" class="groupTourOrder_remarks" style="height: 40px;">
                <div v-if="item.gatherAddress">
                  <span style="color: rgb(26, 168, 107);">{{$t('objFill.jihedi')}}：</span>
                  <span style="color: rgb(26, 168, 107);">{{ item.gatherAddress }}</span>
                </div>
                <div>
                  <div><span>{{$t('pub.pubRemark')}}:</span>
                    <p>
                      <span v-if="item.tsIdList.length>0">{{$t('salesModule.ComplaintNum')}}:
                        <a class="underline" v-for="ts in item.tsIdList" href="javascript:void(0);"
                          @click="goUrlTS('ComplaintsDetail',ts,item.orderId,'投诉详情')">{{ts}} </a> ;
                      </span>
                      <template>
                        <template v-if="item.isOwn==1||IsSupperOrderEdit||IsLookOrder||isUpdateOrder">
                          <span v-if='item.clientSource==1&&item.brandName!=""'>{{item.brandName}}{{$t('fnc.dingdan')}}
                            {{item.platformOrder}};</span>{{item.remarks}}
                        </template>

                      </template>
                    </p>
                  </div>
                  <div>

                    <el-popover width="600" placement="bottom-end" trigger="click">
                      <div class="groupTourOrder_remarks_popover">
                        <div>{{$t('fnc.lsbeizhu')}}</div>
                        <p v-if="item.remarksList.length !== 0" v-for="(item2, index2) in item.remarksList"
                          :key="index2">
                          <span>{{item2.remarks}}</span>
                          <span>{{item2.createByName}} <span style="color: #666666;">{{item2.createDate}}</span></span>
                        </p>
                        <span v-if="item.remarksList.length === 0">{{$t('system.content_noData')}}</span>
                      </div>
                      <el-button v-if="item.isOwn==1||IsSupperOrderEdit||IsLookOrder||isUpdateOrder" slot="reference"
                        icon="iconfont icon-gengduo" style="padding:0px;border:none;background-color:transparent;"
                        class="groupTourOrder_remarks_btn"></el-button>
                    </el-popover>
                  </div>
                </div>
              </td>
              <td colspan="5" class="groupTourOrder_remarks" style="height: 40px;">
                <div>
                  <div>
                    <span>{{$t('Operation.Op_remark')}}:</span>
                    <p>{{item.oP_Remarks ? item.oP_Remarks : $t('fnc.no')}}</p>
                  </div>
                </div>
              </td>
              <td colspan="6" class="groupTourOrder_tickets" style="height: 40px;">
                <div>
                  <div>{{$t('fnc.skdanju')}}：</div>
                  <div>
                    <span v-for="(item2,index2) in item.financeList" :key="index2"
                      @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', item)">
                      <span v-if="item2.colorState===1" class="groupTourOrder_tickets_blue">{{item2.frID}}</span>
                      <span v-else-if="item2.colorState===2" class="groupTourOrder_tickets_green">{{item2.frID}}</span>
                      <span v-else-if="item2.colorState===3" class="groupTourOrder_tickets_red">{{item2.frID}}</span>
                      <span v-else-if="item2.colorState===4" class="groupTourOrder_tickets_black">{{item2.frID}}</span>
                    </span>
                    <span v-if="item.financeList.length===0"
                      style="cursor: default;">{{$t('system.content_noData')}}</span>
                  </div>
                </div>
                <div>
                  <div>{{$t('fnc.fkdanju')}}：</div>
                  <div>
                    <span v-for="(item2,index2) in item.refundFinanceList" :key="index2"
                      @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', item)">
                      <span v-if="item2.colorState===1" class="groupTourOrder_tickets_blue">{{item2.frID}}</span>
                      <span v-else-if="item2.colorState===2" class="groupTourOrder_tickets_green">{{item2.frID}}</span>
                      <span v-else-if="item2.colorState===3" class="groupTourOrder_tickets_red">{{item2.frID}}</span>
                      <span v-else-if="item2.colorState===4" class="groupTourOrder_tickets_black">{{item2.frID}}</span>
                    </span>
                    <span v-if="item.refundFinanceList.length===0"
                      style="cursor: default;">{{$t('system.content_noData')}}</span>
                  </div>
                </div>
                <div>
                  <div>{{$t('salesModule.Invoice')}}：</div>
                  <div>
                    <span v-for="(item2,index2) in item.invoiceApplyList" :key="index2">
                      <span v-if="item2.invoiceApplyState === 6" class="groupTourOrder_tickets_blue"
                        @click="goIisDetail(item2.id)">{{item2.id}}</span>
                      <span
                        v-else-if="item2.invoiceApplyState === 1 || item2.invoiceApplyState === 3 || item2.invoiceApplyState === 6"
                        class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span>
                      <span v-else-if="item2.invoiceApplyState === 5 || item2.invoiceApplyState === 4 "
                        class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span>
                      <span v-else-if="item2.invoiceApplyState === 2" class="groupTourOrder_tickets_black"
                        @click="goIisDetail(item2.id)">{{item2.id}}</span>
                    </span>
                    <span v-if="item.invoiceApplyList.length===0"
                      style="cursor: default;">{{$t('system.content_noData')}}</span>
                  </div>
                </div>
              </td>
            </tr>
          </tbody>
        </template>
        <tbody v-show="list.length!==0">
          <tr>
            <td></td>
            <td colspan="16" class="groupTourOrderByTuan_seat">
              <!-- <div>
              <span>{{$t('ground.bentuanjiwei')}}：</span>
              <span>{{tuanInfo.config&&tuanInfo.config.YSeat}}Y + {{tuanInfo.config&&tuanInfo.config.CSeat}}E + {{tuanInfo.config&&tuanInfo.config.FSeat}}F</span>
            </div>
            <div>
              <span>{{$t('ground.syjiwei')}}：</span>
              <span>{{tuanInfo.config&&tuanInfo.config.YSeat-seat.YSeat >0 ? tuanInfo.config.YSeat-seat.YSeat:0}}Y + {{tuanInfo.config&&tuanInfo.config.CSeat-seat.CSeat>0?tuanInfo.config.CSeat-seat.CSeat:0}}E + {{tuanInfo.config&&tuanInfo.config.FSeat-seat.FSeat>0?tuanInfo.config.FSeat-seat.FSeat:0}}F</span>
            </div>
            <div>
              <span>{{$t('ground.houbujiwei')}}：</span>
              <span>{{tuanInfo.config&&tuanInfo.config.YSeat-seat.YSeat>0 ? 0 : seat.YSeat-tuanInfo.config.YSeat}}Y + {{tuanInfo.config&&tuanInfo.config.CSeat-seat.CSeat>0?0:seat.CSeat-tuanInfo.config.CSeat}}E + {{tuanInfo.config&&tuanInfo.config.FSeat-seat.FSeat>0?0:seat.FSeat-tuanInfo.config.FSeat}}F</span>
            </div> -->
              <div>
                <span>{{$t('ground.cantuan')}}：</span>
                <span>{{seat.joinGroupNum}}</span>
              </div>
              <div>
                <span>{{$t('MarketingActi.free')}}</span>
                <span>{{seat.IndependentTravelCount}}</span>
              </div>
              <div>
                <span>{{$t('salesModule.SingleJ')}}</span>
                <span>{{seat.NurseryGraftingCount}}</span>
              </div>
              <div>
                <span>{{$t('ground.danjipiao')}}</span>
                <span>{{seat.SingleAirTicketCount}}</span>
              </div>
              <div>
                <span>{{$t('leader.leader_Leader')}}：</span>
                <span>{{seat.leaderNum}}</span>
              </div>
              <div>
                <span>{{$t('objFill.zibeiqian')}}：</span>
                <span>{{seat.ownVisaNum}}</span>
              </div>
            </td>
          </tr>
        </tbody>



        <!-- 取消订单 -->
        <tr v-if="cancelRtData!=null && cancelRtData.length>0">
          <td colspan="17">
            <span class="RL-redType" @click="isShowCancelOrder=!isShowCancelOrder" style="cursor:pointer"
              :title="$t('pub.clickToView')">{{$t('sm.exitOrder')}}（<span style="color:blue;">{{!isShowCancelOrder?$t('fnc.zhankai'):$t('fnc.faqi')}}</span>）</span>
          </td>
        </tr>
        <tbody v-if="isShowCancelOrder" v-for="(item,index) in cancelRtData" :key="index+1000">
          <tr>
            <td rowspan="2" style="position:relative;">
              <p v-if="item.isUnionOrder==1" class="GO_union">{{$t('Operation.Op_lian')}}</p>
              <p class="fbold over_ellipsis" style="width: 100%;" :title="item.orderId">{{item.orderId}}
                <span style="font-weight: 100;" v-if="item.scoreNum >= 0">({{$t('salesModule.ScoreNUM')}}{{item.scoreNum}})</span>
                <el-tooltip class="item" effect="dark" :content="$t('salesModule.ByProgram')" placement="top" v-show="item.orderForm==4">
                  <i class="iconfont icon-xiaochengxu" style="font-size:22px;color:red;"></i></el-tooltip>
              </p>
              <p class="fz12 over_ellipsis" style="width: 100%;">
                {{item.commissionSPeopleName==$t('fnc.no')?'':item.commissionSPeopleName}}</p>
              <p>{{$t('restaurant.res_oderTime')}}：{{item.createDate}}</p>
            </td>
            <td>
              <img v-if='!item.createPhoto' src="../../assets/img/litheader.png" />
              <img v-if='item.createPhoto' :onerror="defaultImg" :src='item.createPhoto' />
              {{item.createBy}}<br /><span v-if="item.leaveStr!=''" style="color:red">({{item.leaveStr}})</span>
            </td>
            <td>
              <p v-if='item.isOwn==1||IsSupperOrderEdit||IsLookOrder' class="fz12 over_ellipsis" style="width: 120px;"
                :title="item.contactName">{{item.contactName}}</p>
              <p v-if='item.isOwn==1||IsSupperOrderEdit||IsLookOrder' class="fz12">{{item.contactMobile}}</p>
              <p v-if='item.isOwn==2&&!IsSupperOrderEdit&&!IsLookOrder'>*****</p>
            </td>
            <td>

              <span v-if='item.guestNumStatus==1' style="color:#1AA86B;" class="personNo" slot="reference"
                @click="getMembersDetail(item)">{{item.guestNum}}/{{item.ySeatNum>0? item.ySeatNum+'Y ':''}}{{item.eSeatNum>0? item.eSeatNum+'E ':''}}{{item.fSeatNum>0? item.fSeatNum+'F ':''}}</span>
              <span v-if='item.guestNumStatus==2' style="color:#E95252;" class="personNo" slot="reference"
                @click="getMembersDetail(item)">{{item.guestNum}}/{{item.ySeatNum>0? item.ySeatNum+'Y ':''}}{{item.eSeatNum>0? item.eSeatNum+'E ':''}}{{item.fSeatNum>0? item.fSeatNum+'F ':''}}</span>
              <span v-if='item.guestNumStatus==3' style="color:#666;" class="personNo" slot="reference"
                @click="getMembersDetail(item)">{{item.guestNum}}/{{item.ySeatNum>0? item.ySeatNum+'Y ':''}}{{item.eSeatNum>0? item.eSeatNum+'E ':''}}{{item.fSeatNum>0? item.fSeatNum+'F ':''}}</span>
              <!-- </el-popover> -->
            </td>
            <td style="color:#FF9C00">
              <span>{{item.tC_Price}}</span>
            </td>
            <td style="color:#FF9C00">
              <span v-if="item.isOwn==1||IsSupperOrderEdit||IsLookOrder">{{item.unit_Price}}</span>
              <span v-else>*****</span>
            </td>
            <td>
              <p style="color:#FF9C00">
                <span v-if="item.isOwn==1||IsSupperOrderEdit||IsLookOrder">{{item.preferPrice}}</span>
                <span v-else>*****</span>
              </p>
            </td>
            <td>
              <el-popover style='padding: 0;' width="370" trigger="click">
                <div class="personNolayer">
                  <table border="0" cellspacing="1" cellpadding="1">
                    <tr>
                      <th>{{$t('salesModule.DJNUM')}}</th>
                      <th>{{$t('fnc.jine')}}</th>
                      <th>{{$t('advmanager.v_type')}}</th>
                      <th>{{$t('hotel.hotel_status')}}</th>
                    </tr>
                    <tr v-if='orderList.length>0' v-for="(item2,index2) in orderList" :key="index2">
                      <td>{{item2.FrID}}</td>
                      <td>{{item2.PayMoney}}</td>
                      <td>{{item2.TypeName}}</td>
                      <td>{{item2.StatusName}}</td>
                    </tr>
                    <tr v-if='orderList.length==0'>
                      <td colspan="5" align="center">{{$t('system.content_noData')}}</td>
                    </tr>
                  </table>
                </div>
                <span v-if='item.isEnd==0' style="cursor: pointer;" @click="getOrderDetail(item)"
                  slot="reference">{{item.income}}</span>
                <span v-if='item.isEnd!=0' style="cursor: pointer;color: #e95252;" @click="getOrderDetail(item)"
                  slot="reference">{{item.income}}</span>
              </el-popover>
            </td>
            <!-- 取消订单的优惠,金额直接为0-->
            <td>
              0.00
            </td>
            <td>{{item.refund}}</td>
            <td>{{item.platformTax}}</td>
            <td>{{item.cashReceiptsMoney}}</td>
            <td>{{item.DueInMoney}}</td>
            <td class="fz12" :style="item.orderState===3?'color: #e95252;':''">{{item.statsstr}}</td>
            <td class="fz12">
              <div v-if="item.orderState===3">
                <span v-if="item.waitYNum>0" style="margin: 0 5px 0 0;">{{item.waitYNum}}(Y)</span>
                <span v-if="item.waitENum>0" style="margin: 0 5px 0 0;">{{item.waitENum}}(E)</span>
                <span v-if="item.waitFNum>0" style="margin: 0 5px 0 0;">{{item.waitFNum}}(F)</span>
              </div>
            </td>
            <td>
              <span v-if='item.confirmFileList.length>0' style="cursor:pointer" class="fz12 dowloadSpan"
                @click="downLoadFile(item.confirmFileList)">
                {{$t('salesModule.QRHXZ')}}
              </span>
              <i v-if='item.confirmFileList.length>0&&item.commissionSharePeople !== userId' @click="deleteFile(item)"
                style="margin-left: 5px;" class="el-icon-error color999"></i>
              <el-upload v-if='(item.confirmFileList.length==0&&item.isOwn==1)||IsSupperOrderEdit'
                :http-request="uploadFileBtn" :multiple="false" :show-file-list="false">
                <el-button size="small" type="danger" @click='getItem(item)'>{{$t('objFill.shangchuan')}}</el-button>
              </el-upload>
            </td>
            <td class="groupTourOrderIcon">
              <el-button-group v-if='item.isOwn==1 || IsSupperOrderEdit'>
                <el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start">
                  <el-button
                    v-if="(IsSupperOrderEdit) || ( item.isOwn==1 &&item.isOrder=='1'&&item.isHaveFinance!='1'&&item.orderState!='1'&&item.orderState!='4')"
                    type="primary" style='background:#00C6FF; border-color:#00C6FF' icon="iconfont icon-bianji-smal"
                    @click='getDetail(item)'></el-button>
                </el-tooltip>
                <el-tooltip class="item" effect="dark" :content="$t('salesModule.UpRemarks')" placement="top-start">
                  <el-button
                    v-if="(IsSupperOrderEdit)|| ( item.isOwn==1 ||item.isHaveFinance=='1'||item.orderState=='1')"
                    type="primary" style='background:#a55eea; border-color:#a55eea' icon="iconfont icon-beizhu"
                    @click='getRemarks(item)'></el-button>
                </el-tooltip>
                <el-tooltip effect="dark" :content="$t('fnc.rizhi')" placement="top-start" style="float:left">
                  <el-popover width='230' trigger="click">
                    <div class="priceContentDiv">
                      <div class="AuditLog">{{$t('fnc.rizhi')}}</div>
                      <div class="logContact" style="background:#f9f9f9; padding:20px 10px 0;">
                        <div v-if='logList.length>0' v-for="(item,index) in logList" :key="index">
                          <div class="clearfix">
                            <div class="Auditcircle" style="left: 6px!important;"></div>
                            <div class="operateName" style="color:#005CAA;">{{item.emName}}</div>
                            <div class="operateDate fz12 color666">{{item.x}}</div>
                          </div>
                          <div class="fz12 color333">{{item.logInfo}}</div>
                        </div>
                        <div v-if='logList.length==0'>{{$t('system.content_noData')}}</div>
                      </div>
                    </div>
                    <el-button slot="reference" @click='getLogDetail(item)' type="primary"
                      style='background:#47BF8C; border-color:#47BF8C;border-top-right-radius: 0;border-bottom-right-radius: 0;'
                      icon="iconfont icon-rizhi1"></el-button>
                  </el-popover>
                </el-tooltip>
                <el-tooltip effect="dark" :content="$t('pub.more')" placement="top-start" style="float:left">
                  <el-popover width='100' trigger="hover">
                    <div class="groupTourOrder_more">
                      <div @click="goUrlT('confirmationOrder',item.orderId)">
                        {{$t('salesModule.QRH')}}{{item.operationState === 2 ? $t('objFill.shenhezt')[0]: item.operationState === 1 ?$t('objFill.shenhezt')[1] : item.operationState === 0 ? $t('objFill.shenhezt')[2] : ''}}
                      </div>
                      <div v-if="isEditOrderCreate==1" @click="getSalerInfo(item)">{{$t('salesModule.UpdateYWY')}}</div>
                      <div v-if="item.isGuestOk=='1'&&item.outNotice==1" @click="toTrip(item)">{{$t('Operation.Op_teamNotice')}}<span
                          v-if="item.outNotice==1">(OK)</span><span v-else>({{$t('visa.v_zanding')}})</span></div>
                      <div v-if="item.orderState!='4'" @click="goUrlP('旅客名单','passengerSaleList',item)">{{$t('salesModule.LKMD')}}</div>
                      <div v-if="item.isOrder=='1'&&(item.isHaveFinance=='1'||item.orderState=='1')"
                        @click='getHouse(item)'>{{$t('salesModule.UpdateRoom')}}</div>
                      <div v-if="item.isOrder=='1'&&item.orderState!='4' && TransferMission == true"
                        @click="transfer(item)">{{$t('salesModule.OrderGroup')}}</div>
                      <div v-if="item.isOrder=='1'&&(item.orderState=='1'||item.orderState=='2'||item.orderState=='3')"
                        @click='deleteItem(item)'>{{$t('pub.cancelBtn')}}</div>
                      <div v-if="item.scoreNum >= 0" @click='goInvetig("investigationList", item.tcid, item.orderId)'>
                        {{$t('salesModule.LookTourse')}}</div>
                    </div>
                    <el-button slot="reference" type="primary"
                      style='background:#297BEF; border-color:#297BEF;border-top-left-radius: 0;border-bottom-left-radius: 0;'
                      icon="iconfont icon-more"></el-button>
                  </el-popover>
                </el-tooltip>
              </el-button-group>
              <payurlItem v-if='item.isOwn==1' :item="item" :showID="showID"
                v-show="item.orderState!='4'&&item.orderState!='3'" v-on:childByValue="childByValue"></payurlItem>
            </td>
          </tr>
          <tr>
            <td colspan="8" class="groupTourOrder_remarks" style="height: 40px;">
              <div>
                <div><span>{{$t('pub.pubRemark')}}:</span>
                  <p><span v-if='item.clientSource==1&&item.brandName!=""'>{{item.brandName}}{{$t('fnc.dingdan')}}
                      {{item.platformOrder}};</span>{{item.remarks}}</p>
                </div>
                <div>
                  <el-popover width="600" placement="bottom-end" trigger="click">
                    <div class="groupTourOrder_remarks_popover">
                      <div>{{$t('fnc.lsbeizhu')}}</div>
                      <p v-if="item.remarksList.length !== 0" v-for="(item2, index2) in item.remarksList" :key="index2">
                        <span>{{item2.remarks}}</span>
                        <span>{{item2.createByName}} <span style="color: #666666;">{{item2.createDate}}</span></span>
                      </p>
                      <span v-if="item.remarksList.length === 0">{{$t('system.content_noData')}}</span>
                    </div>
                    <el-button slot="reference" icon="iconfont icon-gengduo"
                      style="padding:0px;border:none;background-color:transparent;" class="groupTourOrder_remarks_btn">
                    </el-button>
                  </el-popover>
                </div>
              </div>
            </td>
            <td colspan="8" class="groupTourOrder_tickets" style="height: 40px;">
              <div>
                <div>{{$t('fnc.skdanju')}}：</div>
                <div>
                  <span v-for="(item2,index2) in item.financeList" :key="index2">
                    <span v-if="item2.colorState===1" class="groupTourOrder_tickets_blue">{{item2.frID}}</span>
                    <span v-else-if="item2.colorState===2" class="groupTourOrder_tickets_green">{{item2.frID}}</span>
                    <span v-else-if="item2.colorState===3" class="groupTourOrder_tickets_red">{{item2.frID}}</span>
                    <span v-else-if="item2.colorState===4" class="groupTourOrder_tickets_black">{{item2.frID}}</span>
                  </span>
                  <span v-if="item.financeList.length===0"
                    style="cursor: default;">{{$t('system.content_noData')}}</span>
                </div>
              </div>
              <div>
                <div>{{$t('fnc.fkdanju')}}：</div>
                <div>
                  <span v-for="(item2,index2) in item.refundFinanceList" :key="index2">
                    <span v-if="item2.colorState===1" class="groupTourOrder_tickets_blue">{{item2.frID}}</span>
                    <span v-else-if="item2.colorState===2" class="groupTourOrder_tickets_green">{{item2.frID}}</span>
                    <span v-else-if="item2.colorState===3" class="groupTourOrder_tickets_red">{{item2.frID}}</span>
                    <span v-else-if="item2.colorState===4" class="groupTourOrder_tickets_black">{{item2.frID}}</span>
                  </span>
                  <span v-if="item.refundFinanceList.length===0"
                    style="cursor: default;">{{$t('system.content_noData')}}</span>
                </div>
              </div>
              <div>{{$t('salesModule.Invoice')}}：</div>
              <div>
                <span v-for="(item2,index2) in item.invoiceApplyList" :key="index2">
                  <span v-if="item2.invoiceApplyState === 6" class="groupTourOrder_tickets_blue"
                    @click="goIisDetail(item2.id)">{{item2.id}}</span>
                  <span
                    v-else-if="item2.invoiceApplyState === 1 || item2.invoiceApplyState === 3 || item2.invoiceApplyState === 6"
                    class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span>
                  <span v-else-if="item2.invoiceApplyState === 5 || item2.invoiceApplyState === 4 "
                    class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span>
                  <span v-else-if="item2.invoiceApplyState === 2" class="groupTourOrder_tickets_black"
                    @click="goIisDetail(item2.id)">{{item2.id}}</span>
                </span>
                <span v-if="item.invoiceApplyList.length===0"
                  style="cursor: default;">{{$t('system.content_noData')}}</span>
              </div>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
    <el-dialog custom-class='w450' :title="$t('Operation.Op_tripDownLoad')" :visible.sync="travelControlTripLayerShow" center>
      <tripDownLoadCommon ref="tripDownLoadCommon" :tripObj="tripObj" @headCallBack="hideTripDown" :downType="2">
      </tripDownLoadCommon>
    </el-dialog>
    <div class="groupTourOrderByTuan_transfer" v-show="transferData.show">
      <div class="transfer_header">
        <div>{{$t('salesModule.OrderGroup')}}</div>
        <div>
          <div @click="transferClose()">{{$t('pub.cancelBtn')}}</div>
          <div @click="transferSave()">{{$t('pub.sureBtn')}}</div>
        </div>
      </div>
      <div class="transfer_info">
        <div>
          <em>{{$t('hotel.order_Number')}}：</em>
          <span>{{transferData.info.OrderId}}</span>
        </div>
        <div>
          <em>{{$t('visa.v_yewuyuan')}}：</em>
          <span>{{transferData.info.CreateByName}}</span>
        </div>
        <div>
          <em>{{$t('scen.sc_temID')}}：</em>
          <span>{{transferData.info.OldTCID}}</span>
        </div>
        <div>
          <em>{{$t('visa.v_tuanhao')}}：</em>
          <span>{{transferData.info.OldTCNUM}}</span>
        </div>
      </div>
      <div class="transfer_input">
        <div>
          <em>{{$t('visa.v_tuanhao')}}：</em>
          <el-input v-model="transferData.info.TCNUM" :placeholder="$t('salesModule.EnterTnum')"></el-input>
        </div>
      </div>
    </div>
    <div class="combottomDiv" v-if="showChangeSales" style="height:200px;">
      <updateSalesMan @closeUpdiv="closeSalseDiv" @getList="getList" :subInfo="subInfo"></updateSalesMan>
    </div>
    <!--修改OP备注-->
    <el-dialog custom-class='w350' :title="$t('ground.xgopbz')" :visible.sync="zhuanLoading" center :before-close="initOPRemarkMsg">
      <el-form label-width="110px">
        <el-form-item :label="$t('Operation.Op_remark')+'：'" class="w280">
          <el-input type="textarea" :rows="2" v-model="OPRemarkMsg.OP_Remarks"></el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <button class="normalBtn" type="primary" @click="TransferDocuments">{{$t('pub.saveBtn')}}</button>
        <button class="hollowFixedBtn" @click="initOPRemarkMsg">{{$t('pub.cancelBtn')}}</button>
      </div>
    </el-dialog>
    <!--修改提成-->
    <el-dialog custom-class='w350' :title="$t('ground.xgtcheng')" :visible.sync="TiChengLoading" center :before-close="initTCMsg">
      <el-form label-width="110px">
        <el-form-item :label="$t('salesModule.TCmoney')+'：'" class="w280">
          <el-input :placeholder="$t('pub.pleaseImport')" type="number" v-model="TCMsg.LatestCommissionMoney">
          </el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <button class="normalBtn" type="primary" @click="submitTCMsg">{{$t('pub.saveBtn')}}</button>
        <button class="hollowFixedBtn" @click="initTCMsg">{{$t('pub.cancelBtn')}}</button>
      </div>
    </el-dialog>

    <!--    申请优惠-->
    <div class="productQuerybottomLayer ownScrollbarStyle" v-if="SpecialOffer" style="height: 150px;min-height:200px;">
      <p>{{$t('pub.ApplyYH')}}
        <span class="fr">
          <input type="button" class="hollowFixedBtn" :value="$t('pub.cancelBtn')" @click="cancelSubmitRemarks()" />
          <input type="button" class="normalBtn" :value="$t('pub.saveBtn')" @click="Preservation()" />
        </span>
      </p>
      <el-form :model="remarksMsg" ref="remarksMsg" label-position="right" :rules="RemarksRules" label-width="80px">
        <el-row :gutter="20">
          <el-col :span="24">
            <el-form-item>
              <em style="font-size: 12px !important;color: #606266;line-height: 34px">{{$t('pub.NowPrice')}}</em>
              <em
                style=" display: inline-block;padding: 0 10px;height: 34px;line-height: 34px;text-align: left;font-size: 16px;border-radius: 3px;background-color: #E5E5E5;vertical-align: top;"
                class='w150'>{{SOMsg.OrderUnitPrice}}</em>
              <em style="margin-left: 100px;font-size: 12px !important;color: #606266;">{{$t('salesModule.AdultPeople')}}</em>
              <el-select :placeholder="$t('pub.pleaseSel')" v-model="SOMsg.UpdateBy">
                <el-option v-for="(item,index) in SuperiorPeople" :label='(item.EmName)' :value='(item.EmployeeId)'
                  :key="index"></el-option>
              </el-select>
            </el-form-item>

            <el-form-item :label="$t('salesModule.ApplyReason')" style="margin-left: 58px;">
              <el-input v-model='SOMsg.ApplyReason' type='textarea' maxlength='1000' style="width: 60%"></el-input>
            </el-form-item>
          </el-col>
        </el-row>
      </el-form>
    </div>
    <el-dialog custom-class='w350' :title="$t('ground.xgddanewjine')" :visible.sync="OrderMoneyDialog" center>
      <el-form label-width="110px">
        <el-form-item :label="$t('salesModule.EWJLJE')+'：'" class="w280">
          <el-input :placeholder="$t('pub.pleaseImport')" type="text" @keyup.native="checkPrice(EwMsg,'ExtraRewardMoney')"
            v-model="EwMsg.ExtraRewardMoney">
          </el-input>
        </el-form-item>
        <el-form-item :label="$t('salesModule.EWKCJE')+'：'" class="w280">
          <el-input :placeholder="$t('pub.pleaseImport')" type="number" @keyup.native="checkPrice(EwMsg,'ExtraDeductMoney')"
            v-model="EwMsg.ExtraDeductMoney">
          </el-input>
        </el-form-item>
      </el-form>
      <div slot="footer" class="dialog-footer">
        <button class="normalBtn" type="primary" @click="submitEWMsg">{{$t('pub.saveBtn')}}</button>
        <button class="hollowFixedBtn" @click="OrderMoneyDialog=false">{{$t('pub.cancelBtn')}}</button>
      </div>
    </el-dialog>

    <!-- 修改订单备注 -->
    <div class="productQuerybottomLayer ownScrollbarStyle" v-show="isShowLayerRemarks"
      style="height:150px;min-height:150px">
      <orderRemark v-if="isShowLayerRemarks" :remarksMsg="remarksMsg" @close="closeDialog" @success="refreshPage">
      </orderRemark>
    </div>

    <a id='groupTourOrderByTuan_DownLoad' target="_blank" style="display:none">1不要删除</a>
  </div>
</template>

<script>
  import moment from "moment";
  import payURL from "../commonPage/payURL.vue";
  import payURL1 from "../commonPage/payURL1.vue";
  import tripDownLoadCommon from "../commonPage/TripDownLoadCommon.vue";
  import updateSalesMan from "../commonPage/updateSalesMan.vue";
  import orderRemark from "../orderCommon/order-remark.vue"; //订单备注
  export default {
    data() {
      return {
        timer: false,
        fullHeight: document.documentElement.clientHeight,
        ScreenHeight: 0,
        IsSupperOrderEdit: false, //获取总经理副总经理超级修改权限
        IsLookOrder: false, //出纳查看订单权限
        //修改订单业务员权限
        isEditOrderCreate: 0,
        addObj: {
          OrderId: 0,
          OpSetLossMoney: '',
          IsSupportChildren: 0
        },
        // 修改应收总额
        Ysze: false,
        addMsg_form: {},

        OPRemarkMsg: {
          OrderId: '',
          OP_Remarks: '',
        },
        zhuanLoading: false,
        TiChengLoading: false,
        TCMsg: {
          OrderId: 0,
          CommissionMinusRate: 0,
          LatestCommissionMoney: '',
        },
        OrderMoneyDialog: false,
        EwMsg: {
          OrderId: 0,
          ExtraRewardMoney: '',
          ExtraDeductMoney: ''
        },
        checkedObj: {},

        pickerOptions0: {
          disabledDate: time => {
            let starTime = new Date(this.starTime);
            return time.getTime() > starTime.getTime();
          }
        },
        pickerOptions1: {
          disabledDate: time => {
            let endTime = new Date(this.endTime);
            return time.getTime() < endTime.getTime() - 5.64e7;
          }
        },
        defaultImg: 'this.src="' + require("../../assets/img/litheader.png") + '"',
        travelControlTripLayerShow: false,
        tripObj: {
          tcid: 0,
          configId: 0,
          cityId: 0,
          orderId: 0
        },
        userId: "",
        customerId: "",
        createByInfo: "",
        isUpdateSharePeople: false,
        isUpdateOrderCommission: false,
        starTime: "",
        endTime: "",
        stratPrice: "",
        stratPriceShow: false,
        returnPrice: "",
        returnPriceShow: false,
        isAllowUpdate: 0,
        isPingtai: false,
        IsChildrenTour: 0,
        IsBirdDiscount: 0,
        SetOutCityId: 0,
        reOutCityId: 0,
        isShowLayer: false,
        isShowLayer2: false,
        isShowHouse: false,
        isShowLayerRemarks: false,
        loading: true,
        isChecked: true,
        comSelect: -1,
        OpSetLossPeople: 0,
        OpSetLossMoney: 0,
        remarksMsg: {
          OrderId: "0",
          OldRemarks: "",
          Remarks: "",
          //1-可以修改，0-不能修改【默认可以修改】
          isOrder: 1,
          UnionRemark: "", //新联运备注
          IsIntermodal: 0, //是否联运
          TeamType: 0, //团队类型(0-常规，1-小包团，2-当地游)
        },
        IsChargeLossOrders: 0,
        Unit_PriceList: [], //成交单价下拉数据
        LessMoney: 0,
        addMsg: {
          OrderForm: '',
          OrderId: "0",
          TCID: "0",
          CustomerType: "",
          GroupType: "",
          ContactName: "",
          ContactMobile: "",
          CustomerId: "",
          DepartureCityId: "",
          ReturnArriveCityId: "",
          IsIntermodal: "2",
          IsReturnIntermodal: "2",
          Unit_Price: "0",
          TC_Price: "0",
          ManNum: "0",
          ChirdNum: "0",
          ChirdNoNeedBedNum: "0",
          ChirdNeedBedNum: "0",
          BabyNum: "0",
          OldPeopleNum: "0",
          SingleRoomNum: "0",
          PreferPrice: 0,
          YSeatNum: "0",
          ESeatNum: "0",
          FSeatNum: "0",
          Commission: "0",
          ClientSource: "",
          BrandId: "",
          TradeWay: "2",
          PlatformAccount: '',
          PlatformOrder: "",
          GuestNum: 0,
          IsChildrenTour: "0",
          IsBirdDiscount: "0",
          PredictRoomNum: "0",
          BigRoomNum: "0",
          TripleRoomNum: "0",
          TradeDate: "",
          CostType: "",
          Remarks: "",
          VisaNum: "0",
          SafeNum: "0",
          RefuseVisaNum: '0',
          AirticketNum: "0",
          ScenicRefundArr: [],
          GoCityTime: "",
          BackCityTime: "",
          CommissionSharePeople: "-1",
          CommissionShareMoney: "0",
          GuestList: [],
          GatherAddress: "",
          LuggageNum: '',
        },
        GuestList: [{
          SurName: '',
          Name: '',
          Sex: '',
          ESurName: '',
          EName: '',
          Birthday: '',
          Nationality: 2,
          Nationality: '',
          PassportNo: '',
          Remarks: '',
          MobilePhone: ''
        }],
        GuestObj: {
          SurName: '',
          Name: '',
          Sex: '',
          ESurName: '',
          EName: '',
          Birthday: '',
          PassportNo: '',
          Remarks: '',
          MobilePhone: ''
        },
        employeeMsg: {
          BranchId: "-1",
          IsLeave: 0
        },
        employeeList: [],
        rules: {
          CustomerType: [{
            required: true,
            message: this.$t('objFill.qingxuanzhekhlx'),
            trigger: "change"
          }],
          CustomerId: [{
            required: false,
            message: this.$t('objFill.qingxzkhmd'),
            trigger: "change"
          }],
          DepartureCityId: [{
            required: true,
            message: this.$t('objFill.qingxzcfcs'),
            trigger: "change"
          }],
          LuggageNum: [{
            required: true,
            message: this.$t('objFill.qingsrxls'),
            trigger: 'blur'
          }],
          ReturnArriveCityId: [{
            required: true,
            message: this.$t('objFill.qingxzfhcs'),
            trigger: "change"
          }],
          GroupType: [{
            required: true,
            message: this.$t('objFill.qingxzctlx'),
            trigger: "change"
          }],
          ClientSource: [{
            required: true,
            message: this.$t('objFill.qingxzkrly'),
            trigger: "change"
          }],
          TradeWay: [{
            required: true,
            message: this.$t('fnc.a_qxzjyfangshi'),
            trigger: "change"
          }],
          ContactName: [{
            required: true,
            message: this.$t('objFill.qingshurulxxm'),
            trigger: "blur"
          }],
          ContactMobile: [{
            required: true,
            message: this.$t('objFill.qingshurulxrdh'),
            trigger: "blur"
          }],
          SurName: [{
            required: true,
            message: this.$t('objFill.shuruxin'),
            trigger: 'blur'
          }, ],
          Name: [{
            required: true,
            message: this.$t('objFill.shuruming'),
            trigger: 'blur'
          }, ],
          Sex: [{
            required: true,
            message: this.$t('rule.qxzxb'),
            trigger: 'change'
          }, ],
          Birthday: [{
            required: true,
            message: this.$t('admin.admin_phBirthDate'),
            trigger: 'blur'
          }, ],
          Nationality: [{
            required: true,
            message: this.$t('visaT.qxzgj'),
            trigger: 'change'
          }, ],
          PassportNo: [{
            required: true,
            message: this.$t('system.ph_Passport'),
            trigger: 'blur'
          }, ],
          MobilePhone: [{
              required: true,
              message: this.$t('objFill.qingshurulxrdh'),
              trigger: 'blur'
            },
            // {
            //   pattern: /^(0|86|17951)?(13[0-9]|15[012356789]|17[012356789]|18[0-9]|19[0-9]|14[57])[0-9]{8}$/,
            //   message: this.$t('rule.qsrtelphone'),
            // }
          ],
          GatherAddress: [{
            required: true,
            message: this.$t('objFill.qingsrjhed'),
            trigger: 'blur'
          }, ],
        },
        rules2: {
          CustomerType: [{
            required: true,
            message: this.$t('objFill.qingxuanzhekhlx'),
            trigger: "change"
          }],
          CustomerId: [{
            required: false,
            message: this.$t('objFill.qingxzkhmd'),
            trigger: "change"
          }],
          ClientSource: [{
            required: true,
            message: this.$t('objFill.qingxzkrly'),
            trigger: "change"
          }],
          TradeWay: [{
            required: true,
            message: this.$t('fnc.a_qxzjyfangshi'),
            trigger: "change"
          }],
          ContactName: [{
            required: true,
            message: this.$t('objFill.qingshurulxxm'),
            trigger: "blur"
          }],
          ContactMobile: [{
            required: true,
            message: this.$t('objFill.qingshurulxrdh'),
            trigger: "blur"
          }]
        },
        RemarksRules: {
          Remarks: [{
            required: true,
            message: this.$t('objFill.qingshurbzxx'),
            trigger: "blur"
          }]
        },
        HightUnitPrice: '2',
        msg: {
          pageIndex: 1,
          pageSize: 10,
          LineId: "-1",
          LineteamId: "-1",
          TCNUM: "",
          tempOrderId: "",
          OutBranchId: "-1",
          OrderState: "-1",
          CustomerType: "-1",
          ContactName: "",
          CustomerId: "-1",
          GroupType: "-1",
          OrderSource: "-1",
          CStartDate: "",
          CEndDate: "",
          QStartDate: "",
          QEndDate: "",
          PayStatus: "-1"
        },
        tuanMsg: {
          pageIndex: 1,
          pageSize: 1000,
          TCID: this.$route.query.id
        },
        isUpdateOrder: false,
        cancelRtData: [],
        //返回数据
        currentPage: 1,
        total: 0,
        startCityList: [],
        list: [],
        LineTeamList: [],
        memberList: [],
        logList: [],
        orderList: [],
        companyList: [],
        khlxList: [],
        ctlxList: [],
        ddlyList: [],
        ddztList: [],
        khmdList: [],
        ssptList: [],
        jyfsList: [],
        ScenicRefundList: [],
        PlatformAccountList: [],
        ScenicRefundMoney: 0,
        isShowCancelOrder: false,
        tuanInfo: {
          config: {
            IsOrder: 1,
          }
        },
        seat: {
          YSeat: 0,
          CSeat: 0,
          FSeat: 0,
          joinGroupNum: 0,
          leaderNum: 0,
          totalGuestNum: 0,
          ownVisaNum: 0
        },
        //支付
        minpay: "0",
        //显示修改业务员
        showChangeSales: false,

        fylxList: [],
        showID: -1,
        countData: {
          // 总报名人数
          TotalGuestNum: 0,
          TotalYSeatNum: 0,
          TotalESeatNum: 0,
          TotalFSeatNum: 0,
          // 正常报名人数
          NormalGuestNum: 0,
          NormalYSeatNum: 0,
          NormalESeatNum: 0,
          NormalFSeatNum: 0,
          // 取消人数
          CancelGuestNum: 0,
          CancelYSeatNum: 0,
          CancelESeatNum: 0,
          CancelFSeatNum: 0,
          // 其他统计项
          Income: 0,
          Commission: 0,
          DueinMoney: 0,
          PreferPrice: 0,
          InteriorNum: 0,
          B2BNum: 0
        },
        // 订单转团
        transferData: {
          show: false,
          info: {
            OrderId: '',
            CreateByName: '',
            OldTCID: '',
            OldTCNUM: '',
            TCNUM: ''
          }
        },
        IsUpdateOrderMoney: false,
        //订单编号及业务员信息
        subInfo: {
          CreateBy: '',
          OrderId: 0
        },
        // 申请优惠的弹窗
        SpecialOffer: false,
        SOMsg: {
          OrderId: '',
          ApplyPrice: 0,
          ApplyReason: '',
          UpdateBy: '',
          OrderUnitPrice: 0
        },
        SuperiorPeople: [],
        TransferMission: '', //订单转团
        Unit_Price: 0, // 地接临时存值
        goLVurl: { //跳转到旅客页面的参数
          orderId: '',
          tcid: '',
          tcnum: '',
          isOrder: '',
        },
        optionsList: [{
            Name: this.$t('pub.man'),
            Id: 1
          },
          {
            Name: this.$t('pub.woman'),
            Id: 2
          },
        ],
        TotalNumber: 0,
        isGuest: 0,
        countryList: [], //国籍

      };
    },
    components: {
      payurlItem: payURL,
      payurlItem1: payURL1,
      tripDownLoadCommon: tripDownLoadCommon,
      updateSalesMan: updateSalesMan,
      orderRemark: orderRemark,
    },
    watch: {
      fullHeight(val) {
        if (!this.timer) {
          this.fullHeight = val;
          this.timer = true;
          let that = this;
          setTimeout(function () {
            that.timer = false;
          }, 400);
        }
        if (this.fullHeight > 700) {
          this.ScreenHeight = "600px";
        } else {
          this.ScreenHeight = "300px";
        }
      },
    },
    filters: {
      priceFormat(value) {
        let nStr = value.toFixed(2);
        nStr += "";
        let x = nStr.split(".");
        let x1 = x[0];
        let x2 = x.length > 1 ? "." + x[1] : "";
        var rgx = /(\d+)(\d{3})/;
        while (rgx.test(x1)) {
          x1 = x1.replace(rgx, "$1" + "," + "$2");
        }
        return x1 + x2;
      }
    },
    methods: {
      //关闭弹窗
      closeDialog() {
        this.isShowLayerRemarks = false;
      },
      //刷新页面
      refreshPage() {
        this.isShowLayerRemarks = false;
        this.getList();
      },
      getCountry() {
        //获取国家
        let msg = {};
        this.apipost(
          "dict_post_Destination_GetCountry",
          msg,
          res => {
            if (res.data.resultCode == 1) {
              this.countryList = res.data.data;
            } else {
              this.$message.error(res.data.message);
            }
          },
          err => {}
        );
      },
      // 跳转调查列表
      goInvetig: function (path, tcid, orderId) {
        this.$router.push({
          name: path,
          query: {
            OrderId: orderId,
            TCID: tcid,
            blank: "y",
          }
        });
      },
      goIisDetail: function (id) { // 跳转发票详情页面
        this.$router.push({
          name: 'invoicesManagerDetail',
          query: {
            id: id,
            noDetail: 1,
            blank: "y",
          }
        });
      },
      // 申请发票
      goUrlAdd: function (path, OrderId, TCID, customerId) {
        this.$router.push({
          name: path,
          query: {
            OrderId: OrderId,
            TCID: TCID,
            customerId: customerId,
            blank: "y",
          }
        });
      },
      //跳转
      goUrlTS(path, id, orderId, title) {
        this.$router.push({
          name: path,
          query: {
            'id': id,
            'orderId': orderId,
            blank: 'y',
            tab: title
          }
        })
      },
      //是否可以修改成交单价
      canEditUnitPrice() {
        let userInfo = this.getLocalStorage();
        if (userInfo != null && userInfo.EmployeeId == 1) {
          this.isChecked = false;
        }
      },
      maxCommissionMinusRate: function () {
        this.TCMsg.CommissionMinusRate = this.TCMsg.CommissionMinusRate.replace(/[^\.\d]/g, '');
        this.TCMsg.CommissionMinusRate = this.TCMsg.CommissionMinusRate.replace('.', '');
        if (this.TCMsg.CommissionMinusRate > 100) {
          this.TCMsg.CommissionMinusRate = 100
        }
      },
      getPlatformAccount(typeIdtwo, platformAccount) {
        let platBranchId = this.getLocalStorage().RB_Branch_id;
        this.apipost('FinancialInstitutions_post_GetALLAccountList', {
          TypeId: typeIdtwo,
          BranchId: platBranchId
        }, res => {
          if (res.data.resultCode == 1) {
            this.PlatformAccountList = res.data.data;
            this.addMsg.PlatformAccount = platformAccount;
          }
        }, err => {})
      },
      submitTCMsg: function () {
        this.apipost('sellorder_post_SetOrderCommission', this.TCMsg, res => {
          if (res.data.resultCode == 1) {
            this.$message.success(res.data.message)
            this.getList()
            this.initTCMsg()
            this.TiChengLoading = false
          } else {
            this.$message.error(res.data.message);
          }
        }, null)
      },
      initTCMsg: function () {
        this.TiChengLoading = false
        this.TCMsg = {
          OrderId: 0,
          CommissionMinusRate: 0,
          LatestCommissionMoney: ''
        }
      },
      //设置额外金额
      submitEWMsg() {
        this.apipost('sellorder_post_SetOrderExtraMoney', this.EwMsg, res => {
          if (res.data.resultCode == 1) {
            this.Success(res.data.message)
            this.getList()
            this.OrderMoneyDialog = false
          } else {
            this.Error(res.data.message);
          }
        }, null)
      },
      TransferDocuments: function () {
        this.apipost('sellorder_get_SetOrderOPRemarks', this.OPRemarkMsg, res => {
          if (res.data.resultCode == 1) {
            this.$message.success(res.data.message)
            this.getList()
            this.initOPRemarkMsg()
            this.zhuanLoading = false
          } else {
            this.$message.error(res.data.message);
          }
        }, null)
      },
      initOPRemarkMsg() {
        this.OPRemarkMsg = {
          OP_Remarks: '',
          OrderId: '',
        }
        this.zhuanLoading = false
      },
      goUrlSFD: function (path, name, item) {
        let obj = JSON.parse(JSON.stringify(item))
        obj.oP_Remarks = ''
        obj.remarksList = []
        obj.refundFinanceList = []
        obj.remarks = []
        obj.ltName = []
        obj.lineName = []
        obj.financeList = []
        obj.guestList = []
        obj.description = []
        this.$router.push({
          name: path,
          query: {
            blank: 'y',
            tab: name,
            item: JSON.stringify(obj)
          }
        });
      },
      getItem(obj) {
        this.checkedObj = obj
      },
      deleteFile(obj) {
        this.$confirm(this.$t('objFill.shifouscqrh'), this.$t('tips.tips'), {
          confirmButtonText: this.$t('pub.sureBtn'),
          cancelButtonText: this.$t('pub.cancelBtn'),
          type: 'warning'
        }).then(() => {
          let saveMsg = {}
          saveMsg.Path = obj.confirmFileList[0].fullUrl
          saveMsg.FileName = obj.confirmFileList[0].name
          saveMsg.Status = 2
          saveMsg.OrderId = obj.orderId
          this.apipost('sellorder_post_SetConfirmationLetter', saveMsg, res => {
            if (res.data.resultCode == 1) {
              this.$message.success(res.data.message);
              this.getList()
            } else {
              this.$message.error(res.data.message);
            }
          }, err => {})
        }).catch(() => {
          this.$message.info(this.$t('objFill.quxiaoshanc'));
        });

      },
      uploadFileBtn(file) { //上传
        let that = this
        let newArr = [];
        newArr.push(file.file)
        let path = "/Upload/Temporary/"
        this.$message.info(this.$t('tips.shangchuanzhong'))
        this.UploadSelfFileT(path, newArr, x => {
          let fileSize = file.file.size < 1024 ? file.file.size : (file.file.size / 1024).toFixed(0);
          let saveMsg = {}
          saveMsg.Path = x.data.FilePath
          saveMsg.FileName = file.file.name
          saveMsg.Status = 1
          saveMsg.OrderId = this.checkedObj.orderId
          that.apipost('sellorder_post_SetConfirmationLetter', saveMsg, res => {
            if (res.data.resultCode == 1) {
              this.$message.success(res.data.message);
              this.getList()
            } else {
              this.$message.error(res.data.message);
            }
          }, err => {})
        });
      },
      downLoadFile(obj) {
        let dom = document.querySelector("#groupTourOrderByTuan_DownLoad");
        dom.href = obj[0].fullUrl;
        dom.click();
      },
      // 订单转团
      transfer: function (item) {
        this.transferData.info.OrderId = item.orderId
        this.transferData.info.CreateByName = item.createBy
        this.transferData.info.OldTCID = item.tcid
        this.transferData.info.OldTCNUM = item.tcnum
        this.transferData.info.TCNUM = ''

        this.isShowLayer = false
        this.isShowLayer2 = false
        this.isShowHouse = false
        this.isShowLayerRemarks = false
        this.transferData.show = true
      },
      transferClose: function () {
        this.transferData.show = false
      },
      changeSelect: function () {
        this.$forceUpdate()
      },
      transferSave: function () {
        if (this.transferData.info.TCNUM.trim() === '') {
          this.$message.error(this.$t('salesModule.EnterTnum'))
        } else {
          this.apipost('sellorder_post_SetOrderTurnGroup', this.transferData.info, res => {
            if (res.data.resultCode === 1) {
              this.$message.success(this.$t('objFill.zhuantuancg'))
              this.transferData.show = false
              this.getList()
            } else {
              this.$message.error(res.data.message)
            }
          }, err => {})
        }
      },
      toTrip: function (obj) {
        this.tripObj.tcid = obj.tcid;
        this.tripObj.configId = obj.configId;
        this.tripObj.orderId = obj.orderId;
        this.tripObj.cityId = obj.startCityId;
        this.travelControlTripLayerShow = true;
      },
      hideTripDown() {
        this.travelControlTripLayerShow = false;
      },
      yzVisaNum: function () {
        let count = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) +
          Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum))
        if (count < this.addMsg.VisaNum) {
          this.addMsg.VisaNum = count
          this.$message.error(this.$t('objFill.qianzsbndyzrs'))
        }
      },
      yzSafeNum: function () {
        let count = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) +
          Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum))
        this.TotalNumber = count
        if (count < this.addMsg.SafeNum) {
          this.addMsg.SafeNum = count
          this.$message.error(this.$t('objFill.baoxrsbndyzrs'))
        }
      },
      // 获取统计数据
      getCount: function () {
        this.apipost("sellorder_post_GetOrderListStatistics", this.tuanMsg, res => {
          if (res.data.resultCode == 1) {
            this.countData = res.data.data
          } else {
            this.$message.error(this.$t('tips.hqsjshibai'));
          }
        }, err => {})
      },
      getTuanInfo() {
        this.apipost(
          "travel_get_GetTravelConfigTCID", {
            TCID: this.$route.query.id
          },
          res => {
            if (res.data.resultCode == 1) {
              this.tuanInfo = res.data.data;
            }
          },
          err => {}
        );
      },
      deleteItem(obj) {
        if (obj.isCanClear == 1) {
          this.Error(this.$t('objFill.opyqrddrqxqlx'));
          return;
        }
        this.$confirm(this.$t('tips.shifouquxiao'), this.$t('tips.tips'), {
            confirmButtonText: this.$t('pub.sureBtn'),
            cancelButtonText: this.$t('pub.cancelBtn'),
            type: "warning"
          })
          .then(() => {
            this.apipost(
              "sellorder_post_RemoveOrder", {
                ID: obj.orderId
              },
              res => {
                if (res.data.resultCode == 1) {
                  this.$message.success(this.$t('ground.quxiaochenggong'));
                  this.getList();
                } else {
                  this.$message.error(res.data.message);
                }
              },
              err => {}
            );
          })
          .catch(() => {
            this.$message.info(this.$t('hotel.hotel_HasBeenCancelled'));
          });
      },
      setChargeLoss(obj) {
        let confirmC = this.$t('objFill.quedswssd');
        if (obj.isChargeLossOrders == 1) {
          confirmC = this.$t('objFill.quedhfssd');
        }
        this.$confirm(confirmC, this.$t('tips.tips'), {
            confirmButtonText: this.$t('pub.sureBtn'),
            cancelButtonText: this.$t('pub.cancelBtn'),
            type: "warning"
          })
          .then(() => {
            this.apipost(
              "sellorder_post_RemoveChargeLossOrders", {
                OrderId: obj.orderId
              },
              res => {
                if (res.data.resultCode == 1) {
                  this.$message.success(this.$t('tips.czchenggong'));
                  this.getList();
                } else {
                  this.$message.error(res.data.message);
                }
              },
              err => {}
            );
          })
          .catch(() => {
            this.$message.info(this.$t('pub.cancelBtn')+'！');
          });
      },
      getUnionTravelPrice(obj, type) {
        let msg = {};
        msg.TCID = obj.TCID;
        msg.OrderId = obj.OrderId;
        msg.Type = type;
        if (type == 1) {
          msg.StartCityId = this.addMsg.DepartureCityId;
          msg.CityTime = this.addMsg.GoCityTime;
          if (this.addMsg.IsIntermodal == 2) {
            this.stratPrice = "0";
            this.stratPriceShow = false;
            this.getTotalPrice();
          } else {
            this.apipost(
              "sellorder_get_GetUnionTravelPrice",
              msg,
              res => {
                if (res.data.resultCode == 1) {
                  this.stratPrice = res.data.data.Price;
                  if (this.stratPrice == 0) {
                    this.stratPriceShow = false;
                  } else {
                    this.stratPriceShow = true;
                  }
                  this.getTotalPrice();
                }
              },
              err => {}
            );
          }
        } else {
          msg.StartCityId = this.addMsg.ReturnArriveCityId;
          msg.CityTime = this.addMsg.BackCityTime;
          if (this.addMsg.IsReturnIntermodal == 2) {
            this.returnPrice = "0";
            this.returnPriceShow = true;
            this.getTotalPrice();
          } else {
            this.apipost(
              "sellorder_get_GetUnionTravelPrice",
              msg,
              res => {
                if (res.data.resultCode == 1) {
                  this.returnPrice = res.data.data.Price;
                  if (this.returnPrice == 0) {
                    this.returnPriceShow = false;
                  } else {
                    this.returnPriceShow = true;
                  }
                  this.getTotalPrice();
                }
              },
              err => {}
            );
          }
        }
      },
      goUrlT(path, id) {
        let routeData = this.$router.resolve({
          name: path,
          query: {
            id: id
          }
        });
        window.open(routeData.href, "_blank");
      },
      ScenicRefundMethods() {
        if (this.addMsg.ScenicRefundArr.length == 0) {
          this.ScenicRefundMoney = 0;
        } else {
          this.ScenicRefundMoney = 0;
          this.addMsg.ScenicRefundArr.forEach(x => {
            let listIndex = this.ScenicRefundList.findIndex(item => item.Id == x);
            if (listIndex != -1) {
              this.ScenicRefundMoney += this.ScenicRefundList[
                listIndex
              ].RefundMoney;
            }
          });
        }
        this.getTotalPrice();
        this.getTicheng();
      },
      getScenicRefund(TCID) {
        this.apipost(
          "sellorder_get_GetScenicRefundList", {
            TCID
          },
          res => {
            if (res.data.resultCode == 1) {
              this.ScenicRefundList = res.data.data;
              this.ScenicRefundList.forEach(item => {
                item["ScenicName"] =
                  item.CouponsName + " -￥" + this.moneyFormat(item.RefundMoney);
              });
              this.ScenicRefundMethods();
            }
          },
          err => {}
        );
      },
      platformOrderMethods() {
        if (this.addMsg.PlatformOrder == "") {
          this.addMsg.MinOrderPrice = 0;
          this.addMsg.CostType = "";
          this.addMsg.TradeDate = "";
        } else {
          this.addMsg.MinOrderPrice =
            this.minPrice *
            (Number(this.addMsg.AirticketNum) +
              Number(this.addMsg.ManNum) +
              Number(this.addMsg.ChirdNum) +
              Number(this.addMsg.OldPeopleNum));
        }
      },
      getMinPrice(id) {
        this.apipost(
          "Financial_post_GetLowPrice", {
            OrderID: id,
            OrderResource: 8
          },
          res => {
            if (res.data.resultCode == 1) {
              if (res.data.data.LowDeposit != -1) {
                this.minpay = res.data.data.LowDeposit;
              }
            }
          },
          err => {}
        );
      },
      childByValue(data) {
        this.showID = data;
      },

      // 给其他费用赋值
      Yszefz() {
        this.Ysze = true;
        this.addMsg_form = Object.assign({}, this.addObj);
      },
      // 修改应收总额
      submitYSZEForm() {
        this.apipost("sellorder_post_SetOrderHistoryPrice", this.addMsg_form,
          res => {
            if (res.data.resultCode == 1) {
              this.$message.success(res.data.message);
              this.Ysze = false;
              this.addObj = this.addMsg_form;
              this.getTotalPrice();
            } else {
              this.Ysze = false;
              this.$message.error(res.data.message);
            }
          },
          err => {}
        );
      },
      // 点击修改
      getDetail(obj) {
        this.goLVurl.orderId = obj.orderId;
        this.goLVurl.tcid = obj.tcid;
        this.goLVurl.tcnum = obj.tcnum;
        this.goLVurl.isOrder = obj.isOrder;
        this.Ysze = false;
        this.starTime = obj.startDate;
        this.endTime = obj.backDate;
        this.getMinPrice(obj.orderId);
        this.addMsg.OrderId = obj.orderId;
        this.IsChargeLossOrders = obj.isChargeLossOrders;
        this.apipost(
          "sellorder_post_GetOrderEntity", {
            ID: obj.orderId,
            IsGetGuest: 1
          },
          res => {
            if (res.data.resultCode == 1) {
              this.isAllowUpdate = res.data.data.IsUpdatePlatOrder;

              let x = res.data.data.model;
              let modelPrice = res.data.data.modelPrice;

              this.addMsg.GatherAddress = x.GatherAddress
              this.addMsg = x;
              this.addObj = res.data.data.modelPrice;
              if (this.addObj) {
                this.addObj.OrderId = x.OrderId;
                this.addObj.OpSetLossMoney = x.OpSetLossMoney;
              }


              this.addMsg.ScenicRefundArr = res.data.data.ScenicRefundArr;
              this.getScenicRefund(obj.tcid);
              this.getPlatformAccount(obj.platformAccountTypeId, obj.platformAccount);
              this.SetOutCityId = res.data.data.SetOutCityId;
              this.reOutCityId = res.data.data.SetBackCityId;
              this.addMsg.CustomerType = x.CustomerType.toString();
              this.addMsg.ClientSource = x.ClientSource.toString();
              this.addMsg.GroupType = x.GroupType.toString();
              this.addMsg.TradeWay = x.TradeWay.toString();
              this.addMsg.PredictRoomNum = x.PredictRoomNum;
              this.addMsg.IsIntermodal = x.IsIntermodal ? x.IsIntermodal.toString() : 2;
              this.addMsg.IsReturnIntermodal = x.IsReturnIntermodal ? x.IsReturnIntermodal.toString() : '';
              this.addMsg.ChirdNum = x.ChirdNum.toString();
              this.addMsg.ChirdNeedBedNum = 0;
              this.addMsg.ChirdNoNeedBedNum = 0;
              this.addMsg.BabyNum = x.BabyNum.toString();
              this.addMsg.RefuseVisaNum = x.RefuseVisaNum.toString();
              this.addMsg.OrderForm = x.OrderForm
              this.addMsg.allName = x.ContactName
              if (x.IsChildrenTour) {
                this.IsChildrenTour = this.addObj.IsSupportChildren = x.IsChildrenTour;
              }

              this.IsBirdDiscount = x.IsBirdDiscount;
              this.OpSetLossPeople = x.OpSetLossPeople;
              this.OpSetLossMoney = x.OpSetLossMoney;
              if (this.addMsg.GroupType == 4) {
                this.HightUnitPrice = '1'
                this.Unit_Price = x.Unit_Price
              } else {
                this.HightUnitPrice = '2'
                if (this.addObj && this.addObj.SingleDMCPrice) {
                  this.Unit_Price = this.addObj.SingleDMCPrice
                }
              }
              if (res.data.data.modelPrice && res.data.data.modelPrice.GoAddPrice) {
                this.stratPrice = res.data.data.modelPrice.GoAddPrice;
              }


              if (this.stratPrice == 0) {
                this.stratPriceShow = false;
              } else {
                this.stratPriceShow = true;
              }
              if (res.data.data.modelPrice && res.data.data.modelPrice.BackAddPrice) {
                this.returnPrice = res.data.data.modelPrice.BackAddPrice;
              }

              if (this.returnPrice == 0) {
                this.returnPriceShow = false;
              } else {
                this.returnPriceShow = true;
              }

              if (x.ClientSource == 1) {
                this.isPingtai = true;
              }
              if (this.addMsg.GroupType != 5) {
                this.isShowLayer = true;
                this.isShowLayer2 = false;
              } else {
                this.isShowLayer = false;
                this.isShowLayer2 = true;
              }
              this.getNumber()
              if (x.GuestList.length > 0) {
                let GuestList = JSON.parse(JSON.stringify(x.GuestList))
                this.addMsg.GuestList = []
                GuestList.forEach((items) => {
                  let Datas = {
                    SurName: items.SurName,
                    Name: items.Name,
                    Sex: items.Sex,
                    ESurName: items.ESurName,
                    EName: items.EName,
                    Birthday: items.Birthday,
                    Nationality: items.Nationality ? items.Nationality : 2,
                    PassportNo: items.PassportNo,
                    Remarks: items.Remarks,
                    MobilePhone: items.MobilePhone,
                    Id: items.Id
                  }
                  this.addMsg.GuestList.push(JSON.parse(JSON.stringify(Datas)))
                })
                this.isGuest = 1
                this.getNumGuest()
              } else {
                this.addMsg.GuestList = []
                this.isGuest = 0
                this.getNumGuest()
              }
              this.getKhmdList(this.addMsg.CustomerType, obj.lineId, this.addMsg.CreateBy, x.CustomerId);
              this.getDdlyList(this.addMsg.CustomerType);
              let maxPeopleNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNoNeedBedNum) + Number(this
                .addMsg.ChirdNeedBedNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.AirticketNum))
              this.apipost('sellorder_post_GetLessPrice', {
                "TCID": obj.tcid,
                "MaxPeopleNum": maxPeopleNum
              }, res => {
                this.LessMoney = res.data.data.lessMoney;
                if (parseFloat(this.LessMoney) > 0) {
                  this.Unit_PriceList = [];
                  for (var i = 0; i <= parseInt(this.LessMoney) / 10; i++) {
                    var obj = {
                      ID: '',
                      LessMoney: ''
                    }
                    obj.ID = this.addMsg.TC_Price - i * 10;
                    obj.LessMoney = this.addMsg.TC_Price - i * 10;
                    this.Unit_PriceList.push(obj);
                  }
                  if (this.Unit_PriceList.findIndex(markers => markers.ID == this.addMsg.Unit_Price) < 0) {
                    var obj = {
                      ID: '',
                      LessMoney: ''
                    }
                    obj.ID = this.addMsg.Unit_Price;
                    obj.LessMoney = this.addMsg.Unit_Price;
                    this.Unit_PriceList.push(obj);
                  }
                } else {
                  this.Unit_PriceList = [];
                  var obj = {
                    ID: '',
                    LessMoney: ''
                  }
                  obj.ID = this.addMsg.Unit_Price;
                  obj.LessMoney = this.addMsg.Unit_Price;
                  this.Unit_PriceList.push(obj);
                }
              }, err => {})

              this.isShowLayerRemarks = false;
              this.apipost(
                "app_today_visit_GetCustomerBrandByCustomerId", {
                  customerInfoId: x.CustomerId
                },
                res => {
                  if (res.data.resultCode == 1) {
                    this.ssptList = res.data.data;
                    this.addMsg.BrandId = x.BrandId;
                  }
                },
                err => {}
              );

            } else {}
          },
          err => {}
        );
      },
      getHouse: function (obj) {
        this.starTime = obj.startDate;
        this.endTime = obj.backDate;
        this.getMinPrice(obj.orderId);
        this.addMsg.OrderId = obj.orderId;
        this.apipost(
          "sellorder_post_GetOrderEntity", {
            ID: obj.orderId
          },
          res => {
            if (res.data.resultCode == 1) {
              this.IsUnion = res.data.data.IsUnion
              this.isAllowUpdate = res.data.data.IsUpdatePlatOrder;
              this.addObj = res.data.data.modelPrice;
              let x = res.data.data.model;
              this.addMsg = x;
              this.addMsg.ScenicRefundArr = res.data.data.ScenicRefundArr;
              this.getScenicRefund(obj.tcid);
              this.SetOutCityId = res.data.data.SetOutCityId;
              this.reOutCityId = res.data.data.SetBackCityId;
              this.addMsg.CustomerType = x.CustomerType.toString();
              this.addMsg.ClientSource = x.ClientSource.toString();
              this.addMsg.GroupType = x.GroupType.toString();
              this.addMsg.TradeWay = x.TradeWay.toString();
              this.addMsg.PredictRoomNum = x.PredictRoomNum;
              this.addMsg.IsIntermodal = x.IsIntermodal.toString();
              this.addMsg.IsReturnIntermodal = x.IsReturnIntermodal.toString();
              this.addMsg.ChirdNum = x.ChirdNum.toString();
              this.addMsg.ChirdNeedBedNum = 0;
              this.addMsg.ChirdNoNeedBedNum = 0;
              this.addMsg.BabyNum = x.BabyNum.toString();
              this.IsChildrenTour = x.IsChildrenTour;
              this.IsBirdDiscount = x.IsBirdDiscount;
              this.stratPrice = res.data.data.modelPrice.GoAddPrice;

              if (this.stratPrice == 0) {
                this.stratPriceShow = false;
              } else {
                this.stratPriceShow = true;
              }
              this.returnPrice = res.data.data.modelPrice.BackAddPrice;
              if (this.returnPrice == 0) {
                this.returnPriceShow = false;
              } else {
                this.returnPriceShow = true;
              }

              if (x.ClientSource == 1) {
                this.isPingtai = true;
              }
              this.isShowHouse = true;
              this.isShowLayer = false;
              this.isShowLayer2 = false;
              this.isShowLayerRemarks = false;
              this.apipost(
                "app_today_visit_GetCustomerBrandByCustomerId", {
                  customerInfoId: x.CustomerId
                },
                res => {
                  if (res.data.resultCode == 1) {
                    this.ssptList = res.data.data;
                    this.addMsg.BrandId = x.BrandId;
                  }
                },
                err => {}
              );
              this.getKhmdList(this.addMsg.CustomerType, obj.lineId, this.addMsg.CreateBy, x.CustomerId);
              this.getDdlyList(this.addMsg.CustomerType);
            } else {
              this.$message.error(res.data.message);
            }
          },
          err => {}
        );
      },
      getRemarks(obj) {
        // 华国豪5-5新增
        if (moment().format("YYYY-MM-DD") >= obj.startDate) {
          this.$confirm(this.$t('objFill.gaitmqysjtztwfxbz'), this.$t('tips.tips'), {
              confirmButtonText: this.$t('pub.sureBtn'),
              showCancelButton: false,
              type: "warning"
            })
            .then(() => {
              return
            })
            .catch(() => {
              this.$message.info(this.$t('hotel.hotel_HasBeenCancelled'));
            });
        } else {
          this.isShowLayerRemarks = true;
          this.isShowLayer = false;
          this.isShowLayer2 = false;
          //this.$refs["addMsg"].resetFields();
          this.clearMsg();

          this.remarksMsg.OrderId = obj.orderId;
          this.remarksMsg.Remarks = obj.remarks;
          this.remarksMsg.OldRemarks = obj.remarks;
          this.remarksMsg.UnionRemark = obj.unionRemark;
          this.remarksMsg.IsIntermodal = obj.isIntermodal;
          this.remarksMsg.TeamType = obj.teamType;
        }
        //HK 新加
        if (this.IsSupperOrderEdit || this.IsLookOrder) {
          //todo
        } else {
          this.remarksMsg.isOrder = obj.isOrder;
        }
      },
      getTypePrice() {
        this.addMsg.ContactName = "";
        this.addMsg.ContactMobile = "";
        if (this.addMsg.CustomerType == 1) {
          this.addMsg.TC_Price = this.addObj.B2BMemberPrice;
          //this.addMsg.CustomerId=''
        }
        if (this.addMsg.CustomerType == 2) {
          this.addMsg.TC_Price = this.addObj.B2BPrice;
          //this.addMsg.CustomerId=''
        }
        if (this.addMsg.CustomerType == 3) {
          this.addMsg.TC_Price = this.addObj.B2CMemberPrice;
          //this.addMsg.CustomerId=0
        }
        if (this.addMsg.CustomerType == 4) {
          this.addMsg.TC_Price = this.addObj.B2CPrice;
          //this.addMsg.CustomerId=0
        }
        this.Unit_PriceList = [];
        this.apipost('sellorder_post_GetLessPrice', {}, res => {
          this.LessMoney = res.data.data.lessMoney;
          if (parseFloat(this.LessMoney) > 0) {
            for (var i = 0; i <= parseInt(this.LessMoney) / 10; i++) {
              var obj = {
                ID: '',
                LessMoney: ''
              }
              obj.ID = this.addMsg.TC_Price - i * 10;
              obj.LessMoney = this.addMsg.TC_Price - i * 10;
              this.Unit_PriceList.push(obj);
            }
          } else {
            var obj = {
              ID: '',
              LessMoney: ''
            }
            obj.ID = this.addMsg.Unit_Price;
            obj.LessMoney = this.addMsg.Unit_Price;
            this.Unit_PriceList.push(obj);
          }
        }, err => {})
      },
      getTicheng() {
        if (this.addMsg.GroupType != 5) {
          //提成
          let num =
            Number(this.addMsg.ManNum) +
            Number(this.addMsg.ChirdNum) +
            Number(this.addMsg.OldPeopleNum);
          let yh = 0;
          if (num > 0) {
            this.apipost(
              "sellorder_get_GetOrderMinPrice", {
                ltID: this.addObj.ltID,
                Num: num
              },
              res => {
                yh = res.data.data;
              },
              err => {}
            );
          }
          //  let cj='成交单价-最低成交价格（标准单价-符合人数[成人，儿童，老人]条件的最高少价）'
          let chajia = Number(this.addMsg.Unit_Price) - (this.addMsg.TC_Price - yh);
          let ewtc = chajia > 0 ? chajia * 0.5 * num : chajia * num; //额外提成
          this.addMsg.Commission = (
            Number(this.addMsg.PreferPrice) * 0.01 +
            ewtc
          ).toFixed(2);
          if (this.addMsg.CustomerType == 1 || this.addMsg.CustomerType == 2) {
            if (this.addMsg.CommissionSharePeople != "-1") {
              if (this.addMsg.Commission > 0) {
                this.addMsg.CommissionShareMoney = this.addMsg.Commission / 2;
                this.addMsg.Commission =
                  this.addMsg.Commission - this.addMsg.CommissionShareMoney;
              } else {
                this.addMsg.CommissionShareMoney = "0";
              }
            }
          }
        } else {
          this.addMsg.Commission = Number(this.addMsg.PreferPrice) * 0.01
        }
      },
      getHouseNo() {
        //算法：((成人+儿童占床数+老人-（三人房数量*3）)-单房数)/2+单房数+三人房数量
        this.addMsg.PredictRoomNum =
          (Number(this.addMsg.AirticketNum) +
            (Number(this.addMsg.ManNum) +
              Number(this.addMsg.ChirdNeedBedNum) +
              Number(this.addMsg.OldPeopleNum)) -
            Number(this.addMsg.TripleRoomNum) * 3 -
            Number(this.addMsg.SingleRoomNum)) /
          2 +
          Number(this.addMsg.SingleRoomNum) +
          Number(this.addMsg.TripleRoomNum);
      },
      getNumber() {
        // this.addMsg.ChirdNum = this.addMsg.ChirdNoNeedBedNum*1 + this.addMsg.ChirdNeedBedNum*1
        this.addMsg.VisaNum =
          Number(this.addMsg.AirticketNum) +
          Number(this.addMsg.ManNum) +
          Number(this.addMsg.ChirdNum) +
          Number(this.addMsg.BabyNum) +
          Number(this.addMsg.OldPeopleNum);
        this.addMsg.SafeNum =
          Number(this.addMsg.AirticketNum) +
          Number(this.addMsg.ManNum) +
          Number(this.addMsg.ChirdNum) +
          Number(this.addMsg.BabyNum) +
          Number(this.addMsg.OldPeopleNum);
        this.TotalNumber =
          Number(this.addMsg.AirticketNum) +
          Number(this.addMsg.ManNum) +
          Number(this.addMsg.ChirdNum) +
          Number(this.addMsg.BabyNum) +
          Number(this.addMsg.OldPeopleNum);
        var SeatNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum) +
            Number(this.addMsg.BabyNum)) -
          (Number(this.addMsg.ESeatNum) + Number(this.addMsg.FSeatNum));
        this.addMsg.YSeatNum = SeatNum < 0 ? 0 : SeatNum;
      },
      getTotalPrice(t) {
        if (t === 3) {
          if (parseFloat(this.addMsg.Unit_Price).toString() === "NaN") {
            this.$message.error(this.$t('objFill.qingsrzqdjg'))
            this.addMsg.Unit_Price = this.addMsg.TC_Price
            return
          }
          if (this.addMsg.Unit_Price < this.addMsg.TC_Price) {
            this.$message.error(this.$t('objFill.chengjiaojxdydybtdj'))
            this.addMsg.Unit_Price = this.addMsg.TC_Price
            return
          }
        }
        if (this.addMsg.GroupType != 5) {
          if (this.addObj && this.addObj.IsBirdDiscount && this.addObj.IsBirdDiscount == 1) {
            //早鸟优惠
            //this.addMsg.Unit_Price  //成交单价
            //BabyPrice 婴儿价
            //BabyChargePrice  儿童附加费
            //OldManChargePrice  老人 附加费
            //DiscountPrice 早鸟优惠
            let chengren =
              Number(this.addMsg.ManNum) *
              (Number(this.addMsg.Unit_Price) - this.addObj.DiscountPrice);
            let ertong =
              Number(this.addMsg.ChirdNum) *
              (Number(this.addMsg.Unit_Price) -
                this.addObj.DiscountPrice +
                this.addObj.BabyChargePrice);
            let yinger = Number(this.addMsg.BabyNum) * Number(this.addMsg.Unit_Price);
            let laoren =
              Number(this.addMsg.OldPeopleNum) *
              (Number(this.addMsg.Unit_Price) -
                this.addObj.DiscountPrice +
                this.addObj.OldManChargePrice);
            let zafeiqianzhen =
              this.addObj.OtherPrice *
              (Number(this.addMsg.ManNum) +
                Number(this.addMsg.ChirdNum) +
                Number(this.addMsg.OldPeopleNum)) +
              this.addObj.VisaPrice *
              (Number(this.addMsg.AirticketNum) +
                Number(this.addMsg.ManNum) +
                Number(this.addMsg.ChirdNum) +
                Number(this.addMsg.OldPeopleNum)) -
              this.addObj.BackVisaPrice *
              (Number(this.addMsg.AirticketNum) +
                Number(this.addMsg.ManNum) +
                Number(this.addMsg.ChirdNum) +
                Number(this.addMsg.BabyNum) +
                Number(this.addMsg.OldPeopleNum) -
                Number(this.addMsg.VisaNum));
            let danfang =
              Number(this.addMsg.SingleRoomNum) * this.addObj.SingleRoomPrice;
            let ertongbed =
              this.addObj.ChildNeedPrice * Number(this.addMsg.ChirdNeedBedNum) -
              this.addObj.ChildNoNeedPrice *
              (Number(this.addMsg.ChirdNum) -
                Number(this.addMsg.ChirdNeedBedNum));
            let lianyun =
              (Number(this.addMsg.ManNum) +
                Number(this.addMsg.ChirdNum) +
                Number(this.addMsg.OldPeopleNum)) *
              (Number(this.stratPrice) + Number(this.returnPrice));
            let dandijie
            if (this.addMsg.GroupType == 4) {
              dandijie = this.addMsg.Unit_Price * Number(this.addMsg.AirticketNum);

            } else {
              dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum);

            }
            this.addMsg.PreferPrice =
              this.OpSetLossMoney +
              dandijie +
              lianyun +
              chengren +
              ertong +
              yinger +
              laoren +
              zafeiqianzhen +
              danfang +
              ertongbed -
              this.ScenicRefundMoney *
              (Number(this.addMsg.ManNum) +
                Number(this.addMsg.ChirdNum) +
                Number(this.addMsg.OldPeopleNum));
          } else {
            // 1111111111111111111
            let chengren =
              Number(this.addMsg.ManNum) * Number(this.addMsg.Unit_Price);
            let ertong =
              Number(this.addMsg.ChirdNum) *
              (Number(this.addMsg.Unit_Price) + this.addObj.BabyChargePrice);
            let yinger = Number(this.addMsg.BabyNum) * Number(this.addMsg.Unit_Price);
            let laoren =
              Number(this.addMsg.OldPeopleNum) *
              (Number(this.addMsg.Unit_Price) + this.addObj.OldManChargePrice);
            let zafeiqianzhen =
              this.addObj.OtherPrice *
              (Number(this.addMsg.ManNum) +
                Number(this.addMsg.ChirdNum) +
                Number(this.addMsg.OldPeopleNum)) +
              this.addObj.VisaPrice *
              (Number(this.addMsg.AirticketNum) +
                Number(this.addMsg.ManNum) +
                Number(this.addMsg.ChirdNum) +
                Number(this.addMsg.OldPeopleNum)) -
              this.addObj.BackVisaPrice *
              (Number(this.addMsg.AirticketNum) +
                Number(this.addMsg.ManNum) +
                Number(this.addMsg.ChirdNum) +
                Number(this.addMsg.BabyNum) +
                Number(this.addMsg.OldPeopleNum) -
                Number(this.addMsg.VisaNum));
            let danfang =
              Number(this.addMsg.SingleRoomNum) * this.addObj.SingleRoomPrice;
            let ertongbed = this.addObj.ChildNeedPrice * Number(this.addMsg.ChirdNeedBedNum) - this.addObj
              .ChildNoNeedPrice * (Number(this.addMsg.ChirdNum) - Number(this.addMsg.ChirdNeedBedNum));
            let lianyun =
              (Number(this.addMsg.ManNum) +
                Number(this.addMsg.ChirdNum) +
                Number(this.addMsg.OldPeopleNum)) *
              (Number(this.stratPrice) + Number(this.returnPrice));
            let dandijie
            if (this.addMsg.GroupType == 4) {
              dandijie = this.addMsg.Unit_Price * Number(this.addMsg.AirticketNum);
            } else {
              dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum);

            }

            this.addMsg.PreferPrice =
              this.OpSetLossMoney +
              dandijie +
              lianyun +
              chengren +
              ertong +
              yinger +
              laoren +
              zafeiqianzhen +
              danfang +
              ertongbed -
              this.ScenicRefundMoney *
              (Number(this.addMsg.ManNum) +
                Number(this.addMsg.ChirdNum) +
                Number(this.addMsg.OldPeopleNum));
          }
        } else {
          this.addMsg.PreferPrice = Number(this.addMsg.YSeatNum) * Number(this.addMsg.Unit_Price) + this.OpSetLossMoney;
        }

        this.getTicheng();
        if (!t) {
          this.getTypePrice2()
        }
      },

      yzBigBed2() {
        let x =
          Number(this.addMsg.AirticketNum) +
          Number(this.addMsg.ManNum) +
          Number(this.addMsg.ChirdNeedBedNum) +
          Number(this.addMsg.OldPeopleNum) -
          Number(this.addMsg.SingleRoomNum);
        let y =
          x -
          Number(this.addMsg.TripleRoomNum) * 3 -
          Number(this.addMsg.BigRoomNum) * 2;
        if (y < 0) {
          this.addMsg.SingleRoomNum = 0;
        }
        this.getHouseNo();
      },

      yzBigBed() {
        let x =
          Number(this.addMsg.AirticketNum) +
          Number(this.addMsg.ManNum) +
          Number(this.addMsg.ChirdNeedBedNum) +
          Number(this.addMsg.OldPeopleNum) -
          Number(this.addMsg.SingleRoomNum);
        let y =
          x -
          Number(this.addMsg.TripleRoomNum) * 3 -
          Number(this.addMsg.BigRoomNum) * 2;
        if (y <= -1) {
          this.addMsg.BigRoomNum = 0;
        }
        this.getHouseNo();
      },
      yzBigBed1() {
        let x =
          Number(this.addMsg.AirticketNum) +
          Number(this.addMsg.ManNum) +
          Number(this.addMsg.ChirdNeedBedNum) +
          Number(this.addMsg.OldPeopleNum) -
          Number(this.addMsg.SingleRoomNum);
        let y =
          x -
          Number(this.addMsg.TripleRoomNum) * 3 -
          Number(this.addMsg.BigRoomNum) * 2;
        if (y <= -1) {
          this.addMsg.TripleRoomNum = 0;
        }
        this.getHouseNo();
      },
      submitForm(addMsg) {
        //提交创建、修改表单
        // if (this.TotalNumber == 0) {
        //   this.$message.error(this.$t('objFill.v101.myOrdersAllType.zongrsbnxy1'))
        //   return
        // }
        this.$refs[addMsg].validate(valid => {
          if (valid) {
            this.saveOrder();
          } else {
            return false;
          }
        });
      },
      submitForm2(addMsg) {
        //提交创建、修改表单
        this.$refs[addMsg].validate(valid => {
          if (valid) {
            this.saveOrder2();
          } else {
            return false;
          }
        });
      },
      submitFormRematks(RemarksMsg) {
        //提交创建、修改表单
        this.$refs[RemarksMsg].validate(valid => {
          if (valid) {
            this.apipost(
              "sellorder_post_SetOrderRemarks",
              this.remarksMsg,
              res => {
                if (res.data.resultCode == 1) {
                  this.$message.success(res.data.message);
                  this.remarksMsg.Remarks = "";
                  this.remarksMsg.OrderId = "0";
                  this.remarksMsg.isOrder = 1;
                  this.getList();
                  this.isShowLayerRemarks = false;
                } else {
                  this.isShowLayerRemarks = false;
                  this.$message.error(res.data.message);
                }
              },
              err => {}
            );
          } else {
            return false;
          }
        });
      },
      cancelSubmit() {
        this.isShowLayer = false;
        this.$refs["addMsg"].resetFields();
        this.clearMsg();
      },
      cancelSubmit2() {
        this.isShowLayer2 = false;
        this.$refs["addMsgtWO"].resetFields();
        this.clearMsg();
      },
      cancelSubmitRemarks() {
        this.isShowLayerRemarks = false;
        this.remarksMsg.Remarks = "";
        this.remarksMsg.OrderId = "0";
        this.remarksMsg.isOrder = 1;
        this.SpecialOffer = false;
        this.SOMsg.UpdateBy = ''
        this.SOMsg.ApplyPrice = 0
        this.SOMsg.ApplyReason = ''
      },
      houseSubmit: function () {
        //提交修改房型表单
        this.apipost(
          "sellorder_post_SellUpdateOrderHouse",
          this.addMsg,
          res => {
            if (res.data.resultCode == 1) {
              this.$message.success(res.data.message);
              this.$refs["addMsg"].resetFields();
              this.clearMsg();
              this.getList();
              this.isShowHouse = false;
            } else {
              this.isShowHouse = false;
              this.$message.error(res.data.message);
            }
          },
          err => {}
        );
      },
      houseCancel: function () {
        this.isShowHouse = false;
        this.$refs["addMsg"].resetFields();
        this.clearMsg();
      },
      clearMsg() {
        this.addMsg.OrderId = "0";
        this.addMsg.TCID = "0";
        this.addMsg.IsIntermodal = "2";
        this.addMsg.IsReturnIntermodal = "2";
        this.addMsg.Unit_Price = "0";
        this.addMsg.TC_Price = "0";
        this.addMsg.ManNum = "0";
        this.addMsg.ChirdNum = "0";
        this.addMsg.ChirdNeedBedNum = "0";
        this.addMsg.BabyNum = "0";
        this.addMsg.OldPeopleNum = "0";
        this.addMsg.SingleRoomNum = "0";
        this.addMsg.PreferPrice = "0";
        this.addMsg.YSeatNum = "0";
        this.addMsg.ESeatNum = "0";
        this.addMsg.FSeatNum = "0";
        this.addMsg.Commission = "0";
        this.addMsg.BrandId = "";
        this.addMsg.TradeWay = "2";
        this.addMsg.PlatformAccount = '';
        this.addMsg.GuestNum = "0";
        this.addMsg.IsChildrenTour = "0";
        this.addMsg.OrderId = "0";
        this.addMsg.IsBirdDiscount = "0";
        this.addMsg.PredictRoomNum = "0";
        this.addMsg.BigRoomNum = "0";
        this.addMsg.TripleRoomNum = "0";
        this.addMsg.TradeDate = "";
        this.addMsg.CostType = "";
        this.addMsg.PlatformOrder = "";
        this.ddlyList = [];
        this.addMsg.Remarks = "";
        this.addMsg.MinOrderPrice = "";
        this.addMsg.VisaNum = "0";
        this.addMsg.SafeNum = "0";
        this.addMsg.RefuseVisaNum = '0';
        this.addMsg.AirticketNum = "0";
        this.addMsg.ScenicRefundArr = [];
        this.ScenicRefundMoney = 0;
        this.addMsg.CommissionSharePeople = -1;
        this.addMsg.CommissionShareMoney = "0";
      },
      saveOrder() {
        //验证人数和机位数
        if (
          Number(this.addMsg.AirticketNum) +
          Number(this.addMsg.ManNum) +
          Number(this.addMsg.ChirdNum) +
          Number(this.addMsg.OldPeopleNum) +
          Number(this.addMsg.BabyNum) <
          Number(this.addMsg.SafeNum)
        ) {
          this.$message.warning(this.$t('objFill.baoxiansbndyrszh'));
          return;
        }
        this.addMsg.TCID = this.addObj.TCID;
        this.addMsg.GuestNum =
          Number(this.addMsg.ManNum) +
          Number(this.addMsg.ChirdNum) +
          Number(this.addMsg.OldPeopleNum) +
          Number(this.addMsg.BabyNum) +
          Number(this.addMsg.AirticketNum);
        this.addMsg.IsChildrenTour = this.IsChildrenTour;
        this.addMsg.IsBirdDiscount = this.addObj.IsBirdDiscount;
        this.apipost(
          "sellorder_post_SetOneDayOrderInfo",
          this.addMsg,
          res => {
            if (res.data.resultCode == 1) {
              this.$message.success(res.data.message);
              this.$refs["addMsg"].resetFields();
              this.clearMsg();
              this.getList();
              this.isShowLayer = false;
              if (res.data.data == 1) {
                this.$router.push({
                  name: 'passengerSaleList',
                  query: {
                    id: this.goLVurl.orderId,
                    tcid: this.goLVurl.tcid,
                    tcnum: this.goLVurl.tcnum,
                    isOrder: this.goLVurl.isOrder,
                    blank: 'y',
                    tab: '旅客名单'
                  }
                });

              }
            } else {
              this.isShowLayer = false;
              this.$message.error(res.data.message);
            }
          },
          err => {}
        );
      },
      saveOrder2() {
        //验证人数和机位数
        if (
          Number(this.addMsg.ManNum) +
          Number(this.addMsg.ChirdNum) +
          Number(this.addMsg.OldPeopleNum) !=
          Number(this.addMsg.YSeatNum) +
          Number(this.addMsg.ESeatNum) +
          Number(this.addMsg.FSeatNum)
        ) {
          this.$message.warning(this.$t('objFill.renshuhjwsbd'));
          return;
        }
        if (
          Number(this.addMsg.AirticketNum) +
          Number(this.addMsg.ManNum) +
          Number(this.addMsg.ChirdNum) +
          Number(this.addMsg.OldPeopleNum) +
          Number(this.addMsg.BabyNum) <
          Number(this.addMsg.VisaNum)
        ) {
          this.$message.warning(this.$t('objFill.qianzsbndyrszh'));
          return;
        }

        if (
          Number(this.addMsg.AirticketNum) +
          Number(this.addMsg.ManNum) +
          Number(this.addMsg.ChirdNum) +
          Number(this.addMsg.OldPeopleNum) +
          Number(this.addMsg.BabyNum) <
          Number(this.addMsg.SafeNum)
        ) {
          this.$message.warning(this.$t('objFill.baoxiansbndyrszh'));
          return;
        }
        this.addMsg.TCID = this.addObj.TCID;
        this.addMsg.GuestNum =
          Number(this.addMsg.ManNum) +
          Number(this.addMsg.ChirdNum) +
          Number(this.addMsg.OldPeopleNum) +
          Number(this.addMsg.BabyNum) +
          Number(this.addMsg.AirticketNum);
        this.addMsg.IsChildrenTour = this.IsChildrenTour;
        this.addMsg.IsBirdDiscount = this.addObj.IsBirdDiscount;
        this.apipost(
          "sellorder_post_SetOrderInfoForAirTicket",
          this.addMsg,
          res => {
            if (res.data.resultCode == 1) {
              this.$message.success(res.data.message);
              this.$refs["addMsgtWO"].resetFields();
              this.clearMsg();
              this.getList();
              this.isShowLayer2 = false;
            } else {
              this.isShowLayer2 = false;
              this.$message.error(res.data.message);
            }
          },
          err => {}
        );
      },
      getNumGuest() {
        let num = 0
        if (this.addMsg.GuestList.length == 0) {
          for (let i = 0; i < this.TotalNumber; i++) {
            this.addMsg.GuestList.push(JSON.parse(JSON.stringify(this.GuestObj)))
          }
        } else if (this.addMsg.GuestList.length < this.TotalNumber) {
          num = this.TotalNumber - this.addMsg.GuestList.length
          for (let i = 0; i < num; i++) {
            this.addMsg.GuestList.push(JSON.parse(JSON.stringify(this.GuestObj)))
          }
        } else if (this.addMsg.GuestList.length > this.TotalNumber) {
          num = this.addMsg.GuestList.length - this.TotalNumber
          for (let i = 0; i < num; i++) {
            let x = this.addMsg.GuestList.length - 1
            this.addMsg.GuestList.splice(x, 1)
            // if(this.isGuest==0){
            //   this.addMsg.GuestList.splice(i,1)
            // }else{
            //   let x = this.addMsg.GuestList.length-1
            //   this.addMsg.GuestList.splice(x,1)
            // }
          }
        }
      },
      Transformation(val, type, index) {
        let text = this.pinyin(val, {
          style: this.pinyin.STYLE_NORMAL
        });
        if (type == "SurName") {
          let upText = text.join("").toLocaleUpperCase()
          this.addMsg.GuestList[index].ESurName = upText;
        }
        if (type == "Name") {
          let upText = text.join("").toLocaleUpperCase()
          this.addMsg.GuestList[index].EName = upText;
        }
      },
      getStartList() {
        this.apipost(
          "sellorder_get_GetAllStartCity", {},
          res => {
            if (res.data.resultCode == 1) {
              this.startCityList = res.data.data;
            } else {}
          },
          err => {}
        );
      },
      getJyfs() {
        this.apipost(
          "sellorder_get_GetSellTradeWayEnumList", {},
          res => {
            if (res.data.resultCode == 1) {
              this.jyfsList = res.data.data;
            }
          },
          err => {}
        );
      },
      getFylx() {
        this.apipost(
          "Financial_post_GetByOrderCostTypeList", {
            Type: 1
          },
          res => {
            if (res.data.resultCode == 1) {
              this.fylxList = res.data.data;
            }
          },
          err => {}
        );
      },
      getSspt() {
        //给非直客  隐藏电话姓名赋值
        if (this.khmdList.length !== 0) {
          let obj = this.khmdList.find(
            item => item.customerId == this.addMsg.CustomerId
          );
          if (obj) {
            this.customerId = obj.customerId;
            this.createByInfo = obj.createByInfo;
            this.addMsg.ContactName = obj.customerName + "(" + obj.contact + ")";
            this.addMsg.ContactMobile = obj.contactNumber;
          }

        }
        this.apipost(
          "app_today_visit_GetCustomerBrandByCustomerId", {
            customerInfoId: this.addMsg.CustomerId
          },
          res => {
            if (res.data.resultCode == 1) {
              this.ssptList = res.data.data;
            }
          },
          err => {}
        );
      },
      getKhmdList(id, lineId, employeeId, CustomerId) {
        this.apipost(
          "app_today_visit_GetNewOrderMyCustomerList", {
            typeId: id,
            lineId: lineId,
            EmoloyeeId: employeeId,
            customerId: CustomerId
          },
          res => {
            if (res.data.resultCode == 1) {
              this.khmdList = res.data.data;
              this.getSspt();
            }
          },
          err => {}
        );
      },
      getDdztList() {
        this.apipost(
          "sellorder_post_GetSellOrderStatusEnumList", {},
          res => {
            if (res.data.resultCode == 1) {
              this.ddztList = res.data.data;
            }
          },
          err => {}
        );
      },
      getDdlyList(id) {
        this.apipost(
          "sellorder_get_GetSellClientSourceEnumList", {
            typeId: id
          },
          res => {
            if (res.data.resultCode == 1) {
              this.ddlyList = res.data.data;
            }
          },
          err => {}
        );
      },
      getCtlxList() {
        this.apipost(
          "sellorder_get_GetOrderJoinEnumList", {},
          res => {
            if (res.data.resultCode == 1) {
              this.ctlxList = res.data.data;
            }
          },
          err => {}
        );
      },
      getKhlxList() {
        this.apipost(
          "sellorder_get_GetSellClientTypeEnumList", {},
          res => {
            if (res.data.resultCode == 1) {
              this.khlxList = res.data.data;
            }
          },
          err => {}
        );
      },
      getMembersDetail(obj) {
        this.apipost(
          "sellorder_post_GetPeopleList", {
            ID: obj.orderId
          },
          res => {
            if (res.data.resultCode == 1) {
              this.memberList = res.data.data;
            }
          },
          err => {}
        );
      },
      getLogDetail(obj) {
        this.apipost(
          "sellorder_post_GetOrderLogList", {
            ID: obj.orderId
          },
          res => {
            if (res.data.resultCode == 1) {
              this.logList = res.data.data;
              this.logList.forEach(item => {
                item["x"] = this.$commonUtils.formatMsgTime(item.updateDate);
              });
            }
          },
          err => {}
        );
      },
      getOrderDetail(obj) {
        this.apipost(
          "Financial_post_GetOrderFinanceList", {
            OrderId: obj.orderId,
            OrderResource: 8,
            IsTravelMoney: 1
          },
          res => {
            if (res.data.resultCode == 1) {
              this.orderList = res.data.data;
            }
          },
          err => {}
        );
      },
      getList() {
        this.showID = -1;
        this.loading = true;
        this.apipost(
          "sellorder_post_GetOneDayTCNUMOrderList",
          this.tuanMsg,
          res => {
            if (res.data.resultCode == 1) {
              this.loading = false;
              this.total = res.data.data.count;
              this.list = res.data.data.pageData.rtData;
              this.isUpdateOrder = res.data.data.pageData.isUpdateOrder
              this.IsUpdateOrderMoney = res.data.data.pageData.isUpdateOrderMoney
              this.isUpdateOrderCommission = res.data.data.pageData.isUpdateOrderCommission
              this.cancelRtData = res.data.data.pageData.cancelRtData.length > 0 && res.data.data.pageData
                .cancelRtData[0].list ? res.data.data.pageData.cancelRtData[0]
                .list : '';
              this.seat.YSeat = res.data.data.pageData.ySeatNum
              this.seat.CSeat = res.data.data.pageData.eSeatNum
              this.seat.FSeat = res.data.data.pageData.fSeatNum
              this.seat.joinGroupNum = res.data.data.pageData.joinGroupNum
              this.seat.leaderNum = res.data.data.pageData.leaderNum
              this.seat.ownVisaNum = res.data.data.pageData.ownVisaNum;
              //自由行
              this.seat.IndependentTravelCount = res.data.data.pageData.independentTravelCount;
              //单地接
              this.seat.NurseryGraftingCount = res.data.data.pageData.nurseryGraftingCount;
              //单机票
              this.seat.SingleAirTicketCount = res.data.data.pageData.singleAirTicketCount;
            } else {
              this.Error(res.data.message);
            }
          },
          err => {}
        );
        this.getCount();
      },
      //获取系列列表
      getLineTeamList(lineId) {
        this.LineTeamList = [];
        this.apipost(
          "team_post_GetList", {
            lineID: lineId,
            isTOOP: 1
          },
          res => {
            if (res.data.resultCode == 1) {
              this.msg.LineteamId = "-1";
              this.LineTeamList = res.data.data;
            }
          }
        );
      },
      getCompanyList() {
        //出团公司
        this.apipost(
          "sellorder_post_GetBranchList", {},
          res => {
            if (res.data.resultCode == 1) {
              this.companyList = res.data.data;
            }
          },
          err => {}
        );
      },
      goUrlP(name, path, item) {
        this.$router.push({
          name: path,
          query: {
            id: item.orderId,
            tcid: item.tcid,
            tcnum: item.tcnum,
            isOrder: item.isOrder,
            blank: 'y',
            tab: name
          }
        });
      },
      goUrl(name, path, id, tcmun) {
        this.$router.push({
          name: path,
          query: {
            id: id,
            tcmun: tcmun,
            blank: 'y',
            tab: name
          }
        });
      },
      goFinanceUrl(path, Type, OrderID, OrderSource, TCID) {
        this.$router.push({
          name: path,
          query: {
            Type: Type,
            OrderID: OrderID,
            OrderSource: OrderSource,
            TCID: TCID
          }
        });
      },
      handleCurrentChange(val) {
        this.msg.pageIndex = val;
        this.getList();
      },
      resetPageIndex() {
        this.msg.pageIndex = 1;
        this.currentPage = 1;
      },
      getEmployee() {
        //员工
        this.apipost(
          "admin_get_EmployeeGetList",
          this.employeeMsg,
          res => {
            if (res.data.resultCode == 1) {
              this.employeeList = res.data.data;
            } else {}
          },
          err => {}
        );
      },
      //点击修改业务员
      getSalerInfo(item) {
        this.subInfo.CreateBy = item.createBy;
        this.subInfo.OrderId = item.orderId;
        this.showChangeSales = true;
      },
      //关闭修改业务员
      closeSalseDiv() {
        this.showChangeSales = false;
      },
      Discount(TCID) {
        this.SpecialOffer = true
        this.apipost(
          'lessprice_post_GetSuperiorPeople', {
            'TCID': TCID
          },
          res => {
            if (res.data.resultCode == 1) {
              this.SuperiorPeople = res.data.data;
            }
          },
          err => {}
        )
      },
      //申请优惠
      Preservation() {
        // if(this.SOMsg.ApplyPrice < 0 ){
        //   this.$message.error(this.$t('objFill.v101.Rest.qingtxdydyldje'))
        //   return
        // }
        var numReg = /^[0-9]+$/
        var numRe = new RegExp(numReg)
        if (!numRe.test(this.SOMsg.ApplyPrice)) {
          this.$message.error(this.$t('objFill.qingsrsz'))
          return
        }
        if (this.SOMsg.UpdateBy == '请选择' || this.SOMsg.UpdateBy == '') {
          this.$message.error(this.$t('objFill.qingxzshr'))
          return
        }
        if (this.SOMsg.ApplyReason == '') {
          this.$message.error(this.$t('objFill.qingtxsqliy'))
          return
        }
        this.apipost(
          'lessprice_post_SetLesspriceOrder',
          this.SOMsg,
          res => {
            if (res.data.resultCode == 1) {
              this.$message.success(res.data.message)
              this.SpecialOffer = false;
              this.SOMsg.UpdateBy = ''
              this.SOMsg.ApplyPrice = 0
              this.SOMsg.ApplyReason = 0
            } else {
              this.$message.error(res.data.message)
              this.SpecialOffer = false;
              this.SOMsg.UpdateBy = ''
              this.SOMsg.ApplyPrice = 0
              this.SOMsg.ApplyReason = ''
            }
          },
          err => {

          }
        )

      },
      gettypechange(type) {
        //切换参团类型时 把值初始化
        if (type == 4) {
          this.addMsg.Unit_Price = this.Unit_Price; //成交单价
          this.HightUnitPrice = '1';
          this.addMsg.AirticketNum = 0;
          this.addMsg.ManNum = 0;
          // this.addMsg.ChirdNum = 0;
          this.addMsg.BabyNum = 0;
          this.addMsg.OldPeopleNum = 0;
          this.addMsg.ChirdNoNeedBedNum = 0;
          this.addMsg.ChirdNeedBedNum = 0;

          this.addMsg.PreferPrice = 0;
          this.addMsg.SafeNum = 0;
          this.addMsg.VisaNum = 0;
          this.addMsg.PredictRoomNum = 0;
          this.addMsg.YSeatNum = 0;
        } else {
          this.HightUnitPrice = '2';
          this.addMsg.AirticketNum = 0;
          this.addMsg.ManNum = 0;
          // this.addMsg.ChirdNum = 0; //?
          this.addMsg.BabyNum = 0;
          this.addMsg.OldPeopleNum = 0;
          this.addMsg.ChirdNoNeedBedNum = 0;
          this.addMsg.ChirdNeedBedNum = 0;

          this.addMsg.PreferPrice = 0;
          this.addMsg.SafeNum = 0;
          this.addMsg.VisaNum = 0;
          this.addMsg.PredictRoomNum = 0;
          this.addMsg.YSeatNum = 0;
        };
        if (this.addMsg.CustomerType == 1) {
          if (this.addMsg.GroupType == 4) {
            this.addMsg.TC_Price = this.addObj.SingleDMCPrice;
          } else {
            this.addMsg.TC_Price = this.addObj.B2BMemberPrice;
            this.addMsg.Unit_Price = this.addObj.B2BMemberPrice;
          }
        }
        if (this.addMsg.CustomerType == 2) {
          if (this.addMsg.GroupType == 4) {
            this.addMsg.TC_Price = this.addObj.SingleDMCPrice;
          } else {
            this.addMsg.TC_Price = this.addObj.B2BPrice
            this.addMsg.Unit_Price = this.addObj.B2BPrice;
          }
        }
        if (this.addMsg.CustomerType == 3) {

          if (this.addMsg.GroupType == 4) {
            this.addMsg.TC_Price = this.addObj.SingleDMCPrice;
          } else {
            this.addMsg.TC_Price = this.addObj.B2CMemberPrice
            this.addMsg.Unit_Price = this.addObj.B2CMemberPrice;
          }
          this.addMsg.CustomerId = '0'
          this.addMsg.CommissionShareMoney = '0'
        }
        if (this.addMsg.CustomerType == 4) {

          if (this.addMsg.GroupType == 4) {
            this.addMsg.TC_Price = this.addObj.SingleDMCPrice;
          } else {
            this.addMsg.TC_Price = this.addObj.B2CPrice
            this.addMsg.Unit_Price = this.addObj.B2CPrice;

          }

          this.addMsg.CustomerId = '0'
          this.addMsg.CommissionShareMoney = '0'
        }
      },
      getTypePrice2() {

        let maxPeopleNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNoNeedBedNum) + Number(this.addMsg
          .ChirdNeedBedNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.AirticketNum))
        this.Unit_PriceList = [];
        this.apipost('sellorder_post_GetLessPrice', {
          "TCID": this.addMsg.TCID,
          "MaxPeopleNum": maxPeopleNum
        }, res => {
          this.LessMoney = res.data.data.lessMoney;
          if (parseFloat(this.LessMoney) > 0) {
            for (var i = 0; i <= parseInt(this.LessMoney) / 10; i++) {
              var obj = {
                ID: '',
                LessMoney: ''
              }
              obj.ID = this.addMsg.TC_Price - i * 10;
              obj.LessMoney = this.addMsg.TC_Price - i * 10;
              this.Unit_PriceList.push(obj);
            }
            if (this.Unit_PriceList.findIndex(markers => markers.ID == this.addMsg.Unit_Price) < 0) {
              var obj = {
                ID: '',
                LessMoney: ''
              }
              obj.ID = this.addMsg.Unit_Price;
              obj.LessMoney = this.addMsg.Unit_Price;
              this.Unit_PriceList.push(obj);
            }
          } else {
            var obj = {
              ID: '',
              LessMoney: ''
            }
            obj.ID = this.addMsg.Unit_Price;
            obj.LessMoney = this.addMsg.Unit_Price;
            this.Unit_PriceList.push(obj);
          }
        }, err => {})

      },
      //获取修改业务员权限
      GetEditOrderCreateByAuth() {
        this.apipost('sellorder_get_GetEditOrderCreateByAuth', {}, res => {
          if (res.data.resultCode == 1) {
            this.isEditOrderCreate = res.data.data;
          }
        }, err => {})
      },
      // 获取总经理副总经理超级修改权限
      GetSupperOrderEditAuth() {
        var actionCode = this.$AuthCode.SupperOrderEdit;
        this.CheckUserAuth(actionCode, res => {
          if (res.data.resultCode == 1 && res.data.data == 1) {
            this.IsSupperOrderEdit = true;
          }
        });
      },
      // 出纳查看订单权限
      GetLookOrderAuth() {
        var actionCode = this.$AuthCode.LookOrder;
        this.CheckUserAuth(actionCode, res => {
          if (res.data.resultCode == 1 && res.data.data == 1) {
            this.IsLookOrder = true;
          }
        });
      },
    },
    mounted() {
      const that = this;
      window.onresize = () => {
        return (() => {
          window.fullHeight = document.documentElement.clientHeight;
          that.fullHeight = window.fullHeight;
        })();
      };
      if (this.fullHeight > 700) {
        this.ScreenHeight = "600px";
      } else {
        this.ScreenHeight = "300px";
      }
      this.GetLookOrderAuth();
      this.GetSupperOrderEditAuth();
      this.GetEditOrderCreateByAuth();
      this.getList();
      let userInfo = this.getLocalStorage();
      let userMenuCode = ',' + userInfo.ActionMenuCode + ',';
      this.TransferMission = userMenuCode.indexOf(',Sale_TurnGroup,') != -1 ? true : false;

      this.userId = this.getLocalStorage().EmployeeId;

      this.getEmployee();

      this.getCompanyList();
      this.getStartList();
      this.getKhlxList();
      this.getCtlxList();
      this.getDdztList();
      this.getJyfs();
      this.getFylx();
      this.getTuanInfo();
      this.canEditUnitPrice();
      this.getCountry() //国籍
    }
  };

</script>
