ccjgmwz 3 سال پیش
والد
کامیت
b0ebe09fbf

+ 2 - 2
config/index.js

@@ -1,8 +1,8 @@
 const dev = {
 	baseUrl: 'https://www.zthymaoyi.com',
-	baseUrlNew: 'http://192.168.1.120:8090/',
+	// baseUrlNew: 'http://192.168.1.122:8090/',
 	// baseUrlNew: 'http://192.168.1.103:9100/',
-	// baseUrlNew: 'https://apitest.eliangeyun.com/',
+	baseUrlNew: 'https://apitest.eliangeyun.com/',
 	// baseUrlNew: 'http://api1.eliangeyun.com/',
 	h5Appid: 'wxb66b599f7f61b46f',
 	debug: false

+ 2 - 1
pages.json

@@ -326,7 +326,8 @@
 		{
 			"path": "pages/bill/index",
 			"style": {
-				"navigationBarTitleText": "我的票据"
+				"navigationBarTitleText": "我的票据",
+				"enablePullDownRefresh": true
 			}
 		},
 		{

+ 14 - 6
pages/attestation/indexTwo.vue

@@ -79,9 +79,9 @@
 					</view>
 					<text style="color:#AFB3BF;font-size: 14px;">验证码已发送至+86 {{price}}</text>
 					<view class="cancel" @click='pricestatusTwo=false,pricestatus=false'>×</view>
-					<view class='shade-content-item flex'>
+					<view class='shade-content-item1 flex'>
 						<input v-model='verifyCode' placeholder="填写验证码" type="number" class="tainput1" maxlength="6">
-						<text style="color:#AFB3BF;font-size: 14px;" @click="resend">{{sendText}}</text>
+						<text style="color:#22C572;font-size: 14px;padding-right: 40rpx;" @click="resend">{{sendText}}</text>
 					</view>
 					<view>
 						<view class="flex">
@@ -123,6 +123,8 @@
 			...mapState(['hasLogin', 'userInfo'])
 		},
 		onShow() {
+			this.pricestatus = false
+			this.pricestatusTwo = false
 			this.getList()
 		},
 		onPullDownRefresh() {
@@ -359,6 +361,7 @@
 					})
 					return
 				}
+				this.pricestatus = false
 				this.pricestatusTwo = true
 				// this.pricestatusTwo = !this.pricestatusTwo
 				var that = this
@@ -597,7 +600,12 @@
 		height: 160rpx;
 		padding: 35px 10px;
 	}
-
+	.shade-content-item1 {
+		width: 277px;
+		text-align: center;
+		height: 160rpx;
+		padding: 15px 10px;
+	}
 	.shade {
 		position: fixed;
 		top: 0;
@@ -627,8 +635,8 @@
 	}
 
 	.tainput {
-		width: 90%;
-		padding-bottom: 15rpx;
+		width: 70%;
+		// padding-bottom: 15rpx;
 		margin: 0 auto;
 		text-align: left;
 		border-bottom: 1px solid #AFB3BF;
@@ -636,7 +644,7 @@
 	}
 
 	.tainput1 {
-		width: 70%;
+		width: 50%;
 		padding-left: 10px;
 		margin: 0 auto;
 		text-align: left;

+ 24 - 20
pages/bill/index.vue

@@ -4,7 +4,7 @@
 			<view style='background:#fff;display:flex;' class="cu-bar search">
 				<view style='flex:6;' class="search-form round Medium">
 					<text style='color: #ccc;text-indent:6px;' class="cuIcon-search"></text>
-					<input type="text" maxlength="20" :focus="true" v-model="searchKeyWord" @confirm="doSearch()"
+					<input type="text" maxlength="20"  v-model="searchKeyWord" @confirm="doSearch()"
 						 placeholder="请输入买方名称或编号" confirm-type="search"></input>
 				</view>
 				<view @click='doSearch()' class="Regular" style="width:4%;flex:1;">搜索</view>
@@ -20,15 +20,19 @@
 		<view class='wrap' v-for='item in dataInfo'>
 			<view style='margin:5px;padding:10px 0;border-bottom:1px solid #eee;' class="flex justify-between align-item-center">
 				<view style='color:#878C9C;'>{{item.paymentNo}}</view>
-				<view class='not' v-if='item.status=="待结算"'>待付款</view>
-				<view class='already' v-else>已付款</view>
+				<view class='already'  v-if='item.status=="全部付款"'>已付款</view>
+				<view class='not' v-else>待付款</view>
 			</view>
 			<view style='line-height:30px;'>
 				<view class='purchaser'>买方</view><view style='font-size:14px;display:inline-block;'>{{item.compName}}</view>
 			</view>
 			<view style='line-height:30px;'>
-				<view class='seller'>卖方</view><view style='font-size:14px;display:inline-block;'>{{item.customerName}}</view>
-				
+				<view class='flex justify-between align-item-center'>
+					<view >
+						<view class='seller'>卖方</view><view style='font-size:14px;display:inline-block;'>{{item.customerName}}</view>
+					</view>
+					<view>{{item.carNo}}</view>
+				</view>
 			</view>
 			<view class='flex justify-between align-item-center'>
 				<view style="color:#878C9C;padding:5px;">{{item.goodsName}}</view>
@@ -42,13 +46,13 @@
 				<view>{{item.amountIngPayable}}</view>
 			</view>
 			<view class='flex justify-between align-item-center'>
-				<view style='color:#878C9C;padding:5px;'>单价</view>
+				<view style='color:#878C9C;padding:5px;'>已付</view>
 				<view>{{item.amountEdPayable}}</view>
 			</view>
 			<view style='flex-direction:row-reverse;' class='flex'>
-				<view @click='showImage(3,item)' class='button'>结算单</view>
-				<view @click='showImage(2,item)' class='button'>检斤单</view>
-				<view @click='showImage(1,item)' class='button'>质检单</view>
+				<view v-show="item.pictureAddress" @click='showImage(item.pictureAddress)' class='button'>结算单</view>
+				<view v-show="item.weighingPictureAddress" @click='showImage(item.weighingPictureAddress)' class='button'>检斤单</view>
+				<view v-show="item.qualityInspectionPictureAddress" @click='showImage(item.qualityInspectionPictureAddress)' class='button'>质检单</view>
 			</view>
 		</view>
 		<view v-show="isContent">
@@ -56,7 +60,7 @@
 		</view>
 		<view @click='closepop' class='popup' v-if='show'>
 			<view class='imagewrap' style='text-align:center;'>
-				<image :src="img" mode=""></image>
+				<image :src="img" mode="aspectFit"></image>
 			</view>
 			<view @click='xiazai' class='xiazai'><image style='width:24px;height:24px;' src="../../static/img/erp/xiazai@3x.png" mode=""></image></view>
 		</view>
@@ -139,16 +143,14 @@
 							});
 				
 			},
