lilei 1 anno fa
parent
commit
148e2d586f

+ 3 - 3
pages/purchasing/index.vue

@@ -145,7 +145,7 @@
 		  uni.$on('scancodedate', function(content) {
 			  console.log("扫描到的内容为:", content, _this.keyName)
 			  _this.code = content||''
-			  if(_this.keyName == 'rightKey'){
+			  if(_this.keyName == 'rightKey' || _this.keyName == 'midKey'){
 				  _this.addQty(true)
 			  }
 			  if(_this.keyName == 'leftKey'){
@@ -229,7 +229,7 @@
 			},
 			// 修改入库数量
 			changePutQty(record, realPutQty){
-			  if(realPutQty){
+			  if(realPutQty>=0){
 				  this.loading = true
 				  updateRealPutQty({id:record.id,pdaRealPutQty:realPutQty}).then(res => {
 					if(res.status == 200){
@@ -240,7 +240,7 @@
 					this.loading = false
 				  })
 			  }else{
-				  uni.$u.toast("入库数量不能0")
+				  uni.$u.toast("入库数量不能小于0")
 				  playAudio('warn')
 			  }
 			},

File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/app-plus/app-service.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/build/app-plus/app-view.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/dist/dev/app-plus/app-service.js


Some files were not shown because too many files changed in this diff