asd26269546 2 years ago
parent
commit
4711c19869

+ 23 - 10
pages/store-out-manage/store-out/store-out.vue

@@ -80,6 +80,7 @@
 				time: new DateFormat(new Date()).toString(),
 				show: false,
 				operateUser: this.$storage.getStorageSync('userInfo').id,
+				userInfo: this.$storage.getStorageSync('userInfo'),
 				plcStationCode: '1',
 				stockChangeType: '20',
 				remark: '',
@@ -91,17 +92,21 @@
 					{ label: '出库', value: 20 },
 					{ label: '盘点删除', value: 21 },
 					{ label: '补出库', value: 23 },
-				]
+				],
+				roleKey:null,
 			};
 		},
 		methods: {
 			/* 选择类型 */
 			typeSelectitem(index, item) {
 				this.stockChangeType = item.value;
+				
 			},
 			/* 选择领料人 */
 			selectitem(index, item) {
 				this.operateUser = item.value;
+				this.roleKey = item.roleKey
+				console.log(this.userInfo)
 			},
 			/* 选择仓库 */
 			storeSelectitem(index, item) {
@@ -120,14 +125,17 @@
 					stockChangeType: this.stockChangeType,
 					remark: this.remark
 				}
-				if((this.roleKey == 'sewing' || this.roleKey == 'crop') && this.stockChangeType == 20){
-					obj.stockChangeType = 30
+				console.log(this.roleKey)
+				console.log(this.stockChangeType)
+				if((this.roleKey == 'sewing' || this.roleKey == 'crop')){
+					if(this.stockChangeType == 20) obj.stockChangeType = 30
+					
 				}
 				console.log(obj)
 				this.$http.HandleMacStockInOut(obj).then(res => {
 					console.log(res)
 					if(res.code === 0) {
-						this.materialReceiveSubmit()
+						this.materialReceiveSubmit(obj)
 						this.$msg.showToast(res.msg || '操作成功!')
 						this.timer = setTimeout(() => {
 							this.$utils.back()
@@ -136,20 +144,23 @@
 				})
 				
 			},
-			materialReceiveSubmit(){
-				if(this.stockChangeType == 29 || this.stockChangeType == 20 || this.stockChangeType == 30){
+			materialReceiveSubmit(obj){
+				console.log(obj)
+				if(obj.stockChangeType == 29 || obj.stockChangeType == 20 || obj.stockChangeType == 30){
 					uni.request({
-						url: 'http://120.79.80.64:8050' + '/cloudApi/materialReceive/list',
+						url: 'http://120.79.80.64:8050' + '/cloudApi/materialReceive/submit',
 						method: 'POST',
 						header:{
 							'Content-Type' : 'application/json',
 						},
 						data: {
-							jobNo: this.userInfo.jobNo
+							checkUserId: this.userInfo.id
 						},
 						success: res => {
 							console.log(res);
-						},
+						},fail(err) {
+							console.log(err);
+						}
 					});
 				}
 			},
@@ -189,11 +200,13 @@
 					pageSize: 999,
 					takeUser: true
 				}).then(res => {
+					console.log(res)
 					if(res.code == 0) {
 						let list = res.result.list.map(item => {
 							return {
 							  label: item.realName,
-							  value: item.id
+							  value: item.id,
+							  roleKey: item.roleKey
 							}
 						})
 						this.userList = list

+ 1 - 1
pages/warehouse/reviewDtl.vue

@@ -194,7 +194,7 @@
 					}
 				}
 				const obj = {
-					"userId": v.dtlData.stockBackId,
+					"userId": v.req.userId,
 					"plcCode": "1",
 					"rfidItems": rfidItems,
 					"stockChangeType": "16",

+ 1 - 1
unpackage/cache/apk/apkurl

@@ -1 +1 @@
-https://ide.dcloud.net.cn/build/download/d7103b30-2ac9-11ed-b683-319622dd205e
+https://ide.dcloud.net.cn/build/download/05803fe0-2e8c-11ed-83d4-b11147dba0bf

File diff suppressed because it is too large
+ 0 - 0
unpackage/cache/apk/cmManifestCache.json


File diff suppressed because it is too large
+ 0 - 0
unpackage/cache/wgt/__UNI__4E49201/app-service.js


File diff suppressed because it is too large
+ 0 - 0
unpackage/cache/wgt/__UNI__4E49201/app-view.js


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


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


File diff suppressed because it is too large
+ 1172 - 1
unpackage/dist/dev/app-plus/app-view.js


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


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