ccj %!s(int64=2) %!d(string=hai) anos
pai
achega
90f5b41d12

+ 1 - 1
config/index.js

@@ -5,7 +5,7 @@ const dev = {
 	// baseUrlNew: 'http://192.168.1.118:8090/',
 	// baseUrlNew: 'http://192.168.110.9:9888/',
 	// baseUrlNew: 'http://192.168.110.138:8090/',
-	// baseUrlNew: 'http://192.168.110.9:9888/',
+	baseUrlNew: 'http://192.168.110.67:9888/',
 	// baseUrlNew: 'http://192.168.110.138:8090/',
 	// baseUrlNew: 'http://192.168.110.82:8090/',
 	// baseUrlNew: 'http://192.168.110.82:8090/',

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "易粮易运",
     "appid" : "__UNI__7297DA2",
     "description" : "易粮易运——为天下粮食人服务的App",
-    "versionName" : "2.1.170",
-    "versionCode" : 21170,
+    "versionName" : "2.1.171",
+    "versionCode" : 21171,
     "transformPx" : false,
     /* SDK配置 */
     "quickapp" : {},

+ 18 - 2
pages/erpbusiness/add_quality_testing.vue

@@ -1460,6 +1460,10 @@
 					this.gridList.waterContent &&
 					this.gridList.grade
 				) {
+					
+					uni.showLoading({
+						title:"加载中"
+					})
 					this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
 						warehouseId: this.cangid,
 						goodsName: this.gridList.goodsName,
@@ -1495,6 +1499,7 @@
 								that.tidalGrainPrice = that.gridList.tidalGrainPrice
 							}
 						}
+						uni.hideLoading()
 					})
 				}
 			},
