|
|
@ -109,6 +109,10 @@ |
|
|
|
// type: String, |
|
|
|
// default: "" |
|
|
|
// }, |
|
|
|
myTitle: { |
|
|
|
type: String, |
|
|
|
default: "" |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
@ -143,43 +147,41 @@ |
|
|
|
this.getLocationInfo(); |
|
|
|
}, |
|
|
|
|
|
|
|
onLoad() { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
methods: { |
|
|
|
initData() { |
|
|
|
if (this.businessTypeCode == "Move") { |
|
|
|
this.title = "库存转移记录"; |
|
|
|
// this.title = "库存转移记录"; |
|
|
|
this.toInventoryStatus = "" |
|
|
|
this.toLocationCode = "" |
|
|
|
this.isShowEditLocation = true; |
|
|
|
} else if (this.businessTypeCode == "HoldToOk") { |
|
|
|
this.title = "隔离转合格记录"; |
|
|
|
// this.title = "隔离转合格记录"; |
|
|
|
this.toInventoryStatus = "OK" |
|
|
|
this.toLocationCode = "" |
|
|
|
this.isShowEditLocation = true; |
|
|
|
} else if (this.businessTypeCode == "HoldToScrap") { |
|
|
|
this.title = "隔离转报废记录"; |
|
|
|
// this.title = "隔离转报废记录"; |
|
|
|
this.toInventoryStatus = "SCRAP" |
|
|
|
this.toLocationCode = "" |
|
|
|
// this.toLocationCode = "SCRAP" |
|
|
|
} else if (this.businessTypeCode == "OkToHold") { |
|
|
|
this.title = "合格转隔离记录"; |
|
|
|
// this.title = "合格转隔离记录"; |
|
|
|
this.toInventoryStatus = "HOLD" |
|
|
|
this.toLocationCode = "" |
|
|
|
// this.toLocationCode = "HOLD" |
|
|
|
} else if (this.businessTypeCode == "OkToScrap") { |
|
|
|
this.title = "合格转报废记录"; |
|
|
|
// this.title = "合格转报废记录"; |
|
|
|
this.toInventoryStatus = "SCRAP" |
|
|
|
this.toLocationCode = "" |
|
|
|
// this.toLocationCode = "SCRAP" |
|
|
|
} else if (this.businessTypeCode == "ScrapToHold") { |
|
|
|
this.title = "报废转隔离记录"; |
|
|
|
// this.title = "报废转隔离记录"; |
|
|
|
this.toInventoryStatus = "HOLD" |
|
|
|
// this.toLocationCode = "HOLD" |
|
|
|
this.toLocationCode = "" |
|
|
|
} |
|
|
|
this.title = this.myTitle |
|
|
|
uni.setNavigationBarTitle({ |
|
|
|
title: this.title |
|
|
|
}) |
|
|
|