|
@@ -580,6 +580,9 @@
|
|
// 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(localStorage.getItem('supplygoods1')){
|
|
if(localStorage.getItem('supplygoods1')){
|
|
@@ -884,11 +887,13 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
changecontract1(e) {
|
|
changecontract1(e) {
|
|
|
|
+ localStorage.setItem('contractNo',e)
|
|
if (this.dataList1.taskTypeKey != 3) {
|
|
if (this.dataList1.taskTypeKey != 3) {
|
|
for (let i = 0; i < this.contractNoList1.length; i++) {
|
|
for (let i = 0; i < this.contractNoList1.length; i++) {
|
|
if (this.contractNoList1[i].contractNo == e) {
|
|
if (this.contractNoList1[i].contractNo == e) {
|
|
if(this.dataList1.inOutType=='收购入库'){
|
|
if(this.dataList1.inOutType=='收购入库'){
|
|
this.dataList1.weight=this.contractNoList1[i].weight
|
|
this.dataList1.weight=this.contractNoList1[i].weight
|
|
|
|
+ localStorage.setItem('weight',this.contractNoList1[i].weight)
|
|
}
|
|
}
|
|
this.inOutType=this.contractNoList1[i].inOutType
|
|
this.inOutType=this.contractNoList1[i].inOutType
|
|
if(this.contractNoList1[i].priceType == '随行就市'){
|
|
if(this.contractNoList1[i].priceType == '随行就市'){
|
|
@@ -919,6 +924,7 @@
|
|
})
|
|
})
|
|
}else{
|
|
}else{
|
|
this.$set(this.dataList1, 'weight', response.weight)
|
|
this.$set(this.dataList1, 'weight', response.weight)
|
|
|
|
+ localStorage.setItem('weight',response.weight)
|
|
}
|
|
}
|
|
this.$set(
|
|
this.$set(
|
|
this.dataList1,
|
|
this.dataList1,
|
|
@@ -1621,6 +1627,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
selectgoodsName(e) {
|
|
selectgoodsName(e) {
|
|
|
|
+
|
|
for (var i = 0; i < this.goodnameList.length; i++) {
|
|
for (var i = 0; i < this.goodnameList.length; i++) {
|
|
if (this.goodnameList[i].constValue == e) {
|
|
if (this.goodnameList[i].constValue == e) {
|
|
this.dataList.goodsNameKey = this.goodnameList[i].constKey
|
|
this.dataList.goodsNameKey = this.goodnameList[i].constKey
|
|
@@ -1737,6 +1744,7 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
tasktypechange(e) {
|
|
tasktypechange(e) {
|
|
|
|
+ localStorage.setItem('taskTypeKey',e)
|
|
if (!this.$route.query.relevanceId) {
|
|
if (!this.$route.query.relevanceId) {
|
|
this.tasknumber()
|
|
this.tasknumber()
|
|
}
|
|
}
|
|
@@ -1781,9 +1789,11 @@
|
|
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
|
|
}else if(localStorage.getItem('taskTypeKey') == 2){
|
|
}else if(localStorage.getItem('taskTypeKey') == 2){
|
|
this.$set(this.dataList1, 'inOutType', '采购入库')
|
|
this.$set(this.dataList1, 'inOutType', '采购入库')
|
|
this.$set(this.dataList1, 'inOutTypeKey', '2')
|
|
this.$set(this.dataList1, 'inOutTypeKey', '2')
|
|
|
|
+ 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', '移库出库')
|
|
this.$set(this.dataList, 'inOutTypeKey', '3')
|
|
this.$set(this.dataList, 'inOutTypeKey', '3')
|
|
@@ -1794,6 +1804,7 @@
|
|
this.$set(this.dataList, 'inOutTypeKey', '4')
|
|
this.$set(this.dataList, 'inOutTypeKey', '4')
|
|
this.$set(this.dataList1, 'inOutType', '退库')
|
|
this.$set(this.dataList1, 'inOutType', '退库')
|
|
this.$set(this.dataList1, 'inOutTypeKey', '4')
|
|
this.$set(this.dataList1, 'inOutTypeKey', '4')
|
|
|
|
+ this.flag = 2
|
|
}
|
|
}
|
|
this.$set(this.dataList, 'grade', '一等品')
|
|
this.$set(this.dataList, 'grade', '一等品')
|
|
this.$set(this.dataList, 'gradeKey', '1')
|
|
this.$set(this.dataList, 'gradeKey', '1')
|