Commit fcc7f3b2 authored by zhengke's avatar zhengke
parents 8639c6a8 a46e4064
......@@ -113,7 +113,8 @@
<span>
<span v-if="item.IsStandardCurrency!=1">{{item.showB?item.StandardCurrencyCode:item.CurrencyCode}}</span>
<span v-else>{{item.StandardCurrencyCode}}</span>
<span class="fc_green PingFangSC _underline" @click="item.IsStandardCurrency!=1?goUrl('FineBalance',item.ID,item.Alias):''">{{item.showB?moneyFormat(item.benBalance):moneyFormat(item.Initialbalance)}}</span>
<!-- <span class="fc_green PingFangSC _underline" @click="item.IsStandardCurrency!=1?goUrl('FineBalance',item.ID,item.Alias):''">{{item.showB?moneyFormat(item.benBalance):moneyFormat(item.Initialbalance)}}</span> -->
<span class="fc_green PingFangSC _underline" @click="goUrlNew(item)">{{item.showB?moneyFormat(item.benBalance):moneyFormat(item.Initialbalance)}}</span>
<span class="iconfont icon-qiehuan" @click="item.showB=!item.showB" v-if="item.IsStandardCurrency!=1"></span>
<span v-if="item.IsStandardCurrency!=1" class="iconfont icon-ico-renwuyaoqiu"></span>
</span>
......@@ -436,6 +437,11 @@ export default {
costType:[],
}
},methods:{
goUrlNew (item) {
// console.log(item);
let path="CashAccDetail";
this.$router.push({ name: path,query:{"TypeId":item.TypeId,'ID':item.ID, blank: "y",}})
},
regNum(n,t){ // 判断数字 n 值 t 类型
let reg = /^\d+(\.\d{0,6})?$/
if(!n)return 0
......
......@@ -148,7 +148,8 @@
<span>
<span v-if="item.IsStandardCurrency!=1">{{item.showB?item.StandardCurrencyCode:item.CurrencyCode}}</span>
<span v-else>{{item.StandardCurrencyCode}}</span>
<span class="fc_green PingFangSC _underline" @click="item.IsStandardCurrency!=1?goUrl('FineBalance',item.ID,item.Alias):''">{{item.showB?moneyFormat(item.benBalance):moneyFormat(item.Initialbalance)}}</span>
<!-- <span class="fc_green PingFangSC _underline" @click="item.IsStandardCurrency!=1?goUrl('FineBalance',item.ID,item.Alias):''">{{item.showB?moneyFormat(item.benBalance):moneyFormat(item.Initialbalance)}}</span> -->
<span class="fc_green PingFangSC _underline" @click="goUrlNew(item)">{{item.showB?moneyFormat(item.benBalance):moneyFormat(item.Initialbalance)}}</span>
<span class="iconfont icon-qiehuan" @click="item.showB=!item.showB" v-if="item.IsStandardCurrency!=1"></span>
<span v-if="item.IsStandardCurrency!=1" class="iconfont icon-ico-renwuyaoqiu"></span>
</span>
......@@ -338,6 +339,16 @@
<el-input v-model="addMsg.RiskLowerLimitMoney" type="number" class=""></el-input>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35">
<el-form-item label="初始本位币金额">
<el-input v-model="addMsg.AccountStartWBMoney" type="number" class></el-input>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35">
<el-form-item label="初始原币金额">
<el-input v-model="addMsg.AccountStartMoney" type="number" class></el-input>
</el-form-item>
</el-col>
</el-row>
</el-form>
</div>
......@@ -421,7 +432,9 @@ export default {
BranchIdS:0,
OutCharge:0,
InCharge:0,
RiskLowerLimitMoney:''
RiskLowerLimitMoney:'',
AccountStartMoney:0,
AccountStartWBMoney:0,
},
getCompanyMsg:{
RB_Group_Id:'0',
......@@ -575,6 +588,11 @@ export default {
this.showEmployeeList2 = [];
}
},
goUrlNew (item) {
console.log("1223",item)
let path="CompanyAccDetail";
this.$router.push({ name: path,query:{"TypeId":item.TypeId,'ID':item.ID, blank: "y",}})
},
goUrl (path,id,name,source,CurrencyId) {
this.$router.push({ name: path,query:{"id":id,'name':name,'source':source,'CurrencyId':CurrencyId}})
},
......@@ -658,7 +676,9 @@ export default {
BranchIdS:0,
OutCharge:0,
InCharge:0,
RiskLowerLimitMoney:''
RiskLowerLimitMoney:'',
AccountStartMoney:0,
AccountStartWBMoney:0,
}
this.SetProfitLossMsg={
ID:0,
......
......@@ -231,6 +231,7 @@
sort-always
@sort-change="sortChange"
@on-custom-comp='customCompFunc'
:row-click="rowClick"
></v-table>
<div class="_vMG_edit _scrollbar" v-if="addShow" :class="addShow==true?'edHeight':''">
<el-row>
......@@ -459,6 +460,16 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35">
<el-form-item label="初始本位币金额">
<el-input v-model="addMsg.AccountStartWBMoney" type="number" class></el-input>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35">
<el-form-item label="初始原币金额">
<el-input v-model="addMsg.AccountStartMoney" type="number" class></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="24" :gutter="35">
......@@ -596,7 +607,10 @@ export default {
Remark:'',
BindBankID:null,
HaveContract:'0',
ContraceDateRange:''
ContraceDateRange:'',
AccountStartMoney:0,
AccountStartWBMoney:0,
},
getCompanyMsg: {
RB_Group_Id: "0",
......@@ -708,6 +722,19 @@ export default {
};
},
methods: {
rowClick(rowIndex,rowData,column){
let path='PlatformAccDetail';
if(column.title=="账户余额"){
this.$router.push({
name: path,
query: {
TypeId: rowData.TypeId,
ID:rowData.ID,
blank: "y",
}
});
}
},
remoteQueryBankMethod(query){
if(query!=''){
this.remoteLoading=true
......@@ -931,7 +958,6 @@ export default {
this.getList();
},
filterMethod(filters) {
console.log("filter", filters);
this.msg.Alias = filters.Alias;
this.msg.RB_Branch_Id = filters.allName;
this.msg.SettlementType =
......@@ -1107,6 +1133,7 @@ export default {
this.remoteMethod(data.InemName);
this.remoteMethod2(data.OutemName);
this.addMsg = data;
// console.log("this.addMsg",this.addMsg)
this.addMsg.HaveContract = this.addMsg.HaveContract.toString()
this.addMsg.SettlementType =this.addMsg.SettlementType.toString()
this.addMsg.BindBankID = this.addMsg.BindBankID==-1?null:this.addMsg.BindBankID
......@@ -1135,7 +1162,9 @@ export default {
BranchIdS: 0,
OutCharge: 0,
InCharge: 0,
RiskLowerLimitMoney: ""
RiskLowerLimitMoney: "",
AccountStartMoney:0,
AccountStartWBMoney:0,
};
this.SetProfitLossMsg = {
ID: 0,
......
......@@ -114,7 +114,8 @@
<span>
<span v-if="item.IsStandardCurrency!=1">{{item.showB?item.StandardCurrencyCode:item.CurrencyCode}}</span>
<span v-else>{{item.StandardCurrencyCode}}</span>
<span class="fc_green PingFangSC _underline" @click="item.IsStandardCurrency!=1?goUrl('FineBalance',item.ID,item.Alias):''">{{item.showB?moneyFormat(item.benBalance):moneyFormat(item.Initialbalance)}}</span>
<!-- <span class="fc_green PingFangSC _underline" @click="item.IsStandardCurrency!=1?goUrl('FineBalance',item.ID,item.Alias):''">{{item.showB?moneyFormat(item.benBalance):moneyFormat(item.Initialbalance)}}</span> -->
<span class="fc_green PingFangSC _underline" @click="goUrlNew(item)">{{item.showB?moneyFormat(item.benBalance):moneyFormat(item.Initialbalance)}}</span>
<span class="iconfont icon-qiehuan" @click="item.showB=!item.showB" v-if="item.IsStandardCurrency!=1"></span>
<span v-if="item.IsStandardCurrency!=1" class="iconfont icon-ico-renwuyaoqiu"></span>
</span>
......@@ -432,6 +433,11 @@ export default {
Charge:1
}
},methods:{
goUrlNew (item) {
console.log(item);
let path="PoolAccDetail";
this.$router.push({ name: path,query:{"TypeId":item.TypeId,'ID':item.ID, blank: "y",}})
},
remoteMethod(query) {
if (query !== '') {
this.loadingPeople = true
......
<style scoped>
.LineReceiver .el-form-item{
display: inline-block;
}
</style>
<template>
<div class="LineReceiver">
<div>
<el-form>
<el-form-item label="收客日期">
<el-date-picker size="small"
@change="timeAdd"
v-model="productionDate"
type="daterange"
value-format="yyyy-MM-dd"
:range-separator="$t('restaurant.res_To')">
</el-date-picker>
</el-form-item>
<el-form-item>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList()"/>
</el-form-item>
</el-form>
</div>
<div>
<el-table :data="List" stripe border>
<el-table-column fixed prop="BranchName" label="公司名称" min-width="100">
</el-table-column>
<el-table-column min-width="130" @sort-by="SortBy" sortable v-for='(item,index) in newArr' :prop='item.Rank' :label="item.title" :key='index'>
<template slot-scope="scope">
<p>{{scope.row[item.Rank]}} ({{scope.row[item.value]}})</p>
</template>
</el-table-column>
</el-table>
</div>
</div>
</template>
<script>
import moment from "moment"
export default {
data (){
return{
productionDate:[],
msg:{
StartTime:"",
EndTime:"",
},
ColList:[],
List:[],
newArr:[],
}
},
created(){
let mon1=moment().format("YYYY-MM-DD");
let mon2=moment().subtract(1, "months").format("YYYY-MM-DD");
this.productionDate=[mon2,mon1];
this.msg.StartTime=this.productionDate[0];
this.msg.EndTime=this.productionDate[1];
},
mounted(){
this.getList();
},
methods:{
SortBy(){
},
timeAdd(){
if(!this.productionDate){
this.msg.StartTime="";
this.msg.EndTime="";
}else{
this.msg.StartTime=this.productionDate[0];
this.msg.EndTime=this.productionDate[1];
}
},
getList(){
this.apipost('financestatistics_post_GetCompanyLineGuestList',this.msg, res => {
if(res.data.resultCode == 1) {
this.ColList=res.data.data.ColList;
this.List=res.data.data.List;
console.log("this.ColList",this.ColList);
console.log("this.List",this.List);
for(let i = 1; i < this.ColList.length; i++) {
this.newArr.push({
"Rank":this.ColList[i].Sort,
'value': this.ColList[i].Col,
"title": this.ColList[i].Name,
})
}
console.log("this.newArr",this.newArr);
}else{
this.Error(res.data.message);
}
}, err => {})
},
}
}
</script>
\ No newline at end of file
......@@ -364,6 +364,7 @@
</div>
</template>
<script>
import moment from "moment"
export default {
data(){
return{
......@@ -446,7 +447,7 @@ export default {
allWPrice:0,
}
},created(){
if(this.$route.query.TypeId){
if(this.$route.query.TypeId&&!this.$route.query.ID){
this.msg.Is_Cashier = parseInt(this.$route.query.Is_Cashier);
this.accType = parseInt(this.$route.query.TypeId);
this.msg.sTradeDate = this.$route.query.sTradeDate;
......@@ -456,6 +457,23 @@ export default {
this.getList();
this.BankAccount_post_GetCashAccountList("query");
}
if(this.$route.query.ID){
this.accType = parseInt(this.$route.query.TypeId)?parseInt(this.$route.query.TypeId):'';
this.AccountId=parseInt(this.$route.query.ID);
let mon1=moment().format("YYYY-MM-DD");
let mon2=moment().subtract(1, "months").format("YYYY-MM-DD");
this.productionDate=[mon2,mon1];
this.msg.sTradeDate=mon2;
this.msg.eTradeDate=mon1;
this.msg.BankList=[];
this.msg.BankList.push({
Type:this.Type,
AccountId:this.AccountId
})
this.bankaccount_post_GetList();
this.getList();
}
},methods:{
addChuNaFun(){ // 添加出纳按钮点击事件
let count = 0;
......@@ -798,7 +816,7 @@ export default {
this.msg.QEndDate = this.productionDateByTC[1];
},
bankaccount_post_GetList(){ // 获取银行账户
this.AccountId = '';
// this.AccountId = '';
let msg = {
TypeId:this.accType,
BranchId:-1,
......
......@@ -331,6 +331,7 @@
</div>
</template>
<script>
import moment from "moment"
export default {
data(){
return{
......@@ -399,16 +400,33 @@ export default {
allWPrice:0,
}
},created(){
if(this.$route.query.TypeId){
if(this.$route.query.TypeId&&!this.$route.query.ID){
this.msg.Is_Cashier = parseInt(this.$route.query.Is_Cashier);
this.accType = parseInt(this.$route.query.TypeId);
this.msg.sTradeDate = this.$route.query.sTradeDate;
this.msg.eTradeDate = this.$route.query.eTradeDate;
this.msg.sTradeDate = this.$route.query.sTradeDate?this.$route.query.sTradeDate:"";
this.msg.eTradeDate = this.$route.query.eTradeDate?this.$route.query.eTradeDate:"";
this.productionDate = [this.msg.sTradeDate, this.msg.eTradeDate];
this.productionDateByTC=[this.msg.QStartDate, this.msg.QEndDate];
this.getList();
this.bankaccount_post_GetListS("query");
}
if(this.$route.query.ID){
this.accType = parseInt(this.$route.query.TypeId);
this.AccountId=parseInt(this.$route.query.ID);
let mon1=moment().format("YYYY-MM-DD");
let mon2=moment().subtract(1, "months").format("YYYY-MM-DD");
this.productionDate=[mon2,mon1];
this.msg.sTradeDate=mon2;
this.msg.eTradeDate=mon1;
this.msg.BankList=[];
this.msg.BankList.push({
Type:this.Type,
AccountId:this.AccountId
})
this.bankaccount_post_GetList();
this.getList();
}
},methods:{
goUrl(path,id){
this.$router.push({ name: path,query:{"id":id,blank:'y'} })
......@@ -453,7 +471,7 @@ export default {
this.msg.QEndDate = this.productionDateByTC[1];
},
bankaccount_post_GetList(){ // 获取银行账户
this.AccountId = '';
// this.AccountId = '';
this.apipost('bankaccount_post_GetList',{TypeId:this.accType}, res => {
if(res.data.resultCode == 1) {
let data = res.data.data;
......@@ -487,7 +505,7 @@ export default {
}, err => {})
},
getList(){ //获取列表
this.loading = true
// this.loading = true
if( this.msg.ClientID == '' ){
this.msg.ClientID = 0;
}
......@@ -500,6 +518,8 @@ export default {
}
this.allMoney = '';
this.apipost('Financial_post_GetAccountDetailList',this.msg,res=>{
this.loading = false;
if(res.data.resultCode==1){
let data = res.data.data;
if(data.length){
......@@ -534,7 +554,7 @@ export default {
})
});
this.DataList = data
this.loading = false;
if( this.msg.ClientID == 0 ){
this.msg.ClientID = '';
}
......
......@@ -311,6 +311,7 @@
</div>
</template>
<script>
import moment from 'moment'
export default {
data(){
return{
......@@ -328,7 +329,7 @@ export default {
AccountNumber:''
},
Type:2,
AccountId:'',
AccountId:"",
DataList:[],
StartMoney:0,
AccountTypeList:[],
......@@ -380,7 +381,7 @@ export default {
allWPrice:0,
}
},created(){
if(this.$route.query.TypeId){
if(this.$route.query.TypeId&&!this.$route.query.ID){
this.msg.Is_Cashier = parseInt(this.$route.query.Is_Cashier);
this.accType = parseInt(this.$route.query.TypeId);
this.msg.sTradeDate = this.$route.query.sTradeDate;
......@@ -390,6 +391,23 @@ export default {
this.getList();
this.BankAccount_post_GetPlatformList("query");
}
if(this.$route.query.ID){
this.accType = parseInt(this.$route.query.TypeId)?parseInt(this.$route.query.TypeId):"";
this.AccountId=parseInt(this.$route.query.ID);
let mon1=moment().format("YYYY-MM-DD");
let mon2=moment().subtract(1, "months").format("YYYY-MM-DD");
this.productionDate=[mon2,mon1];
this.msg.sTradeDate=mon2;
this.msg.eTradeDate=mon1;
this.msg.BankList=[];
this.msg.BankList.push({
Type:this.Type,
AccountId:this.AccountId
})
this.bankaccount_post_GetList();
this.getList();
}
},methods:{
goUrl(path,id){
this.$router.push({ name: path,query:{"id":id,blank:'y'} })
......@@ -434,7 +452,7 @@ export default {
this.msg.QEndDate = this.productionDateByTC[1];
},
bankaccount_post_GetList(){ // 获取平台账户
this.AccountId = '';
// this.AccountId = '';
let msg = {
BackId:0,
TypeId:this.accType,
......
......@@ -341,6 +341,7 @@
</div>
</template>
<script>
import moment from "moment"
export default {
data(){
return{
......@@ -410,7 +411,7 @@ export default {
allWPrice:0,
}
},created(){
if(this.$route.query.TypeId){
if(this.$route.query.TypeId&&!this.$route.query.ID){
this.msg.Is_Cashier = parseInt(this.$route.query.Is_Cashier);
this.accType = parseInt(this.$route.query.TypeId);
this.msg.sTradeDate = this.$route.query.sTradeDate;
......@@ -420,6 +421,24 @@ export default {
this.getList();
this.BankAccount_post_GetCashPoolList("query");
}
if(this.$route.query.ID){
this.accType = parseInt(this.$route.query.TypeId)?parseInt(this.$route.query.TypeId):0;
this.AccountId=parseInt(this.$route.query.ID);
let mon1=moment().format("YYYY-MM-DD");
let mon2=moment().subtract(1, "months").format("YYYY-MM-DD");
this.productionDate=[mon2,mon1];
this.msg.sTradeDate=mon2;
this.msg.eTradeDate=mon1;
this.msg.BankList=[];
this.msg.BankList.push({
Type:this.Type,
AccountId:this.AccountId
})
this.bankaccount_post_GetList();
this.getList();
}
},methods:{
goUrl(path,id){
this.$router.push({ name: path,query:{"id":id,blank:'y'} })
......@@ -469,7 +488,7 @@ export default {
this.msg.QEndDate = this.productionDateByTC[1];
},
bankaccount_post_GetList(){ // 获取银行账户
this.AccountId = '';
// this.AccountId = '';
let msg = {
TypeId:this.accType,
BranchId:-1,
......@@ -514,6 +533,7 @@ export default {
this.endStartMoney = '';
this.endRStartMoney ='';
this.apipost('Financial_post_GetAccountDetailList',this.msg,res=>{
if(res.data.resultCode==1){
let data = res.data.data;
if(data.length){
......
......@@ -1430,12 +1430,15 @@ export default {
getCompany(){ // 获取公司
this.apipost('admin_get_BranchGetList', this.companyMsg, res => {
let data = res.data.data;
let Status=false;
if(this.$route.query.companyID!=='-1' && this.$route.query.companyID!==undefined){
Status=true;
data.forEach(x=>{
x.disabled = true;
})
}
if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length>0) {
Status=true;
this.orderObj.companyIDList.forEach(x=>{
data.forEach(y=>{
if (y.disabled === false){
......@@ -1447,6 +1450,30 @@ export default {
});
}
this.companyList = data;
if(!Status){
let id=this.$route.query.id;
this.apipost('FinancialFlowTemplate_post_GetTemplateBranch', {ID:id}, res => {
if (res.data.resultCode == 1) {
let resdata = res.data.data;
if(resdata.IsGroupCommon==0){
let BranchList=resdata.BranchList;
data.forEach(x=>{
x.disabled=true;
BranchList.forEach(y=>{
if(x.Id==y){
x.disabled=false;
}
})
})
this.companyList = data;
}
}
}, err => {})
}
}, err => {})
},
},
......
<template>
<div>
<div class="query-box" style="border-bottom: none;">
<ul>
<li v-if="isShowBtn==1">
<input type="button" class="fr normalBtn mb30" value="批量同意" @click="ChangeHotelInfo(2)"/>
<input type="button" class="fr normalBtn mb30" value="批量拒绝" @click="ChangeHotelInfo(3)"/>
</li>
</ul>
</div>
<div style="width: 100%; overflow-x: auto;padding-bottom: 10px; " class="ownScrollbarStyle">
<table border="0" cellspacing="1" cellpadding="0" class="changeHotelDetailsTalbe">
<table border="0" cellspacing="1" cellpadding="0" class="changeHotelDetailsTalbe" v-loading="Loading">
<tr>
<th class="fz14" colspan="14">酒店信息</th>
<!-- <th class="fz14" colspan="12">地接操作信息</th> -->
<th colspan="14">酒店信息</th>
</tr>
<tr>
<th>
公司团号
</th>
<th colspan="12" class="tdLeft">
<a class="link" @click="goUrlT('productQuery',TCNUM,'产品查询')">{{TCNUM}}</a>
</th>
<th>
<input type="button" class="fr normalBtn mb30" value="确认" @click="ChangeHotelInfo()" />
</th>
</tr>
<tr>
<th width="120">公司团号</th>
<th width="200">原酒店名称</th>
<th width="120">入住时间</th>
<th width="120">机位总数/(Y/E/F)</th>
<th width="80">选择酒店</th>
<th width="200">原酒店名称</th>
<th width="120">机位数(Y/E/F)</th>
<th width="120">占床/不占床</th>
<th width="80">实际用房数</th>
<th width="150">房间类型</th>
......@@ -28,137 +30,79 @@
<th width="150">房间预定数</th>
<th width="120">尚差房间数</th>
<th width="80">单价/每人</th>
<!--<th width="80">免减人数</th>
<th width="80">金额小计</th> -->
<th width="80">操作</th>
<!-- <th width="80">付款方式</th>
<th width="80">联系电话</th>
<th width="80">地址</th>
<th width="80">订团号</th>
<th width="80">备注</th> -->
<th width="100">状态</th>
</tr>
<tr v-for="(item,index) in list">
<td :rowspan="list.length" v-if="index==0">
<div class="w120">
<p class="link" @click="goUrlT('productQuery',TCNUM,'产品查询')">{{TCNUM}}</p>
</div>
<template v-for="(item,index) in DataList">
<template v-for="(subItem,subIndex) in item.HotelOrderList">
<tr v-for="(childItem,childIndex) in subItem.OrderDetailsList">
<td v-if="childIndex==0&&subIndex==0" :rowspan="5*item.HotelOrderList.length" class="tdCenter">
{{item.UseTimeStr}}
</td>
<td><div class="w200 padding10">
<p class="link" style="word-break: normal;" @click="goUrlR('HotelManagement',item.HotelId,'酒店管理')">{{item.HotelName}}</p>
</div>
<td v-if="childIndex==0" :rowspan="5" class="tdCenter">
<el-checkbox v-model='subItem.IsChecked'></el-checkbox>
</td>
<td><div class="w100">{{item.CheckInDateStr}}</div></td>
<td>
<div class="w120">
<p class="link" @click="goUrlT('RegistrationList',item.TCID,'报名清单')">{{flightTotal}}/{{item.HouseStatistics.RealityYSeatNum}}/{{item.HouseStatistics.RealityESeatNum}}/{{item.HouseStatistics.RealityFSeatNum}}</p>
</div>
<td v-if="childIndex==0" :rowspan="5" class="tdLeft">
<p class="link" style="word-break: normal;" @click="goUrlR('HotelManagement',HotelId.HotelId,'酒店管理')">
{{subItem.HotelName}}</p>
</td>
<td><div class="w120">
<p class="link" @click="goUrlT('passengerHouse',item.TCIDS,'房间分配')">{{item.HouseStatistics.NeedBed}}/{{item.HouseStatistics.NoNeedBed}}</p>
</div></td>
<td><div class="w120">{{item.HouseStatistics.RealityRoomNum}}</div></td>
<td><div class="w150">
<p class="pHouseStyle" v-for="o in item.HouseStatistics.HouseTypeList">
{{o.HouseTypeName}}
</p>
</div></td>
<td><div class="w80">
<p class="pHouseStyle" v-for="o in item.HouseStatistics.HouseTypeList">
{{o.HouseTypeCount}}
<td v-if="childIndex==0" :rowspan="5" class="tdCenter">
<p class="link" @click="goUrlT('RegistrationList',item.TCID,'报名清单')">
{{subItem.HouseStatistics.RealityYSeatNum}}/{{subItem.HouseStatistics.RealityESeatNum}}/{{subItem.HouseStatistics.RealityFSeatNum}}
</p>
</div></td>
<td><div class="w80">
<p class="pHouseStyle" v-for="o in item.HouseStatistics.HouseTypeList">
{{o.HouseGuestNum}}
</p>
</div></td>
<td><div class="w150">
{{item.NewHotelName}}
</div></td>
<td>
<div class="w120">
<p class="pHouseStyle" v-for="o in item.OrderDetailsList">
{{o.HouseTypeCount}}
</p>
</div>
</td>
<td>
<div class="w120">
<p class="pHouseStyle" :class="{colorRed:o.HouseTypeCount-item.HouseStatistics.HouseTypeList[index].HouseTypeCount<0}" v-for="(o,index) in item.OrderDetailsList">
{{o.HouseTypeCount-item.HouseStatistics.HouseTypeList[index].HouseTypeCount}}
</p>
</div>
<td v-if="childIndex==0" :rowspan="5" class="tdCenter">
<p class="link" @click="goUrlT('passengerHouse',item.TCIDS,'房间分配')">
{{subItem.HouseStatistics.NeedBed}}/{{subItem.HouseStatistics.NoNeedBed}}</p>
</td>
<td>
<div class="w120">
<p class="pHouseStyle" v-for="(o,index) in item.OrderDetailsList" @input="calculationPrice(item)">
{{o.UnitPrice}}
</p>
</div>
<td v-if="childIndex==0" :rowspan="5" class="tdCenter">
{{subItem.HouseStatistics.RealityRoomNum}}
</td>
<!-- <td>
<div class="w80">
<p class="pHouseStyle" v-for="(o,index) in item.OrderDetailsList" @input="calculationPrice(item)">
{{o.HotelDiscount}}
</p>
</div>
<td class="tdCenter">
{{subItem.HouseStatistics.HouseTypeList[childIndex].HouseTypeName}}
</td>
<td>
<div class="w80">
<p class="pHouseStyle" v-for="(o,index) in item.OrderDetailsList">
{{o.UnitPrice*(o.HouseGuestNum-o.HotelDiscount)}}
</p>
</div>
</td> -->
<td>
<div class="w120">
<span v-if="item.HotelChangeState==1">
<input type="button" class="normalBtn" value="同意" @click="HotelChangeState(item,2)"/>
<input type="button" class="normalBtn" value="拒绝" @click="HotelChangeState(item,3)"/>
</span>
</div>
<td class="tdCenter">
{{subItem.HouseStatistics.HouseTypeList[childIndex].HouseTypeCount}}
</td>
<!-- <td><div class="w120">
<el-select class='w100 sel' v-model='item.PayStyle' :placeholder="$t('pub.pleaseSel')">
<el-option label='请选择' value='0' ></el-option>
<el-option label='现付' value='1' ></el-option>
<el-option label='签单' value='2' ></el-option>
<el-option label='实物抵扣' value='5' ></el-option>
<el-option label='预付' value='4' ></el-option>
</el-select>
</div></td>
<td><div class="w120">{{item.Tel}}</div></td>
<td><div class="w200 padding10">{{item.Address}}</div></td>
<td>
<div class="w150">
<el-input class='w120' v-model='item.ReserveNo'></el-input>
</div>
<td class="tdCenter">
{{subItem.HouseStatistics.HouseTypeList[childIndex].HouseGuestNum}}
</td>
<td v-if="childIndex==0" :rowspan="5" class="tdLeft">
{{subItem.NewHotelName}}
</td>
<td class="tdCenter">
{{childItem.HouseTypeCount}}
</td>
<td class="tdCenter">
{{childItem.HouseTypeCount-subItem.HouseStatistics.HouseTypeList[childIndex].HouseTypeCount}}
</td>
<td class="tdCenter">
{{childItem.UnitPrice}}
</td>
<td class="tdCenter" v-if="childIndex==0" :rowspan="5">
<template v-if="subItem.OPState==1">
OP-OK
</template>
<template v-else>
{{subItem.DMCState==1?"地接-OK":(subItem.DMCState==2?"地接-暂定":"地接-未操作")}}
</template>
</td>
<td>
<div class="w150">
<el-input type='textarea' class='w120' v-model='item.Remarks'></el-input>
</div>
</td> -->
</tr>
</template>
</template>
</table>
</div>
</div>
</template>
<script>
export default {
data () {
export default {
data() {
return {
defaultSelectValue:0,
list:[],
roomList:[],
TCNUM:'',
flightTotal:0,
GuestNum:0,
hotelList:[],
isShowBtn:0,
DataList: [],
TCNUM: '',
TCIDs: "",
isShowBtn: 0,
Loading: false,
}
},
methods: {
......@@ -172,130 +116,101 @@ export default {
}
});
},
goUrlR(path,obj,title){
this.$router.push({ name:path,query:{"ID":obj,blank:'y',tab:title}})
},
goUrlT(path,obj,title){
this.$router.push({ name:path,query:{"id":obj,blank:'y',tab:title}})
},
getList(){
this.apipost('dmcstatistics_get_GetHotelStaticsDetail',{TCIDs:this.$route.query.id,NewCombinationNum:this.$route.query.TCNUM},res=>{
if(res.data.resultCode==1){
this.list=res.data.data.HotelList;
this.list.forEach(item=>{
if(item.HotelChangeState>0){
this.isShowBtn=1;
goUrlR(path, obj, title) {
this.$router.push({
name: path,
query: {
"ID": obj,
blank: 'y',
tab: title
}
item.PayStyle=item.PayStyle.toString()
})
}else{
this.$message.error(res.data.message)
}
},err=>{})
},
getHotelList(obj){
this.apipost('hotel_post_GetLineHotelList',{IsGetPic: 0,IsGetRemark: 0,QCity:obj.QCity},res=>{
if(res.data.resultCode==1){
obj.hotelList=res.data.data
}else{
this.$message.error(res.data.message)
goUrlT(path, obj, title) {
this.$router.push({
name: path,
query: {
"id": obj,
blank: 'y',
tab: title
}
},err=>{})
})
},
sendValue(obj){
if(obj.hotelList.length>0)
{
let ckedObj=obj.hotelList.find(item=>item.ID==obj.NewHotelId)
obj.Address=ckedObj.Address
obj.Tel=ckedObj.Tel
obj.NewHotelName=ckedObj.Name
}else{
obj.Address=''
obj.Tel=''
getList() {
this.Loading = true;
this.apipost('dmcstatistics_get_GetHotelStaticsDetail', {
TCIDs: this.TCIDs,
NewCombinationNum: this.TCNUM
}, res => {
this.Loading = false;
if (res.data.resultCode == 1) {
this.DataList = res.data.data.HotelOrderListReport;
} else {
this.Error(res.data.message);
}
}, err => {})
},
HotelChangeState(obj,State){
if(State==2){//给出提示
obj.HotelChangeState=State;
this.$confirm('是否同意?同意后将覆盖之前的信息!', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.saveList(0);
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
//更换酒店
ChangeHotelInfo() {
var that = this;
this.Confirm("是否同意替换选中酒店?同意后将覆盖之前的行程酒店信息!", function () {
that.saveList();
});
},
//保存酒店修改信息
saveList() {
this.apipost('dmcstatistics_post_SetUpdateHotelOrder', this.DataList, res => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.getList();
} else {
this.Error(res.data.message);
}
else{
this.saveList(0);
}
}, err => {})
},
},
mounted() {
this.TCNUM = this.$route.query.TCNUM;
this.TCIDs = this.$route.query.id;
this.getList();
},
}
ChangeHotelInfo(type){
if (type==2){
this.$confirm('是否同意?同意后将覆盖之前的信息!', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.list.forEach(item=>{
if(item.HotelChangeState>0){
item.HotelChangeState=2
</script>
<style>
.changeHotelDetailsTalbe {
border-collapse: collapse;
}
});
this.saveList();
}).catch(() => {
this.$message({
type: 'info',
message: '已取消删除'
});
});
.changeHotelDetailsTalbe tr th {
background: #eee;
height: 40px;
font-size: 12px;
color: #333;
border: 1px solid #d1d1d1;
}
else if (type==3){
this.list.forEach(item=>{
if(item.HotelChangeState>0){item.HotelChangeState=3}
});
this.saveList();
.changeHotelDetailsTalbe tr td {
font-size: 12px;
border: 1px solid #d1d1d1;
height: 25px;
line-height: 25px;
padding-left: 5px;
}
},
saveList(){
//暂时不开放此功能,测试通过后再开放
this.apipost('dmcstatistics_post_SetUpdateHotelOrder',this.list,res=>{
if(res.data.resultCode==1){
this.$message.success(res.data.message)
this.getList()
}else{
this.$message.error(res.data.message)
.changeHotelDetailsTalbe tr td .link:hover {
text-decoration: underline;
cursor: pointer;
}
},err=>{})
},
},
created() {
},
mounted() {
this.TCNUM=this.$route.query.TCNUM
this.flightTotal=this.$route.query.flightTotal
this.GuestNum=this.$route.query.GuestNum
this.getList()
// this.getHotelList()
},
}
</script>
.changeHotelDetailsTalbe .tdLeft {
text-align: left;
padding-left: 5px;
}
.changeHotelDetailsTalbe .tdCenter {
text-align: center;
}
<style>
.changeHotelDetailsTalbe{ background: #ddd;}
.changeHotelDetailsTalbe tr th{background: #eee;height:40px; font-size: 12px; color: #333;}
.changeHotelDetailsTalbe tr{background: #fff;text-align: center; height: 40px;}
.changeHotelDetailsTalbe tr td{font-size: 12px;}
.changeHotelDetailsTalbe tr td .pHouseStyle{border-bottom: 1px solid #ccc; height:28px; line-height: 28px;}
.changeHotelDetailsTalbe tr td .colorRed{color: #E95252;}
.changeHotelDetailsTalbe tr td .pHouseStyle:last-child{border-bottom: none;}
.changeHotelDetailsTalbe tr td .sel input{height: 34px!important; padding-right: 20px!important; padding-left: 5px!important; font-size: 12px!important;}
.changeHotelDetailsTalbe tr td .link:hover{text-decoration: underline; cursor: pointer;}
</style>
......@@ -305,6 +305,9 @@
subItem.HotelId = 0;
subItem.HotelName = "";
subItem.OrderID = 0;
subItem.OrderDetailsList.forEach(childItem=>{
childItem.OrderDetailsId=0;
});
item.HotelOrderList.push(subItem);
},
//删除酒店
......@@ -492,7 +495,7 @@
})
});
})
this.loading = true
this.loading = true;
this.apipost('dmcstatistics_get_SetHotelOrder', this.list, res => {
if (res.data.resultCode == 1) {
this.getList();
......
......@@ -14,10 +14,14 @@
<el-checkbox @change='activateOrDisabled(index)' v-model='item.IsCheck'>{{item.Workday}}</el-checkbox>
</td>
<td>
<el-time-select v-model='item.BeOnDutyTime' :picker-options="{start: '08:00',step: '00:05',end: '22:00', maxTime: item.OffDutyTime}" :disabled='!item.IsCheck'></el-time-select>
<el-time-select v-model='item.BeOnDutyTime'
:picker-options="{start: '08:00',step: '00:05',end: '22:00', maxTime: item.OffDutyTime}"
:disabled='!item.IsCheck'></el-time-select>
</td>
<td>
<el-time-select v-model='item.OffDutyTime' :picker-options="{start: '08:00',step: '00:05',end: '22:00', minTime: item.BeOnDutyTime}" :disabled='!item.IsCheck'></el-time-select>
<el-time-select v-model='item.OffDutyTime'
:picker-options="{start: '08:00',step: '00:05',end: '22:00', minTime: item.BeOnDutyTime}"
:disabled='!item.IsCheck'></el-time-select>
</td>
<td>
<el-tooltip v-if='index>0' class="item" effect="dark" content="同上" placement="right">
......@@ -40,9 +44,6 @@
<td>{{item.BeOnDutyTime}}~{{item.OffDutyTime}}</td>
<td>
<el-row>
<!--<el-tooltip class="item" effect="dark" content="修改" placement="right">
<el-button type="primary" icon="el-icon-edit" @click='updateSignIn(index)' circle></el-button>
</el-tooltip>-->
<el-tooltip class="item" effect="dark" content="删除" placement="right">
<el-button type="danger" icon="el-icon-delete" @click='deleteSignIn(index)' circle></el-button>
</el-tooltip>
......@@ -152,24 +153,31 @@
</tr>
<tr v-if="picked=='one'">
<td><span><em></em>日期</span>
<el-date-picker class='w275' v-model='newSignIn.Date' type="date" :picker-options="pickerOptions" value-format="yyyy-MM-dd"></el-date-picker>
<el-date-picker class='w275' v-model='newSignIn.Date' type="date" :picker-options="pickerOptions"
value-format="yyyy-MM-dd"></el-date-picker>
</td>
</tr>
<tr v-if="picked=='two'">
<td><span><em></em>日期</span>
<el-date-picker class='w135' v-model='fwStartTime' type="date" :picker-options="pickerOptions" value-format="yyyy-MM-dd" @change='getDateArr'></el-date-picker>
<el-date-picker class='w135' v-model='fwEndTime' type="date" :picker-options="pickerOptions" value-format="yyyy-MM-dd" @change='getDateArr'></el-date-picker>
<el-date-picker class='w135' v-model='fwStartTime' type="date" :picker-options="pickerOptions"
value-format="yyyy-MM-dd" @change='getDateArr'></el-date-picker>
<el-date-picker class='w135' v-model='fwEndTime' type="date" :picker-options="pickerOptions"
value-format="yyyy-MM-dd" @change='getDateArr'></el-date-picker>
</td>
</tr>
<tr>
<td><span><em></em>上班时间</span>
<el-time-select class='w275' v-model='newSignIn.BeOnDutyTime' :picker-options="{start: '08:00',step: '00:05',end: '22:00', maxTime:this.newSignIn.OffDutyTime}"></el-time-select>
<el-time-select class='w275' v-model='newSignIn.BeOnDutyTime'
:picker-options="{start: '08:00',step: '00:05',end: '22:00', maxTime:this.newSignIn.OffDutyTime}">
</el-time-select>
</td>
</tr>
<tr>
<td><span><em></em>下班时间</span>
<el-time-select class='w275' v-model='newSignIn.OffDutyTime' :picker-options="{start: '08:00',step: '00:05',end: '22:00', minTime:this.newSignIn.BeOnDutyTime}"></el-time-select>
<el-time-select class='w275' v-model='newSignIn.OffDutyTime'
:picker-options="{start: '08:00',step: '00:05',end: '22:00', minTime:this.newSignIn.BeOnDutyTime}">
</el-time-select>
</td>
</tr>
</table>
......@@ -184,21 +192,27 @@
</tr>
<tr v-if="picked1=='one'">
<td><span><em></em>日期</span>
<el-date-picker class='w275' v-model='newSignOut.Date' :picker-options="pickerOptions" type="date" value-format="yyyy-MM-dd"></el-date-picker>
<el-date-picker class='w275' v-model='newSignOut.Date' :picker-options="pickerOptions" type="date"
value-format="yyyy-MM-dd"></el-date-picker>
</td>
</tr>
<tr v-if="picked1=='two'">
<td><span><em></em>日期</span>
<el-date-picker class='w135' v-model='fwStartTime1' type="date" :picker-options="pickerOptions" value-format="yyyy-MM-dd" @change='getDateArr1'></el-date-picker>
<el-date-picker class='w135' v-model='fwEndTime1' type="date" :picker-options="pickerOptions" value-format="yyyy-MM-dd" @change='getDateArr1'></el-date-picker>
<el-date-picker class='w135' v-model='fwStartTime1' type="date" :picker-options="pickerOptions"
value-format="yyyy-MM-dd" @change='getDateArr1'></el-date-picker>
<el-date-picker class='w135' v-model='fwEndTime1' type="date" :picker-options="pickerOptions"
value-format="yyyy-MM-dd" @change='getDateArr1'></el-date-picker>
</td>
</tr>
</table>
<div v-if='this.signDateType==3' class="amap-page-container">
<el-amap-search-box class="search-box" :search-option="searchOption" :on-search-result="onSearchResult"></el-amap-search-box>
<el-amap-search-box class="search-box" :search-option="searchOption" :on-search-result="onSearchResult">
</el-amap-search-box>
<el-amap vid="amapDemo" :center="center" :zoom="12" style='width: 744px;height: 450px; border:1px solid #ccc;'>
<el-amap-marker v-for="(marker, index) in markers" :key='index' :position="marker.position" :radius="marker.radius" :fill-color="marker.fillColor" :fill-opacity="marker.fillOpacity" :events="marker.events"></el-amap-marker>
<el-amap-marker v-for="(marker, index) in markers" :key='index' :position="marker.position"
:radius="marker.radius" :fill-color="marker.fillColor" :fill-opacity="marker.fillOpacity"
:events="marker.events"></el-amap-marker>
</el-amap>
<table style="width: 100%;">
<tr height="45">
......@@ -246,14 +260,14 @@
export default {
data() {
return {
fwStartTime:'',
fwEndTime:'',
fwStartTime1:'',
fwEndTime1:'',
fwdateArr:[],
fwdateArr1:[],
picked:'one',
picked1:'one',
fwStartTime: '',
fwEndTime: '',
fwStartTime1: '',
fwEndTime1: '',
fwdateArr: [],
fwdateArr1: [],
picked: 'one',
picked1: 'one',
searchOption: {},
markers: [],
center: [104.090588, 30.643365],
......@@ -373,25 +387,31 @@
}
},
methods: {
getDateArr(){
if(this.fwStartTime!=''&&this.fwEndTime!=''){
this.apipost('User_get_AttendanceGetTimeSpanValue',{StartTime:this.fwStartTime,EndTime:this.fwEndTime},res=>{
this.fwdateArr=res.data.data
},err=>{})
getDateArr() {
if (this.fwStartTime != '' && this.fwEndTime != '') {
this.apipost('User_get_AttendanceGetTimeSpanValue', {
StartTime: this.fwStartTime,
EndTime: this.fwEndTime
}, res => {
this.fwdateArr = res.data.data
}, err => {})
}
},
getDateArr1(){
if(this.fwStartTime1!=''&&this.fwEndTime1!=''){
this.apipost('User_get_AttendanceGetTimeSpanValue',{StartTime:this.fwStartTime1,EndTime:this.fwEndTime1},res=>{
this.fwdateArr1=res.data.data
},err=>{})
getDateArr1() {
if (this.fwStartTime1 != '' && this.fwEndTime1 != '') {
this.apipost('User_get_AttendanceGetTimeSpanValue', {
StartTime: this.fwStartTime1,
EndTime: this.fwEndTime1
}, res => {
this.fwdateArr1 = res.data.data
}, err => {})
}
},
onSearchResult(pois) {
let latSum = 0;
let lngSum = 0;
this.markers.length = 0
if(pois.length > 0) {
if (pois.length > 0) {
pois.forEach(poi => {
let {
lng,
......@@ -425,13 +445,13 @@
}
},
activateOrDisabled(index) {
if(this.listArr[index].IsCheck == false) {
if (this.listArr[index].IsCheck == false) {
this.listArr[index].BeOnDutyTime = '';
this.listArr[index].OffDutyTime = '';
}
},
copyPrev(index) {
if(this.listArr[index].IsCheck == true) {
if (this.listArr[index].IsCheck == true) {
this.listArr[index].BeOnDutyTime = this.listArr[index - 1].BeOnDutyTime;
this.listArr[index].OffDutyTime = this.listArr[index - 1].OffDutyTime;
}
......@@ -479,15 +499,15 @@
},
saveSignIn() {
if(this.picked=='one'){ // 单天设置
if (this.picked == 'one') { // 单天设置
this.isRepetition = false;
this.SpecialDates.forEach(item => {
if(this.newSignIn.Date == item) {
if (this.newSignIn.Date == item) {
this.isRepetition = true;
}
})
if(this.newSignIn.Date != '' && this.newSignIn.BeOnDutyTime != '' && this.newSignIn.OffDutyTime != '') {
if(!this.isRepetition) {
if (this.newSignIn.Date != '' && this.newSignIn.BeOnDutyTime != '' && this.newSignIn.OffDutyTime != '') {
if (!this.isRepetition) {
this.signInDates.unshift(this.newSignIn);
this.newSignIn = {
'Date': '',
......@@ -495,7 +515,7 @@
'OffDutyTime': ''
};
this.getSpecialDates()
this.outerVisible=false;
this.outerVisible = false;
this.$message.success('添加成功!');
} else {
......@@ -505,25 +525,29 @@
this.$message.warning('请填写完整信息!')
}
}
if(this.picked=='two'){ //范围设置
if (this.picked == 'two') { //范围设置
this.isRepetition = false;
this.SpecialDates.forEach(item => {
if(this.fwdateArr.findIndex(x=>x==item)!=-1){
if (this.fwdateArr.findIndex(x => x == item) != -1) {
this.isRepetition = true; //存在重复
}
})
if(this.isRepetition){
if (this.isRepetition) {
this.$message.warning('必须打卡日期或不用打卡日期存在重复!')
}else{
this.fwdateArr.forEach(item=>{
this.signInDates.push({'Date':item,'BeOnDutyTime':this.newSignIn.BeOnDutyTime,'OffDutyTime':this.newSignIn.OffDutyTime})
} else {
this.fwdateArr.forEach(item => {
this.signInDates.push({
'Date': item,
'BeOnDutyTime': this.newSignIn.BeOnDutyTime,
'OffDutyTime': this.newSignIn.OffDutyTime
})
this.getSpecialDates()
this.outerVisible=false;
this.outerVisible = false;
this.$message.success('添加成功!');
this.fwStartTime=''
this.fwEndTime=''
this.fwStartTime = ''
this.fwEndTime = ''
})
}
......@@ -537,20 +561,20 @@
this.outerVisible = true;
},
saveSignOut() {
if(this.picked1=='one'){ // 单天设置
if (this.picked1 == 'one') { // 单天设置
this.isRepetition = false;
this.SpecialDates.forEach(item => {
if(this.newSignOut.Date == item) {
if (this.newSignOut.Date == item) {
this.isRepetition = true;
}
})
if(!this.isRepetition) {
if (!this.isRepetition) {
this.signOutDates.unshift(this.newSignOut);
this.newSignOut = {
'Date': ''
};
this.getSpecialDates()
this.outerVisible=false;
this.outerVisible = false;
this.$message.success('添加成功!');
} else {
......@@ -558,25 +582,27 @@
}
}
if(this.picked1=='two'){
if (this.picked1 == 'two') {
this.isRepetition = false;
this.SpecialDates.forEach(item => {
if(this.fwdateArr1.findIndex(x=>x==item)!=-1){
if (this.fwdateArr1.findIndex(x => x == item) != -1) {
this.isRepetition = true; //存在重复
}
})
if(this.isRepetition){
if (this.isRepetition) {
this.$message.warning('必须打卡日期或不用打卡日期存在重复!')
}else{
this.fwdateArr1.forEach(item=>{
this.signOutDates.push({'Date':item})
} else {
this.fwdateArr1.forEach(item => {
this.signOutDates.push({
'Date': item
})
this.getSpecialDates()
this.outerVisible=false;
this.outerVisible = false;
this.$message.success('添加成功!');
this.fwStartTime1=''
this.fwEndTime1=''
this.fwStartTime1 = ''
this.fwEndTime1 = ''
})
}
......@@ -602,13 +628,13 @@
});
},
getSpecialDates() { //特殊天数集合
this.SpecialDates=[]
this.SpecialDates = []
this.signInDates.forEach(item => {
if(item.Date && item.Date != '')
if (item.Date && item.Date != '')
this.SpecialDates.push(item.Date)
})
this.signOutDates.forEach(item => {
if(item.Date && item.Date != '')
if (item.Date && item.Date != '')
this.SpecialDates.push(item.Date)
})
......@@ -626,7 +652,7 @@
},
saveAddress() {
this.newAwlist.Scope = this.addressRange;
if(this.newAwlist.Name!=''&&this.newAwlist.Address!=''&&this.newAwlist.TargetAddress!=''){
if (this.newAwlist.Name != '' && this.newAwlist.Address != '' && this.newAwlist.TargetAddress != '') {
this.awListData.unshift(this.newAwlist);
this.newAwlist = {
'Name': '',
......@@ -636,7 +662,7 @@
};
this.outerVisible = false;
this.$alert('添加成功!', '提示');
}else{
} else {
this.$alert('请填写完整信息!', '提示')
}
},
......@@ -670,7 +696,7 @@
this.saveBtnType = 4;
},
saveWifi() {
if(this.newAwWiFi.Name != '' && this.newAwWiFi.TargetAddress != '') {
if (this.newAwWiFi.Name != '' && this.newAwWiFi.TargetAddress != '') {
this.awWifiListDates.unshift(this.newAwWiFi);
this.newAwWiFi = {
'Name': '',
......@@ -703,9 +729,9 @@
this.outerVisible = false;
},
addAttendance() {
this.wdListArr=[]
this.wdListArr = []
this.listArr.forEach(item => {
if(item.IsCheck == true && item.BeOnDutyTime != '' && item.OffDutyTime != '') {
if (item.IsCheck == true && item.BeOnDutyTime != '' && item.OffDutyTime != '') {
this.wdListArr.push({
'Workday': item.Workday,
"BeOnDutyTime": item.BeOnDutyTime,
......@@ -719,10 +745,10 @@
this.addMsg.awList = this.awListData; //根据地点考勤
this.addMsg.awWifiList = this.awWifiListDates; //根据Wifi考勤
this.apipost('User_post_AttendanceSet', this.addMsg, res => {
if(res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message)
this.goBack()
}else{
} else {
this.$message.error(res.data.message)
}
......@@ -747,7 +773,7 @@
this.getSpecialDates();
this.awListData = res.data.data.AwList;
this.awWifiListDates = res.data.data.AwWifiList;
if(res.data.data.AwList.length > 0) {
if (res.data.data.AwList.length > 0) {
this.addressRange = res.data.data.AwList[0].Scope.toString();
}
......@@ -759,7 +785,7 @@
},
mounted() {
this.addMsg.RB_BranchId = this.$route.query.bId;
if(this.$route.query.id != undefined) {
if (this.$route.query.id != undefined) {
this.addMsg.attendanceId = this.$route.query.id;
this.getUpdateList();
}
......@@ -767,6 +793,7 @@
}
}
</script>
<style>
......@@ -783,7 +810,7 @@
}
.att .el-select .el-input.is-disabled .el-input__inner {
height: 34px!important;
height: 34px !important;
}
.att_mapitem {
......@@ -796,27 +823,33 @@
}
.awName {
height: 34px!important;
font-size: 14px!important;
line-height: 34px!important;
height: 34px !important;
font-size: 14px !important;
line-height: 34px !important;
}
.awAddress {
height: 34px!important;
height: 34px !important;
}
.att_addDates {
width: 500px;
}
.att_map_input {width: 200px;height: 34px;border-radius: 17px;padding: 0 10px;border: 1px solid #DCDFE6;}
.att_map_input {
width: 200px;
height: 34px;
border-radius: 17px;
padding: 0 10px;
border: 1px solid #DCDFE6;
}
.att_addDates .el-input__inner {
padding-left: 30px!important;
padding-left: 30px !important;
}
.att_addDates .el-input__icon {
line-height: 34px!important;
line-height: 34px !important;
}
.att_amap {
......@@ -935,4 +968,5 @@
.att_type_item p>span {
color: #999;
}
</style>
......@@ -184,6 +184,7 @@
this.$nextTick(() => {
this.dataList = res.data.data.pageData;
});
console.log("res",res);
this.datesArr = res.data.data.columnData;
this.newArr.length = 0;
for(let i = 0; i < this.datesArr.length; i++) {
......@@ -192,6 +193,7 @@
"title": this.datesArr[i].substring(this.datesArr[i].length - 2, this.datesArr[i].length) + '(' + this.getWeekByDay(this.datesArr[i]) + ')'
})
}
console.log("this.newArr",this.newArr)
this.total = res.data.data.count;
}
......
......@@ -2733,6 +2733,14 @@ export default {
meta: {
title: '简易报表'
},
},
{ //财务 线路收客
path: '/LineReceiver',
name: 'LineReceiver',
component: resolve => require(['@/components/FinancialModule/ReportForm/LineReceiver'], resolve),
meta: {
title: '线路收客'
},
}, { //财务 报表 年度营收报表
path: '/YearReport',
name: 'YearReport',
......
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