提交 d2cd0665 authored 作者: 黄旭新's avatar 黄旭新

xin

......@@ -73,7 +73,7 @@
"provider" : "wxaf8f505686ddf66a"
}
},
"appid" : "wxb21370ac25ee51b0",
"appid" : "wx45bb68de16ddddb7",
"setting" : {
"urlCheck" : true,
"es6" : true,
......
......@@ -119,18 +119,15 @@
<text class="right_title right_title2" v-if="item.status == 4">已电子盖章</text>
<text class="right_title right_title2" v-if="item.status == 5">已生效</text>
</view>
<view>合同甲方: {{item.ename}}</view>
<view>合同甲方: {{item.contractA}}</view>
<!-- <view>合同乙方: {{item.contractB}}</view> -->
<view>合同乙方: {{item.contractB}}</view>
<view>合同电量: {{item.electricity}}万kWh</view>
<!-- 固定价差 -->
<view v-if="item.contractType == 1||item.contractType == 5||item.contractType == 6">合同类型: 固定价差
</view>
<!-- <view v-if="item.contractType == 1||item.contractType == 5||item.contractType == 6">合同金额:
{{item.fixedSpread}}
</view> -->
<view v-if="item.contractType == 1||item.contractType == 5||item.contractType == 6">合同金额:
{{item.price}}
{{item.fixedSpread}}
</view>
<!-- 分时价差 -->
<view v-if="item.contractType == 2||item.contractType == 7||item.contractType == 8">合同类型: 分时价差
......
......@@ -41,7 +41,6 @@
<view class="fail_dialog_hint" v-if="concludeList.length==0&&(tabIndex==1||tabIndex==3)">
<view class="fail_dialog_hint_text">暂无企业,请去绑定企业</view>
<view class="fail_dialog_hint_btn">
<!-- <view class="btn_cnacle" @click="linkBack">取消</view> -->
<view @click="linkToBind">去绑定</view>
</view>
</view>
......@@ -192,28 +191,29 @@
},
data() {
return {
electricId: null, //电客id
BasicCreditScore: false, // 信用分
electricId: null, // 电客id
BasicCreditScore: false, // 信用分--是否满足拼团
dialogShow: false, // 电客收益模式弹窗
radioChecked: false, // 是否选择拼包模式
mode: '', //电客收益模式:1-自负盈亏,2-无风险模式(价差类型拼团没有收益模式)
packageId: '', //拼团id
radioChecked: false, // 是否选择拼包模式
mode: '', // 电客收益模式:1-自负盈亏,2-无风险模式(价差类型拼团没有收益模式)
packageId: '', // 拼团id
packageType: '', // 拼团类型:1=月竞分成现货拼团,2=固定价差现货拼团,3=普通现货分成拼团, 4=固定价差拼团, 5=分时价差拼团
userId: '', //企业id
concludeList: [], //签订企业列表(普通会员)
userId: '', // 企业id
concludeList: [], // 签订企业列表(普通会员)
entrustList: [], // 委托企业列表(中级会员)
failDialog: false, // 不满足弹窗
hintText: '', // 不满足的原因
btnText: '', //不满足拼包条件弹窗蓝色按钮文字: 企业未认证 -- 提醒企业认证, 企业已参加套餐 -- 替换成该套餐, 其他 -- 我知道了
failDialogBtnShow: false, //不满足拼包条件:企业未认证 / 企业已参加套餐 -- 存在取消按钮
btnText: '', // 不满足拼包条件弹窗蓝色按钮文字: 企业未认证 -- 提醒企业认证, 企业已参加套餐 -- 替换成该套餐, 其他 -- 我知道了
failDialogBtnShow: false, // 不满足拼包条件:企业未认证 / 企业已参加套餐 -- 存在取消按钮
isSatisfy: false, // 满足拼包,确定按钮出现
successDialog: false, // 拼包成功后弹窗
isshare: false, //拼包成功后邀请弹窗
isshare: false, // 拼包成功后邀请弹窗
contractId: null, // 普通会员--合同id,中级会员没有合同
tabIndex: 1, // tab栏(现货类型拼团有tab栏,价差类型没有tab栏(tabIndex=3),并且电客只能帮普通会员参加价差拼包)
contractElectricity: '', // 已拼团电量
limit: '', // 拼团电量上限;如果为null,则表示为空,后台没有进行设置
remindId: null, // 需要提醒企业认证的企业id
enterpriseIndex: null, // 点击的企业
}
},
methods: {
......@@ -290,12 +290,14 @@
checkEnterprise(enterpriseId, contractId, userType, i) {
this.remindId = enterpriseId
this.isSatisfy = true
// userType=3是为中级会员, 中级会员没有合同
this.enterpriseIndex = i
// userType=3是为普通会员, 中级会员没有合同
if (userType == 3) {
this.contractId = contractId
} else {
this.contractId = ''
}
console.log(this.contractId)
let flag = false
if (this.tabIndex == 1 || this.tabIndex == 3) {
this.concludeList[i].checked = !this.concludeList[i].checked
......@@ -310,7 +312,7 @@
flag = true
}
}
// 电客选择企业拼包条件的校验
// 电客选择企业拼团是否超过拼团电量上限的校验
let electric = 0
if (this.tabIndex == 1 || this.tabIndex == 3) {
electric += Number(this.concludeList[i].tuserCertification.annualElectricityConsumption)
......@@ -322,11 +324,10 @@
this.failDialog = true
this.hintText = '已到达售电公司的拼团上限,不能继续选择企业'
this.btnText = '我知道了'
this.enterpriseIndex = i
return false
}
if (flag) {
// 拼团校验
// 电客选择企业拼团校验
this.participatePackageCheck(enterpriseId)
}
},
......
......@@ -57,21 +57,24 @@
<!-- 问号弹窗start -->
<view class="settle_hint" v-if="settleShow">
<view class="settle_hint_box">
<view class="settle_hint_box_text" v-if="groupDetails.type == 1">
<view class="settle_hint_box_text" v-if="groupDetails.type==1&&!brokerageShow">
拼团完成的电量在非现货模式下结算方式为月竞分成,现货模式下结算方式为月竞分成加现货收益分成
</view>
<view class="settle_hint_box_text" v-if="groupDetails.type == 2">
<view class="settle_hint_box_text" v-if="groupDetails.type==2&&!brokerageShow">
拼团完成的电量在非现货模式下结算方式为价差保底,现货模式下结算方式为价差保底加现货收益分成
</view>
<view class="settle_hint_box_text" v-if="groupDetails.type == 3">
<view class="settle_hint_box_text" v-if="groupDetails.type==3&&!brokerageShow">
拼团完成的电量按售电公司的净批发利润乘以合同上约定的分成比例,在交易中心以退补电费方式结算
</view>
<view class="settle_hint_box_text" v-if="groupDetails.type == 4">
<view class="settle_hint_box_text" v-if="groupDetails.type==4&&!brokerageShow">
拼团完成的电量结算方式为固定价差
</view>
<view class="settle_hint_box_text" v-if="groupDetails.type == 5">
<view class="settle_hint_box_text" v-if="groupDetails.type==5&&!brokerageShow">
企业峰谷平用电时段签订的价差让利价格不同
</view>
<view class="settle_hint_box_text" v-if="brokerageShow">
佣金是售电公司给予电客的额外收益,佣金的分成基数是售电公司扣除电力用户收益、偏差考核、交易费、分摊费用、商务费、其他必要成本、电客拼团收益、电客定额服务费等扣减项后的收益
</view>
<view class="settle_hint_box_btn" @click="settleShow = false">
我知道了
</view>
......@@ -79,13 +82,13 @@
</view>
<view class="settle_hint" v-if="settelTypeShow">
<view class="settle_hint_box">
<view class="settle_hint_box_text" v-if="groupDetails.settelType == 1">
<view class="settle_hint_box_text" v-if="groupDetails.settelType == 1&&!brokerageShow">
现货拼团中结算的现货利润为单家企业现货收益,因每家企业峰平谷用电比例不同会影响售电公司在现货电量批发成本,从而每家企业现货收益不同
</view>
<view class="settle_hint_box_text" v-if="groupDetails.settelType == 2">
<view class="settle_hint_box_text" v-if="groupDetails.settelType == 2&&!brokerageShow">
现货拼团中结算的现货利润为单家企业现货收益,因每家企业每日用电比例不同会影响售电公司在现货电量批发成本,从而每家企业现货收益不同
</view>
<view class="settle_hint_box_text" v-if="groupDetails.settelType == 3">
<view class="settle_hint_box_text" v-if="groupDetails.settelType == 3&&!brokerageShow">
现货拼团中结算的度电现货收益为售电公司代理的整个大盘企业电量现货收益的加权平均
</view>
<view class="settle_hint_box_btn" @click="settelTypeShow = false">
......@@ -147,7 +150,7 @@
居间让利上限:{{groupDetails.intermediateProfitCeiling}}</view>
<view>拼团电量上限:{{groupDetails.powerLimit}}万kWh</view>
<view v-if="type==2&&groupDetails.commissionRate">佣金:{{groupDetails.commissionRate}}%
<image @click="settleShow = true" style="margin-left: 10rpx;"
<image @click="clickBrokerage" style="margin-left: 10rpx;"
src="../../static/images/icon_wenhao.png"></image>
</view>
</view>
......@@ -366,6 +369,7 @@
btnText: '', //按钮文字
isParticipated: '0', // 是否参与该套餐:1 代表已经参与拼团,0 表示没有参与拼团
setIntervaltimerindex: '', //定时器
brokerageShow: false, // 佣金文字显示
}
},
methods: {
......@@ -439,6 +443,11 @@
url: '/pages/group/Companys?id=' + this.packageId
})
},
// 点击佣金字段
clickBrokerage(){
this.settleShow = true
this.brokerageShow = true
},
//判断信用分是否可以参与拼包
getBasicCreditScore() {
let that = this
......
......@@ -20,7 +20,8 @@
</view>
<view class="common" v-if="switchChecked">
<view>现货拼团收益占比</view>
<input type="digit" value="" v-model="AccountedFor" placeholder="请输入" placeholder-style="color: #ccc;" />
<input type="digit" value="" v-model="AccountedFor" placeholder="请输入"
placeholder-style="color: #ccc;" />
</view>
</view>
<!-- 委托信息end -->
......@@ -28,7 +29,8 @@
<view class="ReleaseServeOrder_btns">
<view class="btns_radio">
<label class="radio" @click="radioChange">
<radio value="A" :checked="radioChecked" color="#1989fa" style="transform: scale(0.8);" /><text>同意平台协议及法律条款</text>
<radio value="A" :checked="radioChecked" color="#1989fa" style="transform: scale(0.8);" />
<text>同意平台协议及法律条款</text>
</label>
</view>
<view class="btns_confrim" @click="save">保存</view>
......@@ -45,6 +47,7 @@
import api from '../../static/util/api.js'
export default {
created() {
this.userType = uni.getStorageSync('user').userType
this.enterpriseId = uni.getStorageSync('user').enterpriseId
// 获取会员的电客信息
get(api.myElectric, {
......@@ -71,6 +74,7 @@
isCommissionPackage: 2, // 是否委托电客参与拼团 1 -- 是, 2 -- 否
switchChecked: false,
radioChecked: false,
userType: null, // 企业用户类型
}
},
methods: {
......@@ -101,7 +105,7 @@
}
} else {
if (this.switchChecked) {
if (this.AccountedFor == ''|| isNaN(this.AccountedFor)) {
if (this.AccountedFor == '' || isNaN(this.AccountedFor)) {
uni.showToast({
title: '请输入现货拼团收益占比',
icon: 'none'
......@@ -118,8 +122,22 @@
})
return false
}
this.bindElectric()
if (this.userType == 5) {
// 高级会员是否能委托电客
get(api.isCommission, {
userId: this.enterpriseId
}).then(res => {
if (res.code == 200) {
if (res.msg) {
this.bindElectric()
}
}
})
} else {
this.bindElectric()
}
},
// 委托电客
bindElectric() {
get(api.myElectricSave, {
enterpriseId: this.enterpriseId,
......@@ -139,7 +157,7 @@
}, 3000)
} else {
uni.showToast({
title: '只有高级会员才能绑定电客',
title: res.msg,
icon: 'none'
})
}
......
......@@ -12,7 +12,8 @@
</button>
<image @click="notice" src="https://fire.huoshitou.net/profile/icon/ld.png" mode="widthFix"></image>
</view>
<image class="user_img" src="https://fire.huoshitou.net/profile/icon/head.png" mode="scaleToFill"></image>
<image class="user_img" src="https://fire.huoshitou.net/profile/icon/head.png" mode="scaleToFill">
</image>
<view class="user_info">
<view v-if="isAuthenticate == 2" class="user_info_name">
{{certificationName}}
......@@ -77,7 +78,7 @@
</view>
</view>
<!-- 合同区域 -->
<view class="myInfo_block">
<view class="myInfo_block" v-if="isShow">
<view class="myInfo_block_title" @click="linktocontract(0)">我的合同</view>
<view class="right_icon" @click="linktocontract(0)">
<text class="contracttext" v-if="contractNum==''">无合同待处理</text>
......@@ -340,7 +341,8 @@
url: '/pages/myInfo/Myguest'
},
],
personageList_zhongji: [{
personageList_zhongji: [
{
id: 4,
name: '发票管理',
others: 'null',
......@@ -348,7 +350,8 @@
image: 'https://fire.huoshitou.net/profile/icon/fb.png',
url: '/pages/Invoice/invoice',
}, {
},
{
id: 5,
name: '结算联系单',
others: 'null',
......@@ -366,6 +369,15 @@
},
],
personageList_putong: [{
id: 3,
name: '我的合同',
others: 'null',
limit: 'invoiceManagement',
image: 'https://fire.huoshitou.net/profile/icon/qyht.png',
url: '/pagesA/Contracts/MyContractType/MyContractType',
},
{
id: 3,
name: '结算联系单',
others: 'null',
......@@ -383,13 +395,23 @@
},
],
personageList_cunliang: [{
id: 3,
name: '零售结算联系单',
others: '',
limit: 'retailSettlementForm',
image: 'https://fire.huoshitou.net/profile/icon/jslxd.png',
url: '/pages/myInfo/retailTrade'
}, ],
id: 3,
name: '我的合同',
others: 'null',
limit: 'invoiceManagement',
image: 'https://fire.huoshitou.net/profile/icon/qyht.png',
url: '/pagesA/Contracts/MyContractType/MyContractType',
},
{
id: 3,
name: '零售结算联系单',
others: '',
limit: 'retailSettlementForm',
image: 'https://fire.huoshitou.net/profile/icon/jslxd.png',
url: '/pages/myInfo/retailTrade'
},
],
//推荐工具
toollist: [],
toollist_dk: [{
......@@ -478,7 +500,8 @@
certificationName: '', // 认证名字
iscreate: false, // 海报区域
userId: null, // 用户id
isuser: true,
isuser: true, // 是否等录
isShow: true, // 是否出现我的合同区域
}
},
onShow() {
......@@ -561,6 +584,7 @@
}
that.toollist = that.toollist_gaoji
} else if (userType == 2) {
that.isShow = false
// 存量会员
if (creatById && roleObj) {
that.earningsList = that.roleFilter(that.earningsList_cunliang, roleObj)
......@@ -569,6 +593,7 @@
}
that.personageList = that.personageList_cunliang
} else if (userType == 3) {
that.isShow = false
// 普通会员
if (creatById && roleObj) {
that.earningsList = that.roleFilter(that.earningsList_putong, roleObj)
......
......@@ -20,15 +20,20 @@
let id = options.id
if(appendix) {
if(appendix.lastIndexOf('.pdf')>-1) {
console.log('11111111')
// 如果附件是pdf
let appendixUrl = appendix.replace(/https/g, 'https')
let appendixUrl = appendix.replace(/http/g, 'https')
console.log(appendixUrl)
this.openPdf(appendixUrl)
} else {
console.log('222222')
// 如果附件是图片
this.isImage = true
this.imgList = appendix.split(',')
console.log(this.imgList)
}
}else {
console.log('333333')
// 如果没有附件
get(api.downloadContractTemplate, {
contractId: id
......
......@@ -119,7 +119,7 @@
营业执照<image :src="companydata.eBusinessLicense" mode=""></image>
</view>
<view class="electriCompanyDetail_info_item">
最近一次全月现货结算综合批发均价<text>46.09</text>
最近一次全月现货结算综合批发均价<text>{{companydata.averagePrice}}</text>
</view>
</view>
<view class="electriCompanyDetail_info_introduce">
......
const erp = erp || {}; //wxb21370ac25ee51b0,//wx45bb68de16ddddb7
// const DOMAIN = 'http://192.168.1.107:9099/'; // 峰煜
// const DOMAIN = 'https://dev.diaosaas.com/diaoyun/' //测试
const DOMAIN = 'https://dev.diaosaas.com/diaoyun/' //测试
// const DOMAIN = 'http://192.168.1.178:9099/' // 国禄
// const DOMAIN = 'http://192.168.1.197:9099/' // 志就
const DOMAIN = 'https://fire.huoshitou.net/diaoyun/' // 正式
// const DOMAIN = 'https://fire.huoshitou.net/diaoyun/' // 正式
const HOST = DOMAIN + 'api/'
erp.login = HOST + 'loginAndRegister/login' // 登录
......@@ -151,6 +151,7 @@ erp.companyProfile = HOST + 'common/companyProfile' // 入驻公司公司简介
erp.companyPackageList = HOST + 'common/companyPackageList' // 售电公司详情---拼团套餐
erp.verifiedBefore = HOST + 'enterprise/verifiedBefore' // 企业认证提交前校验接口
erp.switchIdentit = HOST + 'common/switchIdentity' // 身份切换
erp.participatePackage = HOST + 'common/participatePackage'// 用电企业参与拼团
erp.participatePackage = HOST + 'common/participatePackage' // 用电企业参与拼团
erp.isCommission = HOST + 'api/enterprise/isCommission' // 高级会员是否可以委托电客拼团
export default erp;
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论