数据存储由isFrom修改为branchType

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-12-25 16:55:58 +08:00
parent 48f678094e
commit f437bbcf63
4 changed files with 16 additions and 16 deletions

View File

@@ -21,7 +21,7 @@
</li>
</ul>
</div>
<p v-if="isFrom == 'GBCsale'" style="margin-top: 10px;color: red;background-color: #ffdddc;padding: 5px 10px;">提示您目前正在投保的项目为{{projectName}}</p>
<p v-if="branchType == '13'" style="margin-top: 10px;color: red;background-color: #ffdddc;padding: 5px 10px;">提示您目前正在投保的项目为{{projectName}}</p>
</div>
</template>
@@ -56,7 +56,7 @@ export default {
},
data() {
return {
isFrom:'',
branchType:'',
projectName:'',
thisShow: false,
doneUrl: this.$assetsUrl + 'images/kmh/done.png',
@@ -197,8 +197,8 @@ export default {
}
})
this.selectTab()
if(window.localStorage.getItem('isFrom') == 'GBCsale') {
this.isFrom = 'GBCsale'
if(window.localStorage.getItem('branchType') == '13') {
this.branchType = '13'
that.gbcProjectDetail()
}
},

View File

@@ -132,7 +132,7 @@ export default {
getAgentInfo(params).then(res => {
if(res.result == '0') {
if(res.branchType == '13') {
window.localStorage.setItem('isFrom','GBCsale')
window.localStorage.setItem('branchType','13')
}
} else {
this.$toast(res.resultMessage)

View File

@@ -3,7 +3,7 @@
<!-- 基本信息 -->
<index-bar :key="renovate"></index-bar>
<!-- 项目信息 -->
<van-cell-group :border="false" v-if="isFrom == 'GBCsale'">
<van-cell-group :border="false" v-if="branchType == '13'">
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 mt10 pv12">项目信息</p>
<van-field v-model="projectDTO.platformName" label="平台名称" name="平台名称" readonly placeholder="请输入"/>
<van-field v-model="projectDTO.projectName" label="项目名称" name="项目名称" readonly placeholder="请输入"/>
@@ -15,7 +15,7 @@
</van-cell-group>
<van-cell-group class="mt10">
<p style="border-bottom: 1px solid #ebedf0" class="fs15 fwb pl10 pv12">基本信息</p>
<van-field v-show="isFrom == 'GBCsale'" v-model="projectDTO.departmentName" @click="toSelect('GBCKS')" readonly required label="部门/科室" name="部门/科室" right-icon="arrow" placeholder="请选择"/>
<van-field v-show="branchType == '13'" v-model="projectDTO.departmentName" @click="toSelect('GBCKS')" readonly required label="部门/科室" name="部门/科室" right-icon="arrow" placeholder="请选择"/>
<customer-picker
@on-choose="chooseCustomer"
v-validate="'required|salename'"
@@ -488,7 +488,7 @@
},
data() {
return {
isFrom: '',
branchType: '',
projectDTO:{
platformName:'',
projectName:'',
@@ -717,8 +717,8 @@
this.areaValue = '520000'
}
this.areaLists = areaLists
if(window.localStorage.getItem('isFrom') == 'GBCsale') {
this.isFrom = 'GBCsale'
if(window.localStorage.getItem('branchType') == '13') {
this.branchType = '13'
this.gbcProjectDetail()
this.getDepartmentByProjectNo()
}
@@ -1440,7 +1440,7 @@
}
this.thismystr = ''
params.orderDTO.appntDTO = this.userInfo
if(this.isFrom == 'GBCsale'){
if(this.branchType == '13'){
params.orderDTO.ebizOrderGbcRelDTO = {
projectCode: this.projectDTO.projectCode,
departmentCode: this.projectDTO.departmentCode

View File

@@ -580,14 +580,14 @@ export default {
//新增
add() {
let thisToken = this.$CacheUtils.getLocItem('token')
let thisisFrom = ''
if(this.$CacheUtils.getLocItem('isFrom') == 'GBCsale') {
thisisFrom = this.$CacheUtils.getLocItem('isFrom')
let thisbranchType = ''
if(this.$CacheUtils.getLocItem('branchType') == '13') {
thisbranchType = this.$CacheUtils.getLocItem('branchType')
}
window.localStorage.clear()
this.$CacheUtils.setLocItem('token', thisToken)
if(thisisFrom) {
this.$CacheUtils.setLocItem('isFrom', thisisFrom)
if(thisbranchType) {
this.$CacheUtils.setLocItem('isFrom', branchType)
}
localStorage.orderNo = ''