<style> @import "../../../assets/css/newTravelManager.css"; .color_red_order{ color: #e95252 !important; } .groupTourOrderSearch { width: 100%; min-height: auto; 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 { position: fixed; z-index: 10; top: 36px; right: 20px; } .groupTourOrderSearch ul { overflow: hidden; } .RegisTrationTable { width: 100%; /* min-width: 1500px; */ font-size: 14px; color: #333; border-collapse: collapse; } .RegisTrationTable tr th { background: #e6e6e6; height: 30px; font-size: 14px; text-align: left; text-indent: 15px; border: 1px solid #cccccc; } .RegisTrationTable tbody tr:last-child { border-bottom: 2px solid #333; } .RegisTrationTable tr:first-child td:first-child { border-bottom: 2px solid #333; } .RegisTrationTable tr { background: #fff; text-align: left; } .RegisTrationTable tr td { height: 60px; padding: 10px; font-size: 14px !important; border: 1px solid #cccccc; } .RegisTrationTable tr td p { line-height: 20px; font-size: 14px !important; } .RegisTrationTable span.personNo { text-decoration: underline; cursor: pointer; } .RegisTrationTable span.personNo:hover { color: #e95252; } .personNolayer p { height: 28px; line-height: 28px; padding-left: 15px; } .personNolayer p > span { font-size: 12px; color: #333; margin-right: 25px; } .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; } .RL-BTNlist { text-align: center; } .RL-BTNlist button { width: 30px; height: 30px; border-radius: 4px; } .RL-BTNlist .el-button--primary { padding: 5px; margin: 0; font-size: 14px !important; } .RL-BTNlist .el-button + .el-button { margin-left: 0 !important; } .productQuerybottomLayer { overflow: auto; position: fixed; min-height: 300px; z-index: 50; bottom: 0; left: 50px; 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: auto !important; } .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; } .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 > div:nth-child(1) { float: left; font-size: 12px; } .groupTourOrder_remarks > div > div:nth-child(2) { float: right; text-align: right; font-size: 12px; } .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; } .groupTourOrder_remarks_popover > div { display: inline-block; margin: 0 0 5px 0; padding: 5px; font-size: 14px; color: #000000; } .groupTourOrder_remarks_popover > span { display: block; margin: 0 0 0 0; width: 100%; text-align: center; font-size: 12px; color: #000000; } .groupTourOrder_remarks_popover > p { margin: 0 0 0 0; width: 100%; max-height: 300px; overflow-y: auto; background-color: #E6EDF2; font-size: 12px; color: #000000; } .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_red { color: #FF0000; text-decoration: underline; cursor: pointer; } .groupTourOrder_tickets_blue { color: #0000FF; text-decoration: underline; cursor: pointer; } .groupTourOrder_tickets_green { color: #008000; cursor: pointer; text-decoration: underline; } .groupTourOrder_tickets_black { color: #000000; text-decoration: underline; } .RegistrationList { padding-bottom: 20px; } .RegistrationList .RL_leftTitle { float: left; min-width: 334px; height: 37px; margin-top: 15px; background-color: #d4d4d4; border-radius: 4px; padding: 8px; } .RL_rightBtn { float: right; text-align: right; margin-top: 10px; } .RL_Title { display: inline-block; font-size: 14px; color: #333333; } .RL_CompanyName { display: inline-block; padding: 3px 8px; background-color: #297bef; border-radius: 4px; color: #fff; float: right; margin: -3px 10px 0 10px; } .RL_LeaderContent { float: left; margin: 7px 0 0 25px; } .RL_LeaderListContent { float: left; height: 56px; padding-right: 10px; background-color: #fff; border: 4px solid #eeeeee; border-radius: 4px; margin-right: 20px; } .RL_leftImg { float: left; width: 36px; height: 36px; border-radius: 50%; margin: 6px 10px; } .RL_leftImg img { width: 100%; height: 100%; border-radius: 50%; } .RL_rightNameList { float: right; font-size: 12px; color: #333333; } .RL_rightNameList div:first-child { margin: 5px 0; } .RL_rightNameList div:last-child { font-weight: bold; } .RL_zanwu { text-align: center; color: #666666; font-size: 12px; padding: 0 20px; } .RL_zanwu div:first-child { margin: 5px 0; } .RL_LeaderListDiv { width: 200px; height: 206px; margin-left: 30px; border: 1px solid #d1d1d1; } .LeaderSpan { margin-top: 3px; font-size: 12px; padding-left: 10px; } .LeaderSpan:hover { background-color: #eca9a9; } .RegistrationList .combottomDiv { height: 350px; } .RL_LeaderTitle { width: 100%; height: 30px; text-align: center; color: #fff; background-color: #E95252; line-height: 30px; font-size: 14px; } .RL_ListDiv { width: 100%; height: 174px; overflow: auto; } .RL_LeaderName { display: inline-block; min-width: 50px; font-size: 14px; } .RL_bottomDiv > div { float: left; margin-right: 20px; } .RL_infoDiv { width: 260px; height: 140px; border: 1px solid #d1d1d1; padding: 10px; font-size: 14px; } .RL_backTime { border-bottom: 1px solid #d1d1d1; margin-bottom: 3px; } .RL_backTime:last-child { border: none; } .RL_redType { color: red; height: 20px; } .NowInfoDate { font-size: 12px; } .RS_visaTable { width: 100%; border-collapse: collapse; margin-top: 5px; border-right: 1px solid #E5E5E5; } .RS_visaTable tr th { background: #E6E6E6; height: 30px; font-size: 14px; color: #333; } .RS_visaTable tr td { font-size: 12px; border: 1px solid #E5E5E5; height: 30px; text-align: center; } .ckedClass { background-color: #E95252 !important; color: #fff; } .RS_blueType { color: #3980C8; } .Rs_leaderSearch { margin-top: 3px; } .RL-redType { color: red; } .RL_CreatInfo { font-size: 14px; margin: 5px 0; } .RL-MARK { width: 95%; } .RL-remarkTitle { display: inline-block; float: left; width: 36px; white-space: nowrap; font-size: 14px; } /*OP备注*/ .RL-opremarkTitle { display: inline-block; float: left; width: 53px; white-space: nowrap; font-size: 14px; } .RegistrationList .RL-remarkCon { /* float: left; display: inline-block;*/ width: 94%; font-size: 14px; } .RegistrationList .RL-remarkCon span { margin-right: 5px; } .RegistrationList .RL_Order { height: 40px !important; } .RegistrationList .RL_Order .RL-redType { cursor: pointer; width: auto !important; } .TMOrderList span { cursor: pointer; } .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 } .RegistrationList .order_union{ position: absolute; top: 2px; left:2px; color:red; font-size: 15px; } .groupTourOrder_transfer{ position: fixed; z-index: 50; bottom: 0; left: 50px; padding: 10px 10px; width: 100%; min-width: 1366px; min-height: 200px; border-top: 3px solid #38425d; background-color: #ffffff; overflow-y: auto; } .groupTourOrder_transfer>.transfer_header{ position: relative; width: 100%; height: 30px; } .groupTourOrder_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; } .groupTourOrder_transfer>.transfer_header>div:nth-child(2){ position: absolute; top: 0px; right: 80px; height: 30px; } .groupTourOrder_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; } .groupTourOrder_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; } .groupTourOrder_transfer>.transfer_info{ padding: 20px 0; width: 100%; font-size: 0px; border-bottom: 1px dashed #999999; } .groupTourOrder_transfer>.transfer_info>div{ display: inline-block; padding: 0 10px; width: 25%; height: 30px; vertical-align: top; } .groupTourOrder_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; } .groupTourOrder_transfer>.transfer_info>div>span{ display: inline-block; padding: 0 10px; width: 55%; height: 30px; line-height: 30px; text-align: left; font-size: 16px; border-radius: 3px; background-color: #E5E5E5; vertical-align: top; } .groupTourOrder_transfer>.transfer_input{ padding: 20px 0; width: 100%; font-size: 0px; } .groupTourOrder_transfer>.transfer_input>div{ display: inline-block; padding: 0 10px; width: 25%; height: 30px; vertical-align: top; } .groupTourOrder_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; } .groupTourOrder_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; } .RegistrationList .nowrap{ white-space:nowrap; } .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: 93%; 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; } </style> <template> <div class="flexOne RegistrationList" style="min-width: 1200px;"> <div class="planeTicketEdit ownScrollbarStyle" v-show="isShowLayer2"> <p>修改 <span class="fr" style="margin-right:60px;"> <input type="button" class="hollowFixedBtn" value="取消" @click="cancelSubmit2()" /> <input type="button" class="normalBtn" value="保存" @click="submitForm2('addMsg2')" /> </span> </p> <el-form :model="addMsg" ref="addMsg2" label-position="right" :rules="rules2" label-width="80px"> <el-row :gutter="20"> <el-col :span="4"> <el-form-item label="客户类型" 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-form-item label="参团类型" prop="GroupType"> <el-select v-model='addMsg.GroupType' disabled filterable :placeholder="$t('pub.pleaseSel')"> <el-option v-for="item in ctlxList" :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="联系人" 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="联系电话" 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="客户门店" 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="5"> <el-form-item label="本团单价" prop="TC_Price"> <el-input v-model='addMsg.TC_Price' :disabled="true" class="w210"></el-input> </el-form-item> <el-form-item label="出发联运价" 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'>暂无报价!</span> </el-form-item> <el-form-item label="返回联运价" 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'>暂无报价!</span> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="成交单价" prop="Unit_Price"> <!-- <el-select v-model='addMsg.Unit_Price' filterable :placeholder="$t('pub.pleaseSel')" @change="getTotalPrice()"> <el-option v-for="item in Unit_PriceList" :label='item.LessMoney' :value='item.ID' :key='item.ID'> </el-option> </el-select> --> <el-input v-model='addMsg.Unit_Price' :disabled="true" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input> </el-form-item> <!-- <el-form-item label="成交单价" 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="成人人数" 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="儿童人数" prop="ChirdNoNeedBedNum"> <el-input v-model='addMsg.ChirdNoNeedBedNum' @keyup.native="checkInteger(addMsg,'ChirdNoNeedBedNum')" @input='getNumber();getHouseNo();getTotalPrice()'></el-input> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="婴儿人数" prop="BabyNum"> <el-input v-model='addMsg.BabyNum' @keyup.native="checkInteger(addMsg,'BabyNum')" @input='getNumber();getTotalPrice();getTotalPrice()'></el-input> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="老人人数" 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="应收总额" prop="PreferPrice"> <el-input v-model='addMsg.PreferPrice' :disabled="!this.OrderDataList.IsUpdateOrderMoney"></el-input> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="预计提成" 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="分摊人" prop="CommissionSharePeople"> <el-select :disabled="isUpdateSharePeople" filterable clearable @change='getTicheng' v-model='addMsg.CommissionSharePeople' :placeholder="$t('pub.pleaseSel')"> <el-option label='无' :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="分摊金额" prop="CommissionShareMoney"> <el-input v-model='addMsg.CommissionShareMoney' :disabled="true"></el-input> </el-form-item> </el-col> <el-col :span="4"> </el-col> </el-row> <el-row :gutter="20"> <el-col :span="4"> <el-form-item label="经济舱" prop="YSeatNum"> <el-input v-model='addMsg.YSeatNum' @keyup.native="checkInteger(addMsg,'YSeatNum')"></el-input> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="商务舱" prop="ESeatNum"> <el-input v-model='addMsg.ESeatNum' :disabled="true"></el-input> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="头等舱" prop="FSeatNum"> <el-input v-model='addMsg.FSeatNum' :disabled="true"></el-input> </el-form-item> </el-col> </el-row> <el-row :gutter="20"> <el-col :span="4"> <el-form-item label="客人来源" 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"> <el-form-item label="所属平台" prop="BrandId" v-show="addMsg.ClientSource==1"> <el-select v-model='addMsg.BrandId' :disabled="true" 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="交易方式" 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="平台订单号" prop="PlatformOrder"> <el-input v-model='addMsg.PlatformOrder' @input='platformOrderMethods' :disabled="isAllowUpdate==0"></el-input> </el-form-item> </el-col> <!-- <el-col :span="4" v-show="addMsg.TradeWay==1&&addMsg.PlatformOrder!='' && isAllowUpdate!==0"> <el-form-item label="定金" prop="MinOrderPrice"> <el-input v-model='addMsg.MinOrderPrice' @keyup.native="checkPrice(addMsg,'MinOrderPrice')"></el-input> </el-form-item> </el-col> <el-col :span="4" v-if="addMsg.TradeWay==1&&addMsg.PlatformOrder!='' && isAllowUpdate!==0"> <el-form-item label="费用类型" prop="CostType"> <el-select v-model="addMsg.CostType" filterable placeholder="请选择费用类型"> <el-option v-for='item in fylxList' :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&&addMsg.PlatformOrder!='' && isAllowUpdate!==0"> <el-form-item label="交易日期" prop="TradeDate"> <el-date-picker v-model='addMsg.TradeDate' value-format="yyyy-MM-dd" type="date"></el-date-picker> </el-form-item> </el-col> --> </el-row> <el-row :gutter="20"> <el-col :span="23"> <el-form-item label="备注" 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-show="isShowLayer"> <p>修改 <span class="fr" style="margin-right:60px;"> <input type="button" class="hollowFixedBtn" value="取消" @click="cancelSubmit()" /> <input type="button" class="normalBtn" value="保存" @click="submitForm('addMsg')" /> </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="客户类型" 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-form-item label="参团类型" prop="GroupType"> <el-select v-model='addMsg.GroupType' filterable :placeholder="$t('pub.pleaseSel')"> <el-option v-for="item in ctlxList" :label='item.Name' :value='item.Id' :key='item.Id' v-if="item.Id!=5"> </el-option> </el-select> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="联系人" 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="联系电话" 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="客户门店" 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="出发城市" prop="DepartureCityId"> <el-select v-model='addMsg.DepartureCityId' :disabled="IsUnion===1" filterable :placeholder="$t('pub.pleaseSel')" @change="addMsg.IsIntermodal=2"> <el-option v-for="item in startCityList" :label='item.Name' :value='item.ID' :key='item.ID'> </el-option> </el-select> </el-form-item> <el-form-item label="是否联运" prop="IsIntermodal" v-show="addMsg.DepartureCityId!=SetOutCityId"> <el-switch v-model="addMsg.IsIntermodal" active-value="1" inactive-value="2" @change='getUnionTravelPrice(addObj,1)'></el-switch> </el-form-item> <el-form-item label="联运时间" prop="GoCityTime" v-show='addMsg.IsIntermodal==1&&addMsg.DepartureCityId!=SetOutCityId'> <el-date-picker :picker-options="pickerOptions0" v-model='addMsg.GoCityTime' value-format="yyyy-MM-dd" type="date" @change='getUnionTravelPrice(addObj,1)'></el-date-picker> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="返回城市" prop="ReturnArriveCityId"> <el-select v-model='addMsg.ReturnArriveCityId' :disabled="IsUnion===1" filterable :placeholder="$t('pub.pleaseSel')" @change="addMsg.IsReturnIntermodal=2"> <el-option v-for="item in startCityList" :label='item.Name' :value='item.ID' :key='item.ID'> </el-option> </el-select> </el-form-item> <el-form-item label="是否联运" prop="IsReturnIntermodal" v-show="addMsg.ReturnArriveCityId!=reOutCityId"> <el-switch v-model="addMsg.IsReturnIntermodal" active-value="1" inactive-value="2" @change='getUnionTravelPrice(addObj,2)'></el-switch> </el-form-item> <el-form-item label="联运时间" prop="IsReturnIntermodal" v-show='addMsg.IsReturnIntermodal==1&&addMsg.ReturnArriveCityId!=reOutCityId'> <el-date-picker :picker-options="pickerOptions1" v-model='addMsg.BackCityTime' value-format="yyyy-MM-dd" type="date" @change='getUnionTravelPrice(addObj,2)'></el-date-picker> </el-form-item> </el-col> <el-col :span="5"> <el-form-item label="本团单价" prop="TC_Price"> <el-input v-model='addMsg.TC_Price' :disabled="true" class="w210"></el-input> </el-form-item> <el-form-item label="出发联运价" 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'>暂无报价!</span> </el-form-item> <el-form-item label="返回联运价" 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'>暂无报价!</span> </el-form-item> </el-col> <el-col :span="5" v-if="isChecked==true"> <el-form-item label="成交单价" prop="Unit_Price"> <el-select v-model='addMsg.Unit_Price' filterable :placeholder="$t('pub.pleaseSel')" @change="getTotalPrice()"> <el-option v-for="item in Unit_PriceList" :label='item.LessMoney' :value='item.ID' :key='item.ID'> </el-option> </el-select> <!-- <el-input v-model='addMsg.Unit_Price' :disabled="true" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input> --> </el-form-item> <el-form-item> <p v-if="LessMoney==0" style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</p> <p v-else="LessMoney>0" style="line-height: 18px; color: #E95252;">注:最多少价{{LessMoney}}元,如需少价更多请联系上级主管</p> </el-form-item> </el-col> <el-col :span="5" v-else> <el-form-item label="成交单价" prop="Unit_Price"> <el-input v-model='addMsg.Unit_Price' class="w210" @keyup.native="checkPrice(addMsg,'Unit_Price');getTotalPrice()"></el-input> </el-form-item> <el-form-item> <p style="line-height: 18px; color: #E95252;">注:如果超出本团的最低让价,差价将由你来承担</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="成人人数" 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"> <p v-if='IsChildrenTour==2' style="color: #E95252; font-size: 12px; line-height: 40px; text-align: center;"> 本团不支持儿童出游!</p> <el-form-item v-if='IsChildrenTour==1' label="儿童不占床" prop="ChirdNoNeedBedNum"> <el-input v-model='addMsg.ChirdNoNeedBedNum' @keyup.native="checkInteger(addMsg,'ChirdNoNeedBedNum')" @input='getNumber();getHouseNo();getTotalPrice()'></el-input> </el-form-item> </el-col> <el-col :span="4" v-if='IsChildrenTour==1'> <el-form-item label="儿童占床" prop="ChirdNeedBedNum"> <el-input v-model='addMsg.ChirdNeedBedNum' @keyup.native="checkInteger(addMsg,'ChirdNeedBedNum')" @input='getHouseNo();getTotalPrice()'></el-input> </el-form-item> </el-col> <el-col :span="4" v-if='IsChildrenTour==1'> <el-form-item label="婴儿人数" prop="BabyNum"> <el-input v-model='addMsg.BabyNum' @keyup.native="checkInteger(addMsg,'BabyNum')" @input='getNumber();getTotalPrice();getTotalPrice()'></el-input> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="老人人数" 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-col :span="4"> <el-form-item label="单地接数量" prop="AirticketNum"> <el-input v-model='addMsg.AirticketNum' @keyup.native="checkInteger(addMsg,'AirticketNum')" @input='getNumber();getTotalPrice();getHouseNo()'></el-input> </el-form-item> </el-col> </el-row> <el-row :gutter="20"> <el-col :span="4"> <el-form-item label="单房数量" 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="大床房" 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="三人房" prop="TripleRoomNum"> <el-input v-model='addMsg.TripleRoomNum' @keyup.native="checkInteger(addMsg,'TripleRoomNum')" @input='yzBigBed1();getTotalPrice()'></el-input> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="签证数量" prop="VisaNum"> <el-input v-model='addMsg.VisaNum' @keyup.native="checkInteger(addMsg,'VisaNum')" @input='getTotalPrice()'></el-input> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="保险数量" prop="SaleNum"> <el-input v-model='addMsg.SafeNum' @keyup.native="checkInteger(addMsg,'SafeNum')" @input='getTotalPrice()'></el-input> </el-form-item> </el-col> <el-col :span="4"> </el-col> </el-row> <el-row :gutter="20"> <el-col :span="4"> <el-form-item label="预计用房" prop="PredictRoomNum"> <el-input v-model='addMsg.PredictRoomNum' :disabled="true"></el-input> </el-form-item> </el-col> <el-col :span="4" class="Ysze"> <el-form-item label="应收总额" prop="PreferPrice" style="position:relative"> <el-input v-model='addMsg.PreferPrice' type="number" @input.native='getTicheng()' :disabled="!this.OrderDataList.IsUpdateOrderMoney"></el-input> <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> </el-form-item> <!-- 修改应收总额 --> <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="签证费"> <el-input v-model='addMsg_form.VisaPrice' :disabled="!IsUpdateOrderMoney"></el-input> </el-form-item> <el-form-item label="退签证费"> <el-input v-model='addMsg_form.BackVisaPrice' :disabled="!IsUpdateOrderMoney"></el-input> </el-form-item> <el-form-item label="杂费"> <el-input v-model='addMsg_form.OtherPrice' :disabled="!IsUpdateOrderMoney"></el-input> </el-form-item> <el-form-item label="老人附加费"> <el-input v-model='addMsg_form.OldManChargePrice' :disabled="!IsUpdateOrderMoney"></el-input> </el-form-item> <el-form-item label="儿童附加费"> <el-input v-model='addMsg_form.BabyChargePrice' :disabled="!IsUpdateOrderMoney"></el-input> </el-form-item> <el-form-item label="单房差"> <el-input v-model='addMsg_form.SingleRoomPrice' :disabled="!IsUpdateOrderMoney"></el-input> </el-form-item> <el-form-item label="儿童占床增收"> <el-input v-model='addMsg_form.ChildNeedPrice' :disabled="!IsUpdateOrderMoney"></el-input> </el-form-item> <el-form-item label="儿童不占床减免"> <el-input v-model='addMsg_form.ChildNoNeedPrice' :disabled="!IsUpdateOrderMoney"></el-input> </el-form-item> <el-form-item label="收损金额"> <el-input v-model='addMsg_form.OpSetLossMoney' :disabled="true"></el-input> </el-form-item> <el-form-item label="单地接"> <el-input v-model='addMsg_form.SingleDMCPrice' :disabled="!IsUpdateOrderMoney"></el-input> </el-form-item> <el-form-item label="婴儿价"> <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">确定</el-button> </el-form-item> </el-form > </div> </el-col> <!-- <el-col :span="4"> <el-form-item label="预计提成" 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="分摊人" prop="CommissionSharePeople"> <el-select :disabled="isUpdateSharePeople" filterable clearable @change='getTicheng' v-model='addMsg.CommissionSharePeople' :placeholder="$t('pub.pleaseSel')"> <el-option label='无' :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="分摊金额" prop="CommissionShareMoney"> <el-input v-model='addMsg.CommissionShareMoney' :disabled="true"></el-input> </el-form-item> </el-col> <el-col :span="4"> </el-col> </el-row> <el-row :gutter="20"> <el-col :span="4"> <el-form-item label="经济舱" prop="YSeatNum"> <el-input v-model='addMsg.YSeatNum' @keyup.native="checkInteger(addMsg,'YSeatNum')"></el-input> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="商务舱" prop="ESeatNum"> <el-input v-model='addMsg.ESeatNum' :disabled="true"></el-input> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="头等舱" prop="FSeatNum"> <el-input v-model='addMsg.FSeatNum' :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.Id'> </el-option> </el-select> </el-form-item> </el-col> <el-col :span="4"> </el-col> </el-row> <el-row :gutter="20"> <el-col :span="4"> <el-form-item label="客人来源" 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"> <el-form-item label="所属平台" prop="BrandId" v-show="addMsg.ClientSource==1"> <el-select v-model='addMsg.BrandId' :disabled="true" 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="交易方式" 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="收款账户"> <el-select filterable v-model='addMsg.PlatformAccount' @change="changeSelect"> <el-option v-for='item in PlatformAccountList' :label='item.Alias' :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="平台订单号" prop="PlatformOrder"> <el-input v-model='addMsg.PlatformOrder' @input='platformOrderMethods' :disabled="isAllowUpdate==0"></el-input> </el-form-item> </el-col> <!-- <el-col :span="4" v-show="addMsg.TradeWay==1&&addMsg.PlatformOrder!='' && isAllowUpdate!==0"> <el-form-item label="定金" prop="MinOrderPrice"> <el-input v-model='addMsg.MinOrderPrice' @keyup.native="checkPrice(addMsg,'MinOrderPrice')"></el-input> </el-form-item> </el-col> <el-col :span="4" v-if="addMsg.TradeWay==1&&addMsg.PlatformOrder!='' && isAllowUpdate!==0"> <el-form-item label="费用类型" prop="CostType"> <el-select v-model="addMsg.CostType" filterable placeholder="请选择费用类型"> <el-option v-for='item in fylxList' :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&&addMsg.PlatformOrder!='' && isAllowUpdate!==0"> <el-form-item label="交易日期" prop="TradeDate"> <el-date-picker v-model='addMsg.TradeDate' value-format="yyyy-MM-dd" type="date"></el-date-picker> </el-form-item> </el-col> --> </el-row> <el-row :gutter="20"> <el-col :span="23"> <el-form-item label="备注" 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-show="isShowLayerRemarks" style="height: 150px;min-height:150px;"> <p>修改备注 <span class="fr" style="margin-right:60px;"> <input type="button" class="hollowFixedBtn" value="取消" @click="cancelSubmitRemarks()" /> <input type="button" class="normalBtn" value="保存" @click="submitFormRematks('remarksMsg')" /> </span> </p> <el-form :model="remarksMsg" ref="remarksMsg" label-position="right" :rules="RemarksRules" label-width="80px"> <el-row :gutter="20"> <el-col :span="23"> <el-form-item label="备注" prop="Remarks"> <el-input v-model='remarksMsg.Remarks' type='textarea' maxlength='500'></el-input> </el-form-item> </el-col> </el-row> </el-form> </div> <div class="groupTourOrderSearch clearfix"> <div class="RL_leftTitle"> <span class="RL_Title" style="cursor:pointer;color:blue;" @click="goUrlTravelControl('团控列表','TravelControlList',ConfigData.Config.TCID,ConfigData.Config.TCNUM)">{{ConfigData.Config.LtName}} {{ConfigData.Config.TCNUM}}({{ConfigData.Config.TCID}})</span> <span class="RL_CompanyName" v-if="ConfigData.Config.OutBranchName">{{ConfigData.Config.OutBranchName}}</span> </div> <div class="RL_LeaderContent clearfix"> <div class="RL_LeaderListContent clearfix" v-if="ConfigData.Leader!=null"> <div class="RL_leftImg"> <img src="../../../assets/img/bg_c3@3x.png"> </div> <div class="RL_rightNameList"> <div v-if="ConfigData.Leader.LeaderId>0&&ConfigData.Leader.LeaderName!=''"> {{ConfigData.Leader.LeaderName}}/领队 </div> <div v-if="ConfigData.Leader.GuideId>0&&ConfigData.Leader.GuideName!=''"> {{ConfigData.Leader.GuideName}}/导游 </div> </div> </div> <div v-else class="RL_LeaderListContent RL_zanwu"> <div>暂未安排</div> <div>领队导游</div> </div> </div> <div class="RL_rightBtn" v-if="isShow===true"> <!--item.TCID,item.OutBranchId--> <input type="button" class="normalBtn" @click="goTeamBalance(ConfigData.Config.TCID,ConfigData.Config.OutBranchId)" value="团报" /> <input type="button" class="normalBtn" @click="SetOutNotice()" :value="'出团通知书('+(SetNoticeMsg.OutNotice==1?'OK':'暂定')+')'" /> <input type="button" @click="CancelLeader" v-if="ConfigData.Leader!=null&&ConfigData.Leader.LeaderId>0" class="normalBtn" value="重选领队" /> <input type="button" class="normalBtn" v-else @click="showSetLeader=true,isShowLayerRemarks = false,isShowLayer = false" value="设置领队" /> <input type="button" class="normalBtn" @click="goUrl('TravelPassengerList',msg.TCID,'旅客名单')" value="旅客名单" /> </div> </div> <!-- 表格 --> <div style="width: 100%; height: auto; overflow-x: auto;" class="ownScrollbarStyle"> <table class="RegisTrationTable" border="0" cellspacing="0" cellpadding="0" v-loading='loading'> <tr> <th width="260">单号</th> <th width="150">客户信息</th> <th width="70" class="nowrap">人数/机位数</th> <th width="110" class="nowrap">单价</th> <th width="110" class="nowrap">成交单价</th> <th width="110" class="nowrap">应收总额</th> <th width="110" class="nowrap">实收</th> <th width="110" class="nowrap">退款</th> <th width="110" class="nowrap">平台税金</th> <th width="110" class="nowrap">平台在途</th> <th width="110" class="nowrap">待收金额</th> <th width="100" class="nowrap">状态</th> <th width="130" class="nowrap">确认函</th> <th width="150" class="nowrap">操作</th> </tr> <tr> <td v-show="OrderDataList.Length==0" colspan="14" align="center">暂无数据</td> </tr> <tr v-if="OrderDataList.leadetList!=null && OrderDataList.leadetList.length>0"> <td colspan="14"> 订单类型:<span class="RL-redType">领队</span> </td> </tr> <tbody v-for="(item,index) in OrderDataList.leadetList" :key="index"> <tr> <td rowspan="3"> <!-- @click="goUrlX('groupTourOrderByTuan',item.TCID,item.TCNUM)"--> <div class="fbold over_ellipsis" style="width: 120px;cursor:pointer;" :title="item.OrderId">{{item.OrderId}} </div> <div class="RL_CreatInfo">{{item.CreateBy}}<span v-if="item.LeaveStr!=''" style="color:red">({{item.LeaveStr}})</span></div> <div class="RL_CreatInfo">关联销售:{{item.CommissionSPeopleName}}</div> <p>下单时间:{{item.CreateDate}}</p> </td> <td> <p class="fz12 over_ellipsis" style="width: 90%;">领队控位</p> </td> <td> <span v-if='item.GuestNumStatus==1' style="color:#1AA86B; " class="personNo nowrap" slot="reference">{{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 nowrap" slot="reference">{{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 nowrap" slot="reference">{{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>{{item.TC_Price}}</td> <td>{{item.Unit_Price}}</td> <td> <p>{{item.PreferPrice}}</p> </td> <td> <el-popover style='padding: 0;' width="400" trigger="click"> <div class="personNolayer"> <table border="0" cellspacing="1" cellpadding="1"> <tr> <th>单据号</th> <th>金额</th> <th>类型</th> <th>状态</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="4" align="center">暂无数据</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' class="colorE95252" style="cursor: pointer;" @click="getOrderDetail(item)" slot="reference">{{item.Income}}</span> </el-popover> </td> <td>{{item.Refund}}</td> <td>{{item.PlatformTax}}</td> <td>{{item.ZaiTuMoney}}</td> <td><span :class="{color_red_order:item.DueInMoney!==item.PreferPrice}">{{item.DueInMoney}}</span></td> <td class="fz12"><span :class="{'RL-redType':item.statsstr=='候补'}">{{item.statsstr}}</span></td> <td> </td> <td class="RL-BTNlist" rowspan="2"> <el-button-group> <el-tooltip class="item" effect="dark" content="修改备注" placement="top-start"> <el-button type="primary" style='background:green; border-color:green' icon="iconfont icon-bianji-smal" @click='getRemarks(item)'></el-button> </el-tooltip> <el-tooltip effect="dark" content="日志" placement="top-start" style="float:left"> <el-popover width='230' trigger="click"> <div class="priceContentDiv"> <div class="AuditLog">日志</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'>暂无数据</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="更多" placement="top-start" style="float:left"> <el-popover width='100' trigger="hover"> <div class="groupTourOrder_more"> <div @click="goToPassenger(item)">旅客名单</div> <div @click="toTrip(item)">出团通知书({{SetNoticeMsg.OutNotice==1?'OK':'暂定'}})</div> <div v-if="userId==1" @click="getSalerInfo(item)">修改业务员</div> <div @click='zhuanLoading = true,OPRemarkMsg.OrderId = item.OrderId'>OP备注</div> <div v-if="OrderDataList.IsUpdateOrderCommission" @click='TCMsg.OrderId = item.OrderId, TCMsg.CommissionMinusRate = item.CommissionMinusRate,TCMsg.LatestCommissionMoney=item.LatestCommissionMoney, TiChengLoading = true'>修改提成</div> <div @click='deleteItem(item)'>删除</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> </td> </tr> <tr> <td colspan="12" class="RL_Order"> <span class="RL-remarkTitle">名单:</span> <p class="RL-redType RL-remarkCon" v-if="item.GuestList.length>0"> <span style="color:blue !important" v-for="(childItem) in item.GuestList" @click="goUrl('TravelPassengerList',msg.TCID,childItem.OrderId,'旅客名单')">{{childItem.userName}}</span> </p> <p class="RL-redType RL-remarkCon" v-else> <span>暂无名单</span> </p> <span v-if="item.TipMoney" style="color:red">(小费:{{item.TipMoney}})</span> </td> </tr> <tr> <td colspan="4" class="groupTourOrder_remarks" style="height: 40px;"> <div class="clearfix RL-MARK"> <span class="RL-remarkTitle">备注:</span> <p class="RL-redType RL-remarkCon">{{item.Remarks}}</p> </div> </td> <td colspan="5" class="groupTourOrder_remarks" style="height: 40px;"> <div class="clearfix RL-MARK"> <span class="RL-opremarkTitle">OP备注:</span> <p class="RL-redType RL-remarkCon">{{item.OP_Remarks ? item.OP_Remarks : '无'}}</p> </div> </td> <td colspan="5" style="height: 40px;cursor: pointer;" @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', item)"> <div> <span>财务单据:</span> <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">暂无数据</span> </div> </td> </tr> </tbody> <!-- 其他类型 --> <template v-for="(subItem,subIndex) in OrderDataList.OtherOrderList"> <tr> <td colspan="14"> 订单类型:<span class="RL-redType">{{subItem.GroupTypeName}}</span> </td> </tr> <tbody v-for="(childItem,childIndex) in subItem.List"> <tr> <td rowspan="3" style="position:relative;"> <div v-if="childItem.IsReturnIntermodal==1 || childItem.IsIntermodal==1" class="order_union">联</div> <p v-if="childItem.IsChargeLossOrders==1" style="color:red">损</p> <!--@click="goUrlX('groupTourOrderByTuan',childItem.TCID,childItem.TCNUM)"--> <div class="fbold over_ellipsis" style="width: 120px;cursor:pointer;" :title="childItem.OrderId">{{childItem.OrderId}} </div> <div class="RL_CreatInfo">{{childItem.CreateBy}}<span v-if="childItem.LeaveStr!=''" style="color:red">({{childItem.LeaveStr}})</span></div> <div class="RL_CreatInfo">关联销售:{{childItem.CommissionSPeopleName}}</div> <!-- <p>发团:{{childItem.startDate}}</p> --> <p>下单时间:{{childItem.CreateDate}}</p> <p v-if='childItem.CommissionMoney' style="color:red">提成:{{childItem.CommissionMoney}}</p> <p v-else-if="childItem.LatestCommissionMoney" style="color:red">提成:{{childItem.LatestCommissionMoney}}</p> </td> <td> <p v-if="childItem.IsOwn==1||userId==1||userId==5" class="fz12 over_ellipsis" style="width:90%;" :title="childItem.ContactName"> {{childItem.ContactName}}</p> <p v-if="childItem.IsOwn==1||userId==1||userId==5" class="fz12">{{childItem.ContactMobile}}</p> <p v-if="childItem.IsOwn==2&&userId!=1&&userId!=5">*****</p> </td> <td> <!-- <el-popover style='padding: 0;' width="470" trigger="click" > --> <!-- <div class="personNolayer"> <p> <span>成人:{{childItem.ManNum}}人</span> <span>儿童:{{childItem.ChirdNum}}人</span> <span>老人:{{childItem.OldPeopleNum}}人</span> <span>婴儿:{{childItem.BabyNum}}人</span> <span>单地接:{{childItem.AirticketNum}}人</span> </p> <table border="0" cellspacing="1" cellpadding="1"> <tr> <th>姓名</th> <th>护照</th> <th>性别</th> <th>年龄</th> <th width="110">联系电话</th> </tr> <tr v-if='childItem.GuestList.length>0' v-for="(item2,index2) in childItem.childItem" :key="index2"> <td>{{item2.userName}}</td> <td>{{item2.passportNo}}</td> <td>{{item2.sexStr}}</td> <td>{{item2.age}}</td> <td>{{item2.mobilePhone}}</td> </tr> <tr v-if='childItem.GuestList.length==0'> <td colspan="5" align="center">暂无数据</td> </tr> </table> </div> --> <span v-if='childItem.GuestNumStatus==1' style="color:#1AA86B; " class="personNo nowrap" slot="reference">{{childItem.GuestNum}}/{{childItem.YSeatNum>0? childItem.YSeatNum+'Y ':''}}{{childItem.ESeatNum>0? childItem.ESeatNum+'E ':''}}{{childItem.FSeatNum>0? childItem.FSeatNum+'F ':''}}</span> <span v-if='childItem.GuestNumStatus==2' style="color:#E95252;" class="personNo nowrap" slot="reference">{{childItem.GuestNum}}/{{childItem.YSeatNum>0? childItem.YSeatNum+'Y ':''}}{{childItem.ESeatNum>0? childItem.ESeatNum+'E ':''}}{{childItem.FSeatNum>0? childItem.FSeatNum+'F ':''}}</span> <span v-if='childItem.GuestNumStatus==3' style="color:#666; " class="personNo nowrap" slot="reference">{{childItem.GuestNum}}/{{childItem.YSeatNum>0? childItem.YSeatNum+'Y ':''}}{{childItem.ESeatNum>0? childItem.ESeatNum+'E ':''}}{{childItem.FSeatNum>0? childItem.FSeatNum+'F ':''}}</span> <!-- </el-popover> --> </td> <td class="nowrap">{{childItem.TC_Price}}</td> <td>{{childItem.Unit_Price}}</td> <td class="nowrap"> <p>{{childItem.PreferPrice}}</p> </td> <td class="nowrap"> <el-popover style='padding: 0;' width="400" trigger="click"> <div class="personNolayer"> <table border="0" cellspacing="1" cellpadding="1"> <tr> <th>单据号</th> <th>金额</th> <th>类型</th> <th>状态</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="4" align="center">暂无数据</td> </tr> </table> </div> <span v-if='childItem.IsEnd==0' style="cursor: pointer;" @click="getOrderDetail(childItem)" slot="reference">{{childItem.Income}}</span> <span v-if='childItem.IsEnd!=0' class="colorE95252" style="cursor: pointer;" @click="getOrderDetail(childItem)" slot="reference">{{childItem.Income}}</span> </el-popover> </td> <td class="nowrap">{{childItem.Refund}}</td> <td class="nowrap">{{childItem.PlatformTax}}</td> <td class="nowrap">{{childItem.ZaiTuMoney}}</td> <td class="nowrap"><span :class="{color_red_order:childItem.DueInMoney!==childItem.PreferPrice}">{{childItem.DueInMoney}}</span></td> <td v-if="childItem.IsChargeLossOrders==1" class="fz12" style="color: #e95252">收损</td> <td v-else class="fz12"><span :class="{'RL-redType':childItem.statsstr=='候补'}">{{childItem.statsstr}}</span></td> <td> <div @click="goOpenUrl('confirmationOrder',childItem.OrderId)" style="cursor:pointer;">电子确认函</div> <span v-if='childItem.ConfirmFileList.length>0' @click="downLoadFile(childItem.ConfirmFileList)">确认函下载</span> </td> <td class="RL-BTNlist" rowspan="2"> <el-button-group> <el-tooltip class="item" effect="dark" content="修改" placement="top-start"> <el-button type="primary" style='background:#00C6FF; border-color:#00C6FF' icon="iconfont icon-bianji-smal" @click='getDetail(childItem)'></el-button> </el-tooltip> <el-tooltip effect="dark" content="日志" placement="top-start" style="float:left"> <el-popover width='230' trigger="click"> <div class="priceContentDiv"> <div class="AuditLog">日志</div> <div class="logContact" style="background:#f9f9f9; padding:20px 10px 0;"> <div v-if='logList.length>0' v-for="(childItem,index) in logList" :key="index"> <div class="clearfix"> <div class="Auditcircle" style="left: 6px!important;"></div> <div class="operateName" style="color:#005CAA;">{{childItem.emName}}</div> <div class="operateDate fz12 color666">{{childItem.x}}</div> </div> <div class="fz12 color333">{{childItem.logInfo}}</div> </div> <div v-if='logList.length==0'>暂无数据</div> </div> </div> <el-button slot="reference" @click='getLogDetail(childItem)' 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="更多" placement="top-start" style="float:left"> <el-popover width='100' trigger="hover"> <div class="groupTourOrder_more"> <div @click="toTrip(childItem)">出团通知书({{SetNoticeMsg.OutNotice==1?'OK':'暂定'}})</div> <div v-if="userId==1" @click="getSalerInfo(childItem)">修改业务员</div> <div @click="transfer(childItem)">订单转团</div> <div @click="OrderLoading=true,OrderLossInfo(childItem)">订单收损</div> <div @click='zhuanLoading = true,OPRemarkMsg.OrderId = childItem.OrderId,OPRemarkMsg.OP_Remarks=childItem.OP_Remarks'>OP备注</div> <div v-if="OrderDataList.IsUpdateOrderCommission" @click='TCMsg.OrderId = childItem.OrderId, TCMsg.CommissionMinusRate = childItem.CommissionMinusRate,TCMsg.LatestCommissionMoney=childItem.LatestCommissionMoney, TiChengLoading = true'>修改提成</div> <div v-if="childItem.OrderState=='1'||childItem.OrderState=='2'||childItem.OrderState=='3'" @click='deleteItem(childItem)'> 删除 </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> </td> </tr> <tr> <td colspan="12" class="RL_Order"> <span class="RL-remarkTitle">名单:</span> <span class="RL-redType RL-remarkCon" v-if="childItem.GuestList.length>0"> <span style="color:blue !important" v-for="(fourthItem) in childItem.GuestList" @click="goUrl('TravelPassengerList',msg.TCID,fourthItem.OrderId,'旅客名单')">{{fourthItem.userName}}</span> </span> <span class="RL-redType RL-remarkCon" v-else> <span>暂无名单</span> </span> <span v-if="childItem.TipMoney" style="color:red">(小费:{{childItem.TipMoney}})</span> </td> </tr> <tr> <td colspan="4" class="groupTourOrder_remarks" style="height: 40px;"> <div class="clearfix RL-MARK"> <span class="RL-remarkTitle">备注:</span> <p class="RL-redType RL-remarkCon"> <span v-if="childItem.TsId>0">投诉单号:<a href="javascript:void(0);" @click="goUrlTS('ComplaintsDetail',childItem.TsId,childItem.OrderId,'投诉详情')">{{childItem.TsId}}</a> ;</span> <span v-if='childItem.ClientSource==1&&childItem.BrandName!=""'>{{childItem.BrandName}}订单 {{childItem.PlatformOrder}};</span> {{childItem.Remarks}} </p> </div> </td> <td colspan="5" class="groupTourOrder_remarks" style="height: 40px;"> <div class="clearfix RL-MARK"> <span class="RL-opremarkTitle">OP备注:</span> <span class="RL-redType RL-remarkCon">{{childItem.OP_Remarks ? childItem.OP_Remarks : '无'}}</span> </div> </td> <td colspan="5" style="height: 40px;cursor: pointer;" @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', childItem)"> <div> <span>财务单据:</span> <span v-for="(item2,index2) in childItem.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="childItem.FinanceList.length===0">暂无数据</span> </div> </td> </tr> </tbody> </template> <tbody> <tr> <td></td> <td colspan="13"> 本团机位: <span class="RL-redType">{{ConfigData.Config.YSeat}}Y + {{ConfigData.Config.CSeat}}E + {{ConfigData.Config.FSeat}}F </span> 剩余机位: <span class="RL-redType"> {{ConfigData.Config.YSeat-OrderDataList.YSeatNum>0?ConfigData.Config.YSeat-OrderDataList.YSeatNum:0}}Y + {{ConfigData.Config.CSeat-OrderDataList.ESeatNum>0?ConfigData.Config.CSeat-OrderDataList.ESeatNum:0}}E + {{ConfigData.Config.FSeat-OrderDataList.FSeatNum>0?ConfigData.Config.FSeat-OrderDataList.FSeatNum:0}}F </span> 候补机位: <span class="RL-redType"> {{OrderDataList.YSeatNum-ConfigData.Config.YSeat>0?OrderDataList.YSeatNum-ConfigData.Config.YSeat:0}}Y + {{OrderDataList.ESeatNum-ConfigData.Config.CSeat>0?OrderDataList.ESeatNum-ConfigData.Config.CSeat:0}}E + {{OrderDataList.FSeatNum-ConfigData.Config.FSeat>0?OrderDataList.FSeatNum-ConfigData.Config.FSeat:0}}F </span> 参团:<span class="RL-redType">{{OrderDataList.JoinCount}}</span> 领队:<span class="RL-redType">{{OrderDataList.LeaderCount}}</span> </td> </tr> </tbody> <!-- 取消订单 --> <tr v-if="OrderDataList.cancelList!=null && OrderDataList.cancelList.length>0"> <td colspan="14"> <span class="RL-redType" @click="isShowCancelOrder=!isShowCancelOrder" style="cursor:pointer" title="点击查看">取消订单(<span style="color:blue;">{{!isShowCancelOrder?"展开":"收起"}}</span>)</span> </td> </tr> <tbody v-if="isShowCancelOrder" v-for="(item,index) in OrderDataList.cancelList" :key="index+1000"> <tr> <td rowspan="3"> <div> <p class="fbold over_ellipsis" style="width: 120px;cursor:pointer;" :title="item.OrderId" @click="goUrlX('groupTourOrderByTuan',item.TCID,item.TCNUM)">{{item.OrderId}}</p> <p v-if="item.IsLeaderOrder==1">(领队)</p> <p v-else-if="item.IsLeaderOrder!=1&&item.GroupType==1">(散拼跟团)</p> <p v-else-if="item.IsLeaderOrder!=1&&item.GroupType==2">(小包团)</p> <p v-else-if="item.IsLeaderOrder!=1&&item.GroupType==3">(单团)</p> </div> <div class="RL_CreatInfo">{{item.CreateBy}}<span v-if="item.LeaveStr!=''" style="color:red">({{item.LeaveStr}})</span></div> <div class="RL_CreatInfo">关联销售:{{item.CommissionSPeopleName}}</div> <!-- <p>发团:{{item.StartDate}}</p> --> <p>下单时间:{{item.CreateDate}}</p> </td> <td> <p v-if="item.IsOwn==1||userId==1||userId==5" class="fz12 over_ellipsis" style="width:90%;" :title="item.ContactName">{{item.ContactName}}</p> <p v-if="item.IsOwn==1||userId==1||userId==5" class="fz12">{{item.ContactMobile}}</p> <p v-if="item.IsOwn==2&&userId!=1&&userId!=5">*****</p> </td> <td> <!-- <el-popover style='padding: 0;' width="470" trigger="click"> --> <!-- <div class="personNolayer"> <p> <span>成人:{{item.ManNum}}人</span> <span>儿童:{{item.ChirdNum}}人</span> <span>老人:{{item.OldPeopleNum}}人</span> <span>婴儿:{{item.BabyNum}}人</span> <span>单地接:{{item.AirticketNum}}人</span> </p> <table border="0" cellspacing="1" cellpadding="1"> <tr> <th>姓名</th> <th>护照</th> <th>性别</th> <th>年龄</th> <th width="110">联系电话</th> </tr> <tr v-if='item.GuestList.length>0' v-for="(item2,index2) in item.GuestList" :key="index2"> <td>{{item2.userName}}</td> <td>{{item2.passportNo}}</td> <td>{{item2.sexStr}}</td> <td>{{item2.age}}</td> <td>{{item2.mobilePhone}}</td> </tr> <tr v-if='item.GuestList.length==0'> <td colspan="5" align="center">暂无数据</td> </tr> </table> </div> --> <span v-if='item.GuestNumStatus==1' style="color:#1AA86B;" class="personNo" slot="reference">{{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">{{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">{{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>{{item.TC_Price}}</td> <td>{{item.Unit_Price}}</td> <td> <p>{{item.PreferPrice}}</p> </td> <td> <el-popover style='padding: 0;' width="400" trigger="click"> <div class="personNolayer"> <table border="0" cellspacing="1" cellpadding="1"> <tr> <th>单据号</th> <th>金额</th> <th>类型</th> <th>状态</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="4" align="center">暂无数据</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' class="colorE95252" style="cursor: pointer;" @click="getOrderDetail(item)" slot="reference">{{item.Income}}</span> </el-popover> </td> <td>{{item.Refund}}</td> <td>{{item.PlatformTax}}</td> <td>{{item.ZaiTuMoney}}</td> <td><span :class="{color_red_order:item.DueInMoney!==item.PreferPrice}">{{item.DueInMoney}}</span></td> <td class="fz12"> <span class="RL-redType">{{item.statsstr}}</span> <br /> <span class="RL-redType" v-if="item.OrderCancelDate!=''">{{item.OrderCancelDate}}</span> </td> <td> <div @click="goOpenUrl('confirmationOrder',item.orderId)" style="cursor:pointer;">电子确认函</div> <span v-if='item.ConfirmFileList.length>0' @click="downLoadFile(item.ConfirmFileList)">确认函下载</span> </td> <td class="RL-BTNlist" rowspan="2"> <el-button-group> <el-tooltip class="item" effect="dark" content="修改" placement="top-start"> <el-button type="primary" style='background:#00C6FF; border-color:#00C6FF' icon="iconfont icon-bianji-smal" @click='getDetail(item)'></el-button> </el-tooltip> <el-tooltip effect="dark" content="日志" placement="top-start" style="float:left"> <el-popover width='230' trigger="click"> <div class="priceContentDiv"> <div class="AuditLog">日志</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'>暂无数据</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="更多" placement="top-start" style="float:left"> <el-popover width='100' trigger="hover"> <div class="groupTourOrder_more"> <div @click="toTrip(item)">出团通知书({{SetNoticeMsg.OutNotice==1?'OK':'暂定'}})</div> <div v-if="userId==1" @click="getSalerInfo(item)">修改业务员</div> <div @click='zhuanLoading = true,OPRemarkMsg.OrderId = item.OrderId,OPRemarkMsg.OP_Remarks=item.OP_Remarks'>OP备注</div> <div v-if="OrderDataList.IsUpdateOrderCommission" @click='TCMsg.OrderId = item.OrderId, TCMsg.CommissionMinusRate = item.CommissionMinusRate,TCMsg.LatestCommissionMoney=item.LatestCommissionMoney, TiChengLoading = true'>修改提成</div> <div v-if="item.OrderState=='2'||item.OrderState=='3'" @click='deleteItem(item)'>删除</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> </td> </tr> <tr> <td colspan="12" class="RL_Order"> <span class="RL-remarkTitle">名单:</span> <span class="RL-redType RL-remarkCon" v-if="item.GuestList.length>0"> <span style="color:blue !important" v-for="(childItem) in item.GuestList" @click="goUrl('TravelPassengerList',msg.TCID,childItem.OrderId,'旅客名单')">{{childItem.userName}}</span> </span> <span class="RL-redType RL-remarkCon" v-else> <span>暂无名单</span> </span> <span v-if="item.TipMoney" style="color:red">(小费:{{item.TipMoney}})</span> </td> </tr> <tr> <td colspan="4" class="groupTourOrder_remarks" style="height: 40px;"> <div class="clearfix RL-MARK"> <span class="RL-remarkTitle">备注:</span> <span class="RL-redType RL-remarkCon"> <span v-if='item.ClientSource==1&&item.BrandName!=""'>{{item.BrandName}}订单 {{item.PlatformOrder}};</span> {{item.Remarks}} </span> </div> </td> <td colspan="5" class="groupTourOrder_remarks" style="height: 40px;"> <div class="clearfix RL-MARK"> <span class="RL-opremarkTitle">OP备注:</span> <span class="RL-redType RL-remarkCon">{{item.OP_Remarks ? item.OP_Remarks : '无'}}</span> </div> </td> <td colspan="5" style="height: 40px;cursor: pointer;" @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', item)"> <div> <span>财务单据:</span> <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">暂无数据</span> </div> </td> </tr> </tbody> </table> </div> <div class="combottomDiv" v-if="showSetLeader" v-loading="loadingSet"> <div class="combottomTitle">设置领队</div> <div class="clearfix"> <el-form label-width="100px"> <el-col :span="4"> <el-form-item label="所属公司"> <el-select v-model="leaderQueryMsg.RB_Branch_id" filterable :placeholder="$t('pub.pleaseSel')"> <el-option v-for="item in BranchList" :key="item.Id" :label="item.BName" :value="item.Id"> </el-option> </el-select> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="工作类型"> <el-select v-model="leaderQueryMsg.LeaderType" :placeholder="$t('pub.pleaseSel')"> <el-option v-for="item in leaderTypeArray" :key="item.Id" :label="item.Text" :value="item.Id"> </el-option> </el-select> </el-form-item> </el-col> <el-col :span="4"> <el-form-item label="领队姓名" prop="lineCode"> <el-input v-model="leaderQueryMsg.LeaderName" @keyup.enter.native="getLeaderList"></el-input> </el-form-item> </el-col> <el-col :span="4"> <input type="button" class="normalBtn Rs_leaderSearch" @click="getLeaderList" value="查询" /> <input type="button" class="normalBtn Rs_leaderSearch" @click="showSetLeader=false" value="关闭" /> </el-col> </el-form> </div> <div class="clearfix RL_bottomDiv"> <div> <div class="RL_LeaderListDiv"> <div class="RL_LeaderTitle">待选名单 <span v-if="isLeaderType">(<span>{{isLeaderType}}</span>)</span> </div> <div class="RL_ListDiv"> <div class="LeaderSpan" :class="{'ckedClass':ckedIndex==index}" v-for="(item,index) in leaderListArr" @click="getLeaderInfo(index,item.LeaderId)" :key="item.subCode"> <span class="RL_LeaderName">{{item.LeaderName}}【{{item.Type==2?"领兼导":"领队"}}】</span> </div> </div> </div> </div> <div> <div class="RL_infoDiv"> <div>上一个:<span class="RS_blueType" style="cursor:pointer" v-if="beforeInfo.TCID>0" @click="goUrlTravelControl('团控列表','TravelControlList',beforeInfo.TCID, beforeInfo.TCNUM)">{{beforeInfo.TCNUM+"("+beforeInfo.TCID+")"}}</span></div> <div class="RL_backTime">返回时间:{{beforeInfo.date}}</div> <div class="RL_redType">当前团:<span class="RS_blueType">{{NowInfo.date}}</span></div> <div class="RL_backTime RL_redType NowInfoDate">{{NowInfo.DuringHoliday}}</div> <div>下一个:<span class="RS_blueType" style="cursor:pointer" v-if="afterInfo.TCID>0" @click="goUrlTravelControl('团控列表','TravelControlList',afterInfo.TCID, afterInfo.TCNUM)">{{afterInfo.TCNUM+"("+afterInfo.TCID+")"}}</span></div> <div class="RL_backTime">出发时间:{{afterInfo.date}}</div> </div> <table class="RS_visaTable"> <tr> <th>签发地</th> <th>类型</th> <th width=100>到期日</th> </tr> <tr> <td colspan="3">无签证信息</td> </tr> </table> </div> <div> <input type="button" class="normalBtn" :class="{'disClick':!isSubmit}" @click="setTheLeader" value="确定"> <span v-if="setMsg.TipMessage!=''" style="color:red; cursor:pointer;" @click="goUrlTravelControl('团控列表','TravelControlList',setMsg.CTTCID, setMsg.CTTCNUM)">{{setMsg.TipMessage}}</span> </div> <div> <table class="RS_visaTable" v-if="ScheduleArray!=null && ScheduleArray.length>0"> <tr> <th width="100">领队</th> <th width="100">导游</th> <th width="200">团期信息</th> </tr> <tr v-for="sItem in ScheduleArray"> <td> {{sItem.LeaderName}} </td> <td> {{sItem.GuideName}} </td> <td> ({{sItem.TCID}}){{sItem.TCNUM}} </td> </tr> </table> </div> </div> </div> <div class="groupTourOrder_transfer" v-show="transferData.show"> <div class="transfer_header"> <div>订单转团</div> <div> <div @click="transferClose()">取消</div> <div @click="transferSave()">确定</div> </div> </div> <div class="transfer_info"> <div> <em>订单号:</em> <span>{{transferData.info.OrderId}}</span> </div> <div> <em>业务员:</em> <span>{{transferData.info.CreateByName}}</span> </div> <div> <em>团队编号:</em> <span>{{transferData.info.OldTCID}}</span> </div> <div> <em>团号:</em> <span>{{transferData.info.OldTCNUM}}</span> </div> </div> <div class="transfer_input"> <div> <em>团号:</em> <el-input v-model="transferData.info.TCNUM" placeholder="请输入团号或团队编号"></el-input> </div> </div> </div> <div class="combottomDiv" v-if="showChangeSales" style="height:200px;"> <updateSalesMan @closeUpdiv="closeSalseDiv" @getList="getList" :subInfo="subInfo"></updateSalesMan> </div> <!-- 订单收损弹窗 --> <el-dialog custom-class='w350' title="修改订单收损" :visible.sync="OrderLoading" center> <!--zhaunMsg.TCNUM--> <el-form label-width="110px"> <el-form-item label="收损人数:" class="w280"> <el-input :rows="2" v-model="OrderLossMsg.PeopleNum"></el-input> </el-form-item> <el-form-item label="收损金额:" class="w280"> <el-input :rows="2" v-model="OrderLossMsg.LossMoney"></el-input> </el-form-item> </el-form> <div slot="footer" class="dialog-footer"> <button class="normalBtn" type="primary" @click="OrderLossOk">{{$t('pub.saveBtn')}}</button> <button class="hollowFixedBtn" @click="OrderLoading=false">{{$t('pub.cancelBtn')}}</button> </div> </el-dialog> <el-dialog custom-class='w350' title="修改OP备注" :visible.sync="zhuanLoading" center :before-close="initOPRemarkMsg"> <!--zhaunMsg.TCNUM--> <el-form label-width="110px"> <el-form-item label="OP备注:" 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='w450' title="行程下载" :visible.sync="travelControlTripLayerShow" center> <tripDownLoadCommon ref="tripDownLoadCommon" :tripObj="tripObj" @headCallBack="hideTripDown" :downType="2"></tripDownLoadCommon> </el-dialog> <el-dialog custom-class='w350' title="修改提成" :visible.sync="TiChengLoading" center :before-close="initTCMsg"> <!--zhaunMsg.TCNUM--> <el-form label-width="110px"> <!-- <el-form-item label="扣除提成比例:" class="w280"> <el-input placeholder="请输入" v-model="TCMsg.CommissionMinusRate" @keyup.native="maxCommissionMinusRate"> <template slot="append">%</template> </el-input> </el-form-item> --> <el-form-item label="提成金额:" class="w280"> <el-input placeholder="请输入" 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> </template> <script> import tripDownLoadCommon from "../../commonPage/TripDownLoadCommon.vue"; import updateSalesMan from "../../commonPage/updateSalesMan.vue"; export default { data() { return { // 修改应收总额 Ysze:false, addMsg_form:{}, IsUpdateOrderMoney:false, OrderLoading:false, OrderLossMsg:{ OrderId:"", PeopleNum:0, LossMoney:0, }, 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; } }, OPRemarkMsg: { OrderId: '', OP_Remarks: '', }, TiChengLoading: false, TCMsg: { OrderId: 0, CommissionMinusRate: 0, LatestCommissionMoney:'' }, zhuanLoading: false, notUpdate: true, //是否显示操作按钮 isShow: true, //是否显示取消订单 isShowCancelOrder: false, userId: "", customerId: "", createByInfo: "", isUpdateSharePeople: 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, isShowLayerRemarks: false, //显示修改业务员 showChangeSales:false, comSelect: -1, loading: true, loadingSet: false, isChecked: true, remarksMsg: { OrderId: 0, OldRemarks: "", Remarks: "" }, IsUnion: 2, IsChargeLossOrders:0, OpSetLossPeople: 0, OpSetLossMoney: 0, Unit_PriceList:[],//成交单价下拉数据 LessMoney:0, addMsg: { 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", AirticketNum: "0", ScenicRefundArr: [], GoCityTime: "", BackCityTime: "", CommissionSharePeople: "-1", CommissionShareMoney: "0", //订单归属【HK新加,报名清单页面修改使用】 CreateBy: 0, }, //行程下载使用 travelControlTripLayerShow: false, tripObj: { tcid: 0, configId: 0, cityId: 0, orderId:0, isopOperation:true }, employeeMsg: { BranchId: "-1", IsLeave: 0 }, employeeList: [], rules: { CustomerType: [{ required: true, message: "请选择客户类型", trigger: "change" }], CustomerId: [{ required: false, message: "请选择客户门店", trigger: "change" }], DepartureCityId: [{ required: true, message: "请选择出发城市", trigger: "change" }], ReturnArriveCityId: [{ required: true, message: "请选择返回城市", trigger: "change" }], GroupType: [{ required: true, message: "请选择参团类型", trigger: "change" }], ClientSource: [{ required: true, message: "请选择客人来源", trigger: "change" }], TradeWay: [{ required: true, message: "请选择交易方式", trigger: "change" }], ContactName: [{ required: true, message: "请输入联系人姓名", trigger: "blur" }], ContactMobile: [{ required: true, message: "请输入联系人电话", trigger: "blur" }] }, rules2: { CustomerType: [{ required: true, message: "请选择客户类型", trigger: "change" }], CustomerId: [{ required: false, message: "请选择客户门店", trigger: "change" }], // DepartureCityId: [ // { required: true, message: "请选择出发城市", trigger: "change" } // ], // ReturnArriveCityId: [ // { required: true, message: "请选择返回城市", trigger: "change" } // ], // GroupType: [ // { required: true, message: "请选择参团类型", trigger: "change" } // ], ClientSource: [{ required: true, message: "请选择客人来源", trigger: "change" }], TradeWay: [{ required: true, message: "请选择交易方式", trigger: "change" }], ContactName: [{ required: true, message: "请输入联系人姓名", trigger: "blur" }], ContactMobile: [{ required: true, message: "请输入联系人电话", trigger: "blur" }] }, RemarksRules: { Remarks: [{ required: true, message: "请输入备注信息", trigger: "blur" }] }, 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", //zk新增 TCID: 0, }, //返回数据 currentPage: 1, total: 0, startCityList: [], //订单数据对象 OrderDataList: [], LineTeamList: [], memberList: [], logList: [], orderList: [], //客户类型 khlxList: [], //参团类型 ctlxList: [], ddlyList: [], khmdList: [], ssptList: [], //交易方式 jyfsList: [], ScenicRefundList: [], PlatformAccountList:[], ScenicRefundMoney: 0, //费用类型 fylxList: [], showID: -1, //zk新增 orderID: 0, //配置信息 ConfigData: { Config: {}, Leader: {} }, //出团通知 SetNoticeMsg: { TCID: 0, OutNotice: 0 }, leaderQueryMsg: { QTCID: 0, CountryID: 0, LeaderType: 2, RB_Branch_id: 0, LeaderName: "" }, leaderTypeArray:[ {Id:2,Text:"领队兼导游"}, {Id:1,Text:"领队"} ], //国家列表 countryList: [], //工作类型 workTypeList: [], //分公司列表 BranchList: [], //领队或者领兼地 isLeaderType: '', //验证重复提交 isSubmit: true, showSetLeader: false, DefaultSelectValue: 0, leaderListArr: [], //已存在档期的数组 ScheduleArray:[], ckedIndex: -1, LeaderInfoList: [], beforeInfo: { DuringHoliday: '', date: '', TCNUM:'', TCID:0 }, NowInfo: { DuringHoliday: '', date: '' }, afterInfo: { DuringHoliday: '', date: '', TCNUM:'', TCID:0 }, setMsg: { Id: 0, LeaderType: 0, LeaderId: 0, GuideId: 0, TCID: 0, TipMessage:"", CTTCNUM:"", CTTCID:0, }, // 订单转团 transferData: { show: false, info: { OrderId: '', CreateByName: '', OldTCID: '', OldTCNUM: '', TCNUM: '' } }, //订单编号及业务员信息 subInfo:{ CreateBy:'', OrderId:0 } }; }, components: { tripDownLoadCommon:tripDownLoadCommon, updateSalesMan:updateSalesMan }, methods: { // 给其他费用赋值 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.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 }, 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.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.toString(); this.addMsg.IsReturnIntermodal = x.IsReturnIntermodal.toString(); this.addMsg.ChirdNum = x.ChirdNum.toString(); this.addMsg.ChirdNeedBedNum = x.ChirdNeedBedNum.toString(); this.addMsg.ChirdNoNeedBedNum = (x.ChirdNum - x.ChirdNeedBedNum).toString(); this.addMsg.BabyNum = x.BabyNum.toString(); this.IsChildrenTour = x.IsChildrenTour; this.IsBirdDiscount = x.IsBirdDiscount; this.OpSetLossPeople = x.OpSetLossPeople; this.OpSetLossMoney = x.OpSetLossMoney; this.stratPrice = 0; 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; } this.returnPrice = 0; 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.Unit_PriceList=[]; this.apipost('sellorder_post_GetLessPrice', {"TCID":obj.TCID}, 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 => {}) this.isShowLayerRemarks = false; this.showSetLeader = 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); this.getDdlyList(this.addMsg.CustomerType); } else { this.Error(res.data.message); } }, err => {} ); }, // 获取订单收损详情 OrderLossInfo(childItem){ this.OrderLossMsg.OrderId=childItem.OrderId; this.OrderLossMsg.LossMoney=childItem.OpSetLossMoney; this.OrderLossMsg.PeopleNum=childItem.OpSetLossPeople; }, // 修改订单收损 OrderLossOk(){ this.apipost('sellorder_post_SetOrderRevenueLoss', this.OrderLossMsg, res=>{ if (res.data.resultCode == 1) { this.$message.success(res.data.message) this.getList() this.OrderLoading = false } else { this.$message.error(res.data.message); } }, null) }, //跳转 goUrlTS (path, id, orderId, title) { this.$router.push({ name: path, query: { 'id': id, 'orderId': orderId, blank: 'y', tab: title } }) }, 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 } this.$forceUpdate() }, 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:'' } }, 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)} }); }, initOPRemarkMsg(){ this.OPRemarkMsg = { OP_Remarks: '', OrderId: '', } this.zhuanLoading = false }, 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) }, downLoadFile(obj) { let reg = /^http(s)?:\/\/(.*?)\// this.downloadFileRename(obj[0].FullUrl.replace(reg, ''), obj[0].Name) }, goUrlTravelControl(name, path, id, tcmun) { this.$router.push({ name: path, query: { id: id, tcmun: tcmun, blank: "y", tab: "团控列表" } }); }, deleteItem(obj) { this.$confirm("是否取消?", "提示", { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" }) .then(() => { this.apipost( "sellorder_post_RemoveOrder", { ID: obj.OrderId }, res => { if (res.data.resultCode == 1) { this.$message.success("取消成功!"); this.getList(); } }, err => {} ); }) .catch(() => { this.$message.info("已取消!"); }); }, 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 => {}) }, 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 => {} ); } } }, goUrlX(path, id, tcmun) { this.$router.push({ name: path, query: { id: id, tcmun: tcmun, blank: 'y', tab: '报名清单' } }); }, toTrip: function (obj) { this.tripObj.tcid = obj.TCID this.tripObj.configId = obj.ConfigId this.tripObj.orderId = obj.OrderId this.tripObj.cityId = obj.DepartureCityId this.travelControlTripLayerShow = true }, hideTripDown(){ this.travelControlTripLayerShow=false; }, goUrl(path, id, OrderId, name) { if (OrderId > 0) { this.$router.push({ name: path, query: { id: id, OrderId: OrderId, blank: 'y', tab: name } }); } else { this.$router.push({ name: path, query: { id: id, blank: 'y', tab: name } }); } }, changeSelect: function (){ this.$forceUpdate() }, 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; }, getRemarks(obj) { this.isShowLayerRemarks = true; this.isShowLayer = false; this.$refs["addMsg"].resetFields(); this.clearMsg(); this.remarksMsg.OrderId = obj.OrderId; this.remarksMsg.Remarks = obj.Remarks this.remarksMsg.OldRemarks = obj.Remarks; }, getTypePrice() { this.addMsg.ContactName = ""; this.addMsg.ContactMobile = ""; if (this.addMsg.CustomerType == 1) { this.addMsg.TC_Price = this.addObj.B2BMemberPrice; } if (this.addMsg.CustomerType == 2) { this.addMsg.TC_Price = this.addObj.B2BPrice; } if (this.addMsg.CustomerType == 3) { this.addMsg.TC_Price = this.addObj.B2CMemberPrice; this.addMsg.CustomerId = "0"; this.addMsg.CommissionShareMoney = "0"; } if (this.addMsg.CustomerType == 4) { this.addMsg.TC_Price = this.addObj.B2CPrice; this.addMsg.CustomerId = "0"; this.addMsg.CommissionShareMoney = "0"; } }, 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).toFixed(2); } else { this.addMsg.CommissionShareMoney = "0"; } } } } else { this.addMsg.Commission = (Number(this.addMsg.PreferPrice) * 0.01).toFixed(2) } }, 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.addMsg.YSeatNum = Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.OldPeopleNum); let totalNum = Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNum) + Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum); if (totalNum == 0) { this.notUpdate = false } else { this.notUpdate = true } }, getTotalPrice() { if (this.addMsg.GroupType != 5) { this.addMsg.ChirdNum = this.addMsg.ChirdNoNeedBedNum * 1 + this.addMsg.ChirdNeedBedNum * 1 if (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) * this.addObj.BabyPrice; 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 = 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 { 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) * this.addObj.BabyPrice; 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 = 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(); }, 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) { //提交创建、修改表单 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.Success(res.data.message); this.remarksMsg.Remarks = ""; this.remarksMsg.OrderId = "0"; this.getList(); this.isShowLayerRemarks = false; } else { this.isShowLayerRemarks = false; this.Error(res.data.message); } }, err => {} ); } else { return false; } }); }, cancelSubmit() { this.isShowLayer = false; this.$refs["addMsg"].resetFields(); this.clearMsg(); }, cancelSubmit2() { this.isShowLayer2 = false; this.$refs["addMsg2"].resetFields(); this.clearMsg(); }, cancelSubmitRemarks() { this.isShowLayerRemarks = false; this.remarksMsg.Remarks = ""; this.remarksMsg.OrderId = "0"; }, 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.AirticketNum = "0"; this.addMsg.ScenicRefundArr = []; this.ScenicRefundMoney = 0; this.addMsg.CommissionSharePeople = -1; this.addMsg.CommissionShareMoney = "0"; }, saveOrder() { //验证人数和机位数 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) ) { if(this.IsChargeLossOrders==1){ }else{ this.$message.warning("人数和机位数不相等!"); 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("签证数量不能大于人数总和!"); 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("保险数量不能大于人数总和!"); return; } if (Number(this.addMsg.ChirdNeedBedNum) > Number(this.addMsg.ChirdNum)) { this.$message.warning("儿童占床不能大于儿童数!"); return; } if ( Number(this.addMsg.ChirdNum) - Number(this.addMsg.ChirdNeedBedNum) + Number(this.addMsg.BabyNum) > Number(this.addMsg.ManNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.ChirdNeedBedNum) ) { this.$message.warning("儿童占床数量不足!"); return; } if (this.userId == this.createByInfo) { if (this.addMsg.CommissionSharePeople == "-1") { this.addMsg.CommissionShareMoney = "0"; } } 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_SetOrderInfo_02", 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; } 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("人数和机位数不相等!"); 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("签证数量不能大于人数总和!"); 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("保险数量不能大于人数总和!"); return; } // if (Number(this.addMsg.ChirdNeedBedNum) > Number(this.addMsg.ChirdNum)) { // this.$message.warning("儿童占床不能大于儿童数!"); // return; // } // if ( // Number(this.addMsg.ChirdNum) - // Number(this.addMsg.ChirdNeedBedNum) + // Number(this.addMsg.BabyNum) > // Number(this.addMsg.ManNum) + // Number(this.addMsg.OldPeopleNum) + // Number(this.addMsg.ChirdNeedBedNum) // ) { // this.$message.warning("儿童占床数量不足!"); // 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["addMsg2"].resetFields(); this.clearMsg(); this.getList(); this.isShowLayer2 = false; } else { this.isShowLayer2 = false; this.$message.error(res.data.message); } }, err => {} ); }, getStartList() { this.apipost( "sellorder_get_GetAllStartCity", {}, res => { if (res.data.resultCode == 1) { this.startCityList = res.data.data; } }, 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() { //给非直客 隐藏电话姓名赋值 let obj = this.khmdList.find( item => item.customerId == this.addMsg.CustomerId ); if (obj != null) { this.customerId = obj.customerId; this.createByInfo = obj.createByInfo; this.addMsg.ContactName = obj.customerName + "(" + obj.contact + ")"; this.addMsg.ContactMobile = obj.contactNumber; // if (this.userId != this.createByInfo) { // this.addMsg.CommissionSharePeople = this.createByInfo; // this.isUpdateSharePeople = true; // } this.isUpdateSharePeople = true; this.apipost( "app_today_visit_GetCustomerBrandByCustomerId", { customerInfoId: this.addMsg.CustomerId }, res => { if (res.data.resultCode == 1) { this.addMsg.BrandId = this.addMsg.BrandId ? this.addMsg.BrandId : ''; this.ssptList = res.data.data; } }, err => {} ); } }, getKhmdList(id, lineId, employeeId) { var qMsg = { typeId: id, lineId: lineId, EmoloyeeId: employeeId }; this.apipost( "app_today_visit_GetOrderMyCustomerList", qMsg, res => { if (res.data.resultCode == 1) { this.khmdList = res.data.data; this.getSspt(); } }, 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; let msg = { TCID: this.msg.TCID, OrderId: this.orderID } this.apipost( "sellorder_get_GetOrderListByTCID", msg, res => { this.loading = false; console.log("数据列表",res) if (res.data.resultCode == 1) { this.OrderDataList = res.data.data; this.IsUpdateOrderMoney = res.data.data.IsUpdateOrderMoney } }, err => {} ); }, 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; } }, err => {} ); }, //zk新增 //获取配置信息 getConfig() { this.apipost( "travel_get_GetTravelConfigTCID", { TCID: this.msg.TCID }, res => { if (res.data.resultCode == 1) { this.ConfigData.Config = res.data.data.config; this.SetNoticeMsg.OutNotice = res.data.data.config.OutNotice; this.ConfigData.Leader = res.data.data.leader; } } ); }, //获取国家 getCountry() { this.apipost( "dict_post_Destination_GetCountry", {}, res => { this.countryList = res.data.data; }, err => {} ); }, //获取工作类型(值获取领兼地和导游) getWorkType() { this.apipost( "leader_post_GetType", {}, res => { if (res.data.resultCode == 1) { res.data.data.forEach(item => { if (item.Value == 1 || item.Value == 2) { this.workTypeList.push(item); } }); } }, err => {} ); }, //获取公司列表 getBranchList() { let msg = { Status: "0", is_show: "", RB_Group_Id: "" }; this.apipost( "admin_get_BranchGetList", msg, res => { this.BranchList = res.data.data; }, err => {} ); }, //查询领队 getLeaderList() { this.loadingSet = true; this.leaderListArr==[]; this.apipost( "LeaderSchedule_get_GetPriceCanUseLeader", this.leaderQueryMsg, res => { this.loadingSet = false; if (res.data.resultCode == 1) { this.leaderListArr = res.data.data.LeaderData; this.ScheduleArray=res.data.data.ScheduleData; if (this.leaderQueryMsg.LeaderType == 1) { this.isLeaderType = '领队' } else { this.isLeaderType = '领兼地' } } }, err => {} ); }, //点击选中名单 getLeaderInfo(index, LeaderId) { this.ckedIndex = index; let msg = { ID: LeaderId, TCID: this.msg.TCID } this.apipost( "leader_Get_GetPriceLeaderInfo", msg, res => { if (res.data.resultCode == 1) { this.LeaderInfoList = res.data.data; this.beforeInfo.DuringHoliday = ""; this.beforeInfo.date = ""; this.beforeInfo.TCNUM=''; this.beforeInfo.TCID=0; this.NowInfo.DuringHoliday = ""; this.NowInfo.date = ""; this.afterInfo.DuringHoliday = '无'; this.afterInfo.date = '无'; this.afterInfo.TCNUM=''; this.afterInfo.TCID=0; this.LeaderInfoList.LeaderSchedule.forEach(item => { if (item.PositionType == 1) { if (item.TypeId == 0) { this.beforeInfo.DuringHoliday = '系统参团' } else if (item.TypeId == 1) { this.beforeInfo.DuringHoliday = '休假' } this.beforeInfo.date = item.EndDate; this.beforeInfo.TCNUM=item.TCNUM; this.beforeInfo.TCID=item.TCID; } if (item.PositionType == 2) { this.NowInfo.DuringHoliday = item.StartDate + ' 至 ' + item.EndDate; this.NowInfo.date = this.ConfigData.Config.TCNUM; } if (item.PositionType == 3) { if (item.TypeId == 0) { this.afterInfo.DuringHoliday = '系统参团' } else if (item.TypeId == 1) { this.afterInfo.DuringHoliday = '休假' } this.afterInfo.date = item.StartDate; this.afterInfo.TCNUM=item.TCNUM; this.afterInfo.TCID=item.TCID; } else { this.afterInfo.DuringHoliday = '无' this.afterInfo.date = '无' } }) if (this.ConfigData.Leader == null) { this.setMsg.Id = 0 } else { this.setMsg.Id = this.ConfigData.Leader.Id; this.setMsg.GuideId = this.ConfigData.Leader.GuideId; } this.setMsg.LeaderType= this.LeaderInfoList.LeaderGuide.Type; this.setMsg.LeaderId = LeaderId; this.setMsg.TCID = this.msg.TCID; this.setMsg.TipMessage=""; } }, err => {} ); }, //确定设置领队 setTheLeader() { if (this.isSubmit) { this.isSubmit = false; this.apipost( "LeaderSchedule_post_SetPriceLeader", this.setMsg, res => { if (res.data.resultCode == 1) { this.Success(res.data.message); this.getList(); this.getConfig(); this.showSetLeader = false; this.leaderListArr=[]; this.ScheduleArray=[]; this.setMsg.TipMessage=""; } else { this.Error(res.data.message); this.setMsg.TipMessage=res.data.message; this.setMsg.CTTCNUM=res.data.data.TCNUM; this.setMsg.CTTCID=res.data.data.TCID; } this.isSubmit = true; }, err => {} ); } }, //取消领队 CancelLeader() { var that = this; that.Confirm("是否取消?", function () { var msg = { ID: that.ConfigData.Leader.Id }; that.apipost( "LeaderSchedule_Post_RemovePriceLeader", msg, res => { if (res.data.resultCode == 1) { that.Success(res.data.message); that.getList(); that.getConfig(); } else { that.Error(res.data.message); } }, null ); }); }, //新窗口打开 goOpenUrl(path, id) { let routeData = this.$router.resolve({ name: path, query: { id: id, blank: 'y' } }); window.open(routeData.href, "_blank"); }, //是否可以修改成交单价 canEditUnitPrice() { let userInfo = this.getLocalStorage(); if (userInfo != null && userInfo.EmployeeId == 1) { this.isChecked = false; } }, //订单转团 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.isShowLayerRemarks = false this.transferData.show = true }, transferClose: function () { this.transferData.show = false }, transferSave: function () { if (this.transferData.info.TCNUM.trim() === '') { this.$message.error('请输入团号或团队编号') } else { this.apipost('sellorder_post_SetOrderTurnGroup', this.transferData.info, res => { if (res.data.resultCode === 1) { this.$message.success('转团成功') this.transferData.show = false this.getList() } else { this.$message.error(res.data.message) } }, err => {}) } }, //出团通知书 SetOutNotice() { if (this.SetNoticeMsg.OutNotice == 0) { this.SetNoticeMsg.OutNotice = 1; } else if (this.SetNoticeMsg.OutNotice == 1) { this.SetNoticeMsg.OutNotice = 0; } this.apipost('travel_post_SetOutNotice', this.SetNoticeMsg, res => { if (res.data.resultCode === 1) { this.getList(); this.getConfig(); this.Info(res.data.message); } else { this.Error(res.data.message); } }, err => {}) }, //新窗口打开 goScheduleUrl(id) { let routeData = this.$router.resolve({ name: "leaderScheduleManager", query: { TCID: id, blank: 'y' } }); window.open(routeData.href, "_blank"); }, //点击修改业务员 getSalerInfo(item){ this.subInfo.CreateBy = item.CreateBy; this.subInfo.OrderId = item.OrderId; this.showChangeSales = true; }, //关闭修改业务员 closeSalseDiv(){ this.showChangeSales=false; }, //跳转到团报 goTeamBalance(id, OutBranchId) { this.$router.push({ name: "TeamBalancePayment", query: { id: id, OutBranchId: OutBranchId, blank: "y", tab: "团队收支明细" } }); }, //跳转到旅客名单 goToPassenger(item) { //passengerSaleList?id=11468&tcid=732&tcnum=NRT3U07190101A&isOrder=1&blank=y&tab=旅客名单 this.$router.push({ name: "passengerSaleList", query: { id: item.OrderId, tcid: this.msg.TCID, tcnum:this.ConfigData.Config.TCNUM, isOrder:1, blank: "y", tab: "旅客名单" } }); } }, mounted() { let userInfo = this.getLocalStorage(); this.userId = userInfo.EmployeeId; this.msg.TCID = this.$route.query.id; this.SetNoticeMsg.TCID = this.msg.TCID; this.leaderQueryMsg.QTCID = this.$route.query.id; this.orderID = this.$route.query.orderID var isShow = this.$route.query.isShow; //是否显示操作按钮 if (isShow) { this.isShow = isShow; } this.getEmployee(); this.getList(); this.getStartList(); this.getKhlxList(); this.getCtlxList(); this.getJyfs(); this.getFylx(); this.getConfig(); //初始化出行国家 this.getCountry(); //获取工作类型 this.getWorkType() //获取所属公司 this.getBranchList(); this.canEditUnitPrice(); } }; </script>