Commit 26084c4c authored by jiacheng.mao's avatar jiacheng.mao

合同创建BUG修复

parent d3bf0337
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://www.xcmgfs.com:8087/r/api"',
fileUploadSvcPath:'"http://www.xcmgfs.com:8087/r/api/app/fileUploadSvc?sysName=XCMG_PROD&apiName="',
appId: '"com.xcmg.app"',
currentVersion: '"0.1.9"'
currentVersion: '"0.2.0"'
}
......@@ -11,5 +11,5 @@ module.exports = {
ocrPath:'"http://180.104.121.66:8088/r/api"',
fileUploadSvcPath:'"http://180.104.121.66:8088/r/api/app/fileUploadSvc?sysName=XCMG_UAT&apiName="',
appId: '"com.xcmg.app.dev"',
currentVersion: '"2.3.4"'
currentVersion: '"2.3.5"'
}
......@@ -30,10 +30,18 @@
@click="selectBusiness"
>
</item>
<item>
<!-- <item>-->
<!-- <div slot="name" class="font-color required">经销商</div>-->
<!-- <input v-if="(user_bp_type === 'AGENT'&&!multiple)||(multiple==='AGENT')" slot="content" v-model="bp_agent_name" readonly>-->
<!-- <input v-if="(user_bp_type === 'OFFICE'&&!multiple)||(multiple==='OFFICE')" slot="content" placeholder="直销" readonly>-->
<!-- </item>-->
<item v-if="(user_bp_type === 'AGENT'&&!multiple)||(multiple==='AGENT')">
<div slot="name" class="font-color required">经销商</div>
<input slot="content" v-model="bp_agent_name" type="text" readonly>
</item>
<item v-if="(user_bp_type === 'OFFICE'&&!multiple)||(multiple==='OFFICE')">
<div slot="name" class="font-color required">经销商</div>
<input v-if="(user_bp_type === 'AGENT'&&!multiple)||(multiple==='AGENT')" slot="content" v-model="bp_agent_name" readonly>
<input v-if="(user_bp_type === 'OFFICE'&&!multiple)||(multiple==='OFFICE')" slot="content" placeholder="直销" readonly>
<input slot="content" placeholder="直销" type="text" readonly>
</item>
<item :showArrow="true">
<div slot="name" class="font-color required">销售人员</div>
......@@ -320,6 +328,7 @@ export default {
return vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
console.log('经销商', res)
debugger
if (res.result === 'S') {
vm.bp_agent_name = res.info.bp_agent_name
vm.bp_agent_id = res.info.bp_agent_id
......
......@@ -351,6 +351,7 @@ export default {
},
// 选择角色后确定
roleConfirm (role) {
debugger
this.roleSwitchFlag = false
if (role.bp_type === 'TENANT') {
window.localStorage.setItem('multipleRole', 'TENANT')
......@@ -951,6 +952,13 @@ export default {
vm.user_bp_type = res.info.user_bp_type
vm.user_phone = res.info.user_phone
vm.bp_type_n = res.info.user_bp_type_n
if (res.info.user_bp_type === 'TENANT') {
window.localStorage.setItem('multipleRole', 'TENANT')
} else if (res.info.user_bp_type === 'GUTA') {
window.localStorage.setItem('multipleRole', 'GUTA')
} else if (res.info.user_bp_type === 'AGENT') {
window.localStorage.setItem('multipleRole', 'AGENT')
}
vm.watchBpStatus()
vm.getHead()
vm.getMultipleRole()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment