mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 17:12:53 +08:00
Revert "GFRS-2504 指定生效日需求-修改localstorage取值为空问题-提交人:白金岩"
This reverts commit 3bd21b06
This commit is contained in:
@@ -121,7 +121,7 @@ export default {
|
||||
nextStepFlag: true,
|
||||
isShow: true,
|
||||
appntDTO: {},
|
||||
isFrom: this.$CacheUtils.getLocItem('isFrom'),
|
||||
isFrom: localStorage.isFrom,
|
||||
salePageFlag: '3',
|
||||
active_show: false,
|
||||
active_sqy_show:false,
|
||||
@@ -142,9 +142,9 @@ export default {
|
||||
[VanImage.name]: VanImage
|
||||
},
|
||||
mounted() {
|
||||
if (this.$CacheUtils.getLocItem('isFrom') == 'sale') {
|
||||
if (localStorage.isFrom == 'sale') {
|
||||
// 清除活动标志
|
||||
this.$CacheUtils.removeLocItem('active_type')
|
||||
localStorage.removeItem('active_type')
|
||||
setTimeout(() => {
|
||||
// eslint-disable-next-line no-undef
|
||||
EWebBridge.webCallAppInJs('webview_left_button', {
|
||||
@@ -158,14 +158,14 @@ export default {
|
||||
this.getProductList()
|
||||
if (!this.$route.query.edit) {
|
||||
//如果不是编辑/导航条跳转进来的
|
||||
this.$CacheUtils.setLocItem('salePageFlag', this.salePageFlag)
|
||||
localStorage.setItem('salePageFlag', this.salePageFlag)
|
||||
} else if (this.$route.query.edit && !this.$route.query.salePageFlag) {
|
||||
//如果从保单列表点击编辑按钮进入
|
||||
this.salePageFlag = '3'
|
||||
this.$CacheUtils.setLocItem('salePageFlag', this.salePageFlag)
|
||||
localStorage.setItem('salePageFlag', this.salePageFlag)
|
||||
} else if (this.$route.query.salePageFlag) {
|
||||
//如果是从导航栏点击进入
|
||||
this.salePageFlag = this.$CacheUtils.getLocItem('salePageFlag')
|
||||
this.salePageFlag = localStorage.salePageFlag
|
||||
}
|
||||
|
||||
// localStorage.orderNo = '19090510425500178912'
|
||||
@@ -187,7 +187,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
appCallBack(data) {
|
||||
if (data.trigger == 'left_button_click' && this.$CacheUtils.getLocItem('isFrom') == 'sale') {
|
||||
if (data.trigger == 'left_button_click' && localStorage.isFrom == 'sale') {
|
||||
return this.$dialog
|
||||
.confirm({
|
||||
className: 'dialog-delete',
|
||||
@@ -219,7 +219,7 @@ export default {
|
||||
async getProductList() {
|
||||
//建议书、电投详情
|
||||
let resultData
|
||||
let isProposal = this.$CacheUtils.getLocItem('isFrom') == 'proposal' ? true : false
|
||||
let isProposal = localStorage.isFrom == 'proposal' ? true : false
|
||||
if (isProposal) {
|
||||
let saleInsuredPersonInfo = this.$CacheUtils.getLocItem('saleInsuredPersonInfo') && JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
||||
console.log(saleInsuredPersonInfo)
|
||||
@@ -235,7 +235,7 @@ export default {
|
||||
message: '加载中……'
|
||||
})
|
||||
resultData = await getDetail({
|
||||
orderNo: this.$CacheUtils.getLocItem('orderNo'),
|
||||
orderNo: localStorage.orderNo,
|
||||
isMerge: '1',
|
||||
orderType: 'proposalInsuredInfo',
|
||||
orderDTO: { insuredDTOs: [{ insuredId: insuredId }] }
|
||||
@@ -247,7 +247,7 @@ export default {
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
resultData = await orderDetail({ orderNo: this.$CacheUtils.getLocItem('orderNo'), isMerge: '1' })
|
||||
resultData = await orderDetail({ orderNo: localStorage.orderNo, isMerge: '1' })
|
||||
}
|
||||
if (resultData.result == 0) {
|
||||
let riskDTOLst
|
||||
@@ -309,14 +309,14 @@ export default {
|
||||
})
|
||||
},
|
||||
async delProduct(index) {
|
||||
let isProposal = this.$CacheUtils.getLocItem('isFrom') == 'proposal' ? true : false
|
||||
let isProposal = localStorage.isFrom == 'proposal' ? true : false
|
||||
let resultData = ''
|
||||
|
||||
if (isProposal) {
|
||||
resultData = await deleteProposal({
|
||||
orderDTO: {
|
||||
orderInfoDTO: {
|
||||
orderNo: this.$CacheUtils.getLocItem('orderNo')
|
||||
orderNo: localStorage.orderNo
|
||||
},
|
||||
insuredDTOs: [
|
||||
{
|
||||
@@ -336,7 +336,7 @@ export default {
|
||||
id: this.chooseProducts[index].insuanceId,
|
||||
orderDTO: {
|
||||
orderInfoDTO: {
|
||||
orderNo: this.$CacheUtils.getLocItem('orderNo')
|
||||
orderNo: localStorage.orderNo
|
||||
}
|
||||
}
|
||||
})
|
||||
@@ -352,14 +352,14 @@ export default {
|
||||
nextStep() {
|
||||
if (!this.$route.query.salePageFlag) {
|
||||
//如果从保单列表编辑按钮进入
|
||||
this.$CacheUtils.setLocItem('salePageFlag','4')
|
||||
localStorage.salePageFlag = '4'
|
||||
}
|
||||
console.log('this.chooseProducts', this.chooseProducts)
|
||||
if (this.chooseProducts.length == 0) {
|
||||
return this.$toast('请添加产品')
|
||||
}
|
||||
//930折中方案,豁免险选择
|
||||
let oldAddRiskCodes = JSON.parse(this.$CacheUtils.getLocItem('oldAddRiskCodes'))
|
||||
let oldAddRiskCodes = JSON.parse(localStorage.oldAddRiskCodes)
|
||||
if (oldAddRiskCodes.includes('DCRS_A0001')) {
|
||||
let chooseProducts = this.chooseProducts
|
||||
for (let i = 0; i < chooseProducts.length; i++) {
|
||||
@@ -378,7 +378,7 @@ export default {
|
||||
}
|
||||
}
|
||||
let routerUrl
|
||||
if (this.$CacheUtils.getLocItem('isFrom') == 'proposal') {
|
||||
if (localStorage.isFrom == 'proposal') {
|
||||
routerUrl = '/proposal/chooseInsuredPerson'
|
||||
let page = this.$route.query.proposalEdit == '1' ? '-1' : '-2'
|
||||
|
||||
@@ -411,7 +411,7 @@ export default {
|
||||
//添加产品
|
||||
async addProduct() {
|
||||
// 1、处理判断活动 1、电投流程 2、后端接口提供弹出判断
|
||||
if (this.$CacheUtils.getLocItem('isFrom') == 'sale') {
|
||||
if (localStorage.isFrom == 'sale') {
|
||||
let param = {
|
||||
activeType: 'KMH'
|
||||
}
|
||||
@@ -458,7 +458,7 @@ export default {
|
||||
let param = {
|
||||
orderDTO: {
|
||||
orderInfoDTO: {
|
||||
orderNo: this.$CacheUtils.getLocItem('orderNo'),
|
||||
orderNo: localStorage.orderNo,
|
||||
activeType: type=='KMH'?this.active_radio == '1'?'KMH':'':type=='SQY'?this.active_sqy_radio=='1'?'SQY':'':''
|
||||
}
|
||||
}
|
||||
@@ -466,7 +466,7 @@ export default {
|
||||
saveOrderActiveType(param).then(res => {
|
||||
this.active_show = false
|
||||
this.active_sqy_show = false
|
||||
this.$CacheUtils.setLocItem('active_type', type=='KMH'?this.active_radio == '1'?'KMH':'':type=='SQY'?this.active_sqy_radio=='1'?'SQY':'':'')
|
||||
localStorage.setItem('active_type', type=='KMH'?this.active_radio == '1'?'KMH':'':type=='SQY'?this.active_sqy_radio=='1'?'SQY':'':'')
|
||||
if (res.result == 0) {
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
@@ -498,9 +498,9 @@ export default {
|
||||
},
|
||||
nextPageShow() {
|
||||
let routerUrl = '/sale/beneficiary'
|
||||
this.$CacheUtils.setLocItem('beneficiaryInfo','')
|
||||
this.$CacheUtils.setLocItem('fromAddBeneficiaryInfo','')
|
||||
this.$CacheUtils.removeLocItem('applicant')
|
||||
localStorage.beneficiaryInfo = ''
|
||||
localStorage.fromAddBeneficiaryInfo = ''
|
||||
localStorage.removeItem('applicant')
|
||||
this.$jump({
|
||||
flag: 'h5',
|
||||
extra: {
|
||||
|
||||
Reference in New Issue
Block a user