achao 2 år sedan
förälder
incheckning
34c80cb65f
1 ändrade filer med 24 tillägg och 4 borttagningar
  1. 24 4
      src/views/taskManagement/tranManagementWarehouseInOutTaskAdd.vue

+ 24 - 4
src/views/taskManagement/tranManagementWarehouseInOutTaskAdd.vue

@@ -529,7 +529,7 @@
 				Pricetype:true,//价格类型为随行就市隐藏单价
 				Pricetype:true,//价格类型为随行就市隐藏单价
 			}
 			}
 		},
 		},
-		activated() {
+		activated() {debugger
 			this.getList()
 			this.getList()
 			var num=0
 			var num=0
 			this.goods=''
 			this.goods=''
@@ -1754,6 +1754,24 @@
 					var random = this.getdate() + this.MathRand()
 					var random = this.getdate() + this.MathRand()
 					this.inOutTaskNo = 'YKC' + random
 					this.inOutTaskNo = 'YKC' + random
 					this.inOutTaskNo1 = 'YKR' + random
 					this.inOutTaskNo1 = 'YKR' + random
+        //   this.dataList.moveTaskNo = 'YKRW' + random
+		//    this.dataList1.moveTaskNo = 'YKRW' + random
+				} else if (this.dataList.taskTypeKey == 4) {
+					var random = this.getdate() + this.MathRand()
+					this.inOutTaskNo = 'TCC' + random
+					this.inOutTaskNo1 = 'TCR' + random
+				}
+			},
+			tasknumber1() {
+				console.log(this.dataList.taskTypeKey)
+				if (this.dataList.taskTypeKey == 1) {
+					this.inOutTaskNo = 'CK' + this.getdate() + this.MathRand()
+				} else if (this.dataList.taskTypeKey == 2) {
+					this.inOutTaskNo1 = 'RK' + this.getdate() + this.MathRand()
+				} else if (this.dataList.taskTypeKey == 3) {
+					var random = this.getdate() + this.MathRand()
+					this.inOutTaskNo = 'YKC' + random
+					this.inOutTaskNo1 = 'YKR' + random
         //   this.dataList.moveTaskNo = 'YKRW' + random
         //   this.dataList.moveTaskNo = 'YKRW' + random
 		//    this.dataList1.moveTaskNo = 'YKRW' + random
 		//    this.dataList1.moveTaskNo = 'YKRW' + random
 				} else if (this.dataList.taskTypeKey == 4) {
 				} else if (this.dataList.taskTypeKey == 4) {
@@ -1771,10 +1789,12 @@
 				localStorage.removeItem('goodsNameKey')
 				localStorage.removeItem('goodsNameKey')
 				localStorage.removeItem('weight')
 				localStorage.removeItem('weight')
 			},
 			},
-			tasktypechange(e) {
+			tasktypechange(e) {debugger
 				localStorage.setItem('taskTypeKey',e)
 				localStorage.setItem('taskTypeKey',e)
+				console.log('localStorage.getItem(\'taskTypeKey\')',localStorage.getItem('taskTypeKey'))
+				
 				if (!this.$route.query.relevanceId) {
 				if (!this.$route.query.relevanceId) {
-					this.tasknumber()
+					this.tasknumber1()
 				}
 				}
 				this.dataList1.taskTypeKey = e
 				this.dataList1.taskTypeKey = e
 				if (this.dataList.taskTypeKey == 1) {
 				if (this.dataList.taskTypeKey == 1) {
@@ -1807,7 +1827,7 @@
 				var Rand = Math.random()
 				var Rand = Math.random()
 				return Min + Math.round(Rand * Range)
 				return Min + Math.round(Rand * Range)
 			},
 			},
-			getList() {
+			getList() {debugger
 				if(localStorage.getItem('taskTypeKey')){
 				if(localStorage.getItem('taskTypeKey')){
 					this.dataList.taskTypeKey =localStorage.getItem('taskTypeKey')
 					this.dataList.taskTypeKey =localStorage.getItem('taskTypeKey')
 				}
 				}