From a074efbcf5bce6adee29217cfc04d2d150e05ef3 Mon Sep 17 00:00:00 2001
From: whycq0520 <91384184@qq.com>
Date: 星期日, 27 三月 2022 20:47:39 +0800
Subject: [PATCH] # 上架管理

---
 pages/basics/publish.vue |  130 ++++++++++++++++++++++++++++++++++++++----
 1 files changed, 116 insertions(+), 14 deletions(-)

diff --git a/pages/basics/publish.vue b/pages/basics/publish.vue
index a936632..be21743 100644
--- a/pages/basics/publish.vue
+++ b/pages/basics/publish.vue
@@ -156,8 +156,6 @@
 					} else {
 						that.addSotokInData(object)
 					}
-					
-					
 				}
 				that.initCount()
 			},
@@ -173,7 +171,6 @@
 					if (toPush) {
 						that.stockInData.push(object[i])
 					}
-					
 				}
 			},
 			// 淇敼鏁伴噺
@@ -201,9 +198,25 @@
 					    return;
 					}
 				}
-				
-				
-				this.$refs.showNodeSelect.open()
+				uni.request({
+					url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "//work/stock/pakin",
+					header: {
+						'content-type':'application/json',
+						'token':uni.getStorageSync('token') 
+						},
+					data: { 
+						nodeId: this.nodeSel,
+						mats: this.stockInData,
+					},
+					method:'POST',
+					success(res) {
+						console.log(res)
+						var res = res.data
+						if (res.code === 200 ) {
+							console.log(res)
+						}
+					}
+				})
 			},
 			bindMultiPickerColumnChange: function(e) {
 				var selectData = this.selectData
@@ -304,22 +317,111 @@
 				var num2 = this.multiIndex[1]
 				var num3 = this.multiIndex[2]
 				this.sum = num1 + "-" + num2 + "-" + num3
-				console.log(this.sum)
 				this.changeNum(this.sum)
 			},
 			changeNum() {
-				console.log(this.sum)
 				switch (this.sum) {
-					case 0-0-0:
-						console.log('ycq')
+					case "0-0-0":
 						this.nodeSel = 1
 						break;
-					case 1-0-0:
-						console.log('ycq')
-						this.nodeSel = 1
+					case "1-0-0":
+						this.nodeSel = 4
 						break;
+					case "1-0-1":
+						this.nodeSel = 5
+						break;
+					case "1-0-2":
+						this.nodeSel = 6
+						break;
+					case "1-0-3":
+						this.nodeSel = 7
+						break;
+					case "1-0-4":
+						this.nodeSel = 8
+						break;
+					case "1-0-5":
+						this.nodeSel = 9
+						break;
+					case "1-0-6":
+						this.nodeSel = 10
+						break;
+					case "1-0-7":
+						this.nodeSel = 11
+						break;
+					case "1-0-8":
+						this.nodeSel = 12
+						break;
+					case "1-0-9":
+						this.nodeSel = 13
+						break;
+					case "1-0-10":
+						this.nodeSel = 14
+						break;
+					case "1-0-11":
+						this.nodeSel = 15
+						break;
+					case "1-0-12":
+						this.nodeSel = 16
+						break;
+					case "1-0-13":
+						this.nodeSel = 17
+						break;
+					case "1-0-14":
+						this.nodeSel = 18
+						break;
+					case "1-0-15":
+						this.nodeSel = 19
+						break;
+					case "1-1-0":
+						this.nodeSel = 21
+						break;
+					case "1-1-1":
+						this.nodeSel = 22
+						break;
+					case "1-1-2":
+						this.nodeSel = 23
+						break;
+					case "1-1-3":
+						this.nodeSel = 24
+						break;
+					case "1-1-4":
+						this.nodeSel = 25
+						break;
+					case "1-1-5":
+						this.nodeSel = 26
+						break;
+					case "1-1-6":
+						this.nodeSel = 27
+						break;
+					case "1-1-7":
+						this.nodeSel = 28
+						break;
+					case "1-1-8":
+						this.nodeSel = 29
+						break;
+					case "1-1-9":
+						this.nodeSel = 30
+						break;
+					case "1-1-10":
+						this.nodeSel = 31
+						break;
+					case "1-1-11":
+						this.nodeSel = 32
+						break;
+					case "1-1-12":
+						this.nodeSel = 33
+						break;
+					case "1-1-13":
+						this.nodeSel = 34
+						break;
+					case "1-1-14":
+						this.nodeSel = 35
+						break;
+					case "1-1-15":
+						this.nodeSel = 36
+						break;
+					
 				}
-				console.log(this.nodeSel)
 			},
 			aabbcc(e) {
 				console.log(e)

--
Gitblit v1.9.1