Commit 54f71926 authored by 黄媛媛's avatar 黄媛媛
parents 3aca600f 85baba52
......@@ -3,15 +3,25 @@
<div class="enrollTotalSearch">
<ul>
<li><span><em>{{$t('advmanager.v_line')}}</em>
<el-select class='w200' v-model="msg.LineId" filterable :placeholder="$t('pub.pleaseSel')">
<el-select class='w200' v-model="msg.LineId" filterable :placeholder="$t('pub.pleaseSel')"
@change="getLineTeamList(msg.LineId)">
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option>
<el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'>
</el-option>
</el-select>
</span>
</li>
<li><span><em>{{$t('advmanager.v_xilie')}}</em>
<el-select class='w200' v-model="msg.LineteamId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
<el-option v-for="item in LineTeamList" :label='item.LtName' :value='item.LtID' :key='item.LtID'>
</el-option>
</el-select>
</span>
</li>
<li><span><em>{{$t('system.table_company')}}</em>
<el-select class='w200' v-model="msg.BranchId" filterable :placeholder="$t('pub.pleaseSel')" @change='linkageDepartment()'>
<el-select class='w200' v-model="msg.BranchId" filterable :placeholder="$t('pub.pleaseSel')"
@change='linkageDepartment()'>
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option>
<el-option v-for="item in companyList" :label='item.BName' :value='item.Id' :key='item.Id'>
</el-option>
......@@ -20,8 +30,8 @@
</li>
<li v-show="!isOwn">
<span><em class="fl" style="margin-top: 10px!important;">{{$t('fnc.bmxuanze')}}</em>
<treeselect class='w200 fl' :options="departmentList" v-model="msg.RB_Department_Id" :label="$t('pub.unlimitedSel')"
:normalizer="normalizer" @select='linkageEmployeeMsg' />
<treeselect class='w200 fl' :options="departmentList" v-model="msg.RB_Department_Id"
:label="$t('pub.unlimitedSel')" :normalizer="normalizer" @select='linkageEmployeeMsg' />
</span>
</li>
<li><span><em>{{$t('fnc.ctleixing')}}</em>
......@@ -49,7 +59,8 @@
</li>
<li>
<span><em>{{$t('hotel.hotel_OrderStates')}}</em></span>
<el-select class='w200' v-model='msg.OrderState' filterable :placeholder="$t('pub.pleaseSel')" style="width:180px">
<el-select class='w200' v-model='msg.OrderState' filterable :placeholder="$t('pub.pleaseSel')"
style="width:180px">
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option>
<el-option v-for="item in ddztList" :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
......@@ -57,7 +68,8 @@
</li>
<li>
<span><em>{{$t('active.cl_orderType')}}</em></span>
<el-select class='w200' v-model='msg.IsOneDay' filterable :placeholder="$t('pub.pleaseSel')" style="width:180px">
<el-select class='w200' v-model='msg.IsOneDay' filterable :placeholder="$t('pub.pleaseSel')"
style="width:180px">
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option>
<el-option :label="$t('salesModule.TourOrder')" :value='0'></el-option>
<el-option :label="$t('salesModule.OneDayOrder')" :value='1'></el-option>
......@@ -65,7 +77,8 @@
</li>
<li>
<span><em>{{$t('salesModule.PaymentStatus')}}</em></span>
<el-select class='w200' v-model='msg.IsCollectMoney' filterable :placeholder="$t('pub.pleaseSel')" style="width:180px">
<el-select class='w200' v-model='msg.IsCollectMoney' filterable :placeholder="$t('pub.pleaseSel')"
style="width:180px">
<el-option :label="$t('pub.unlimitedSel')" :value='0'></el-option>
<el-option :label="$t('salesModule.Collect')" :value='1'></el-option>
<el-option :label="$t('salesModule.NoCollect')" :value='2'></el-option>
......@@ -88,20 +101,25 @@
</span>
</li>
<li><span><em>{{$t('scen.sc_ftTime')}}</em>
<el-date-picker v-model='msg.QStartDate' @change="dataDuiQ()" class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker>
<el-date-picker v-model='msg.QStartDate' @change="dataDuiQ()" class='w135' value-format="yyyy-MM-dd"
type="date"></el-date-picker>
-
<el-date-picker v-model='msg.QEndDate' @change="dataDuiQ()" class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker>
<el-date-picker v-model='msg.QEndDate' @change="dataDuiQ()" class='w135' value-format="yyyy-MM-dd"
type="date"></el-date-picker>
</span>
</li>
<li><span><em>{{$t('fnc.bmriqi')}}</em>
<el-date-picker v-model='msg.CStartDate' @change="dataDui()" class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker>
<el-date-picker v-model='msg.CStartDate' @change="dataDui()" class='w135' value-format="yyyy-MM-dd"
type="date"></el-date-picker>
-
<el-date-picker v-model='msg.CEndDate' @change="dataDui()" class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker>
<el-date-picker v-model='msg.CEndDate' @change="dataDui()" class='w135' value-format="yyyy-MM-dd"
type="date"></el-date-picker>
</span>
</li>
<li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList();resetPageIndex()" />
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')"
@click="getList();resetPageIndex()" />
</li>
</ul>
</div>
......@@ -117,7 +135,8 @@
<p>
<span>{{$t('salesModule.Ypay')}}{{countData.PreferPrice}};</span>
<span>{{$t('Operation.Op_yiShou')}}{{countData.Income}};</span>
<span :class="{color_red_order:countData.DueinMoney!==countData.PreferPrice}">{{$t('Operation.Op_weiShou')}}{{countData.DueinMoney}};</span>
<span
:class="{color_red_order:countData.DueinMoney!==countData.PreferPrice}">{{$t('Operation.Op_weiShou')}}{{countData.DueinMoney}};</span>
<span>{{$t('fnc.ztjine')}}{{countData.ZaiTu}};</span>
</p>
</div>
......@@ -169,10 +188,14 @@
<span>{{$t('fnc.cwdjshuoming')}}</span>
</div>
<p>
<span class="groupTourOrderByTuan_ico"><i style="background-color:#0000ff"></i><span>{{$t('fnc.yidadan')}}</span></span>
<span class="groupTourOrderByTuan_ico"><i style="background-color:#00FF00"></i><span>{{$t('fnc.ptcnyshenhe')}}</span></span>
<span class="groupTourOrderByTuan_ico"><i style="background-color:#FF0000"></i><span>{{$t('fnc.yhcnyshenhe')}}</span></span>
<span class="groupTourOrderByTuan_ico"><i style="background-color:#000000"></i><span>{{$t('fnc.ytongguo')}}</span></span>
<span class="groupTourOrderByTuan_ico"><i
style="background-color:#0000ff"></i><span>{{$t('fnc.yidadan')}}</span></span>
<span class="groupTourOrderByTuan_ico"><i
style="background-color:#00FF00"></i><span>{{$t('fnc.ptcnyshenhe')}}</span></span>
<span class="groupTourOrderByTuan_ico"><i
style="background-color:#FF0000"></i><span>{{$t('fnc.yhcnyshenhe')}}</span></span>
<span class="groupTourOrderByTuan_ico"><i
style="background-color:#000000"></i><span>{{$t('fnc.ytongguo')}}</span></span>
</p>
</div>
</el-col>
......@@ -216,207 +239,227 @@
<th v-if="isEditOrderCreate==1" width="140">{{$t('admin.admin_operate')}}</th>
</tr>
<tr>
<td v-show="list.length==0" colspan="15" align="center">{{$t('system.content_noData')}}</td>
<td v-show="list.length==0" :colspan="isEditOrderCreate==1?18:17" align="center">{{$t('system.content_noData')}}
</td>
</tr>
<tbody v-for="(item,index) in list" :key="index">
<tr>
<td rowspan="3">
<p v-if="item.isChargeLossOrders==1" style="color:red">{{$t('fnc.sun')}}</p>
<p class="fbold over_ellipsis" style="width: 100%;cursor:pointer;" :title="item.orderId" @click="goUrlX('团报名清单', item.isOneDay === 1 ? 'groupTourOrderByTuanOne' : 'groupTourOrderByTuan',item.tcid,item.tcnum)">
<span>{{item.orderId}}</span>
<span style="font-weight: 100;" v-if="item.scoreNum >= 0" @click='goInvetig("investigationList", item.tcid, item.orderId)'>({{$t('salesModule.ScoreNUM')}}{{item.scoreNum}})</span>
<el-tooltip class="item" effect="dark" :content="$t('salesModule.ByProgram')" placement="top" v-show="item.orderForm==4"> <i class="iconfont icon-xiaochengxu" style="font-size:22px;color:red;"></i></el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('salesModule.ByB2b')" placement="top"
v-show="item.isFormB2B ==1"> <i class="iconfont icon-tiaozheng"
style="font-size:22px;color:#297BEF;"></i></el-tooltip>
</p>
<p class="fz12 over_ellipsis" style="width: 100%;text-decoration:underline;cursor:pointer;" :title="item.alName"
@click="goUrlX('产品查询', item.isOneDay === 1 ? 'productQueryOne' : 'productQuery',item.tcid,item.tcnum)">{{item.tcnum}}</p>
<p class="fz12 over_ellipsis" style="width: 100%;">{{item.createBy}}<span v-if="item.leaveStr!=''" style="color:red">({{item.leaveStr}})</span></p>
<p class="fz12 over_ellipsis" style="width: 100%;">{{item.commissionSPeopleName=='无'?'':item.commissionSPeopleName}}</p>
<p>{{$t('hotel.hotel_StartTeam')}}{{item.startDate}}</p>
<p v-if="item.tradeWay ==1">{{item.platformOrder}}</p>
<p v-if='item.commissionMoney' style="color:red">{{$t('salesModule.CommissionNum')}}{{item.commissionMoney}}</p>
<p v-else-if="item.latestCommissionMoney" style="color:red">{{$t('salesModule.CommissionNum')}}{{item.latestCommissionMoney}}</p>
<div>
<div style="color:green" v-if="item.commissionMoney==''||item.commissionMoney=='-1'">
<p v-if="item.extraRewardMoney>0">{{$t('salesModule.EWJLJE')}}{{item.extraRewardMoney}}</p>
<p v-if="item.extraDeductMoney>0">{{$t('salesModule.EWKCJE')}}{{item.extraDeductMoney}}</p>
</div>
<div style="color:red" v-else>
<p v-if="item.extraRewardMoney>0">{{$t('salesModule.EWJLJE')}}{{item.extraRewardMoney}}</p>
<p v-if="item.extraDeductMoney>0">{{$t('salesModule.EWKCJE')}}{{item.extraDeductMoney}}</p>
</div>
<div style="color:red">
<p v-if="item.unionExtraMoney!=0">{{$t('salesModule.LYEWFY')}}{{item.unionExtraMoney}}</p>
</div>
</div>
</td>
<td>
<p class="over_ellipsis" style="width: 150px;" :title="item.contactName">{{item.contactName}}</p>
<p>{{item.contactMobile}}</p>
<p v-if="item.industryCategory!==''" style="color:green">{{$t('salesModule.HYLB')}}{{item.industryCategory}}</p>
</td>
<td>
<p class="fz12 over_ellipsis" style="width: 100%;">{{item.orderTypeName}}</p>
</td>
<td class="fz12">
<p style="max-width: 160px;display: block;" class="over_ellipsis" :title="item.lineName">
<span>{{item.lineName}}</span>
</p>
<p style="max-width: 160px;display: block;" class="over_ellipsis" :title="item.ltName">{{item.ltName}}</p>
</td>
<td>
{{item.guestNum}}/{{item.ySeatNum>0? item.ySeatNum+'Y ':''}}{{item.eSeatNum>0? item.eSeatNum+'E ':''}}{{item.fSeatNum>0? item.fSeatNum+'F ':''}}
<br/>
<span v-if="item.refuseVisaNum>0" style="color:red">
({{$t('salesModule.RefuseQ')}}{{item.refuseVisaNum}}{{$t('salesModule.PeoPle')}})
</span>
</td>
<td style="color:#FF9C00">{{item.tC_Price}}</td>
<td style="color:#FF9C00">{{item.unit_Price}}</td>
<td>
<p style="color:#FF9C00">{{item.preferPrice}}</p>
</td>
<td>
<span v-if='item.dueInMoney==0' style="cursor: pointer;">{{item.income}}</span>
<span v-if='item.dueInMoney!=0' style="cursor: pointer;color: #e95252;">{{item.income}}</span>
</td>
<!-- 优惠 -->
<td>
<el-popover style='padding: 0;' width="600" trigger="click">
<div class="personNolayer">
<table border="0" cellspacing="1" cellpadding="1">
<tr>
<th>{{$t('active.cl_couponName')}}</th>
<th>{{$t('active.cl_couponType')}}</th>
<th>{{$t('active.cl_dkjezk')}}</th>
<th>{{$t('active.cl_sytiaojian')}}</th>
<th>{{$t('active.cl_huoqufangshi')}}</th>
<th>{{$t('active.cl_hqriqi')}}</th>
</tr>
<tr v-if='item.couponAllotList.length>0' v-for="(item2,index2) in item.couponAllotList" :key="index2">
<td>{{item2.couponsName}}</td>
<td>
<span v-if="item2.couponsType==1">{{$t('active.cl_dyquan')}}</span>
<span v-if="item2.couponsType==2">{{$t('active.cl_zkquan')}}</span>
</td>
<td>{{item2.denomination}}</td>
<td>{{$t('active.cl_man')}}{{item2.useCondition}}{{$t('active.cl_keyong')}}</td>
<td>
<span v-if="item2.accessType==1">{{$t('active.cl_choujiang')}}</span>
<span v-else></span>
</td>
<td>{{item2.acessDate}}</td>
</tr>
<tr v-if='item.couponAllotList.length==0'>
<td colspan="6" align="center">{{$t('system.content_noData')}}</td>
</tr>
</table>
<tr>
<td rowspan="3">
<p v-if="item.isChargeLossOrders==1" style="color:red">{{$t('fnc.sun')}}</p>
<p class="fbold over_ellipsis" style="width: 100%;cursor:pointer;" :title="item.orderId"
@click="goUrlX('团报名清单', item.isOneDay === 1 ? 'groupTourOrderByTuanOne' : 'groupTourOrderByTuan',item.tcid,item.tcnum)">
<span>{{item.orderId}}</span>
<span style="font-weight: 100;" v-if="item.scoreNum >= 0"
@click='goInvetig("investigationList", item.tcid, item.orderId)'>({{$t('salesModule.ScoreNUM')}}{{item.scoreNum}})</span>
<el-tooltip class="item" effect="dark" :content="$t('salesModule.ByProgram')" placement="top"
v-show="item.orderForm==4"> <i class="iconfont icon-xiaochengxu" style="font-size:22px;color:red;"></i>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('salesModule.ByB2b')" placement="top"
v-show="item.isFormB2B ==1"> <i class="iconfont icon-tiaozheng"
style="font-size:22px;color:#297BEF;"></i></el-tooltip>
</p>
<p class="fz12 over_ellipsis" style="width: 100%;text-decoration:underline;cursor:pointer;"
:title="item.alName"
@click="goUrlX('产品查询', item.isOneDay === 1 ? 'productQueryOne' : 'productQuery',item.tcid,item.tcnum)">
{{item.tcnum}}</p>
<p class="fz12 over_ellipsis" style="width: 100%;">{{item.createBy}}<span v-if="item.leaveStr!=''"
style="color:red">({{item.leaveStr}})</span></p>
<p class="fz12 over_ellipsis" style="width: 100%;">
{{item.commissionSPeopleName=='无'?'':item.commissionSPeopleName}}</p>
<p>{{$t('hotel.hotel_StartTeam')}}{{item.startDate}}</p>
<p v-if="item.tradeWay ==1">{{item.platformOrder}}</p>
<p v-if='item.commissionMoney' style="color:red">
{{$t('salesModule.CommissionNum')}}{{item.commissionMoney}}</p>
<p v-else-if="item.latestCommissionMoney" style="color:red">
{{$t('salesModule.CommissionNum')}}{{item.latestCommissionMoney}}</p>
<div>
<div style="color:green" v-if="item.commissionMoney==''||item.commissionMoney=='-1'">
<p v-if="item.extraRewardMoney>0">{{$t('salesModule.EWJLJE')}}{{item.extraRewardMoney}}</p>
<p v-if="item.extraDeductMoney>0">{{$t('salesModule.EWKCJE')}}{{item.extraDeductMoney}}</p>
</div>
<div style="color:red" v-else>
<p v-if="item.extraRewardMoney>0">{{$t('salesModule.EWJLJE')}}{{item.extraRewardMoney}}</p>
<p v-if="item.extraDeductMoney>0">{{$t('salesModule.EWKCJE')}}{{item.extraDeductMoney}}</p>
</div>
<div style="color:red">
<p v-if="item.unionExtraMoney!=0">{{$t('salesModule.LYEWFY')}}{{item.unionExtraMoney}}</p>
</div>
</div>
<span style="cursor: pointer;color: #e95252;text-decoration: underline;" slot="reference">{{moneyFormat(item.discountMoney)}}</span>
</el-popover>
</td>
<td>
<el-popover v-if="item.customerId || item.customerId==0" style='padding: 0;' width="600" trigger="click">
<div class="personNolayer">
<table border="0" cellspacing="1" cellpadding="1">
<tr>
<th>{{$t('fnc.jine')}}</th>
<th>{{$t('admin.admin_type')}}</th>
<th>{{$t('system.label_info')}}</th>
<th>{{$t('salesModule.Time')}}<span @click="goUrlHappy(item)" style="cursor: pointer;" colspan="4" align="center">{{$t('salesModule.LookMore')}}</span></th>
</tr>
<tr v-for="(item2,index2) in redBagList"
:key="index2">
<td>{{item2.Money}}</td>
<td>
{{item2.Type==1?"收入":"折扣"}}
</td>
<td>{{item2.Description}}</td>
<td>{{item2.UpdateTime}}</td>
</tr>
<tr v-if='redBagList.length==0'>
<td colspan="4" align="center">{{$t('system.content_noData')}}</td>
</tr>
<tr>
<!-- <td @click="goUrlHappy(item)" style="cursor: pointer;" colspan="4" align="center">查看更多</td> -->
</tr>
</table>
</div>
<span @click="getRedBag(item)" style="cursor: pointer;color: #e95252;text-decoration: underline;" slot="reference">{{item.redEnvelopeMoney}}</span>
</el-popover>
<span v-else style="color: #e95252;text-decoration: underline;">{{item.redEnvelopeMoney}}</span>
</td>
<td v-if="item.tipMoney">{{item.tipMoney}}</td>
<td v-else>0.00</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 v-if="item.isChargeLossOrders==1" class="fz12" style="color: #e95252">{{$t('fnc.shousun')}}</td>
<td v-else class="fz12" :style="item.orderState===3?'color: #e95252;':''">{{item.statsstr}}</td>
<td v-if="isEditOrderCreate==1">
<button class="normalBtn" style="margin-left:0;width:95px;padding:0" @click="getSalerInfo(item)">{{$t('salesModule.UpdateYWY')}}</button>
</td>
</tr>
<tr style="height:20px">
<td :colspan="isEditOrderCreate==1?17:16" class="RL_Order" style="height:20px">
<span style="font-size: 14px;color: #333333">{{$t('salesModule.MD')}}:</span>
<span v-for="(childItem) in item.guestList" style="font-size: 14px;color: blue">{{childItem.userName}}&nbsp;&nbsp;</span>
<p v-if="item.cancelGuestList && item.cancelGuestList.length>0">
<span class="" >{{$t('salesModule.CancelOrder')}}:</span>
<span class="RL-redType RL-remarkCon">
<span style="color: red;" v-for="(childItem) in item.cancelGuestList">{{childItem.userName}} &nbsp;&nbsp;</span>
</td>
<td>
<p class="over_ellipsis" style="width: 150px;" :title="item.contactName">{{item.contactName}}</p>
<p>{{item.contactMobile}}</p>
<p v-if="item.industryCategory!==''" style="color:green">
{{$t('salesModule.HYLB')}}{{item.industryCategory}}</p>
</td>
<td>
<p class="fz12 over_ellipsis" style="width: 100%;">{{item.orderTypeName}}</p>
</td>
<td class="fz12">
<p style="max-width: 160px;display: block;" class="over_ellipsis" :title="item.lineName">
<span>{{item.lineName}}</span>
</p>
<p style="max-width: 160px;display: block;" class="over_ellipsis" :title="item.ltName">{{item.ltName}}</p>
</td>
<td>
{{item.guestNum}}/{{item.ySeatNum>0? item.ySeatNum+'Y ':''}}{{item.eSeatNum>0? item.eSeatNum+'E ':''}}{{item.fSeatNum>0? item.fSeatNum+'F ':''}}
<br />
<span v-if="item.refuseVisaNum>0" style="color:red">
({{$t('salesModule.RefuseQ')}}{{item.refuseVisaNum}}{{$t('salesModule.PeoPle')}})
</span>
</p>
<span style="display: block;font-size: 14px;color: #333333">{{$t('salesModule.RoomInfo')}}<span v-if="item.oneSex>0" style="color: #e95252">{{item.oneSex==1?'单男':'单女'}}</span>{{item.orderGuestHouseStr}}</span>
</td>
</tr>
<tr>
<td colspan="4" class="groupTourOrder_remarks" style="height: 40px;">
<div>
<div><span>{{$t('pub.pubRemark')}}</span>
<span v-if="item.tsIdList.length>0">{{$t('salesModule.ComplaintNum')}}
<a class="underline" v-for="ts in item.tsIdList" href="javascript:void(0);" @click="goUrlTS('ComplaintsDetail',ts,item.orderId,'投诉详情')">{{ts}} </a> ;
</td>
<td style="color:#FF9C00">{{item.tC_Price}}</td>
<td style="color:#FF9C00">{{item.unit_Price}}</td>
<td>
<p style="color:#FF9C00">{{item.preferPrice}}</p>
</td>
<td>
<span v-if='item.dueInMoney==0' style="cursor: pointer;">{{item.income}}</span>
<span v-if='item.dueInMoney!=0' style="cursor: pointer;color: #e95252;">{{item.income}}</span>
</td>
<!-- 优惠 -->
<td>
<el-popover style='padding: 0;' width="600" trigger="click">
<div class="personNolayer">
<table border="0" cellspacing="1" cellpadding="1">
<tr>
<th>{{$t('active.cl_couponName')}}</th>
<th>{{$t('active.cl_couponType')}}</th>
<th>{{$t('active.cl_dkjezk')}}</th>
<th>{{$t('active.cl_sytiaojian')}}</th>
<th>{{$t('active.cl_huoqufangshi')}}</th>
<th>{{$t('active.cl_hqriqi')}}</th>
</tr>
<tr v-if='item.couponAllotList.length>0' v-for="(item2,index2) in item.couponAllotList" :key="index2">
<td>{{item2.couponsName}}</td>
<td>
<span v-if="item2.couponsType==1">{{$t('active.cl_dyquan')}}</span>
<span v-if="item2.couponsType==2">{{$t('active.cl_zkquan')}}</span>
</td>
<td>{{item2.denomination}}</td>
<td>{{$t('active.cl_man')}}{{item2.useCondition}}{{$t('active.cl_keyong')}}</td>
<td>
<span v-if="item2.accessType==1">{{$t('active.cl_choujiang')}}</span>
<span v-else></span>
</td>
<td>{{item2.acessDate}}</td>
</tr>
<tr v-if='item.couponAllotList.length==0'>
<td colspan="6" align="center">{{$t('system.content_noData')}}</td>
</tr>
</table>
</div>
<span style="cursor: pointer;color: #e95252;text-decoration: underline;"
slot="reference">{{moneyFormat(item.discountMoney)}}</span>
</el-popover>
</td>
<td>
<el-popover v-if="item.customerId || item.customerId==0" style='padding: 0;' width="600" trigger="click">
<div class="personNolayer">
<table border="0" cellspacing="1" cellpadding="1">
<tr>
<th>{{$t('fnc.jine')}}</th>
<th>{{$t('admin.admin_type')}}</th>
<th>{{$t('system.label_info')}}</th>
<th>{{$t('salesModule.Time')}}<span @click="goUrlHappy(item)" style="cursor: pointer;" colspan="4"
align="center">{{$t('salesModule.LookMore')}}</span></th>
</tr>
<tr v-for="(item2,index2) in redBagList" :key="index2">
<td>{{item2.Money}}</td>
<td>
{{item2.Type==1?"收入":"折扣"}}
</td>
<td>{{item2.Description}}</td>
<td>{{item2.UpdateTime}}</td>
</tr>
<tr v-if='redBagList.length==0'>
<td colspan="4" align="center">{{$t('system.content_noData')}}</td>
</tr>
<tr>
<!-- <td @click="goUrlHappy(item)" style="cursor: pointer;" colspan="4" align="center">查看更多</td> -->
</tr>
</table>
</div>
<span @click="getRedBag(item)" style="cursor: pointer;color: #e95252;text-decoration: underline;"
slot="reference">{{item.redEnvelopeMoney}}</span>
</el-popover>
<span v-else style="color: #e95252;text-decoration: underline;">{{item.redEnvelopeMoney}}</span>
</td>
<td v-if="item.tipMoney">{{item.tipMoney}}</td>
<td v-else>0.00</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 v-if="item.isChargeLossOrders==1" class="fz12" style="color: #e95252">{{$t('fnc.shousun')}}</td>
<td v-else class="fz12" :style="item.orderState===3?'color: #e95252;':''">{{item.statsstr}}</td>
<td v-if="isEditOrderCreate==1">
<button class="normalBtn" style="margin-left:0;width:95px;padding:0"
@click="getSalerInfo(item)">{{$t('salesModule.UpdateYWY')}}</button>
</td>
</tr>
<tr style="height:20px">
<td :colspan="isEditOrderCreate==1?17:16" class="RL_Order" style="height:20px">
<span style="font-size: 14px;color: #333333">{{$t('salesModule.MD')}}:</span>
<span v-for="(childItem) in item.guestList"
style="font-size: 14px;color: blue">{{childItem.userName}}&nbsp;&nbsp;</span>
<p v-if="item.cancelGuestList && item.cancelGuestList.length>0">
<span class="">{{$t('salesModule.CancelOrder')}}:</span>
<span class="RL-redType RL-remarkCon">
<span style="color: red;" v-for="(childItem) in item.cancelGuestList">{{childItem.userName}}
&nbsp;&nbsp;</span>
</span>
</p>
<span style="display: block;font-size: 14px;color: #333333">{{$t('salesModule.RoomInfo')}}<span
v-if="item.oneSex>0"
style="color: #e95252">{{item.oneSex==1?'单男':'单女'}}</span>{{item.orderGuestHouseStr}}</span>
</td>
</tr>
<tr>
<td colspan="4" class="groupTourOrder_remarks" style="height: 40px;">
<div>
<div><span>{{$t('pub.pubRemark')}}</span>
<span v-if="item.tsIdList.length>0">{{$t('salesModule.ComplaintNum')}}
<a class="underline" v-for="ts in item.tsIdList" href="javascript:void(0);"
@click="goUrlTS('ComplaintsDetail',ts,item.orderId,'投诉详情')">{{ts}} </a> ;
</span>
<p><span v-if='item.clientSource==1&&item.brandName!=""'>{{item.brandName}}{{$t('fnc.dingdan')}} {{item.platformOrder}};</span>{{item.remarks}}</p>
<p><span v-if='item.clientSource==1&&item.brandName!=""'>{{item.brandName}}{{$t('fnc.dingdan')}}
{{item.platformOrder}};</span>{{item.remarks}}</p>
</div>
<div>
<span>{{item.remarksName}}&ensp;{{item.rematksTime}}</span>
<el-popover width="600" placement="bottom-end" trigger="click">
<div class="groupTourOrder_remarks_popover">
<div>{{$t('fnc.lsbeizhu')}}</div>
<p v-if="item.remarksList.length !== 0" v-for="(item2, index2) in item.remarksList" :key="index2">
<span>{{item2.remarks}}</span>
<span>{{item2.createByName}} <span style="color: #666666;">{{item2.createDate}}</span></span>
</p>
<span v-if="item.remarksList.length === 0">{{$t('system.content_noData')}}</span>
</div>
<el-button slot="reference" icon="iconfont icon-gengduo"
style="padding:0px;border:none;background-color:transparent;" class="groupTourOrder_remarks_btn">
</el-button>
</el-popover>
</div>
</div>
</td>
<td colspan="4" class="groupTourOrder_remarks" style="height: 40px;">
<div>
<span>{{item.remarksName}}&ensp;{{item.rematksTime}}</span>
<el-popover width="600" placement="bottom-end" trigger="click">
<div class="groupTourOrder_remarks_popover">
<div>{{$t('fnc.lsbeizhu')}}</div>
<p v-if="item.remarksList.length !== 0" v-for="(item2, index2) in item.remarksList" :key="index2">
<span>{{item2.remarks}}</span>
<span>{{item2.createByName}} <span style="color: #666666;">{{item2.createDate}}</span></span>
</p>
<span v-if="item.remarksList.length === 0">{{$t('system.content_noData')}}</span>
</div>
<el-button slot="reference" icon="iconfont icon-gengduo" style="padding:0px;border:none;background-color:transparent;"
class="groupTourOrder_remarks_btn"></el-button>
</el-popover>
<div>
<span>{{$t('Operation.Op_remark')}}:</span>
<p>{{item.oP_Remarks ? item.oP_Remarks : '无'}}</p>
</div>
</div>
</div>
</td>
<td colspan="4" class="groupTourOrder_remarks" style="height: 40px;">
<div>
</td>
<td colspan="4" class="groupTourOrder_SpecialAPP" stysle="height: 40px;">
<div>
<span>{{$t('Operation.Op_remark')}}:</span>
<p>{{item.oP_Remarks ? item.oP_Remarks : '无'}}</p>
</div>
</div>
</td>
<td colspan="4" class="groupTourOrder_SpecialAPP" stysle="height: 40px;">
<div>
特价申请函:
特价申请函:
<template v-if="item.orderspecialofferId === 0">
<span class="font-color-blur" >未申请</span>
<span class="font-color-blur">未申请</span>
</template>
<template v-else>
<span class="font-color-red" v-if="item.orderspecialofferState === -1">拒绝</span>
......@@ -430,50 +473,56 @@
<div class="font-color-red" v-if="item.orderspecialofferId !== 0">
审批说明:<span>{{item.orderspecialofferReason}}</span>
</div>
</td>
<td colspan="5" class="groupTourOrder_tickets" style="height: 40px;cursor: pointer;">
<div @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', item)">
<div>{{$t('fnc.skdanju')}}:</div>
<div>
</td>
<td colspan="5" class="groupTourOrder_tickets" style="height: 40px;cursor: pointer;">
<div @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', item)">
<div>{{$t('fnc.skdanju')}}:</div>
<div>
<span v-for="(item2,index2) in item.financeList" :key="index2">
<span v-if="item2.colorState===1" class="groupTourOrder_tickets_blue">{{item2.frID}}</span>
<span v-else-if="item2.colorState===2" class="groupTourOrder_tickets_green">{{item2.frID}}</span>
<span v-else-if="item2.colorState===3" class="groupTourOrder_tickets_red">{{item2.frID}}</span>
<span v-else-if="item2.colorState===4" class="groupTourOrder_tickets_black">{{item2.frID}}</span>
</span>
<span v-if="item.financeList.length===0" style="cursor: default;">{{$t('system.content_noData')}}</span>
<span v-if="item.financeList.length===0" style="cursor: default;">{{$t('system.content_noData')}}</span>
</div>
</div>
</div>
<div @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', item)">
<div>{{$t('fnc.fkdanju')}}:</div>
<div>
<div @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', item)">
<div>{{$t('fnc.fkdanju')}}:</div>
<div>
<span v-for="(item2,index2) in item.refundFinanceList" :key="index2">
<span v-if="item2.colorState===1" class="groupTourOrder_tickets_blue">{{item2.frID}}</span>
<span v-else-if="item2.colorState===2" class="groupTourOrder_tickets_green">{{item2.frID}}</span>
<span v-else-if="item2.colorState===3" class="groupTourOrder_tickets_red">{{item2.frID}}</span>
<span v-else-if="item2.colorState===4" class="groupTourOrder_tickets_black">{{item2.frID}}</span>
</span>
<span v-if="item.financeList.length===0" style="cursor: default;">{{$t('system.content_noData')}}</span>
<span v-if="item.financeList.length===0" style="cursor: default;">{{$t('system.content_noData')}}</span>
</div>
</div>
</div>
<div>
<div>{{$t('salesModule.Invoice')}}:</div>
<div>
<div>{{$t('salesModule.Invoice')}}:</div>
<div>
<span v-for="(item2,index2) in item.invoiceApplyList" :key="index2">
<span v-if="item2.invoiceApplyState === 6" class="groupTourOrder_tickets_blue" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState === 1 || item2.invoiceApplyState === 3 || item2.invoiceApplyState === 6" class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState === 5 || item2.invoiceApplyState === 4 " class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState === 2" class="groupTourOrder_tickets_black" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-if="item2.invoiceApplyState === 6" class="groupTourOrder_tickets_blue"
@click="goIisDetail(item2.id)">{{item2.id}}</span>
<span
v-else-if="item2.invoiceApplyState === 1 || item2.invoiceApplyState === 3 || item2.invoiceApplyState === 6"
class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState === 5 || item2.invoiceApplyState === 4 "
class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState === 2" class="groupTourOrder_tickets_black"
@click="goIisDetail(item2.id)">{{item2.id}}</span>
</span>
<span v-if="item.invoiceApplyList.length===0" style="cursor: default;">{{$t('system.content_noData')}}</span>
<span v-if="item.invoiceApplyList.length===0"
style="cursor: default;">{{$t('system.content_noData')}}</span>
</div>
</div>
</div>
</td>
</tr>
</td>
</tr>
</tbody>
</table>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" layout="total,prev, pager, next, jumper"
:page-size=msg.pageSize :total=total></el-pagination>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total></el-pagination>
<div class="combottomDiv" v-if="showChangeSales" style="height:200px;">
<updateSalesMan @closeUpdiv="closeSalseDiv" @getList="getList" :subInfo="subInfo"></updateSalesMan>
</div>
......@@ -501,14 +550,15 @@
}
return obj;
},
redBagList:[],
happy:false,
redBagList: [],
happy: false,
defaultImg: 'this.src="' + require("../../assets/img/litheader.png") + '"',
currentPage: 1,
total: 0,
loading: false,
msg: {
LineId: "-1",
LineteamId: 0, //系列
RB_Department_Id: null,
CreateBy: "-1",
OrderState: "-1",
......@@ -522,9 +572,9 @@
SellFormEmp: 0,
GroupType: '-1',
TCNUM: '',
BranchId:'-1',
BranchId: '-1',
IsOneDay: '-1',
IsCollectMoney:0,
IsCollectMoney: 0,
IsUseCoupon: '0',
IsUseRedEnvelopeMoney: '0'
},
......@@ -576,20 +626,36 @@
B2BNum: 0
},
ctlxList: [],
showChangeSales:false,
showChangeSales: false,
//订单编号及业务员信息
subInfo:{
CreateBy:'',
OrderId:0
subInfo: {
CreateBy: '',
OrderId: 0
},
userId:0,
userId: 0,
//修改订单业务员1-有权限
isEditOrderCreate:0,
isEditOrderCreate: 0,
};
},
methods: {
goUrlHappy(item){
this.happy=false;
//获取系列列表
getLineTeamList(lineId) {
this.LineTeamList = []
this.apipost(
'team_post_GetList', {
lineID: lineId,
isTOOP: 1
},
res => {
if (res.data.resultCode == 1) {
this.msg.LineteamId = 0;
this.LineTeamList = res.data.data
}
}
)
},
goUrlHappy(item) {
this.happy = false;
this.$router.push({
name: "HappyPassbook",
query: {
......@@ -598,27 +664,25 @@
}
});
},
getRedBag(item){
let msg={
CustomerId:item.customerId,
getRedBag(item) {
let msg = {
CustomerId: item.customerId,
pageIndex: 1,
pageSize: 4,
};
if(item.customerId){
this.apipost('customer_post_GetC_BigRedEnvelopeInfoList',msg, res => {
if (res.data.resultCode == 1) {
this.redBagList = res.data.data.pageData;
} else {
}
}, err => {
})
}else{
this.redBagList =[];
if (item.customerId) {
this.apipost('customer_post_GetC_BigRedEnvelopeInfoList', msg, res => {
if (res.data.resultCode == 1) {
this.redBagList = res.data.data.pageData;
} else {}
}, err => {})
} else {
this.redBagList = [];
}
},
//跳转
goUrlTS (path, id, orderId, title) {
goUrlTS(path, id, orderId, title) {
this.$router.push({
name: path,
query: {
......@@ -642,7 +706,11 @@
obj.description = []
this.$router.push({
name: path,
query: { blank: 'y', tab: name, item: JSON.stringify(obj)}
query: {
blank: 'y',
tab: name,
item: JSON.stringify(obj)
}
});
},
// 结束日期不能大于开始日期
......@@ -658,7 +726,7 @@
this.msg.QEndDate = "";
}
},
// 跳转调查列表
// 跳转调查列表
goInvetig: function (path, tcid, orderId) {
this.$router.push({
name: path,
......@@ -748,7 +816,7 @@
},
linkageDepartment() { //联动部门
this.msg.RB_Department_Id = null;
if(this.msg.BranchId!=0){
if (this.msg.BranchId != 0) {
this.getDepartmentMsg.RB_Branch_Id = this.msg.BranchId;
}
this.getDepartment();
......@@ -804,27 +872,31 @@
}, err => {})
},
//点击修改业务员
getSalerInfo(item){
getSalerInfo(item) {
this.subInfo.CreateBy = item.createBy;
this.subInfo.OrderId = item.orderId;
this.showChangeSales = true;
},
//关闭修改业务员
closeSalseDiv(){
this.showChangeSales=false;
closeSalseDiv() {
this.showChangeSales = false;
},
goIisDetail: function (id) { // 跳转发票详情页面
goIisDetail: function (id) { // 跳转发票详情页面
this.$router.push({
name: 'invoicesManagerDetail',
query: { id: id,noDetail: 1,blank: "y",}
query: {
id: id,
noDetail: 1,
blank: "y",
}
});
},
// 获取修改业务员权限
GetEditOrderCreateByAuth() {
var actionCode = this.$AuthCode.EditOrderCreateBy;
var actionCode = this.$AuthCode.EditOrderCreateBy;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.isEditOrderCreate = 1;
this.isEditOrderCreate = 1;
}
});
},
......@@ -868,12 +940,6 @@
</script>
<style>
/* .personNolayer table td{
background-color: #ededed;
height: 34px;
text-indent: 15px;
}
*/
.personNolayer p {
height: 28px;
line-height: 28px;
......@@ -916,11 +982,12 @@
padding: 9px 15px;
}
.personNolayer table th{
background-color: #ededed;
.personNolayer table th {
background-color: #ededed;
height: 34px;
text-indent: 15px;
}
}
.personNolayer table td {
background-color: #ffffff;
padding: 9px 15px;
......@@ -936,14 +1003,16 @@
padding: 9px 15px;
}
.groupts .underline{
.groupts .underline {
text-decoration: underline;
margin: 5px;
text-align: center;
}
.color_red_order{
.color_red_order {
color: #e95252 !important;
}
.enrollTotalSearch {
width: 100%;
min-height: auto;
......@@ -1013,12 +1082,15 @@
background: #fff;
text-align: left;
}
.enrollTotalSearchTable tbody tr:last-child {
border-bottom: 2px solid #333;
}
.enrollTotalSearchTable tr:first-child td:first-child {
border-bottom: 2px solid #333;
}
.enrollTotalSearchTable tr td {
height: 80px;
padding: 10px;
......
......@@ -16,7 +16,7 @@
font-size: 12px;
color: #666;
margin: 20px 0 0px 0;
}
.groupTourOrderSearch li>span {
......@@ -735,30 +735,34 @@
margin: 5px;
text-align: center;
}
.GO_Contract{
color:blue;
.GO_Contract {
color: blue;
display: inline-block;
cursor: pointer;
margin-right:20px;
margin-right: 20px;
}
.needfenshu{
.needfenshu {
margin-top: 10px;
display: flex;
align-items: center;
}
.SQguestList{
.SQguestList {
display: flex;
flex-wrap: wrap;
}
.SQguestList label{
.SQguestList label {
display: inline-block;
min-width: 100px;
display: flex;
align-items: center;
margin-top: 8px;
}
</style>
</style>
<template>
<div class="flexOne groupts" style="min-width: 1200px;">
<!-- 修改信息 -->
......@@ -780,28 +784,31 @@
</el-select>
</el-form-item>
<el-form-item :label="$t('fnc.ctleixing')" prop="GroupType">
<el-select v-model='addMsg.GroupType' filterable :placeholder="$t('pub.pleaseSel')" @change="gettypechange(addMsg.GroupType)">
<el-select v-model='addMsg.GroupType' filterable :placeholder="$t('pub.pleaseSel')"
@change="gettypechange(addMsg.GroupType)">
<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-form-item v-if="addMsg.GroupType == '3'" :label="$t('salesModule.IsUseRoom')" prop="GroupTypeNeedHouse">
<el-switch @change="$forceUpdate()" v-model="addMsg.GroupTypeNeedHouse" active-value="0" inactive-value="1"></el-switch>
<el-switch @change="$forceUpdate()" v-model="addMsg.GroupTypeNeedHouse" active-value="0"
inactive-value="1"></el-switch>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="$t('hotel.suplier_contact')" prop="ContactName" v-show='addMsg.CustomerType==3||addMsg.CustomerType==4'>
<el-form-item :label="$t('hotel.suplier_contact')" prop="ContactName"
v-show='addMsg.CustomerType==3||addMsg.CustomerType==4'>
<el-input v-model='addMsg.ContactName'></el-input>
</el-form-item>
<el-form-item :label="$t('restaurant.res_ContactNumber')" prop="ContactMobile" v-show='addMsg.CustomerType==3||addMsg.CustomerType==4'>
<el-form-item :label="$t('restaurant.res_ContactNumber')" prop="ContactMobile"
v-show='addMsg.CustomerType==3||addMsg.CustomerType==4'>
<el-input v-model='addMsg.ContactMobile'></el-input>
</el-form-item>
<el-form-item :label="$t('salesModule.CustomerStore')" prop="CustomerId"
v-show="addMsg.CustomerType==1||addMsg.CustomerType==2||addMsg.CustomerType==''">
<el-select v-model='addMsg.CustomerId' filterable :placeholder="$t('pub.pleaseSel')" @change='getSspt'
v-if="addMsg.OrderForm !== 4"
:disabled="true">
v-if="addMsg.OrderForm !== 4" :disabled="true">
<el-option v-for="item in khmdList" :label='item.customerName' :value='item.customerId'
:key='item.customerId'>
</el-option>
......@@ -818,7 +825,8 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('salesModule.IsLianYn')" prop="IsIntermodal" v-show="addMsg.DepartureCityId!=SetOutCityId">
<el-form-item :label="$t('salesModule.IsLianYn')" 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>
......@@ -836,7 +844,8 @@
</el-option>
</el-select>
</el-form-item>
<el-form-item :label="$t('salesModule.IsLianYn')" prop="IsReturnIntermodal" v-show="addMsg.ReturnArriveCityId!=reOutCityId">
<el-form-item :label="$t('salesModule.IsLianYn')" 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>
......@@ -851,22 +860,24 @@
<el-form-item :label="$t('salesModule.TeamPrice')" prop="TC_Price">
<el-input v-model='addMsg.TC_Price' :disabled="true"></el-input>
</el-form-item>
<el-form-item :label="$t('salesModule.StartLY')" v-show='addMsg.IsIntermodal==1&&addMsg.DepartureCityId!=SetOutCityId'>
<el-form-item :label="$t('salesModule.StartLY')"
v-show='addMsg.IsIntermodal==1&&addMsg.DepartureCityId!=SetOutCityId'>
<el-input v-model='stratPrice' v-show='stratPriceShow' :disabled="true"></el-input>
<span class="colorE95252" v-show='!stratPriceShow'>{{$t('pub.NoPrice')}}</span>
</el-form-item>
<el-form-item :label="$t('salesModule.BackLY')" v-show='addMsg.IsReturnIntermodal==1&&addMsg.ReturnArriveCityId!=reOutCityId'>
<el-form-item :label="$t('salesModule.BackLY')"
v-show='addMsg.IsReturnIntermodal==1&&addMsg.ReturnArriveCityId!=reOutCityId'>
<el-input v-model='returnPrice' v-show='returnPriceShow' :disabled="true"></el-input>
<span class="colorE95252" v-show='!returnPriceShow'>{{$t('pub.NoPrice')}}</span>
</el-form-item>
</el-col>
<el-col :span="4">
<el-form-item :label="$t('fnc.cjdanjia')" prop="Unit_Price" v-if="HightUnitPrice === '2'">
<el-select v-model='addMsg.Unit_Price' filterable :placeholder="$t('pub.pleaseSel')" @change="getTotalPrice()">
<el-select v-model='addMsg.Unit_Price' filterable :placeholder="$t('pub.pleaseSel')"
@change="getTotalPrice()">
<el-option v-for="(item,index) in Unit_PriceList" :label='item.LessMoney' :value='item.ID' :key='index'>
</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="$t('fnc.cjdanjia')" prop="Unit_Price" v-else>
<el-input v-model='addMsg.Unit_Price' @change="getTotalPrice(3)"></el-input>
......@@ -876,11 +887,9 @@
</el-form-item>
<el-form-item v-show="addMsg.GroupType != 4">
<p v-if="LessMoney==0" style="line-height: 18px; color: #E95252;">{{$t('salesModule.Notice1')}}</p>
<p v-else="LessMoney>0" style="line-height: 18px; color: #E95252;">{{$t('salesModule.Notice2')}}{{LessMoney}}{{$t('salesModule.Notice3')}}</p>
<p v-else="LessMoney>0" style="line-height: 18px; color: #E95252;">
{{$t('salesModule.Notice2')}}{{LessMoney}}{{$t('salesModule.Notice3')}}</p>
</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>
......@@ -923,7 +932,7 @@
@input='getNumber();getHouseNo();getTotalPrice()'></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="4" v-if="addMsg.GroupTypeNeedHouse == '0'">
......@@ -958,14 +967,16 @@
</el-col>
<el-col :span="4">
<el-form-item :label="$t('salesModule.SingleFM')">
<el-radio v-model="addMsg.OneSex" @click.native.prevent="setDanren(1)" :label="1">{{$t('pub.man')}}</el-radio>
<el-radio v-model="addMsg.OneSex" @click.native.prevent="setDanren(2)" :label="2">{{$t('pub.woman')}}</el-radio>
<el-radio v-model="addMsg.OneSex" @click.native.prevent="setDanren(1)" :label="1">{{$t('pub.man')}}
</el-radio>
<el-radio v-model="addMsg.OneSex" @click.native.prevent="setDanren(2)" :label="2">{{$t('pub.woman')}}
</el-radio>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="20">
<el-col :span="4">
<el-form-item :label="$t('salesModule.JQRS')" prop="RefuseVisaNum" >
<el-form-item :label="$t('salesModule.JQRS')" prop="RefuseVisaNum">
<el-input v-model='addMsg.RefuseVisaNum' @keyup.native="checkInteger(addMsg,'RefuseVisaNum')"
@input='getTotalPrice()'></el-input>
</el-form-item>
......@@ -1092,7 +1103,8 @@
<el-row :gutter="20">
<el-col :span="4">
<el-form-item :label="$t('salesModule.CustomFrom')" prop="ClientSource">
<el-select v-model='addMsg.ClientSource' :disabled="addMsg.OrderForm!==4 ? true : false" filterable :placeholder="$t('pub.pleaseSel')">
<el-select v-model='addMsg.ClientSource' :disabled="addMsg.OrderForm!==4 ? true : false" filterable
:placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in ddlyList" :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
......@@ -1108,7 +1120,8 @@
</el-col>
<el-col :span="4">
<el-form-item :label="$t('tips.jiaoyifangshi')" prop="TradeWay" v-show='addMsg.ClientSource==1'>
<el-select v-model='addMsg.TradeWay' :disabled="addMsg.OrderForm !== 4 ? true : false" filterable :placeholder="$t('pub.pleaseSel')">
<el-select v-model='addMsg.TradeWay' :disabled="addMsg.OrderForm !== 4 ? true : false" filterable
:placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in jyfsList" :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
......@@ -1257,7 +1270,7 @@
</el-row>
</el-form>
</div>
<!-- 申请优惠-->
<!-- 申请优惠-->
<div class="productQuerybottomLayer ownScrollbarStyle" v-show="SpecialOffer"
style="height: 150px;min-height:200px;">
<p>{{$t('pub.ApplyYH')}}
......@@ -1278,7 +1291,8 @@
<!-- <em style="margin-left: 100px;font-size: 12px !important;color: #606266;" >优惠金额</em>
<el-input v-model='SOMsg.ApplyPrice' type='text' maxlength='20' class='w150' ></el-input> -->
<em style="margin-left: 100px;font-size: 12px !important;color: #606266;">{{$t('salesModule.AdultPeople')}}</em>
<em
style="margin-left: 100px;font-size: 12px !important;color: #606266;">{{$t('salesModule.AdultPeople')}}</em>
<el-select :placeholder="$t('pub.pleaseSel')" v-model="SOMsg.UpdateBy">
<el-option v-for="(item,index) in SuperiorPeople" :label='(item.EmName)' :value='(item.EmployeeId)'
:key="index"></el-option>
......@@ -1293,9 +1307,6 @@
</el-form>
</div>
<div class="groupTourOrderSearch">
<ul>
<li><span><em>{{$t('advmanager.v_line')}}</em>
......@@ -1324,7 +1335,8 @@
<li>
<span>
<em>{{$t('hotel.order_Number')}}</em>
<el-input v-model='msg.tempOrderId' class='w150' @keyup.native="checkInteger(msg,'tempOrderId')" maxlength="8"></el-input>
<el-input v-model='msg.tempOrderId' class='w150' @keyup.native="checkInteger(msg,'tempOrderId')"
maxlength="8"></el-input>
</span>
</li>
<li><span><em>{{$t('scen.sc_ftTime')}}</em>
......@@ -1394,7 +1406,8 @@
</td>
<td width="70">{{$t('salesModule.BMLX')}}</td>
<td>
<el-select v-model='msg.GroupTypeArray' filterable multiple class="multiple_input" :placeholder="$t('pub.pleaseSel')">
<el-select v-model='msg.GroupTypeArray' filterable multiple class="multiple_input"
:placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in ctlxList" :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
......@@ -1413,16 +1426,18 @@
</tr>
<tr>
<td colspan="4">
<input type="button" class="normalBtn" :value="$t('pub.searchBtn')" @click="getList();resetPageIndex()"
style="width: 476px!important;" />
<input type="button" class="normalBtn" :value="$t('pub.searchBtn')"
@click="getList();resetPageIndex()" style="width: 476px!important;" />
</td>
</tr>
</table>
<span slot="reference" style="cursor: pointer;">{{$t('visa.v_gjchaxun')}}<i class="el-icon-caret-bottom"></i></span>
<span slot="reference" style="cursor: pointer;">{{$t('visa.v_gjchaxun')}}<i
class="el-icon-caret-bottom"></i></span>
</el-popover>
</li>
<li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList();resetPageIndex()" />
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')"
@click="getList();resetPageIndex()" />
</li>
</ul>
</div>
......@@ -1492,10 +1507,14 @@
<span>{{$t('fnc.cwdjshuoming')}}</span>
</div>
<p>
<span class="groupTourOrderByTuan_ico"><i style="background-color:#0000ff"></i><span>{{$t('fnc.yidadan')}}</span></span>
<span class="groupTourOrderByTuan_ico"><i style="background-color:#00FF00"></i><span>{{$t('fnc.ptcnyshenhe')}}</span></span>
<span class="groupTourOrderByTuan_ico"><i style="background-color:#FF0000"></i><span>{{$t('fnc.yhcnyshenhe')}}</span></span>
<span class="groupTourOrderByTuan_ico"><i style="background-color:#000000"></i><span>{{$t('fnc.ytongguo')}}</span></span>
<span class="groupTourOrderByTuan_ico"><i
style="background-color:#0000ff"></i><span>{{$t('fnc.yidadan')}}</span></span>
<span class="groupTourOrderByTuan_ico"><i
style="background-color:#00FF00"></i><span>{{$t('fnc.ptcnyshenhe')}}</span></span>
<span class="groupTourOrderByTuan_ico"><i
style="background-color:#FF0000"></i><span>{{$t('fnc.yhcnyshenhe')}}</span></span>
<span class="groupTourOrderByTuan_ico"><i
style="background-color:#000000"></i><span>{{$t('fnc.ytongguo')}}</span></span>
</p>
</div>
</el-col>
......@@ -1544,44 +1563,47 @@
<tbody v-for="(item,index) in list" :key="index">
<tr>
<td rowspan="3">
<p v-if="item.isChargeLossOrders==1" style="color:red">{{$t('fnc.sun')}}</p>
<p class="fbold over_ellipsis" style="width: 100%;cursor:pointer;">
<span :title="item.orderId" @click="goUrlX('团报名清单','groupTourOrderByTuan',item.tcid,item.tcnum)">{{item.orderId}}</span>
<span style="font-weight: 100;text-decoration:underline;cursor:pointer;color: #e95252;" v-if="item.scoreNum >= 0" @click='goInvetig("investigationList", item.tcid, item.orderId)'>(评分{{item.scoreNum}})</span>
<el-tooltip class="item" effect="dark" content="通过小程序确认单报名" placement="top" v-show="item.orderForm==4"> <i class="iconfont icon-xiaochengxu" style="font-size:22px;color:red;"></i></el-tooltip>
<el-tooltip class="item" effect="dark" content="通过B2B确认单报名" placement="top"
v-show="item.isFormB2B ==1"> <i class="iconfont icon-tiaozheng"
style="font-size:22px;color:#297BEF;"></i></el-tooltip>
</p>
<span :title="item.orderId"
@click="goUrlX('团报名清单','groupTourOrderByTuan',item.tcid,item.tcnum)">{{item.orderId}}</span>
<span style="font-weight: 100;text-decoration:underline;cursor:pointer;color: #e95252;"
v-if="item.scoreNum >= 0"
@click='goInvetig("investigationList", item.tcid, item.orderId)'>(评分{{item.scoreNum}})</span>
<el-tooltip class="item" effect="dark" content="通过小程序确认单报名" placement="top" v-show="item.orderForm==4">
<i class="iconfont icon-xiaochengxu" style="font-size:22px;color:red;"></i></el-tooltip>
<el-tooltip class="item" effect="dark" content="通过B2B确认单报名" placement="top" v-show="item.isFormB2B ==1">
<i class="iconfont icon-tiaozheng" style="font-size:22px;color:#297BEF;"></i></el-tooltip>
</p>
<p class="fz12 over_ellipsis" style="width: 100%;text-decoration:underline;cursor:pointer;"
:title="item.alName" @click="goUrlX('产品查询','productQuery',item.tcid,item.tcnum)">{{item.tcnum}}</p>
<p class="fz12 over_ellipsis" style="width: 100%;">{{item.commissionSPeopleName}}</p>
<p style="min-width: 180px;">{{$t('hotel.hotel_StartTeam')}}{{item.startDate}}</p>
<p>{{$t('restaurant.res_oderTime')}}{{item.createDate}}</p>
<p v-if="item.tradeWay ==1">{{item.platformOrder}}</p>
<p v-if='item.commissionMoney' style="color:red">{{$t('salesModule.Commission')}}{{item.commissionMoney}}</p>
<p v-else-if="item.latestCommissionMoney" style="color:red">{{$t('salesModule.Commission')}}{{item.latestCommissionMoney}}</p>
<p v-if='item.commissionMoney' style="color:red">{{$t('salesModule.Commission')}}{{item.commissionMoney}}
</p>
<p v-else-if="item.latestCommissionMoney" style="color:red">
{{$t('salesModule.Commission')}}{{item.latestCommissionMoney}}</p>
<div>
<div style="color:green" v-if="item.commissionMoney==''||item.commissionMoney=='-1'">
<p v-if="item.extraRewardMoney>0">{{$t('salesModule.EWJLJE')}}{{item.extraRewardMoney}}</p>
<p v-if="item.extraDeductMoney>0">{{$t('salesModule.EWKCJE')}}{{item.extraDeductMoney}}</p>
</div>
<div style="color:red" v-else>
<p v-if="item.extraRewardMoney>0">{{$t('salesModule.EWJLJE')}}{{item.extraRewardMoney}}</p>
<p v-if="item.extraDeductMoney>0">{{$t('salesModule.EWKCJE')}}{{item.extraDeductMoney}}</p>
</div>
<div style="color:red">
<p v-if="item.unionExtraMoney!=0">{{$t('salesModule.LYEWFY')}}{{item.unionExtraMoney}}</p>
</div>
<div style="color:green" v-if="item.commissionMoney==''||item.commissionMoney=='-1'">
<p v-if="item.extraRewardMoney>0">{{$t('salesModule.EWJLJE')}}{{item.extraRewardMoney}}</p>
<p v-if="item.extraDeductMoney>0">{{$t('salesModule.EWKCJE')}}{{item.extraDeductMoney}}</p>
</div>
<div style="color:red" v-else>
<p v-if="item.extraRewardMoney>0">{{$t('salesModule.EWJLJE')}}{{item.extraRewardMoney}}</p>
<p v-if="item.extraDeductMoney>0">{{$t('salesModule.EWKCJE')}}{{item.extraDeductMoney}}</p>
</div>
<div style="color:red">
<p v-if="item.unionExtraMoney!=0">{{$t('salesModule.LYEWFY')}}{{item.unionExtraMoney}}</p>
</div>
</div>
</td>
<td>
<p class="fz12 over_ellipsis" style="width: 120px;" :title="item.contactName">{{item.contactName}}</p>
<p class="fz12">{{item.contactMobile}}</p>
<p class="fz12" v-if="item.industryCategory!==''" style="color:green">{{$t('salesModule.HYLB')}}{{item.industryCategory}}</p>
<p class="fz12" v-if="item.industryCategory!==''" style="color:green">
{{$t('salesModule.HYLB')}}{{item.industryCategory}}</p>
</td>
<td>
<p class="fz12 over_ellipsis" style="width: 100%;">{{item.orderTypeName}}</p>
......@@ -1593,46 +1615,16 @@
<p style="max-width: 160px;display: block;" class="over_ellipsis" :title="item.ltName">{{item.ltName}}</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='memberList.length>0' v-for="(item2,index2) in memberList" :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='memberList.length==0'>
<td colspan="5" align="center">暂无数据</td>
</tr>
</table>
</div> -->
<span v-if='item.guestNumStatus==1' style="color:#1AA86B;" class="personNo" slot="reference"
@click="getMembersDetail(item)">{{item.guestNum}}/{{item.ySeatNum>0? item.ySeatNum+'Y ':''}}{{item.eSeatNum>0? item.eSeatNum+'E ':''}}{{item.fSeatNum>0? item.fSeatNum+'F ':''}}</span>
<span v-if='item.guestNumStatus==2' style="color:#E95252;" class="personNo" slot="reference"
@click="getMembersDetail(item)">{{item.guestNum}}/{{item.ySeatNum>0? item.ySeatNum+'Y ':''}}{{item.eSeatNum>0? item.eSeatNum+'E ':''}}{{item.fSeatNum>0? item.fSeatNum+'F ':''}}</span>
<span v-if='item.guestNumStatus==3' style="color:#666;" class="personNo" slot="reference"
@click="getMembersDetail(item)">{{item.guestNum}}/{{item.ySeatNum>0? item.ySeatNum+'Y ':''}}{{item.eSeatNum>0? item.eSeatNum+'E ':''}}{{item.fSeatNum>0? item.fSeatNum+'F ':''}}</span>
<br/>
<span v-if="item.refuseVisaNum>0" style="color:red">
({{$t('salesModule.RefuseQ')}} {{item.refuseVisaNum}}{{$t('sm.person')}})
</span>
<!-- </el-popover> -->
<br />
<span v-if="item.refuseVisaNum>0" style="color:red">
({{$t('salesModule.RefuseQ')}} {{item.refuseVisaNum}}{{$t('sm.person')}})
</span>
</td>
<td style="color:#FF9C00">{{item.tC_Price}}</td>
<td style="color:#FF9C00">{{item.unit_Price}}</td>
......@@ -1699,7 +1691,8 @@
</tr>
</table>
</div>
<span style="cursor: pointer;color: #e95252;text-decoration: underline;" slot="reference">{{item.discountMoney}}</span>
<span style="cursor: pointer;color: #e95252;text-decoration: underline;"
slot="reference">{{item.discountMoney}}</span>
</el-popover>
</td>
<td>
......@@ -1710,10 +1703,11 @@
<th>{{$t('fnc.jine')}}</th>
<th>{{$t('advmanager.v_type')}}</th>
<th>{{$t('system.label_info')}}</th>
<th>{{$t('salesModule.Time')}}<span @click="goUrlHappy(item)" style="cursor: pointer;" colspan="4" align="center">{{$t('salesModule.Time')}}{{$t('salesModule.LookMore')}}</span></th>
<th>{{$t('salesModule.Time')}}<span @click="goUrlHappy(item)" style="cursor: pointer;"
colspan="4" align="center">{{$t('salesModule.Time')}}{{$t('salesModule.LookMore')}}</span>
</th>
</tr>
<tr v-for="(item2,index2) in redBagList"
:key="index2">
<tr v-for="(item2,index2) in redBagList" :key="index2">
<td>{{item2.Money}}</td>
<td>
{{item2.Type==1?"收入":"折扣"}}
......@@ -1726,9 +1720,10 @@
</tr>
</table>
</div>
<span @click="getRedBag(item)" style="cursor: pointer;color: #e95252;text-decoration: underline;" slot="reference">{{item.redEnvelopeMoney}}</span>
<span @click="getRedBag(item)" style="cursor: pointer;color: #e95252;text-decoration: underline;"
slot="reference">{{item.redEnvelopeMoney}}</span>
</el-popover>
<span v-else style="color: #e95252;text-decoration: underline;">{{item.redEnvelopeMoney}}</span>
<span v-else style="color: #e95252;text-decoration: underline;">{{item.redEnvelopeMoney}}</span>
</td>
<td>{{item.refund}}</td>
......@@ -1790,37 +1785,46 @@
<el-tooltip effect="dark" :content="$t('pub.more')" placement="top-start" style="float:left">
<el-popover width='100' trigger="hover">
<div class="groupTourOrder_more">
<div @click="goUrlT('confirmationOrder',item.orderId)">{{$t('salesModule.QRH')}}{{item.operationState === 2 ? '(拒绝)' : item.operationState === 1 ? '(通过)' : item.operationState === 0 ? '(待审核)' : ''}}</div>
<div @click="goUrlT('confirmationOrder',item.orderId)">
{{$t('salesModule.QRH')}}{{item.operationState === 2 ? '(拒绝)' : item.operationState === 1 ? '(通过)' : item.operationState === 0 ? '(待审核)' : ''}}
</div>
<div v-if="isEditOrderCreate==1" @click="getSalerInfo(item)">{{$t('salesModule.UpdateYWY')}}</div>
<div v-if="item.isGuestOk=='1'&&item.outNotice==1" @click="toTrip(item)">{{$t('Operation.Op_teamNotice')}}<span
v-if="item.outNotice==1">(OK)</span><span v-else>({{$t('visa.v_zanding')}})</span></div>
<div v-if="item.orderState!='4'" @click="goUrlP('旅客名单','passengerSaleList',item)">{{$t('salesModule.LKMD')}}</div>
<div v-if="item.isGuestOk=='1'&&item.outNotice==1" @click="toTrip(item)">
{{$t('Operation.Op_teamNotice')}}<span v-if="item.outNotice==1">(OK)</span><span
v-else>({{$t('visa.v_zanding')}})</span></div>
<div v-if="item.orderState!='4'" @click="goUrlP('旅客名单','passengerSaleList',item)">
{{$t('salesModule.LKMD')}}</div>
<div v-if="item.isOrder=='1'&&(item.isHaveFinance=='1'||item.orderState=='1')"
@click='getHouse(item)'>{{$t('salesModule.UpdateRoom')}}
</div>
<div v-if="item.isOrder=='1'&&item.orderState!='4' && TransferMission ==true" @click="transfer(item)">{{$t('salesModule.OrderGroup')}}</div>
<div v-if="item.orderState=='1'||item.orderState=='2'"
@click='setChargeLoss(item)'>
<div v-if="item.isOrder=='1'&&item.orderState!='4' && TransferMission ==true"
@click="transfer(item)">{{$t('salesModule.OrderGroup')}}</div>
<div v-if="item.orderState=='1'||item.orderState=='2'" @click='setChargeLoss(item)'>
<span v-if="item.isChargeLossOrders==1">{{$t('salesModule.LossSheet')}}</span>
<span v-else>{{$t('salesModule.LossReceipt')}}</span>
</div>
<!-- item.confirmFileList.length>0 && ((item.receivableMoney - item.invoiceApplyTotal) > 0) -->
<div v-if='(item.confirmFileList.length>0||item.contractNum.length>0) && ((item.receivableMoney - item.invoiceApplyTotal) > 0) && (qjGroupId==userInfo.RB_Group_id || F_InvoiceManagement)'
@click='goUrlAdd("invoicesManagerAdd", item.orderId, item.tcid, item.customerId, 1)'>{{$t('salesModule.ApplyInvoice')}}</div>
<div
v-if='(item.confirmFileList.length>0||item.contractNum.length>0) && ((item.receivableMoney - item.invoiceApplyTotal) > 0) && (qjGroupId==userInfo.RB_Group_id || F_InvoiceManagement)'
@click='goUrlAdd("invoicesManagerAdd", item.orderId, item.tcid, item.customerId, 1)'>
{{$t('salesModule.ApplyInvoice')}}</div>
<div
@click='Discount(item.tcid),SOMsg.OrderId = item.orderId,SOMsg.OrderUnitPrice = item.unit_Price'>
{{$t('pub.ApplyYH')}}</div>
<div v-if="qjGroupId==userInfo.RB_Group_id || F_Finance_Create"
@click='ShenQingPhoto(item)'>
<div v-if="qjGroupId==userInfo.RB_Group_id || F_Finance_Create" @click='ShenQingPhoto(item)'>
{{$t('salesModule.ApplyPhoto')}}</div>
<div v-if="item.isOrder=='1'&&(item.orderState=='1'||item.orderState=='2'||item.orderState=='3') && item.isCanClear==0"
@click='deleteItem(item)'>{{$t('pub.cancelBtn')}}
<div
v-if="item.isOrder=='1'&&(item.orderState=='1'||item.orderState=='2'||item.orderState=='3') && item.isCanClear==0"
@click='deleteItem(item)'>{{$t('pub.cancelBtn')}}
</div>
<div @click='SpecialAPP(item.tcid, item.orderId, item.orderspecialofferId)'>特价申请函</div>
<div v-if="item.isOrder=='1'&&(item.orderState=='1'||item.orderState=='2'||item.orderState=='3') && item.isCanClear==1" title="如需取消订单清联系OP" style="color:red;">
{{$t('salesModule.OrderSured')}}
<div
v-if="item.isOrder=='1'&&(item.orderState=='1'||item.orderState=='2'||item.orderState=='3') && item.isCanClear==1"
title="如需取消订单清联系OP" style="color:red;">
{{$t('salesModule.OrderSured')}}
</div>
<div v-if="item.scoreNum >= 0" @click='goInvetig("investigationList", item.tcid, item.orderId)'>{{$t('salesModule.LookTourse')}}</div>
<div v-if="item.scoreNum >= 0" @click='goInvetig("investigationList", item.tcid, item.orderId)'>
{{$t('salesModule.LookTourse')}}</div>
</div>
<el-button slot="reference" type="primary"
style='background:#297BEF; border-color:#297BEF;border-top-left-radius: 0;border-bottom-left-radius: 0;'
......@@ -1828,42 +1832,53 @@
</el-popover>
</el-tooltip>
</el-button-group>
<payurlItem v-if="item.commissionSharePeople !== userId && item.airConfirm!=2" :item="item" :showID="showID" :photoF="item.photoNum>0"
v-show="item.orderState!='4'&&item.orderState!='3' && (qjGroupId==userInfo.RB_Group_id || F_Finance_Create)" v-on:childByValue="childByValue"></payurlItem>
<payurlItem v-if="item.commissionSharePeople !== userId && item.airConfirm!=2" :item="item"
:showID="showID" :photoF="item.photoNum>0"
v-show="item.orderState!='4'&&item.orderState!='3' && (qjGroupId==userInfo.RB_Group_id || F_Finance_Create)"
v-on:childByValue="childByValue"></payurlItem>
</td>
</tr>
<tr style="height:20px">
<td colspan="17" class="RL_Order" style="height:20px">
<span class="RL-remarkTitle" v-if="item.guestList.length>0">{{$t('salesModule.MD')}}:</span>
<span class="RL-remarkTitle" v-if="item.guestList.length>0">{{$t('salesModule.MD')}}:</span>
<span class="RL-redType RL-remarkCon" v-if="item.guestList.length>0">
<span v-for="(childItem) in item.guestList" style="color: blue">{{childItem.userName}} <span v-if="childItem.isApplyPhoto == 1" style="color:red">({{$t('salesModule.Zhao')}})</span> &nbsp;&nbsp;</span>
<span v-if="item.photoNum>0">({{$t('salesModule.NoPhoto')}} {{item.photoNum}}{{$t('salesModule.Fen')}})</span>
<span v-for="(childItem) in item.guestList" style="color: blue">{{childItem.userName}} <span
v-if="childItem.isApplyPhoto == 1" style="color:red">({{$t('salesModule.Zhao')}})</span>
&nbsp;&nbsp;</span>
<span v-if="item.photoNum>0">({{$t('salesModule.NoPhoto')}}
{{item.photoNum}}{{$t('salesModule.Fen')}})</span>
</span>
<p v-if="item.cancelGuestList.length>0">
<span class="" >{{$t('salesModule.CancelOrder')}}:</span>
<span class="">{{$t('salesModule.CancelOrder')}}:</span>
<span class="RL-redType RL-remarkCon">
<span style="color: red;" v-for="(childItem) in item.cancelGuestList">{{childItem.userName}} &nbsp;&nbsp;</span>
<span style="color: red;" v-for="(childItem) in item.cancelGuestList">{{childItem.userName}}
&nbsp;&nbsp;</span>
</span>
</p>
<span style="display: block">{{$t('salesModule.RoomInfo')}}<span v-if="item.oneSex>0" style="color: #e95252">({{item.oneSex==1?'单男':'单女'}})</span>:{{item.orderGuestHouseStr}}</span>
<span style="display: block">{{$t('salesModule.RoomInfo')}}<span v-if="item.oneSex>0"
style="color: #e95252">({{item.oneSex==1?'单男':'单女'}})</span>:{{item.orderGuestHouseStr}}</span>
<div>
<span v-if="item.opTipMoney==''&&item.tipMoney!=''" style="color:red">({{$t('fnc.xiaofei')}}:{{item.tipMoney}})</span>
<span v-if="item.opTipMoney!=''" style="color:red">
({{$t('fnc.xiaofei')}}:{{item.opTipMoney}})
<span>{{$t('salesModule.Docments')}}:</span>
<span @click="gourlTip('FinancialDocumentsDetail',id)" style="text-decoration:underline;color:blue;cursor:pointer" v-for="(id,i) in item.tipFrId" :key="i">{{id}}</span>
<span v-if="item.opTipMoney==''&&item.tipMoney!=''"
style="color:red">({{$t('fnc.xiaofei')}}:{{item.tipMoney}})</span>
<span v-if="item.opTipMoney!=''" style="color:red">
({{$t('fnc.xiaofei')}}:{{item.opTipMoney}})
<span>{{$t('salesModule.Docments')}}:</span>
<span @click="gourlTip('FinancialDocumentsDetail',id)"
style="text-decoration:underline;color:blue;cursor:pointer" v-for="(id,i) in item.tipFrId"
:key="i">{{id}}</span>
</span>
</span>
</div>
<div v-if="(item.contractNum.length==0&&item.confirmFileList.length==0)&&(qjGroupId==userInfo.RB_Group_id||F_ContractManagement)">
<div
v-if="(item.contractNum.length==0&&item.confirmFileList.length==0)&&(qjGroupId==userInfo.RB_Group_id||F_ContractManagement)">
<span class="GO_Contract" @click="goContract(item,{})">{{$t('salesModule.GetContract')}}</span>
</div>
<div v-else>
<template v-if="item.contractNum&&item.contractNum.length>0">
<span v-for="sItem in item.contractNum" class="GO_Contract" @click="goContract(item,sItem)">
{{sItem.client_Name+''+sItem.contractNum}}
{{sItem.client_Name+''+sItem.contractNum}}
</span>
</template>
</div>
......@@ -1909,9 +1924,9 @@
</td>
<td colspan="4" class="groupTourOrder_SpecialAPP" stysle="height: 40px;">
<div>
特价申请函:
特价申请函:
<template v-if="item.orderspecialofferId === 0">
<span class="font-color-blur" >未申请</span>
<span class="font-color-blur">未申请</span>
</template>
<template v-else>
<span class="font-color-red" v-if="item.orderspecialofferState === -1">拒绝</span>
......@@ -1937,7 +1952,8 @@
<span v-else-if="item2.colorState===4" class="groupTourOrder_tickets_black">{{item2.frID}}</span>
<!-- @click="goUrl('财务单据','FinancialDocumentsDetail',item2.frID,'')" -->
</span>
<span v-if="item.financeList.length===0" style="cursor: default;">{{$t('system.content_noData')}}</span>
<span v-if="item.financeList.length===0"
style="cursor: default;">{{$t('system.content_noData')}}</span>
</div>
</div>
<div @click="goUrlSFD('SalesFinancialDetail', '销售财务单据', item)">
......@@ -1949,7 +1965,8 @@
<span v-else-if="item2.colorState===3" class="groupTourOrder_tickets_red">{{item2.frID}}</span>
<span v-else-if="item2.colorState===4" class="groupTourOrder_tickets_black">{{item2.frID}}</span>
</span>
<span v-if="item.refundFinanceList.length===0" style="cursor: default;">{{$t('system.content_noData')}}</span>
<span v-if="item.refundFinanceList.length===0"
style="cursor: default;">{{$t('system.content_noData')}}</span>
</div>
</div>
<div>
......@@ -1966,7 +1983,8 @@
<span v-else-if="item2.invoiceApplyState === 2" class="groupTourOrder_tickets_black"
@click="goIisDetail(item2.id)">{{item2.id}}</span>
</span>
<span v-if="item.invoiceApplyList.length===0" style="cursor: default;">{{$t('system.content_noData')}}</span>
<span v-if="item.invoiceApplyList.length===0"
style="cursor: default;">{{$t('system.content_noData')}}</span>
</div>
</div>
</td>
......@@ -1983,22 +2001,20 @@
<el-dialog custom-class='w450' title="特价申请函" :visible.sync="SpecialAppShow" center>
<el-form :model="SpecialAppMsg" label-width="80px">
<el-form-item label="审核人">
<el-select filterable v-model="SpecialAppMsg.UpdateBy" :placeholder="$t('pub.pleaseSel')">
<el-option
v-for="item in employeeList"
:label="item.EmName"
:value="item.EmployeeId"
:key="item.EmployeeId">
</el-option>
</el-select>
<el-select filterable v-model="SpecialAppMsg.UpdateBy" :placeholder="$t('pub.pleaseSel')">
<el-option v-for="item in employeeList" :label="item.EmName" :value="item.EmployeeId"
:key="item.EmployeeId">
</el-option>
</el-select>
</el-form-item>
<el-form-item label="申请说明">
<el-input type="textarea" v-model="SpecialAppMsg.ApplyReason"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="SpecialAppShow=false,SpecialAppMsg.UpdateBy = '',SpecialAppMsg.ApplyReason = ''">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="SpecialAppPost">{{$t('pub.sureBtn')}}</button>
<button class="hollowFixedBtn"
@click="SpecialAppShow=false,SpecialAppMsg.UpdateBy = '',SpecialAppMsg.ApplyReason = ''">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="SpecialAppPost">{{$t('pub.sureBtn')}}</button>
</div>
</el-dialog>
<div class="groupTourOrder_transfer" v-show="transferData.show">
......@@ -2043,15 +2059,17 @@
<label><input type="checkbox" v-model="SQcheckdAll">{{$t('system.table_chekAll')}}</label>
</div>
<div class="SQguestList">
<label v-for="item in SQguestList"><input type="checkbox" v-model="item.check">{{item.userName}}({{item.sexStr}})</label>
<label v-for="item in SQguestList"><input type="checkbox"
v-model="item.check">{{item.userName}}({{item.sexStr}})</label>
</div>
<div class="needfenshu">
<label>{{$t('salesModule.NeedFen')}}:</label><el-input type="number" v-model="SQPhotoNum" class="w200"></el-input>
<label>{{$t('salesModule.NeedFen')}}:</label>
<el-input type="number" v-model="SQPhotoNum" class="w200"></el-input>
</div>
<p style="color: red">{{$t('salesModule.ZhuMeiren')}}</p>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="ShenQingPhotoShow=false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="SQPhoto">{{$t('pub.sureBtn')}}</button>
<button class="hollowFixedBtn" @click="ShenQingPhotoShow=false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="SQPhoto">{{$t('pub.sureBtn')}}</button>
</div>
</el-dialog>
</div>
......@@ -2075,9 +2093,9 @@
ID: 0,
},
//是否有修改业务员权限,1-有
isEditOrderCreate:0,
happy:false,
redBagList:[],
isEditOrderCreate: 0,
happy: false,
redBagList: [],
// 修改应收总额
Ysze: false,
addMsg_form: {},
......@@ -2185,7 +2203,7 @@
BackCityTime: '',
CommissionSharePeople: '-1',
CommissionShareMoney: '0',
OneSex:0
OneSex: 0
},
employeeMsg: {
BranchId: '-1',
......@@ -2259,7 +2277,7 @@
ContactName: '',
CustomerId: '-1',
GroupType: '-1',
GroupTypeArray:[],
GroupTypeArray: [],
OrderSource: '-1',
CStartDate: '',
CEndDate: '',
......@@ -2350,24 +2368,24 @@
OrderUnitPrice: 0
},
SuperiorPeople: [],
TransferMission:'',//订单转团权限
Unit_Price:0,
goLVurl:{ //跳转到旅客页面的参数
orderId:'',
tcid:'',
tcnum:'',
isOrder:'',
TransferMission: '', //订单转团权限
Unit_Price: 0,
goLVurl: { //跳转到旅客页面的参数
orderId: '',
tcid: '',
tcnum: '',
isOrder: '',
},
ShenQingPhotoShow: false,
SQguestList: [],
SQcheckdAll: true,
SQPhotoNum: '',
SQOrderId: '',
F_InvoiceManagement:false,//发票权限
qjGroupId:-1,
F_Finance_Create:false,//制单权限
F_ContractManagement:false, //合同权限
userInfo:{},
F_InvoiceManagement: false, //发票权限
qjGroupId: -1,
F_Finance_Create: false, //制单权限
F_ContractManagement: false, //合同权限
userInfo: {},
}
},
components: {
......@@ -2389,41 +2407,42 @@
}
return x1 + x2
}
},watch:{
},
watch: {
SQcheckdAll(val) {
this.checkdAll(val)
}
},
methods: {
GetSupperOrderEditAuth() {
var actionCode = this.$AuthCode.F_InvoiceManagement;
var actionCodeNew = this.$AuthCode.F_Finance_Create;
var actiionContract = this.$AuthCode.F_ContractManagement;
// 发票
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_InvoiceManagement = true;
}
});
// 制单权限
this.CheckUserAuth(actionCodeNew, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_Finance_Create = true;
}
});
// 合同
this.CheckUserAuth(actiionContract, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_ContractManagement = true;
}
});
var actionCode = this.$AuthCode.F_InvoiceManagement;
var actionCodeNew = this.$AuthCode.F_Finance_Create;
var actiionContract = this.$AuthCode.F_ContractManagement;
// 发票
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_InvoiceManagement = true;
}
});
// 制单权限
this.CheckUserAuth(actionCodeNew, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_Finance_Create = true;
}
});
// 合同
this.CheckUserAuth(actiionContract, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_ContractManagement = true;
}
});
},
SpecialAppPost(){
},
SpecialAppPost() {
if (this.SpecialAppMsg.ApplyReason === '') {
return this.$message.error('请填写申请说明')
}
if (this.SpecialAppMsg.UpdateBy === ''){
if (this.SpecialAppMsg.UpdateBy === '') {
return this.$message.error('请选择审核人')
}
this.apipost('sellorder_get_AddOrderSpecialOffer', this.SpecialAppMsg, res => {
......@@ -2432,25 +2451,25 @@
this.getList()
this.SpecialAppShow = false
}
},null)
}, null)
},
SpecialAPP(tcid, orderId, ID){
SpecialAPP(tcid, orderId, ID) {
this.SpecialAppMsg.OrderId = orderId
this.SpecialAppShow = true
this.SpecialAppMsg.ID = ID
},
SQPhoto(){
SQPhoto() {
let checkID = []
this.SQguestList.map(x=>{
this.SQguestList.map(x => {
if (x.check) {
checkID.push(x.guestId)
}
})
if(checkID.length < 1) {
if (checkID.length < 1) {
this.$message.error('请选择旅客!')
return
}
if(!this.SQPhotoNum) {
if (!this.SQPhotoNum) {
this.$message.error('请输入份数!')
return
}
......@@ -2459,46 +2478,46 @@
PhotoNum: this.SQPhotoNum,
OrderId: this.SQOrderId,
}
this.apipost('sellorder_get_SetOrderGuestPhoto',msg, res => {
this.apipost('sellorder_get_SetOrderGuestPhoto', msg, res => {
if (res.data.resultCode == 1) {
this.getList()
this.ShenQingPhotoShow = false
}
},null)
}, null)
},
checkdAll(val){
checkdAll(val) {
if (val) {
this.SQguestList.map(x=>{
this.SQguestList.map(x => {
x.check = true
})
} else {
this.SQguestList.map(x=>{
this.SQguestList.map(x => {
x.check = false
})
}
this.SQguestList = this.SQguestList
this.$forceUpdate()
},
ShenQingPhoto(item){
ShenQingPhoto(item) {
if (item.guestList.length < 1) {
this.$message.error('暂无旅客,请添加旅客后再尝试申请!')
return
}
item.guestList.map(x=>{
x.check = true
item.guestList.map(x => {
x.check = true
})
this.SQguestList = item.guestList
this.SQOrderId = item.orderId
this.ShenQingPhotoShow = true
},
closeChangeMachie(done) { // 弹=窗口关闭
closeChangeMachie(done) { // 弹=窗口关闭
done();
},
setDanren(e){
setDanren(e) {
e === this.addMsg.OneSex ? this.addMsg.OneSex = 0 : this.addMsg.OneSex = e
},
gourlTip(path,id){
gourlTip(path, id) {
this.$router.push({
name: path,
query: {
......@@ -2508,20 +2527,20 @@
});
},
//跳转至领取合同
goContract(item,sItem){
goContract(item, sItem) {
let routeData = this.$router.resolve({
name: 'TravelContractNew',
query: {
TCID: item.tcid,
guestId:sItem.guestId,
orderID:item.orderId,
guestId: sItem.guestId,
orderID: item.orderId,
blank: 'y'
}
})
window.open(routeData.href, '_blank')
},
goUrlHappy(item){
this.happy=false;
goUrlHappy(item) {
this.happy = false;
this.$router.push({
name: "HappyPassbook",
query: {
......@@ -2530,25 +2549,23 @@
}
});
},
getRedBag(item){
let msg={
CustomerId:item.customerId,
getRedBag(item) {
let msg = {
CustomerId: item.customerId,
pageIndex: 1,
pageSize: 4,
};
if(item.customerId){
this.apipost('customer_post_GetC_BigRedEnvelopeInfoList',msg, res => {
this.happy=true;
if (res.data.resultCode == 1) {
this.redBagList = res.data.data.pageData;
} else {
}
}, err => {
})
}else{
this.redBagList =[];
if (item.customerId) {
this.apipost('customer_post_GetC_BigRedEnvelopeInfoList', msg, res => {
this.happy = true;
if (res.data.resultCode == 1) {
this.redBagList = res.data.data.pageData;
} else {}
}, err => {})
} else {
this.redBagList = [];
}
},
goIisDetail: function (id) { // 跳转发票详情页面
this.$router.push({
......@@ -2703,7 +2720,7 @@
if (this.addMsg.GroupType == 4) {
ChirdNum = 0
}
let count = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) +ChirdNum +
let count = (Number(this.addMsg.AirticketNum) + Number(this.addMsg.ManNum) + ChirdNum +
Number(this.addMsg.BabyNum) + Number(this.addMsg.OldPeopleNum))
if (count < this.addMsg.VisaNum) {
this.addMsg.VisaNum = count
......@@ -2747,7 +2764,7 @@
}, err => {})
},
deleteItem(obj) {
if(obj.isCanClear==1){
if (obj.isCanClear == 1) {
this.Error('OP已确认订单,如需取消请联系当团OP!');
return;
}
......@@ -2904,34 +2921,6 @@
})
window.open(routeData.href, '_blank')
},
goUrlR() {
let obj = this.tripObj
let routeData = this.$router.resolve({
name: obj.path,
query: {
id: obj.configId,
orderId: obj.orderId,
cityId: obj.startCityId,
tcid: obj.tcid,
vshowA: this.travelControlTripLayer.vshowA,
vshowB: this.travelControlTripLayer.vshowB,
vshowC: this.travelControlTripLayer.vshowC,
vshowD: this.travelControlTripLayer.vshowD,
vshowE: this.travelControlTripLayer.vshowE,
vshowF: this.travelControlTripLayer.vshowF,
vshowG: this.travelControlTripLayer.vshowG,
vshowH: this.travelControlTripLayer.vshowH,
vshowI: this.travelControlTripLayer.vshowI,
vshowJ: this.travelControlTripLayer.vshowJ,
vshowK: this.travelControlTripLayer.vshowK,
vshowL: this.travelControlTripLayer.vshowL,
vshowM: this.travelControlTripLayer.vshowM,
vshowN: this.travelControlTripLayer.vshowN,
vshowLLR: this.travelControlTripLayer.vshowLLR,
}
})
window.open(routeData.href, '_blank')
},
goUrlP(name, path, item) {
this.$router.push({
name: path,
......@@ -3074,7 +3063,7 @@
this.goLVurl.orderId = obj.orderId;
this.goLVurl.tcid = obj.tcid;
this.goLVurl.tcnum = obj.tcnum;
this.goLVurl.isOrder = obj.isOrder;
this.goLVurl.isOrder = obj.isOrder;
this.Ysze = false;
this.starTime = obj.startDate
this.endTime = obj.backDate
......@@ -3126,11 +3115,11 @@
this.addMsg.Unit_Price = x.Unit_Price
this.addMsg.GroupTypeNeedHouse = String(x.GroupTypeNeedHouse)
this.stratPrice = res.data.data.modelPrice.GoAddPrice
if(this.addMsg.GroupType == 4){
if (this.addMsg.GroupType == 4) {
this.HightUnitPrice = '1'
this.Unit_Price = x.Unit_Price
}else {
} else {
this.HightUnitPrice = '2'
this.Unit_Price = this.addObj.SingleDMCPrice
}
......@@ -3167,7 +3156,8 @@
},
err => {}
)
let maxPeopleNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNoNeedBedNum) + Number(this.addMsg.ChirdNeedBedNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.AirticketNum) )
let maxPeopleNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNoNeedBedNum) + Number(this
.addMsg.ChirdNeedBedNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.AirticketNum))
this.Unit_PriceList = [];
this.apipost('sellorder_post_GetLessPrice', {
"TCID": obj.tcid,
......@@ -3308,7 +3298,8 @@
},
getTypePrice2() {
let maxPeopleNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNoNeedBedNum) + Number(this.addMsg.ChirdNeedBedNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.AirticketNum) )
let maxPeopleNum = (Number(this.addMsg.ManNum) + Number(this.addMsg.ChirdNoNeedBedNum) + Number(this.addMsg
.ChirdNeedBedNum) + Number(this.addMsg.OldPeopleNum) + Number(this.addMsg.AirticketNum))
this.Unit_PriceList = [];
this.apipost('sellorder_post_GetLessPrice', {
......@@ -3502,12 +3493,13 @@
(Number(this.stratPrice) + Number(this.returnPrice))
let dandijie
if(this.addMsg.GroupType == 4){
dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum) - this.addObj.ChildNoNeedPrice * (Number(this.addMsg.ChirdNoNeedBedNum))
if (this.addMsg.GroupType == 4) {
dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum) - this.addObj.ChildNoNeedPrice * (
Number(this.addMsg.ChirdNoNeedBedNum))
ertong = 0
ertongbed = 0
zafeiqianzhen = 0
}else {
} else {
dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum)
}
......@@ -3565,12 +3557,13 @@
Number(this.addMsg.OldPeopleNum)) *
(Number(this.stratPrice) + Number(this.returnPrice))
let dandijie
if(this.addMsg.GroupType == 4){
dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum) - this.addObj.ChildNoNeedPrice * (Number(this.addMsg.ChirdNoNeedBedNum))
if (this.addMsg.GroupType == 4) {
dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum) - this.addObj.ChildNoNeedPrice * (
Number(this.addMsg.ChirdNoNeedBedNum))
ertong = 0
ertongbed = 0
zafeiqianzhen = 0
}else {
} else {
dandijie = this.addObj.SingleDMCPrice * Number(this.addMsg.AirticketNum)
}
this.addMsg.PreferPrice =
......@@ -3810,7 +3803,7 @@
this.$message.warning('保险数量不能大于人数总和!')
return
}
if (
if (
Number(this.addMsg.ChirdNum) -
Number(this.addMsg.ChirdNeedBedNum) +
Number(this.addMsg.BabyNum) >
......@@ -3826,9 +3819,9 @@
return
}
}
if (this.userId == this.createByInfo) {
if (this.addMsg.CommissionSharePeople == '-1') {
this.addMsg.CommissionShareMoney = '0'
......@@ -3857,8 +3850,18 @@
this.clearMsg()
this.getList()
this.isShowLayer = false
if(res.data.data == 1){
this.$router.push({ name: 'passengerSaleList', query: { id: this.goLVurl.orderId,tcid: this.goLVurl.tcid, tcnum: this.goLVurl.tcnum,isOrder: this.goLVurl.isOrder, blank: 'y', tab: '旅客名单'} });
if (res.data.data == 1) {
this.$router.push({
name: 'passengerSaleList',
query: {
id: this.goLVurl.orderId,
tcid: this.goLVurl.tcid,
tcnum: this.goLVurl.tcnum,
isOrder: this.goLVurl.isOrder,
blank: 'y',
tab: '旅客名单'
}
});
}
} else {
......@@ -4061,7 +4064,9 @@
this.getCount()
},
getLineList() {
this.apipost('line_post_GetAllList_V2', {LineDirection: 0}, res => {
this.apipost('line_post_GetAllList_V2', {
LineDirection: 0
}, res => {
if (res.data.resultCode == 1) {
this.LineList = res.data.data
} else {
......@@ -4197,10 +4202,10 @@
)
},
gettypechange(type){
gettypechange(type) {
//切换参团类型时 把值初始化
if(type == 4){
this.addMsg.Unit_Price = this.Unit_Price;
if (type == 4) {
this.addMsg.Unit_Price = this.Unit_Price;
// this.addMsg.Unit_Price = this.addObj.SingleDMCPrice;
this.HightUnitPrice = '1';
this.addMsg.AirticketNum = 0;
......@@ -4216,7 +4221,7 @@
this.addMsg.VisaNum = 0;
this.addMsg.PredictRoomNum = 0;
this.addMsg.YSeatNum = 0;
}else {
} else {
this.HightUnitPrice = '2';
this.addMsg.AirticketNum = 0;
this.addMsg.ManNum = 0;
......@@ -4232,28 +4237,27 @@
this.addMsg.PredictRoomNum = 0;
this.addMsg.YSeatNum = 0;
};
if (this.addMsg.CustomerType == 1) {
if(this.addMsg.GroupType==4){
if (this.addMsg.GroupType == 4) {
this.addMsg.TC_Price = this.addObj.SingleDMCPrice;
}else {
} else {
this.addMsg.TC_Price = this.addObj.B2BMemberPrice;
this.addMsg.Unit_Price = this.addObj.B2BMemberPrice;
}
}
if (this.addMsg.CustomerType == 2) {
if(this.addMsg.GroupType==4){
if (this.addMsg.GroupType == 4) {
this.addMsg.TC_Price = this.addObj.SingleDMCPrice;
}else {
} else {
this.addMsg.TC_Price = this.addObj.B2BPrice
this.addMsg.Unit_Price = this.addObj.B2BPrice;
}
}
if (this.addMsg.CustomerType == 3) {
if(this.addMsg.GroupType==4){
if (this.addMsg.GroupType == 4) {
this.addMsg.TC_Price = this.addObj.SingleDMCPrice;
}else {
} else {
this.addMsg.TC_Price = this.addObj.B2CMemberPrice
this.addMsg.Unit_Price = this.addObj.B2CMemberPrice;
}
......@@ -4262,44 +4266,41 @@
}
if (this.addMsg.CustomerType == 4) {
if(this.addMsg.GroupType==4){
if (this.addMsg.GroupType == 4) {
this.addMsg.TC_Price = this.addObj.SingleDMCPrice;
}else {
} else {
this.addMsg.TC_Price = this.addObj.B2CPrice
this.addMsg.Unit_Price = this.addObj.B2CPrice;
}
this.addMsg.CommissionShareMoney = '0'
}
this.addMsg.GroupTypeNeedHouse = '0'
this.addMsg.CustomerId = '0'
this.Unit_PriceList=[];
this.Unit_PriceList = [];
},
// 获取修改业务员权限
GetEditOrderCreateByAuth() {
var actionCode = this.$AuthCode.EditOrderCreateBy;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.isEditOrderCreate = 1;
this.isEditOrderCreate = 1;
}
});
},
},
mounted() {
this.qjGroupId=this.QjGroupId();
this.qjGroupId = this.QjGroupId();
this.GetEditOrderCreateByAuth();
let userInfo=this.getLocalStorage();
this.userInfo=this.getLocalStorage();
let userInfo = this.getLocalStorage();
this.userInfo = this.getLocalStorage();
let userMenuCode = ',' + userInfo.ActionMenuCode + ',';
this.TransferMission = userMenuCode.indexOf(',Sale_TurnGroup,') != -1 ? true : false;
this.userId = this.getLocalStorage().EmployeeId
if (this.$route.query.id) {
this.msg.tempOrderId = this.$route.query.id
}else{
} else {
this.msg.QStartDate = new Date().Format('yyyy-MM-dd')
}
this.getEmployee()
this.getList()
this.getLineList()
......@@ -4312,8 +4313,6 @@
this.getFylx()
this.GetSupperOrderEditAuth();
},
}
</script>
<style>
</style>
<template>
<div class="flexOne newContract">
<div class="ElectronicAudit">
<div class="query-box">
<ul>
<li>
<input type="button" class="hollowFixedBtn" value="新增" @click="goToDetail()"/>
</li>
</ul>
</div>
<div class="commonContent" v-loading="loading">
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<th>乙方名称</th>
<th>签订日期</th>
<th>营业执照</th>
<th>合同开始日期</th>
<th>合同结束日期</th>
<th>微途签章图片</th>
<th>微途签订日期</th>
<th>客户签章图片</th>
<th>客户签订日期</th>
<th>创建人</th>
<th>创建日期</th>
<th>操作</th>
</tr>
<tr v-for="(item,index) in dataList" :key="index">
<td>{{item.CustomerName}}</td>
<td>
<template v-if="item.SignDate!=null">
{{getDate(item.SignDate)}}
</template>
</td>
<td>{{item.BusinessLicense}}</td>
<td>
<template v-if="item.ContractStartDate!=null">
{{getDate(item.ContractStartDate)}}
</template>
</td>
<td>
<template v-if="item.ContractEndDate!=null">
{{getDate(item.ContractEndDate)}}
</template>
</td>
<td>
<img :src="item.ViittoSignImg" style="width:100px;"/>
</td>
<td>
<template v-if="item.ViittoSignDate!=null">
{{getDate(item.ViittoSignDate)}}
</template>
</td>
<td>
<img :src="item.CustomerSignImg" style="width:100px;"/>
</td>
<td>
<template v-if="item.CustomerSignDate!=null">
{{getDate(item.CustomerSignDate)}}
</template>
</td>
<td>
{{item.CreateByName}}
</td>
<td>
<template v-if="item.CreateDateStr!=null">
{{getDate(item.CreateDateStr)}}
</template>
</td>
<td>
<el-tooltip class="item" effect="dark" content="修改" placement="top-start">
<el-button type="primary" icon="iconfont icon-Edit" @click="goContract(item)" circle></el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="删除" placement="top-start">
<el-button type="danger" icon="iconfont icon-img_delete_small" circle @click="isdelete(item.Id)">
</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="下载" placement="top-start">
<el-button type="success" icon="iconfont icon-img_download" circle @click="ToDownWord(item)">
</el-button>
</el-tooltip>
</td>
</tr>
</table>
<div class="noData" v-show="dataList.length<1">
<i class="iconfont icon-kong" style="font-size:100px;"></i>
<p>{{$t("active.ld_noData")}}</p>
</div>
<el-pagination background @current-change="handleChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination>
</div>
</div>
</div>
</template>
<script>
import moment from 'moment'
export default {
data() {
return {
msg: {
pageIndex:1,
pageSize:15
},
loading:false,
dataList: [],
currentPage:1,
total:0
};
},
methods: {
getDate(date) {
return moment(date).format("YYYY-MM-DD");
},
getList() {
this.loading = true;
//获取列表数据
this.apipost(
"viitto_get_GetContractService",
this.msg,
res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.dataList = res.data.data.pageData;
this.total = res.data.data.count;
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
handleChange(val){
this.msg.pageIndex = val;
this.getList();
},
//删除
isdelete(Id) {
var that = this;
this.Confirm("是否删除?", function () {
var msg = {
Id: Id
};
that.apipost(
"viitto_post_RemoveViittoContractService",
msg,
res => {
if (res.data.resultCode == 1) {
that.getList();
}
},
null
);
});
},
//新增合同跳转
goToDetail() {
this.$router.push({
name: 'magiContract',
query: {
blank: "y",
}
});
},
//跳转至合同
goContract(item){
this.$router.push({
name: 'magiContract',
query: {
blank: "y",
Id:item.Id
}
});
},
//生成word
ToDownWord:function(item){
this.loading = true;
let msg = {
Id:item.Id,
//用户Id
UId:this.getLocalStorage().EmployeeId,
};
let urlObj = this.domainManager();
this.$http({
headers: {
'Content-Type': 'application/json'
},
method: 'post',
url: urlObj.DomainUrl + '/api/file/GetViittoContract',
data: {
"msg": msg
}
}).then(res => {
if (res.data.resultCode === 1) {
let sign = item.CustomerName+"_合同.doc";
const a = document.createElement('a');
a.setAttribute('download', '');
a.setAttribute('href', urlObj.DomainUrl + '/api/file/DownloadFileForPdf?fileName=' + sign +
'.doc&&fPath=' + res.data.data);
a.click();
} else {
this.Error('WORD获取失败');
}
this.loading = false;
}).catch(err => {
})
},
},
mounted() {
this.getList();
}
};
</script>
<style>
.magiContact{
width:1000px;
height:auto!important;
background-color: #efefef;
margin:0 auto;
color:#555;
}
.magiTitle{
width:100%;
text-align: center;
font-size:30px;
margin:70px 0 120px 0;
}
.magiSignContent{
width:580px;
height:300px;
margin:0 auto;
font-size:20px;
}
.magiSignPlace{
display: flex;
flex-direction: row;
margin-bottom:40px;
}
.magijiafang{
width:80px;
text-align-last: justify
}
.magibtnLine{
border-bottom:1px solid #666666 !important;
color:#666666;
margin-top:-9px;
}
.magiSignPlace input{
border:none!important;
background-color:transparent;
padding:0 2px !important;
font-size:20px;
}
.magiSignPlace .el-input{
border-radius: 0;
height:34px;
border: none !important;
background-color: transparent !important;
padding: 0 2px !important;
text-align: center!important;
}
.w465{
width:465px!important;
}
.w133{
width:133px!important;
}
.magiNYR{
display: flex;
justify-content: space-between;
}
.magiBtmContent{
width:800px;
margin:0 auto;
font-size:20px;
}
.jiayisf{
width:100%;
display: flex;
justify-content: space-between;
}
.w195{
width:195px!important;
}
.w212{
width:212px!important;
}
.magiRule{
margin-top:30px;
text-indent: 40px;
line-height: 40px;
}
.magiComTitle{
font-size:25px;
margin:30px 0;
}
.magiComSecond{
font-size:22px;
margin:20px 0;
}
.magiDingyi{
margin-left:20px;
line-height: 40px;
}
.magiDingyi>div{
margin-bottom:20px;
}
.magiDingyi input {
border: none!important;
background-color: transparent;
padding: 0 2px !important;
}
.magiLastNYR{
display: flex;
flex-direction: row;
}
.w60{
width:60px!important;
}
.magiLastNYR input{
border: none!important;
background-color: transparent;
padding: 0 2px !important;
text-align: center;
font-size:20px;
}
.saveMagiBtn{
color: #fff;
padding: 0 20px;
height: 30px;
background: #E95252;
border: 1px solid #E95252;
cursor: pointer;
border-radius: 15px;
margin-left: 10px;
}
.saveMagDiv{
margin:30px 0;
text-align: center;
}
.magiContact .zindex{
z-index: 9999!important;
opacity: 1!important;
}
.magiContact .signature{
width:600px;
background: #fff;
padding:15px;
border-radius: 20px;
cursor: pointer;
}
.magiContact .Sign{
position: fixed;
width:100%;
height:100%;
top:0;
left:0;
background: rgba(0,0,0,.4);
z-index: -500;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
}
.magiContact .Sign .signatureBox {
width: 100%;
height: 300px;
box-sizing: border-box;
overflow: hidden;
background: #fff;
z-index: 100;
display: flex;
flex-direction: column;
margin-top:20px;
padding:0 20px;
box-sizing: border-box;
}
.magiContact .Sign .canvasBox {
box-sizing: border-box;
flex: 1;
}
.magiContact .Sign canvas {
border: 1px solid #7d7d7d;
}
.magiContact .Sign .btnBox {
padding: 10px;
text-align: center;
}
.magiContact .Sign .btnBox button:first-of-type {
background: transparent;
border-radius: 4px;
height: 40px;
width: 80px;
font-size: 14px;
}
.magiContact .Sign .btnBox button:last-of-type {
background: #71b900;
color: #fff;
border-radius: 4px;
height: 40px;
width: 80px;
font-size: 14px;
}
.MagiSign{
width:100px;
}
</style>
<template>
<div class="magiContact">
<div class="magiTitle">麦子ERP使用协议书</div>
<div class="magiSignContent">
<div class="magiSignPlace">
<div class="magijiafang">甲方</div>
<div class="magibtnLine">
<el-input type="text" class="w465" value="成都微途科技有限公司"></el-input>
</div>
</div>
<div class="magiSignPlace">
<div class="magijiafang">乙方</div>
<div class="magibtnLine">
<el-input type="text" class="w465" v-model="msg.CustomerName"></el-input>
</div>
</div>
<div class="magiSignPlace">
<div class="magijiafang">签订日期</div>
<div class="magiNYR">
<div class="magibtnLine">
<el-input type="text" class="w133" v-model="SignYear"></el-input>
</div>
<div class="magibtnLine">
<el-input type="text" class="w133" v-model="SignMonth"></el-input>
</div>
<div class="magibtnLine">
<el-input type="text" class="w133" v-model="SignDate"></el-input>
</div>
</div>
</div>
</div>
<div class="magiBtmContent">
<div class="jiayisf">
<div>
甲方:成都微途科技有限公司
</div>
<div>
营业执照:915101060776915321
</div>
</div>
<div class="jiayisf" style="margin-top:30px;">
<div class="magiSignPlace">
<div>乙方:</div>
<div class="magibtnLine">
<el-input type="text" class="w195" v-model="msg.CustomerName"></el-input>
</div>
</div>
<div class="magiSignPlace">
<div>营业执照:</div>
<div class="magibtnLine">
<el-input type="text" class="w212" v-model="msg.BusinessLicense"></el-input>
</div>
</div>
</div>
<div class="magiRule">
根据《中华人民共和国合同法》以及其它相关法律、法规的规定,本着平等互利的原则, 甲、乙双方就合作开展_麦子ERP系统_软件的免费应用,特订立本合同,并共同遵守下列条款:
</div>
<div class="magiComTitle">一、定义</div>
<div class="magiDingyi">
<div>除非本合同的条款或者内容中另有规定,下列名词具有如下意义:</div>
<div>1、软件产品:指甲方提供的《麦子ERP系统》的SaaS版本</div>
<div>2、知识产权:指依据中国有关法律和国际条约规定权利人所享有的专利权、版权(著作权)、商标权、商业信誉和商业秘密权。</div>
<div>3、技术支持:应软件用户的要求,为用户解决软件应用过程中产生的各种技术问题。</div>
<div>4、售后服务:指为乙方及乙方用户提供软件维护、升级等其它服务。</div>
<div>5、补充协议及附件:指主合同的补救条款或从合同等,与主合同具有同样的效力。</div>
</div>
<div class="magiComTitle" style="margin-top:50px;">二、合同期限</div>
<div class="magiDingyi">
<div>本合同规定“麦子ERP系统”软件基础版免费使用期限为:</div>
<div class="magiLastNYR">
<div class="magibtnLine" style="margin-top:0;">
<el-input type="text" class="w60" v-model="SYear"></el-input>
</div>
<div class="magibtnLine" style="margin-top:0;">
<el-input type="text" class="w60" v-model="SMonth"></el-input>
</div>
<div class="magibtnLine" style="margin-top:0;">
<el-input type="text" class="w60" v-model="SDate"></el-input>
</div>
<div style="margin-left:20px;"></div>
<div class="magibtnLine" style="margin-top:0;">
<el-input type="text" class="w60" v-model="EYear"></el-input>
</div>
<div class="magibtnLine" style="margin-top:0;">
<el-input type="text" class="w60" v-model="EMonth"></el-input>
</div>
<div class="magibtnLine" style="margin-top:0;">
<el-input type="text" class="w60" v-model="EDate"></el-input>
</div>
</div>
</div>
<div class="magiComTitle">三、费用及结算模式</div>
<div class="magiRule">
经甲乙双方协商一致,乙方使用软件产品的基础功能为免费使用,若乙方需要使用其他增值功能,需要和甲方另行签订协议。
</div>
<div class="magiComTitle" style="margin-bottom:0;">四、双方的权利和责任</div>
<div class="magiComSecond" style="margin-top:0;">(一)甲方的权利和责任</div>
<div class="magiDingyi">
<div>1、甲方向乙方提供软件产品和运行环境。</div>
<div>2、甲方保障系统的稳定运行和BUG的及时修复。</div>
<div>3、甲方可以向乙方提供单独付费的定制化开发或服务内容。</div>
<div>4、甲方有权要求乙方保证系统的知识产权。乙方不得将系统转借非乙方企业成员使用</div>
<div>5、甲方可以为乙方提供全方位技术支持。由此产生的甲方工作人员的交通住宿费用由乙方承担。</div>
<div>6、 甲方需保障乙方的数据安全,不可泄露任何乙方数据为给非乙方工作人员。</div>
</div>
<div class="magiComSecond">(二)乙方的权利和责任</div>
<div class="magiDingyi">
<div>1、乙方使用本系统,必须遵守国家互联网信息管理相关法律、法规、条例。乙方对其经营行为和信息发布时因违反上述规定而引起的任何政治、经济、法律责任承担全部责任。</div>
<div>2、乙方须对系统使用账号严格保存,禁止非乙方公司员工拥有该系统账户,员工离职后,及时禁用其账户,如因乙方泄露账号密码,造成的数据安全问题,甲方概不负责。</div>
<div>3、乙方可以在周一至周五(9:30-18:00)联系甲方技术支持代表解决系统问题。若乙方升级至定制化用户可以调整为周一至周日(9:30-21:30)</div>
</div>
<div class="magiComTitle">五、合同的解除与终止</div>
<div class="magiRule">
双方协商一致可以解除本合同。另外,本合同在下列情形下也可以解除,但提出解除的一方应提前一个月以书面形式通知对方:
</div>
<div style="line-height:40px;">
<div>
1、因合同一方经营状况出现重大困难,濒临破产进入法定整顿期间或被清算,另一方可以解除本协议。
</div>
<div>
2、因合同一方未履行合同义务或违约,另一方经书面告知给予一定期限仍不履行或不予采取补救措施,致使另一方合同预期利益无法实现或无继续履行必要,另一方有权解除本合同。
</div>
<div>
3、本合同期限届满,双方未续签的,合同解除或合同到期自然终止,双方仍应履行未完毕之合同义务,安排售出产品的售后服务事项。同等条件下,乙方有优先续约权利。
</div>
</div>
<div class="magiComTitle">六、违约责任</div>
<div class="magiDingyi">
<div>1、乙方若违反协议约定,侵犯甲方知识产权,需承担不低于贰拾万元整的经济损失。</div>
<div>2、若一方违约给另一方造成损失的,除赔偿损失外,另需承担其它违约责任。</div>
<div>3、因一方履约不当给第三方造成损失的,应自行承担赔偿责任。</div>
</div>
<div class="magiComTitle">七、争议解决</div>
<div class="magiDingyi">
<div>甲、乙双方之间因履行本合同或因本合同任何条款的解释与适用而发生任何争议,甲、乙双方应通过友好协商解决。如协商不能解决,任何一方有权向有管辖权的人民法院起诉。</div>
</div>
<div class="magiComTitle">八、其它</div>
<div class="magiDingyi">
<div>1、凡涉及本代理合同补充、变更、解除等事宜,双方均可进行协商并签署补充协议作为合同附件。合同附件与本合同具有同等法律效力。</div>
<div>2、本合同一式贰份,双方各执壹份,签字盖章后生效,具有同等法律效力。</div>
</div>
<div style="margin:60px 0;">本公司尚有"选配功能"."增值功能"."附加服务"三项优质产品,欢迎选购</div>
<div class="jiayisf">
<div>
甲方授权代表(签章):
</div>
<div style="display:flex">
乙方授权代表(签章):<img class="MagiSign" :src="msg.CustomerSignImg" v-if="msg.CustomerSignImg!=''"/>
<a style="text-decoration:none;" v-else href="javascript:void(0);" @click="SetPic()">签名</a>
</div>
</div>
<div class="jiayisf" style="margin:30px 0">
<div class="magiLastNYR">
<div class="magibtnLine">
<el-input type="text" class="w60" v-model="JYear"></el-input>
</div>
<div class="magibtnLine">
<el-input type="text" class="w60" v-model="JMonth"></el-input>
</div>
<div class="magibtnLine">
<el-input type="text" class="w60" v-model="JDate"></el-input>
</div>
</div>
<div class="magiLastNYR">
<div class="magibtnLine">
<el-input type="text" class="w60" v-model="YYear"></el-input>
</div>
<div class="magibtnLine">
<el-input type="text" class="w60" v-model="YMonth"></el-input>
</div>
<div class="magibtnLine">
<el-input type="text" class="w60" v-model="YDate"></el-input>
</div>
</div>
</div>
<div class="saveMagDiv">
<input type="button" class="saveMagiBtn" value="保存" @click="SaveInfo()"/>
</div>
</div>
<!-- 签名 -->
<div class="Sign" :class="signState?'zindex':''">
<div class="signature">
<p class="f14" style="padding:10px 10px 10px 0">签名
<span @click="CloseSign" style="float:right" class="el-icon-close"></span>
</p>
<div class="signatureBox">
<div class="canvasBox" ref="canvasHW">
<canvas ref="canvasF" @mousedown="mouseDown" @mousemove="mouseMove" @mouseup="mouseUp"></canvas>
<div class="button" style="text-align:center;margin-top:20px">
<el-button size="small" @click="overwrite">重写</el-button>
<el-button size="small" type="danger" @click="commit">提交</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script>
import moment from 'moment'
export default {
data() {
return {
msg:{
Id:0,
CustomerName:'', //乙方名称
SignDate:'', //签订日期
BusinessLicense:'', //营业执照
ContractStartDate:'', // 合同开始日期
ContractEndDate:'', //合同结束日期
ViittoSignImg:'', //微途签章图片
ViittoSignDate:'', //微途签订日期
CustomerSignImg:'', //客户签章图片
CustomerSignDate:'', //客户签订日期
},
SignYear:'', //签约日期年
SignMonth:'', //签约日期月
SignDate:'', //签约日期日
SYear:'', //使用开始年
SMonth:'', //使用开始月
SDate:'', //使用开始日
EYear:'', //使用结束年
EMonth:'', //使用结束月
EDate:'', //使用结束日
JYear:'', //甲方签约年
JMonth:'', //甲方签约月
JDate:'', //甲方签约日
YYear:'', //乙方签约年
YMonth:'',//乙方签约月
YDate:'', //乙方签约日
signState:false,
startX: 0,
startY: 0,
moveY: 0,
moveX: 0,
endY: 0,
endX: 0,
w: null,
h: null,
isDown: false,
}
},
mounted() {
let canvas = this.$refs.canvasF
canvas.height = this.$refs.canvasHW.offsetHeight - 100
canvas.width = this.$refs.canvasHW.offsetWidth - 10
this.canvasTxt = canvas.getContext('2d')
this.stageInfo = canvas.getBoundingClientRect()
if (this.$route.query.Id) {
this.msg.Id = this.$route.query.Id;
this.getContract();
}
},
methods: {
//初始化信息
getContract(){
let msg = {
Id:this.$route.query.Id
}
this.apipost("viitto_get_GetEntityService",msg,res => {
console.log(res,'来了');
if (res.data.resultCode == 1) {
//this.Success('保存成功');
let myData = res.data.data;
this.msg.CustomerName = myData.CustomerName;
if(myData.SignDate!=null){
this.SignYear = moment(myData.SignDate).format("YYYY-MM-DD").split("-")[0];
this.SignMonth = moment(myData.SignDate).format("YYYY-MM-DD").split("-")[1];
this.SignDate = moment(myData.SignDate).format("YYYY-MM-DD").split("-")[2];
}
this.msg.BusinessLicense = myData.BusinessLicense;
if(myData.ContractStartDate!=null){
this.SYear = moment(myData.ContractStartDate).format("YYYY-MM-DD").split("-")[0];
this.SMonth = moment(myData.ContractStartDate).format("YYYY-MM-DD").split("-")[1];
this.SDate = moment(myData.ContractStartDate).format("YYYY-MM-DD").split("-")[2];
}
if(myData.ContractEndDate!=null){
this.EYear = moment(myData.ContractEndDate).format("YYYY-MM-DD").split("-")[0];
this.EMonth = moment(myData.ContractEndDate).format("YYYY-MM-DD").split("-")[1];
this.EDate = moment(myData.ContractEndDate).format("YYYY-MM-DD").split("-")[2];
}
if(myData.ViittoSignDate!=null){
this.JYear = moment(myData.ViittoSignDate).format("YYYY-MM-DD").split("-")[0];
this.JMonth = moment(myData.ViittoSignDate).format("YYYY-MM-DD").split("-")[1];
this.JDate = moment(myData.ViittoSignDate).format("YYYY-MM-DD").split("-")[2];
}
if(myData.CustomerSignDate!=null){
this.YYear = moment(myData.CustomerSignDate).format("YYYY-MM-DD").split("-")[0];
this.YMonth = moment(myData.CustomerSignDate).format("YYYY-MM-DD").split("-")[1];
this.YDate = moment(myData.CustomerSignDate).format("YYYY-MM-DD").split("-")[2];
}
this.msg.ViittoSignImg = myData.ViittoSignImg;
this.msg.CustomerSignImg = myData.CustomerSignImg;
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
//保存
SaveInfo(){
this.msg.SignDate = this.SignYear+"-"+this.SignMonth+"-"+this.SignDate;
this.msg.ContractStartDate = this.SYear+"-"+this.SMonth+"-"+this.SDate;
this.msg.ContractEndDate = this.EYear+"-"+this.EMonth+"-"+this.EDate;
this.msg.ViittoSignDate = this.JYear+"-"+this.JMonth+"-"+this.JDate;
this.msg.CustomerSignDate = this.YYear+"-"+this.YMonth+"-"+this.YDate;
this.apipost("viitto_post_SetViittoContractService",this.msg,res => {
if (res.data.resultCode == 1) {
this.Success('保存成功');
} else {
this.Error(res.data.message);
}
},
err => {}
);
},
SetPic(){
this.overwrite();
this.signState=true
},
CloseSign(){
this.signState=false;
},
// 签名
//重写
overwrite() {
this.canvasTxt.clearRect(0, 0, this.$refs.canvasF.width, this.$refs.canvasF.height)
this.points = []
},
//提交签名
commit() {
let that=this;
let imgUrl =this.$refs.canvasF.toDataURL();
let newArr = [];
var fileName = `${that.uuid(10,10)}.png`;
var path = `/RevenueFile/`;
newArr.push(this.dataURLtoFile(imgUrl,fileName))
this.UploadSelfFileT(path, newArr, x => {
this.msg.CustomerSignImg=that.domainManager().ViittoFileUrl+x.data.FilePath;
}, 1);
this.signState=false;
},
mouseDown(ev) {
ev = ev || event
ev.preventDefault()
if (1) {
let obj = {
x: ev.offsetX,
y: ev.offsetY
}
this.startX = obj.x
this.startY = obj.y
this.canvasTxt.beginPath()
this.canvasTxt.moveTo(this.startX, this.startY)
this.canvasTxt.lineTo(obj.x, obj.y)
this.canvasTxt.stroke()
this.canvasTxt.closePath()
this.points.push(obj)
this.isDown = true
}
},
mouseMove(ev) {
ev = ev || event
ev.preventDefault()
if (this.isDown) {
let obj = {
x: ev.offsetX,
y: ev.offsetY
}
this.moveY = obj.y
this.moveX = obj.x
this.canvasTxt.beginPath()
this.canvasTxt.moveTo(this.startX, this.startY)
this.canvasTxt.lineTo(obj.x, obj.y)
this.canvasTxt.stroke()
this.canvasTxt.closePath()
this.startY = obj.y
this.startX = obj.x
this.points.push(obj)
}
},
mouseUp(ev) {
ev = ev || event
ev.preventDefault()
if (1) {
let obj = {
x: ev.offsetX,
y: ev.offsetY
}
this.canvasTxt.beginPath()
this.canvasTxt.moveTo(this.startX, this.startY)
this.canvasTxt.lineTo(obj.x, obj.y)
this.canvasTxt.stroke()
this.canvasTxt.closePath()
this.points.push(obj)
this.points.push({x: -1, y: -1})
this.isDown = false
}
},
uuid(len, radix) {
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.split('');
var uuid = [],
i;
radix = radix || chars.length;
if (len) {
// Compact form
for (i = 0; i < len; i++) uuid[i] = chars[0 | Math.random() * radix];
} else {
var r;
uuid[8] = uuid[13] = uuid[18] = uuid[23] = '-';
uuid[14] = '4';
for (i = 0; i < 36; i++) {
if (!uuid[i]) {
r = 0 | Math.random() * 16;
uuid[i] = chars[(i == 19) ? (r & 0x3) | 0x8 : r];
}
}
}
return uuid.join('');
},
dataURLtoFile(dataurl, filename) {//将base64转换为文件
var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1],
bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n);
while(n--){
u8arr[n] = bstr.charCodeAt(n);
}
return new File([u8arr], filename, {type:mime});
},
},
}
</script>
\ No newline at end of file
......@@ -368,6 +368,14 @@ export default {
title: '电子合同审核'
},
},
{
path: '/ViittoContract', // 行政-微途电子合同
name: 'ViittoContract',
component: resolve => require(['@/components/administrative/ViittoContract'], resolve),
meta: {
title: '微途电子合同'
}
},
{
path: '/ContractManage', //合同管理
name: 'ContractManage',
......@@ -4611,6 +4619,14 @@ export default {
title: '电子合同'
}
},
{
path: '/magiContract', //麦子Erp使用合同
name: 'magiContract',
component: resolve => require(['@/components/magiContract'], resolve),
meta: {
title: '麦子Erp使用合同'
}
},
{
path: '/ScenicStrategyview', //景点攻略预览
name: 'ScenicStrategyview',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment