lilei 2 miesięcy temu
rodzic
commit
3d1cf0472d
3 zmienionych plików z 13 dodań i 6 usunięć
  1. 1 1
      App.vue
  2. 2 2
      manifest.json
  3. 10 3
      pages/batchShelves/searchProduct.vue

+ 1 - 1
App.vue

@@ -7,7 +7,7 @@
 			token: '',
 			changeOrg:'',
 			version: '', // 当前版本号
-			buildType: 'pro', // 打包环境对应类型,pro 生产 uat 预发布 dev 本地开发
+			buildType: 'uat', // 打包环境对应类型,pro 生产 uat 预发布 dev 本地开发
 			envTips: '', // 环境文字提示
 			theme: 'default', // 主题,default
 			isIphoneXup: false //是否iphonex以及以上的版本

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
     "name" : "iSCM智慧供应链",
     "appid" : "__UNI__5B57B68",
     "description" : "iSCM智慧供应链系统",
-    "versionName" : "1.5.1",
-    "versionCode" : 151,
+    "versionName" : "1.5.2",
+    "versionCode" : 152,
     "transformPx" : false,
     "sassImplementationName" : "node-sass",
     /* 5+App特有相关 */

+ 10 - 3
pages/batchShelves/searchProduct.vue

@@ -39,7 +39,7 @@
 						</view>
 					</view>
 					<view class="ptools flex align_center justify_between">
-						<view>{{item.id+'----'+item.pageNo}}</view>
+						<view></view>
 						<view class="pcurnums flex align_center">
 							<view class="u-ninput" v-if="item.shelfCartApi">
 								<u-number-box :long-press="false" :index="item.id" :input-height="60" @blur="updateNums" @minus="updateNums" @plus="updateNums" color="#000" bg-color="#fff" v-model="item.shelfCartApi.qty" :min="1"></u-number-box>
@@ -178,6 +178,7 @@
 							newRow.pageNo = pageNo
 							_this.productList.splice(curRowIndex,1,newRow)
 							_this.status = 'nomore'
+							uni.hideLoading()
 						}
 					}else{
 						_this.status = 'nomore'
@@ -204,7 +205,10 @@
 				console.log(e)
 				const row = this.productList.find(item => item.id == e.index)
 				const nums = e.value
-				this.saveData(row,nums)
+				const item = row.shelfCartApi || row.shelfProductApi
+				if(item&&item.shelfCartSn){
+					this.saveData(row,nums)
+				}
 			},
 			saveData(row,nums){
 				console.log(row,nums)
@@ -228,13 +232,16 @@
 				}
 				console.log(params)
 				shelfCartSave(params).then(res => {
-					uni.hideLoading()
 					if(res.status == 200){
 						// this.toashMsg(res.message)
 						if(!item){
 							row.shelfCartApi={shelfPlaceCode:this.shelfPlaceCode}
 							this.getProductList(true,row,row.pageNo)
+						}else{
+							uni.hideLoading()
 						}
+					}else{
+						uni.hideLoading()
 					}
 				})
 			}