|
@@ -548,6 +548,7 @@
|
|
}
|
|
}
|
|
if(localStorage.getItem('goodsName')){
|
|
if(localStorage.getItem('goodsName')){
|
|
this.dataList.goodsName=localStorage.getItem('goodsName')
|
|
this.dataList.goodsName=localStorage.getItem('goodsName')
|
|
|
|
+ this.dataList.goodsNameKey=localStorage.getItem('goodsName')
|
|
}
|
|
}
|
|
getstaff({compId: localStorage.getItem('ws-pf_compId'),warehouseId: this.dataList.warehouseId})
|
|
getstaff({compId: localStorage.getItem('ws-pf_compId'),warehouseId: this.dataList.warehouseId})
|
|
.toPromise()
|
|
.toPromise()
|
|
@@ -580,9 +581,16 @@
|
|
// this.agent = response
|
|
// this.agent = response
|
|
})
|
|
})
|
|
this.dataList1.contractNo=localStorage.getItem('contractNo')
|
|
this.dataList1.contractNo=localStorage.getItem('contractNo')
|
|
- if(localStorage.getItem('weight')){
|
|
|
|
- this.dataList1.weight=localStorage.getItem('weight')
|
|
|
|
|
|
+ if(this.dataList.taskTypeKey==2){
|
|
|
|
+ if(localStorage.getItem('goodsName')){
|
|
|
|
+ this.dataList1.goodsName=localStorage.getItem('goodsName')
|
|
|
|
+ this.dataList1.goodsNameKey=localStorage.getItem('goodsNameKey')
|
|
|
|
+ }
|
|
|
|
+ if(localStorage.getItem('weight')){
|
|
|
|
+ this.dataList1.weight=localStorage.getItem('weight')
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(localStorage.getItem('supplygoods1')){
|
|
if(localStorage.getItem('supplygoods1')){
|
|
@@ -907,6 +915,8 @@
|
|
})
|
|
})
|
|
.toPromise()
|
|
.toPromise()
|
|
.then(response => {
|
|
.then(response => {
|
|
|
|
+ localStorage.setItem('goodsName',response.goodsName)
|
|
|
|
+ localStorage.setItem('goodsNameKey',response.goodsNameKey)
|
|
this.$set(this.dataList1, 'goodsName', response.goodsName)
|
|
this.$set(this.dataList1, 'goodsName', response.goodsName)
|
|
this.$set(this.dataList1, 'goodsNameKey', response.goodsNameKey)
|
|
this.$set(this.dataList1, 'goodsNameKey', response.goodsNameKey)
|
|
this.$set(this.dataList1, 'grade', response.grade)
|
|
this.$set(this.dataList1, 'grade', response.grade)
|
|
@@ -1554,6 +1564,12 @@
|
|
localStorage.removeItem('warehouse')
|
|
localStorage.removeItem('warehouse')
|
|
localStorage.removeItem('contractNo');
|
|
localStorage.removeItem('contractNo');
|
|
localStorage.removeItem('taskTypeKey');
|
|
localStorage.removeItem('taskTypeKey');
|
|
|
|
+ localStorage.removeItem('inOutType')
|
|
|
|
+ localStorage.removeItem('inOutTypeKey')
|
|
|
|
+ localStorage.removeItem('contractNo')
|
|
|
|
+ localStorage.removeItem('goodsName')
|
|
|
|
+ localStorage.removeItem('goodsNameKey')
|
|
|
|
+ localStorage.removeItem('weight')
|
|
// this.dataList.goodsNameKey =
|
|
// this.dataList.goodsNameKey =
|
|
// this.dataList.positionId =
|
|
// this.dataList.positionId =
|
|
// this.dataList.baseId =
|
|
// this.dataList.baseId =
|
|
@@ -1704,9 +1720,11 @@
|
|
this.flag = 5
|
|
this.flag = 5
|
|
break
|
|
break
|
|
}
|
|
}
|
|
|
|
+ localStorage.setItem('inOutType',e)
|
|
for (var i = 0; i < this.storageType1.length; i++) {
|
|
for (var i = 0; i < this.storageType1.length; i++) {
|
|
if (this.storageType1[i].constValue == e) {
|
|
if (this.storageType1[i].constValue == e) {
|
|
this.dataList1.inOutTypeKey = this.storageType1[i].constKey
|
|
this.dataList1.inOutTypeKey = this.storageType1[i].constKey
|
|
|
|
+ localStorage.setItem('inOutTypeKey',this.storageType1[i].constKey)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -1783,16 +1801,26 @@
|
|
this.tasknumber()
|
|
this.tasknumber()
|
|
if(localStorage.getItem('taskTypeKey')){
|
|
if(localStorage.getItem('taskTypeKey')){
|
|
if(localStorage.getItem('taskTypeKey') == 1){
|
|
if(localStorage.getItem('taskTypeKey') == 1){
|
|
- this.$set(this.dataList, 'inOutType', '销售出库')
|
|
|
|
- this.$set(this.dataList, 'inOutTypeKey', '1')
|
|
|
|
|
|
+ if(localStorage.getItem('inOutType')){
|
|
|
|
+ this.$set(this.dataList, 'inOutType', localStorage.getItem('inOutType'))
|
|
|
|
+ this.$set(this.dataList, 'inOutTypeKey', localStorage.getItem('inOutTypeKey'))
|
|
|
|
+ }else{
|
|
|
|
+ this.$set(this.dataList, 'inOutType', '销售出库')
|
|
|
|
+ this.$set(this.dataList, 'inOutTypeKey', '1')
|
|
|
|
+ }
|
|
this.$set(this.dataList, 'goodsName', '玉米')
|
|
this.$set(this.dataList, 'goodsName', '玉米')
|
|
this.$set(this.dataList, 'goodsNameKey', '1')
|
|
this.$set(this.dataList, 'goodsNameKey', '1')
|
|
this.$set(this.dataList1, 'goodsName', '玉米')
|
|
this.$set(this.dataList1, 'goodsName', '玉米')
|
|
this.$set(this.dataList1, 'goodsNameKey', '1')
|
|
this.$set(this.dataList1, 'goodsNameKey', '1')
|
|
this.flag = 1
|
|
this.flag = 1
|
|
}else if(localStorage.getItem('taskTypeKey') == 2){
|
|
}else if(localStorage.getItem('taskTypeKey') == 2){
|
|
- this.$set(this.dataList1, 'inOutType', '采购入库')
|
|
|
|
- this.$set(this.dataList1, 'inOutTypeKey', '2')
|
|
|
|
|
|
+ if(localStorage.getItem('inOutType')){
|
|
|
|
+ this.$set(this.dataList1, 'inOutType', localStorage.getItem('inOutType'))
|
|
|
|
+ this.$set(this.dataList1, 'inOutTypeKey', localStorage.getItem('inOutTypeKey'))
|
|
|
|
+ }else{
|
|
|
|
+ this.$set(this.dataList1, 'inOutType', '采购入库')
|
|
|
|
+ this.$set(this.dataList1, 'inOutTypeKey', '2')
|
|
|
|
+ }
|
|
this.flag = 8
|
|
this.flag = 8
|
|
}else if(localStorage.getItem('taskTypeKey') == 3){
|
|
}else if(localStorage.getItem('taskTypeKey') == 3){
|
|
this.$set(this.dataList, 'inOutType', '移库出库')
|
|
this.$set(this.dataList, 'inOutType', '移库出库')
|