소스 검색

客户审核

qzyReal 3 년 전
부모
커밋
7af1eab418

+ 3 - 0
app/apis/api.js

@@ -87,6 +87,9 @@ export default {
 	editCustomer(data){
 		return ajax.postForm('/TbCostomer/update',data)
 	},
+	judgeCustomer(data){
+		return ajax.postForm('/TbCostomer/judge',data)
+	},
 	getUnitList(){
 		return ajax.get('/TbUnit/getList')
 	}

+ 11 - 5
app/pages.json

@@ -148,6 +148,14 @@
 		    
 		},
 		{
+		    "path" : "pages/customer-management/customer-judge",
+		    "style" :                                                                                    
+		    {
+		        "navigationBarTitleText": ""
+		    }
+		    
+		},
+		{
             "path" : "pages/business-entering/item-select",
             "style" :                                                                                    
             {
@@ -159,11 +167,9 @@
         }
     ],
 	"globalStyle": {
-		"navigationBarTextStyle": "black",
+		"navigationBarTextStyle": "white",
 		"navigationBarTitleText": "uni-app",
-		"navigationBarBackgroundColor": "#F8F8F8",
-		"backgroundColor": "#F8F8F8",
-		"navigationBarBackgroundColor": "#0080ff",
-		"navigationBarTextStyle":"white"
+		"navigationBarBackgroundColor":"#0080ff",
+		"backgroundColor": "#F8F8F8"
 	}
 }

+ 8 - 3
app/pages/business-order/business-order.vue

@@ -36,8 +36,8 @@
 						<text class="p1">车辆状态:</text>
 						<text class="p2">
 							<text v-if="businessItem.realInTime==null">未入场</text>
-							<text v-if="businessItem.realInTime!=null">已入场</text>
-							<text v-if="businessItem.outDayTime!=null">已离场</text>
+							<text v-if="businessItem.realInTime!=null&&businessItem.adminConfirmOut==0">已入场</text>
+							<text v-if="businessItem.outDayTime!=null&&businessItem.adminConfirmOut==1">已离场</text>
 						</text>
 					</view>
 					<view class="item">
@@ -75,7 +75,12 @@
 						确认支付</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.complete==1&&businessItem.payStatus>1"
+					<view class="btn b1"
+					 v-if="customemrId=='1'
+					&&businessItem.complete==1
+					&&businessItem.payStatus>1
+					&&businessItem.adminConfirmPay==1
+					&&businessItem.adminConfirmOut==0"
 						@click="cc(businessItem)">确认离场</view>
 					<view class="btn b1" v-if="businessItem.confirmInput==0" @click="editFn(businessItem)">修改</view>
 					<view class="btn b3" @click="toDetail(businessItem)">详情</view>

+ 76 - 0
app/pages/customer-management/customer-judge.vue

@@ -0,0 +1,76 @@
+<template>
+	<view>
+		<view class="box">
+			<view class="top">
+				<text class="title">企业审核</text>
+			</view>
+			<view class="item">
+				<view class="l">企业名称:</view>
+				<view class="r">
+					{{form.name}}
+				</view>
+			</view>
+			<view class="item">
+				<view class="l">审核意见:</view>
+				<view class="r">
+					<u-input v-model="form.judgeContent" placeholder="输入审核意见" />
+				</view>
+			</view>
+			<view class="item">
+				<view class="l">审核结果:</view>
+				<view class="r">
+					<radio-group @change="statusChange">
+						<label class="radio">
+							<radio value="2" checked />通过
+						</label>
+						<label class="radio" style="margin-left: 20rpx;">
+							<radio value="3" />不通过
+						</label>
+					</radio-group>
+				</view>
+			</view>
+		</view>
+		<view class="common-btn" @click="confirm">确认</view>
+	</view>
+</template>
+
+<script>
+	import request from '../../utils/request.js'
+	export default {
+		data() {
+			return {
+				form: {
+					id:'',
+					name:'',
+					judgeContent: '',
+					judgeStatus: '2'
+				},
+			}
+		},
+		onLoad(options) {
+			this.form=options;
+			this.form.judgeStatus=2;
+		},
+		methods: {
+			statusChange(val){
+				this.form.judgeStatus=val.detail.value;
+			},
+			confirm(){
+				if(!this.form.judgeContent&&this.form.judgeStatus=='3'){
+					this.$common.toast('请输入审核意见')
+				}
+				this.$api.judgeCustomer(this.form).then(resp=>{
+					this.$common.back();
+				})
+			},
+		}
+	}
+</script>
+
+<style lang="scss">
+	page {
+		background-color: #fff;
+	}
+
+	@import '@/common/common.scss'
+</style>

+ 3 - 4
app/pages/customer-management/customer-management.vue

@@ -40,7 +40,7 @@
 					</view>
 				</view>
 				<view class="b">
-					<view class="btn b1" v-if="customerItem.btnShow==1 " @click="sh(customerItem.id)">审核</view>
+					<view class="btn b1" v-if="customerItem.btnShow==1 " @click="sh(customerItem)">审核</view>
 				</view>
 			</view>
 		</view>
@@ -131,9 +131,8 @@
 			},
 			//点击按钮
 			//------------------------------------------
-			sh(id) {
-				this.confirmCustomerId = id;
-				this.$refs.shpopup.open('center')
+			sh(data) {
+				this.$common.to('/pages/customer-management/customer-judge?id='+data.id+'&name='+data.name)
 			},
 			shconfirm(val) {
 				this.judgeContent = val;

+ 4 - 4
app/pages/index/index.vue

@@ -10,7 +10,7 @@
 					</view>
 				</block>
 				<block v-else>
-					<view class="login-btn" @click="toLogin">请先登录</view>
+					<view class="login-btn" @click="toLogin">登录</view>
 				</block>
 			</view>
 			<view class="r" v-if="isLogin">
@@ -21,7 +21,7 @@
 		</view>
 		<view class="top-bg"></view>
 		<view class="top">
-			<text class="title">集散区临时消杀场</text>
+			<text class="title">场站管理系统</text>
 		</view>
 		<view class="item-box">
 			<view class="item" hover-class="hover-class" 
@@ -204,7 +204,7 @@
 		top: 0;
 		left: 0;
 		right: 0;
-		height: 500rpx;
+		height: 400rpx;
 		background-color: #0080ff;
 		border-radius: 0 0 20rpx 20rpx;
 	}
@@ -267,7 +267,7 @@
 		flex-direction: column;
 		align-items: center;
 		justify-content: center;
-		margin: 50rpx 0;
+		margin: 30rpx 0;
 
 		.qrcode {
 			width: 350rpx;