数据存储由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> </li>
</ul> </ul>
</div> </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> </div>
</template> </template>
@@ -56,7 +56,7 @@ export default {
}, },
data() { data() {
return { return {
isFrom:'', branchType:'',
projectName:'', projectName:'',
thisShow: false, thisShow: false,
doneUrl: this.$assetsUrl + 'images/kmh/done.png', doneUrl: this.$assetsUrl + 'images/kmh/done.png',
@@ -197,8 +197,8 @@ export default {
} }
}) })
this.selectTab() this.selectTab()
if(window.localStorage.getItem('isFrom') == 'GBCsale') { if(window.localStorage.getItem('branchType') == '13') {
this.isFrom = 'GBCsale' this.branchType = '13'
that.gbcProjectDetail() that.gbcProjectDetail()
} }
}, },

View File

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

View File

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

View File

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