-			showImage(status,item){
-				console.log(1111)
-				if(status==1){
-					this.img=item.qualityInspectionPictureAddress
-				}else if(status==2){
-					this.img=item.weighingPictureAddress
-				}else if(status==3){
-					this.img=item.pictureAddress
-				}
-				this.show=true
+			showImage(url){
+				var img = [];
+				img.push(url)
+				uni.previewImage({
+					current:0,
+					urls: img
+				});
+				
 			},
 			tabcarchange(status){
 				this.TabCur=status
@@ -243,6 +245,8 @@
 						}
 						if(data.length==0){
 							this.isContent=true
+							this.isLoadMore = false
+							this.loadStatus = 'nomore'
 						}
 					})
 					.catch(res => {

+ 1 - 0
pages/erpbusiness/acquisitionInspection/acquisitionInspection.vue

@@ -139,6 +139,7 @@
 				}).then(res => {
 					console.log("warehouseBaseInfo", res)
 					let _resData = res.data.data
+					this.warehouseList = []
 					for (let i = 0; i < _resData.length; i++) {
 						let _obj = {
 							"label": _resData[i].warehouseName,

+ 6 - 5
pages/erpbusiness/add_quality_testing.vue

@@ -80,7 +80,8 @@
 			<view v-if="gridList.type == '潮粮'" class="c-row">
 				<view class="title">净重单价(元/公斤)</view>
 				<view class="con-list">
-					{{gridList.tidalGrainPrice}}
+					<input v-model='gridList.tidalGrainPrice' disabled placeholder="自动获取,不可编辑"
+						 name="input"></input>
 				</view>
 			</view>
 			<view v-if="gridList.type == '干粮'" class="c-row">
@@ -91,7 +92,7 @@
 				</view>
 			</view>
 		</view>
-		<view style='margin-bottom:100px;' class='wrap'>
+		<view style='margin-bottom:300rpx;' class='wrap'>
 			<view class='title_b'>化验信息</view>
 
 			<view class="c-row ">
@@ -250,11 +251,11 @@
 		onLoad(options){
 			
 			this.commonWarehouseNo=options.commonWarehouseNo
-			this.warehouseCount=options.warehouseCount
+			this.warehouseCount=Number(options.warehouseCount) + 1
 			 let number = '000' + this.warehouseCount
 			 number = number.substring(number.length - 4, number.length)
 			this.gridList.warehouseName=options.warehouseName
-			this.gridList.qualityNo='ZCRK' + this.getdate() + this.commonWarehouseNo + number
+			this.gridList.qualityNo='SGRK' + this.getdate() + this.commonWarehouseNo + number
 			this.purchasePriceList=uni.getStorageSync('purchasePriceList')
 			this.cangid=options.cangid
 			this.managementType=options.managementType
@@ -377,7 +378,7 @@
 					this.$api.msg('车牌号不能为空')
 					return
 				}
-				if (this.gridList.carNumber.length > 7) {
+				if (this.gridList.carNumber.length != 7) {
 					this.$api.msg('车牌号输入错误')
 					return
 				}

+ 2 - 1
pages/erpbusiness/edit_quality_testing.vue

@@ -71,7 +71,8 @@
 			<view class="c-row">
 				<view class="title">净重单价(元/公斤)</view>
 				<view class="con-list">
-					{{gridList.tidalGrainPrice}}
+					<input v-model='gridList.tidalGrainPrice' disabled placeholder="自动获取,不可编辑"
+						 name="input"></input>
 				</view>
 			</view>
 		</view>

+ 0 - 6
pages/erpbusiness/examine_quality_testing.vue

@@ -126,12 +126,6 @@
 					{{gridList.jiaorenli}}
 				</view>
 			</view>
-			<view class="c-row ">
-				<view class="title">不完善粒(%)<=</view>
-				<view class="con-list">
-					{{gridList.imperfectGrain}}
-				</view>
-			</view>
 		</view>
 	</view>
 </template>

+ 3 - 2
pages/erpbusiness/quality_testing.vue

@@ -1,5 +1,5 @@
 <template>
-	<view>
+	<view class="center">
 		<view class='navbar' style='position:fixed;background:#fff;top:0;width:100%;z-index:3;'>
 			<view class="back-btn cuIcon-back" @click="navBack"></view>
 				<view class='header-content' v-if='managementType==3'>出库质检</view>
@@ -410,7 +410,8 @@
 </script>
 <style scoped lang='scss' >
 	page{
-		background:#F5F6FA;
+		background:#F5F6FA;		
+		margin-bottom:160rpx;
 	}
 	
 	.container {

+ 2 - 0
pages/grain_pulse/home.vue

@@ -139,6 +139,7 @@
 		    this.getList()
 			this.isLoadMore = false
 			this.loadStatus = 'loading'
+			this.currentPage = 1
 		     setTimeout(function () {
 		         uni.stopPullDownRefresh();  //关闭下拉刷新
 		     }, 1000);
@@ -186,6 +187,7 @@
 					},
 					fail:function(req){
 						console.log(req)
+						that.getList()
 					}
 				});
 			}

+ 1 - 1
pages/grain_pulse/record.vue

@@ -165,7 +165,7 @@
 		},
 		methods: {
 			navBack() {
-				uni.navigateBack(1)
+				uni.navigateBack()
 			},
 			releaseclick() {
 				this.$api.doRequest('get', '/settledCompanyInfo/companyList', {loginPhone:this.userInfo.phone})

+ 1 - 1
pages/public/login.vue

@@ -122,7 +122,7 @@
 				})
 			},
 			gocode(){
-				if(this.phone.length==11){
+				if(this.phone.length==11 && /^0?1[3|4|5|6|7|8][0-9]\d{8}$/.test(this.phone)){
 					uni.navigateTo({
 						url:'/pages/public/code?phone='+this.phone
 					})

+ 1 - 1
pages/user/user.vue

@@ -33,7 +33,7 @@
 					<view class="cu-item" style='text-align:center;' v-for="(item,index) in gridList1" :key="index"
 						@click="gridClick(item, index)" v-if="index<gridCol*2">
 						<view :class="['cuIcon-' + item.cuIcon,'text-' + item.color]">
-							<text v-if='item.num==1&&taskTip' class='badge_user'>{{taskTip}}</text>
+							<text v-if='item.num==4&&taskTip' class='badge_user'>{{taskTip}}</text>
 							<image :src="item.src" class="sign1"></image>
 						</view>
 						<text>{{item.name}}</text>

+ 7 - 4
util/util.js

@@ -313,12 +313,15 @@ const utils = {
 				Math.sin(b / 2), 2)));
 		s = s * 6378.137;
 		s = Math.round(s * 10000) / 10000;
-		if(s > 1){
-			s = s.toFixed(2) + 'km' //保留两位小数
+		if(s >= 1 && s < 20){
+			s = s.toFixed(1) + 'km' 
 		}
-		else{
+		else if(s < 1){
 			s = s*1000
-			s = s.toFixed(0) + 'm' //保留两位小数
+			s = s.toFixed(0) + 'm' 
+		}
+		else{
+			s = s.toFixed(0) + 'km'
 		}
 		return s
 	},