Kaynağa Gözat

出库接口替换

asd26269546 2 yıl önce
ebeveyn
işleme
0807a59d35

+ 1 - 1
pages/login/login.vue

@@ -57,7 +57,7 @@ import config from '@/libs/config/config.js'
 				remember: true,
 				form: {
 					account: '',
-					password: 'fjhx2012',
+					password: '',
 					mobileId: '_mobileId'
 				},
 				rules: {

+ 32 - 13
pages/store-out-manage/store-out/store-out.vue

@@ -120,17 +120,17 @@
 				})
 			},
 			cfm(){
-				
 				let obj = {
 					userId: this.operateUser,
-					plcCode: this.plcStationCode,
+					plcCode: this.plcStationCode * 1,
+					//rfidItems:['B00000000000000000030854'],
 					rfidItems: this.scanList.map(item => item.rfidCode),
 					stockChangeType: this.stockChangeType,
-					remark: this.remark
+					remark: this.remark,
+					device:1,
 				}
 				console.log(obj)
 				
-				
 				if((this.roleKey == 'sewing' || this.roleKey == 'crop' ||  this.roleKey == '001')){
 					if(this.stockChangeType == 20){
 						this.materialReceiveSubmit(obj)
@@ -142,17 +142,36 @@
 					return
 				}
 				
-				
-				this.$http.HandleMacStockInOut(obj).then(res => {
-					console.log(res)
-					if(res.code === 0) {
+				uni.request({
+					url: 'http://120.79.80.64:8050' + '/cloudApi/stock/out',
+					method: 'POST',
+					header:{
+						'Content-Type' : 'application/json',
+					},
+					data: obj,
+					success: res => {
+						console.log(res)
+						if(res.data.code == 200){
+							this.$msg.showToast(res.msg || '操作成功!')
+							this.timer = setTimeout(() => {
+								this.$utils.back()
+							}, 2000)
+						}
 						
-						this.$msg.showToast(res.msg || '操作成功!')
-						this.timer = setTimeout(() => {
-							this.$utils.back()
-						}, 2000)
+					},fail(err) {
+						console.log(err);
 					}
-				})
+				});
+				// this.$http.HandleMacStockInOut(obj).then(res => {
+				// 	console.log(res)
+				// 	if(res.code === 0) {
+						
+				// 		this.$msg.showToast(res.msg || '操作成功!')
+				// 		this.timer = setTimeout(() => {
+				// 			this.$utils.back()
+				// 		}, 2000)
+				// 	}
+				// })
 			},
 			materialReceiveSubmit(obj){
 				console.log({

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
unpackage/dist/dev/app-plus/app-service.js


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor