|
|
@@ -112,7 +112,11 @@ export default {
|
|
|
}else if(this.pageType == 'bill' && !this.$util.isEmpty(this.option.customId)){
|
|
|
if(uni.getStorageSync('selectList_'+this.pageType+'_custom_'+this.option.customId)){
|
|
|
//由于价格会变化,所以在initData()重新载入已经选择的花材
|
|
|
- }
|
|
|
+ }
|
|
|
+ }else if(this.pageType == 'purchase' && !this.$util.isEmpty(this.option.ghsId)){
|
|
|
+ if(uni.getStorageSync('selectList_'+this.pageType+'_ghs_'+this.option.ghsId)){
|
|
|
+ this.setSelectInfoByType({ type: this.pageType, info: uni.getStorageSync('selectList_'+this.pageType+'_ghs_'+this.option.ghsId) })
|
|
|
+ }
|
|
|
}else{
|
|
|
//盘点和报损等不需要考虑价格
|
|
|
if(uni.getStorageSync('selectList_'+this.pageType)){
|
|
|
@@ -132,6 +136,9 @@ export default {
|
|
|
if(this.pageType == 'bill' && !this.$util.isEmpty(this.option.customId)){
|
|
|
//开单根据客户记住已选的花材
|
|
|
uni.setStorageSync('selectList_'+this.pageType+'_custom_'+this.option.customId, this.selectList)
|
|
|
+ }else if(this.pageType == 'purchase' && !this.$util.isEmpty(this.option.ghsId)){
|
|
|
+ //采购根据供应商记住已选的花材
|
|
|
+ uni.setStorageSync('selectList_'+this.pageType+'_ghs_'+this.option.ghsId, this.selectList)
|
|
|
}else{
|
|
|
uni.setStorageSync('selectList_'+this.pageType, this.selectList)
|
|
|
}
|
|
|
@@ -196,8 +203,8 @@ export default {
|
|
|
});
|
|
|
});
|
|
|
this.productInfoList = data;
|
|
|
- //修改花材
|
|
|
if(this.option.modifyProductKey){
|
|
|
+ //修改花材
|
|
|
if(uni.getStorageSync('selectList_'+this.option.modifyProductKey)){
|
|
|
let currentInfo = uni.getStorageSync('selectList_'+this.option.modifyProductKey)
|
|
|
if(!this.$util.isEmpty(currentInfo)){
|
|
|
@@ -213,6 +220,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}else if(this.pageType == 'bill' && !this.$util.isEmpty(this.option.customId)){
|
|
|
+ //开单记忆花材取出到selectList
|
|
|
if(uni.getStorageSync('selectList_'+this.pageType+'_custom_'+this.option.customId)){
|
|
|
let currentInfo = uni.getStorageSync('selectList_'+this.pageType+'_custom_'+this.option.customId)
|
|
|
if(!this.$util.isEmpty(currentInfo)){
|