|  | @@ -41,7 +41,7 @@
 | 
	
		
			
				|  |  |  						</text>
 | 
	
		
			
				|  |  |  					</view>
 | 
	
		
			
				|  |  |  					<view class="item">
 | 
	
		
			
				|  |  | -						<text class="p1">确认状态:</text>
 | 
	
		
			
				|  |  | +						<text class="p1">账单确认:</text>
 | 
	
		
			
				|  |  |  						<text class="p2">
 | 
	
		
			
				|  |  |  							<text v-if="businessItem.confirmInput==0">未确认</text>
 | 
	
		
			
				|  |  |  							<text v-else>已确认</text>
 | 
	
	
		
			
				|  | @@ -59,15 +59,29 @@
 | 
	
		
			
				|  |  |  				<view class="b">
 | 
	
		
			
				|  |  |  					<view class="btn b3" v-if="businessItem.confirmInput==0
 | 
	
		
			
				|  |  |  								&&businessItem.payStatus==1
 | 
	
		
			
				|  |  | +								&&businessItem.outDayTime!=null
 | 
	
		
			
				|  |  |  								&&perList.indexOf('tb-business-confirm')!=-1
 | 
	
		
			
				|  |  |  								&&customemrId!='1'" @click="sureZdFn(businessItem)">
 | 
	
		
			
				|  |  |  						确认账单</view>
 | 
	
		
			
				|  |  | -					<view class="btn b3" v-if="businessItem.confirmInput==1&&businessItem.payStatus<3" @click="fkFn(businessItem)">
 | 
	
		
			
				|  |  | -						确认支付</view>
 | 
	
		
			
				|  |  | +					<view class="btn b3" v-if="perList.indexOf('tb-business-pay')!=-1
 | 
	
		
			
				|  |  | +								&&businessItem.payStatus==1&&businessItem.confirmInput==1&&customemrId!='1'" @click="fkFn(businessItem)">
 | 
	
		
			
				|  |  | +						马上支付</view>
 | 
	
		
			
				|  |  | +						<view class="btn b3" v-if="perList.indexOf('tb-business-pay')!=-1&&
 | 
	
		
			
				|  |  | +									customemrId=='1'&&businessItem.payStatus<3&&businessItem.outDayTime!=null" @click="fkFn(businessItem)">
 | 
	
		
			
				|  |  | +							确认支付</view>
 | 
	
		
			
				|  |  |  					<view class="btn b1" v-if="customemrId=='1'&&businessItem.realInTime==null"
 | 
	
		
			
				|  |  |  						@click="rcFn(businessItem)">确认入场</view>
 | 
	
		
			
				|  |  | -					<view class="btn b1" v-if="customemrId=='1'&&businessItem.outDayTime==null&&businessItem.realInTime!=null" @click="cc(index)">确认出场</view>
 | 
	
		
			
				|  |  | -					<view class="btn b3" v-if="businessItem.btnShow==2" @click="zd(index)">确认账单</view>
 | 
	
		
			
				|  |  | +					<view class="btn b1" v-if="customemrId=='1'&&businessItem.outDayTime==null&&businessItem.realInTime!=null" @click="cc(businessItem)">确认出场</view>
 | 
	
		
			
				|  |  | +					<view class="btn b1" v-if="customemrId=='1'
 | 
	
		
			
				|  |  | +							&&businessItem.confirmInput==0
 | 
	
		
			
				|  |  | +							&&businessItem.realInTime==null
 | 
	
		
			
				|  |  | +							&&businessItem.outDayTime==null" @click="editFn(businessItem)">修改</view>
 | 
	
		
			
				|  |  | +					<view class="btn b3" @click="toDetail(businessItem)">详情</view>
 | 
	
		
			
				|  |  | +					<view class="btn b4" v-if="businessItem.payStatus==1
 | 
	
		
			
				|  |  | +								&&businessItem.confirmInput==0
 | 
	
		
			
				|  |  | +								&&businessItem.realInTime==null
 | 
	
		
			
				|  |  | +								&&businessItem.outDayTime==null
 | 
	
		
			
				|  |  | +								&&perList.indexOf('tb-business-add')!=-1" @click="deleteFn(businessItem)">删除</view>
 | 
	
		
			
				|  |  |  				</view>
 | 
	
		
			
				|  |  |  			</view>
 | 
	
		
			
				|  |  |  		</view>
 | 
	
	
		
			
				|  | @@ -117,12 +131,39 @@
 | 
	
		
			
				|  |  |  			this.getBusinessList();
 | 
	
		
			
				|  |  |  		},
 | 
	
		
			
				|  |  |  		methods: {
 | 
	
		
			
				|  |  | +			toDetail(data){
 | 
	
		
			
				|  |  | +				this.$common.to('/pages/business-entering/business-detail?id='+data.id)
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  | +			editFn(data){
 | 
	
		
			
				|  |  | +				this.$common.to('/pages/business-entering/business-entering?id='+data.id)
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  | +			deleteFn(data){
 | 
	
		
			
				|  |  | +				let that=this;
 | 
	
		
			
				|  |  | +			 uni.showModal({
 | 
	
		
			
				|  |  | +			 	title:"警告",
 | 
	
		
			
				|  |  | +				content:"是否删除该业务?",
 | 
	
		
			
				|  |  | +				success(res) {
 | 
	
		
			
				|  |  | +					if(res.confirm){
 | 
	
		
			
				|  |  | +						that.$api.deleteBusiness({id:data.id}).then(resp=>{
 | 
	
		
			
				|  |  | +							that.$common.toast('已删除');
 | 
	
		
			
				|  |  | +							that.getBusinessList();
 | 
	
		
			
				|  |  | +						})
 | 
	
		
			
				|  |  | +					}
 | 
	
		
			
				|  |  | +				}
 | 
	
		
			
				|  |  | +			 })	
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  |  			sureZdFn(data){
 | 
	
		
			
				|  |  |  				this.$common.to('/pages/business-order/sureOrder?id='+data.id)
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  |  			fkFn(data) {
 | 
	
		
			
				|  |  |  				this.$common.to('/pages/business-order/surePay?id='+data.id)
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  | +			rcFn(data) {
 | 
	
		
			
				|  |  | +				this.$common.to('/pages/business-order/sureIn?id='+data.id)
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  | +			cc(data) {
 | 
	
		
			
				|  |  | +			this.$common.to('/pages/business-order/sureOut?id='+data.id)
 | 
	
		
			
				|  |  | +			},
 | 
	
		
			
				|  |  |  			getBusinessList() {
 | 
	
		
			
				|  |  |  				this.$api.getBusinessList(this.p).then(resp => {
 | 
	
		
			
				|  |  |  					this.status = 'loadmore';
 | 
	
	
		
			
				|  | @@ -151,11 +192,7 @@
 | 
	
		
			
				|  |  |  					this.getBusinessList();
 | 
	
		
			
				|  |  |  				})
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  | -			rcFn(data) {
 | 
	
		
			
				|  |  | -				this.rc.id = data.id
 | 
	
		
			
				|  |  | -				this.rc.visible = true;
 | 
	
		
			
				|  |  | -				this.rc.showTime = false;
 | 
	
		
			
				|  |  | -			},
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  |  			rcconfirm() {
 | 
	
		
			
				|  |  |  				if (!this.rc.inChannel) {
 | 
	
		
			
				|  |  |  					this.$common.toast('请填写入场通道');
 | 
	
	
		
			
				|  | @@ -166,9 +203,7 @@
 | 
	
		
			
				|  |  |  					this.getBusinessList();
 | 
	
		
			
				|  |  |  				})
 | 
	
		
			
				|  |  |  			},
 | 
	
		
			
				|  |  | -			cc() {
 | 
	
		
			
				|  |  | -				this.$refs.ccpopup.open('center')
 | 
	
		
			
				|  |  | -			},
 | 
	
		
			
				|  |  | +		
 | 
	
		
			
				|  |  |  			ccconfirm(index) {
 | 
	
		
			
				|  |  |  				console.log('出场')
 | 
	
		
			
				|  |  |  				this.$refs.ccpopup.close()
 | 
	
	
		
			
				|  | @@ -304,6 +339,10 @@
 | 
	
		
			
				|  |  |  					color: #0080ff;
 | 
	
		
			
				|  |  |  					border: 1rpx solid #0080ff;
 | 
	
		
			
				|  |  |  				}
 | 
	
		
			
				|  |  | +				.b4 {
 | 
	
		
			
				|  |  | +					background-color: #ff0000;
 | 
	
		
			
				|  |  | +					color: #fff;
 | 
	
		
			
				|  |  | +				}
 | 
	
		
			
				|  |  |  			}
 | 
	
		
			
				|  |  |  		}
 | 
	
		
			
				|  |  |  	}
 |