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