@@ -1655,6 +1660,10 @@
 							if (res.confirm) {
 								that.gridList.serviceManagementType = that.typevalue
 								if (that.typevalue == 3) {
+									
+									uni.showLoading({
+										title:"加载中"
+									})
 									that.$api.doRequest('get', '/paymentManagement/cumulant', {
 											compId: uni.getStorageSync('pcUserInfo').compId,
 											customerNumberCard: that.gridList.customerNumberCard,
@@ -1683,6 +1692,7 @@
 																	2) +
 																'吨,还可售粮' +
 																count + '吨', )
+																uni.hideLoading()
 
 														} else {
 															that.gridList.inOutFlag = 2
@@ -1711,6 +1721,8 @@
 																			'/qualityInspectionManagement/api/addQualityInspection',
 																			that.gridList)
 																		.then(res => {
+																			
+																			uni.hideLoading()
 																			if (res.data.code ==
 																				200) {
 																				that.$api.msg(
@@ -1739,7 +1751,7 @@
 																				} else {
 																					uni.navigateBack({})
 																				}
-
+																				uni.setStorageSync('checkcustomer',{})
 																				console.log(
 																					'that.gridList',
 																					that
@@ -1757,7 +1769,9 @@
 											}
 										})
 								} else {
-
+									uni.showLoading({
+										title:"加载中"
+									})
 									that.gridList.inOutFlag = 2
 									that.$api.doRequest('post',
 											'/warehouseInOutInfo/InOutWarehouse',
@@ -1769,6 +1783,8 @@
 													'/qualityInspectionManagement/api/addQualityInspection',
 													that.gridList)
 												.then(res => {
+													
+													uni.hideLoading()
 													if (res.data.code == 200) {
 														that.$api.msg('提交成功')
 														that.gridList.warehouseId = that.cangid

+ 19 - 5
pages/erpbusiness/edit_quality_testing.vue

@@ -1,5 +1,5 @@
 <template>
-	<view :style='{"margin-bottom":InputEvent!=""?"100px":0}' ref="all-input">
+	<view :style='{"margin-bottom":InputEvent!=""?"200px":0}' ref="all-input">
 		<view @click='hidden' class='wrap'>
 			<view class='title_b'>基本信息</view>
 			<view class="c-row ">
@@ -256,7 +256,7 @@
 			</view>
 			
 		</view>
-		<view v-if='flag!=3' style='padding-bottom:300rpx;'>
+		<view v-if='flag!=3' style='padding-bottom:500rpx;'>
 			<view class='wrap'>
 				<view style='margin-right:10px;' class='flex justify-between align-item-center'>
 					<view class='title_b'>化验信息</view>
@@ -434,14 +434,14 @@
 						<input :disabled='flag==1&&pricedisabled' v-model='gridList.tidalGrainPrice'  @blur='inputprice' placeholder="自动获取,不可编辑"
 							name="input"></input>
 					</view>
-					<button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button>
+					<!-- <button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button> -->
 				</view>
 				<view v-if="gridList.type == '干粮'&&gridList.serviceManagementType==3&&flag!=3" class="c-row">
 					<view class="title">干粮单价(元/公斤)</view>
 					<view class="con-list">
 						<input v-model='gridList.dryGrainPrice' :disabled='pricedisabled' type="digit"  @blur='inputprice' placeholder="请输入干粮单价" name="input"></input>
 					</view>
-					<button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button>
+					<!-- <button class='cu-btn bg-green shadow' @click="changeprice">{{pricetext}}</button> -->
 				</view>
 				<view v-if="gridList.type == '干粮'&&gridList.serviceManagementType==1&&flag!=3" class="c-row">
 					<view class="title">干粮单价(元/公斤)</view>
@@ -641,9 +641,14 @@
 			
 			console.log(this.flag)
 			var that = this
+			
+			uni.showLoading({
+				title:"加载中"
+			})
 			this.$api.doRequest('get', '/qualityInspectionManagement/api/getQualityInspection', {
 				id: this.id
 			}).then(res => {
+				uni.hideLoading()
 				if (res.data.data) {
 					let data = res.data.data
 					if (data.supplementaryRecording == 1) {
@@ -1115,7 +1120,7 @@
 					}
 				}
 				console.log(this.gridList.serviceManagementType)
-				debugger
+				// debugger
 				if(this.gridList.serviceManagementType != 3){ //非收购入库 不需在获取价格
 					return
 				}
@@ -1142,6 +1147,10 @@
 						this.gridList.grade 
 					) {
 					console.log('123123')
+					
+					uni.showLoading({
+						title:"加载中"
+					})
 						this.$api.doRequest('get', '/purchasePrice/tidalGrainPrice', {
 							warehouseId: this.cangid,
 							goodsName: this.gridList.goodsName,
@@ -1177,6 +1186,7 @@
 								}
 							}
 							// that.tidalGrainPrice = that.gridList.tidalGrainPrice
+							uni.hideLoading()
 						})
 					}
 				
@@ -1188,6 +1198,7 @@
 				this.$delete(this.gridList,'status')
 				this.gridList.agent=this.userInfo.userName;
 
+				this.gridList.waterContent = Number(this.gridList.waterContent)
 				// if(!this.$u.test.isEmpty(this.gridList.tidalGrainPrice)){
 				// 	this.gridList.tidalGrainPrice=''
 				// 	return
@@ -1308,6 +1319,9 @@
 						this.$api.msg('杂质不能为空')
 						return
 					}
+					debugger
+					console.log(this.gridList.waterContent)
+					console.log(Number(this.gridList.waterContent))
 					if (!this.gridList.waterContent) {
 						this.$api.msg('初检水分不能为空')
 						return

+ 1 - 1
pages/erpbusiness/quality_testing.vue

@@ -69,7 +69,7 @@
 					<view class="right">{{item.customer}}</view>
 					<view class='right'>{{item.qualityInspector}} {{item.reInspector}}</view>
 				</view>
-				<view v-if='item.status!="待初检"' class="row2">
+				<view  class="row2">
 					<view v-if='managementType==1'>{{item.customerName}}</view>
 					<view>{{item.carNumber}}</view>
 					<view>{{item.goodsName}}({{item.waterContent}}水)</view>