gjy 2 vuotta sitten
vanhempi
commit
49aef6bc41

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

@@ -1745,6 +1745,7 @@
 				this.getList()
 			},
 			tasknumber() {
+				console.log(this.dataList.taskTypeKey)
 				if (this.dataList.taskTypeKey == 1) {
 					this.inOutTaskNo = 'CK' + this.getdate() + this.MathRand()
 				} else if (this.dataList.taskTypeKey == 2) {
@@ -1798,6 +1799,9 @@
 				return Min + Math.round(Rand * Range)
 			},
 			getList() {
+				if(localStorage.getItem('taskTypeKey')){
+					this.dataList.taskTypeKey =localStorage.getItem('taskTypeKey')
+				}
 				this.tasknumber()
 				if(localStorage.getItem('taskTypeKey')){
 					if(localStorage.getItem('taskTypeKey') == 1){