|
@@ -448,7 +448,10 @@
|
|
this.allowEdit = _saomaData.allowEdit
|
|
this.allowEdit = _saomaData.allowEdit
|
|
this.id = _saomaData.id
|
|
this.id = _saomaData.id
|
|
this.tpyeNo = _saomaData.typeNo
|
|
this.tpyeNo = _saomaData.typeNo
|
|
- this.inWarehouseType = _saomaData.managementType
|
|
|
|
|
|
+ if(_saomaData.managementType){
|
|
|
|
+ this.inWarehouseType = _saomaData.managementType
|
|
|
|
+ }
|
|
|
|
+
|
|
localStorage.removeItem('saoma_data'); //第一次进来结束后清除缓存
|
|
localStorage.removeItem('saoma_data'); //第一次进来结束后清除缓存
|
|
} else if (localStorage.getItem('houseSelfCollect_house1')) {
|
|
} else if (localStorage.getItem('houseSelfCollect_house1')) {
|
|
this.warehouseName = JSON.parse(localStorage.getItem('houseSelfCollect_house1')).value
|
|
this.warehouseName = JSON.parse(localStorage.getItem('houseSelfCollect_house1')).value
|
|
@@ -1391,8 +1394,6 @@
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- this.isShowPrintType = true
|
|
|
|
- this.getList()
|
|
|
|
|
|
|
|
//贸易入库需要再走入库接口
|
|
//贸易入库需要再走入库接口
|
|
if (this.inWarehouseType == 1) {
|
|
if (this.inWarehouseType == 1) {
|
|
@@ -1403,7 +1404,7 @@
|
|
that.inOutDate = response
|
|
that.inOutDate = response
|
|
that.$set(that.inOutDate,'statusFlag',3)
|
|
that.$set(that.inOutDate,'statusFlag',3)
|
|
that.$set(that.inOutDate,'grossWeight',warehousing.grossWeight /1000)
|
|
that.$set(that.inOutDate,'grossWeight',warehousing.grossWeight /1000)
|
|
- that.$set(that.inOutDate,'tare',warehousing.grossWeight /1000)
|
|
|
|
|
|
+ that.$set(that.inOutDate,'tare',warehousing.tare /1000)
|
|
that.$set(that.inOutDate,'netWeight',warehousing.netWeight /1000)
|
|
that.$set(that.inOutDate,'netWeight',warehousing.netWeight /1000)
|
|
// that.$set(that.inOutDate,'pureWeight',warehousing.pureWeight /1000)
|
|
// that.$set(that.inOutDate,'pureWeight',warehousing.pureWeight /1000)
|
|
that.$set(that.inOutDate,'deductionAmount',Number(warehousing.deductionAmount) * 1000)
|
|
that.$set(that.inOutDate,'deductionAmount',Number(warehousing.deductionAmount) * 1000)
|
|
@@ -1437,8 +1438,14 @@
|
|
// // delete that.inOutDate.status
|
|
// // delete that.inOutDate.status
|
|
// that.inOutDate = Object.assign(that.inOutDate, warehousing)
|
|
// that.inOutDate = Object.assign(that.inOutDate, warehousing)
|
|
addstorageputList(that.inOutDate).toPromise().then((response) => {})
|
|
addstorageputList(that.inOutDate).toPromise().then((response) => {})
|
|
|
|
+ this.isShowPrintType = true
|
|
|
|
+ this.getList()
|
|
})
|
|
})
|
|
}
|
|
}
|
|
|
|
+ else{
|
|
|
|
+ this.isShowPrintType = true
|
|
|
|
+ this.getList()
|
|
|
|
+ }
|
|
})
|
|
})
|
|
.catch((response) => {})
|
|
.catch((response) => {})
|
|
}
|
|
}
|