提交 16794d8f authored 作者: 宋雄's avatar 宋雄

修改二期bug

上级 f7f963ce
NODE_ENV=development NODE_ENV=development
# VUE_APP_API_BASE_URL='http://220.203.25.212:9998' VUE_APP_API_BASE_URL='http://220.203.25.212:9998'
VUE_APP_API_BASE_URL='http://192.168.0.100:9999' # VUE_APP_API_BASE_URL='http://192.168.0.100:9999'
# VUE_APP_API_BASE_URL='http://220.203.25.212:9999' # VUE_APP_API_BASE_URL='http://220.203.25.212:9999'
VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas VUE_APP_CAS_BASE_URL=http://cas.example.org:8443/cas
VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview VUE_APP_ONLINE_BASE_URL=http://fileview.jeecg.com/onlinePreview
......
...@@ -126,7 +126,7 @@ ...@@ -126,7 +126,7 @@
<script> <script>
import { getshareBalanceApi, auditshareBalanceApi } from '@/api/api' import { getshareBalanceApi, auditshareBalanceApi } from '@/api/api'
import { httpAction, getAction } from '@/api/manage' import { httpAction, getAction } from '@/api/manage'
import { filterDictTextByStatic, FENLICENTRAL_AUDIT_STATUS, BALANCE_STATUS } from '@/assets/static.js' import { filterDictTextByStatic, FENLICENTRAL_AUDIT_STATUS, BALANCE_STATUS, PAY_WAY } from '@/assets/static.js'
import { JeecgListMixin } from '@/mixins/JeecgListMixin' import { JeecgListMixin } from '@/mixins/JeecgListMixin'
const columns = [ const columns = [
...@@ -159,6 +159,9 @@ const columns = [ ...@@ -159,6 +159,9 @@ const columns = [
dataIndex: 'payWay', dataIndex: 'payWay',
key: 'payWay', key: 'payWay',
align: 'center', align: 'center',
customRender: function (text) {
return filterDictTextByStatic(PAY_WAY, text)
}
}, },
{ {
title: '订单来源', title: '订单来源',
......
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
this.edit(this.modelDefault); this.edit(this.modelDefault);
}, },
edit (record) { edit (record) {
this.model = Object.assign({}, record, {totalMoneyName: ${record.totalMoney}`, remarks: ''}); this.model = Object.assign({}, record, {totalMoneyName: ${record.shareMoney}`, remarks: ''});
this.visible = true; this.visible = true;
}, },
submitForm () { submitForm () {
......
...@@ -308,16 +308,9 @@ export default { ...@@ -308,16 +308,9 @@ export default {
border: 1px solid #e0dfdf; border: 1px solid #e0dfdf;
display: flex; display: flex;
align-items: center; align-items: center;
padding-left: 20px; justify-content: center;
.icon { .icon {
width: 60px;
height: 60px;
border-radius: 60px;
margin-right: 12px; margin-right: 12px;
display: flex;
text-align: center;
align-items: center;
justify-content: center;
.anticon { .anticon {
font-size: 36px; font-size: 36px;
} }
......
...@@ -69,7 +69,8 @@ ...@@ -69,7 +69,8 @@
@change="handleTableChange" @change="handleTableChange"
> >
<span slot="paymentNo" slot-scope="text, record"> <span slot="paymentNo" slot-scope="text, record">
<span style="color:blue;cursor:pointer" @click="onPayDetail(record.id)">{{record.paymentNo}}</span> <span v-if="record.type === 'payPropertyFee'">{{record.paymentNo}}</span>
<span v-else style="color:blue;cursor:pointer" @click="onPayDetail(record.orderId)">{{record.paymentNo}}</span>
</span> </span>
<span slot="type" slot-scope="text, record"> <span slot="type" slot-scope="text, record">
<span>{{record.type === 'scanQrCodePay' ? '扫码支付' : '抵扣物业费'}}</span> <span>{{record.type === 'scanQrCodePay' ? '扫码支付' : '抵扣物业费'}}</span>
......
...@@ -215,8 +215,11 @@ export default { ...@@ -215,8 +215,11 @@ export default {
}, },
validatorRules: { validatorRules: {
ruleName: [{ required: true, message: '请输入分利规则名称', trigger: 'blur' }], ruleName: [{ required: true, message: '请输入分利规则名称', trigger: 'blur' }],
payUsePoints: [{ required: true, message: '请输入积分', trigger: 'blur' }], partnerName: [{ required: true, message: '请选择合作伙伴', trigger: 'change' }],
payGetPoints: [{ required: true, message: '请输入积分', trigger: 'blur' }] shopNum: [{ required: true, message: '请输入商铺数量', trigger: 'change' }],
saasBenefits: [{ required: true, message: '请输入总平台分利', trigger: 'blur' }],
partnerBenefits: [{ required: true, message: '请输入合作伙伴分利', trigger: 'blur' }],
communityBenefits: [{ required: true, message: '请输入小区分利', trigger: 'blur' }]
}, },
labelCol: { labelCol: {
xs: { span: 24 }, xs: { span: 24 },
...@@ -386,43 +389,53 @@ export default { ...@@ -386,43 +389,53 @@ export default {
this.$refs.form.validate((valid) => { this.$refs.form.validate((valid) => {
if (valid) { if (valid) {
let isOk = true let isOk = true
for(let i = 0;i < this.villageDataSource.length;i++) { if(this.model.rangeType === 'all') {
if(this.villageDataSource[i].saasBenefits == null) { if((this.model.saasBenefits + this.model.partnerBenefits + this.model.communityBenefits) > 100) {
isOk = false isOk = false
this.$message.warning(`请输入${this.villageDataSource[i].communityName}小区的总平台分利`); this.$message.warning('分利比率不能大于100%');
break
} }
if(this.villageDataSource[i].partnerBenefits == null) { } else {
isOk = false for(let i = 0;i < this.villageDataSource.length;i++) {
this.$message.warning(`请输入${this.villageDataSource[i].communityName}小区的合作伙伴分利`); if(this.villageDataSource[i].saasBenefits == null) {
break isOk = false
} this.$message.warning(`请输入${this.villageDataSource[i].communityName}小区的总平台分利`);
if(this.villageDataSource[i].communityBenefits == null) { break
isOk = false }
this.$message.warning(`请输入${this.villageDataSource[i].communityName}小区的小区分利`); if(this.villageDataSource[i].partnerBenefits == null) {
break isOk = false
} this.$message.warning(`请输入${this.villageDataSource[i].communityName}小区的合作伙伴分利`);
if((this.villageDataSource[i].communityBenefits + this.villageDataSource[i].communityBenefits + this.villageDataSource[i].communityBenefits) > 100) { break
isOk = false }
this.$message.warning(`${this.villageDataSource[i].communityName}小区的分利比率不能大于100%`); if(this.villageDataSource[i].communityBenefits == null) {
break isOk = false
this.$message.warning(`请输入${this.villageDataSource[i].communityName}小区的小区分利`);
break
}
if((this.villageDataSource[i].saasBenefits + this.villageDataSource[i].partnerBenefits + this.villageDataSource[i].communityBenefits) > 100) {
isOk = false
this.$message.warning(`${this.villageDataSource[i].communityName}小区的分利比率不能大于100%`);
break
}
} }
} }
if(isOk) { if(isOk) {
this.confirmLoading = true this.confirmLoading = true
let shareRuleRefList = this.villageDataSource.map(item=> { let shareRuleRefList = []
return { if(this.model.rangeType === 'point') {
propertyCode: item.platformCode, shareRuleRefList = this.villageDataSource.map(item=> {
propertyName: item.platformName, return {
communityCode: item.communityCode, propertyCode: item.platformCode,
communityName: item.communityName, propertyName: item.platformName,
saasBenefits: item.saasBenefits, communityCode: item.communityCode,
partnerBenefits: item.partnerBenefits, communityName: item.communityName,
communityBenefits: item.communityBenefits, saasBenefits: item.saasBenefits,
shopNum: item.shopNum, partnerBenefits: item.partnerBenefits,
ownerNum: item.ownerNum communityBenefits: item.communityBenefits,
} shopNum: item.shopNum,
}) ownerNum: item.ownerNum
}
})
}
if(this.$route.query.type == '1') { if(this.$route.query.type == '1') {
addRuleDayDetailApi({...this.model, shareRuleRefList}).then(res=> { addRuleDayDetailApi({...this.model, shareRuleRefList}).then(res=> {
this.$message.success(res.message); this.$message.success(res.message);
......
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
> >
<span slot="reconciliationAmount" slot-scope="text, record"> <span slot="reconciliationAmount" slot-scope="text, record">
<span v-if="record.rangeType === 'all'"> <span v-if="record.rangeType === 'all'">
<span v-if="record.shopNum">{{`总平台 ${record.saasBenefits}% 合作伙伴 ${record.partnerBenefits}% 小区 ${record.communityBenefits}%`}}</span> <span v-if="record.shopNum == null">{{`总平台 ${record.saasBenefits}% 小区 ${record.communityBenefits}%`}}</span>
<span v-else>{{`总平台 ${record.saasBenefits}% 小区 ${record.communityBenefits}%`}}</span> <span v-else>{{`总平台 ${record.saasBenefits}% 合作伙伴 ${record.partnerBenefits}% 小区 ${record.communityBenefits}%`}}</span>
</span> </span>
<span v-else> <span v-else>
<p v-for="item in record.shareRuleRefList" :key="item.id"> <p v-for="item in record.shareRuleRefList" :key="item.id">
...@@ -70,14 +70,17 @@ ...@@ -70,14 +70,17 @@
<span slot="rangNumber" slot-scope="text, record"> <span slot="rangNumber" slot-scope="text, record">
<span>{{record.rangeType === 'all' ? '' : record.shareRuleRefList.length}}</span> <span>{{record.rangeType === 'all' ? '' : record.shareRuleRefList.length}}</span>
</span> </span>
<span slot="shopCount" slot-scope="text, record">
<span>{{record.shopNum == null ? '' : ('>' + record.shopNum)}}</span>
</span>
<span slot="status" slot-scope="text, record"> <span slot="status" slot-scope="text, record">
<a-switch :disabled="record.rangeType === 'all'" checked-children="启用" un-checked-children="冻结" v-model="record.statusBoolean" @change="flag=>onStatusChange(flag, record)" /> <a-switch :disabled="record.shopNum == null" checked-children="启用" un-checked-children="冻结" v-model="record.statusBoolean" @change="flag=>onStatusChange(flag, record)" />
</span> </span>
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">
<a href="javascript:;" @click="propertyDetails(2, record)">编辑</a> <a href="javascript:;" @click="propertyDetails(2, record)">编辑</a>
<a-divider type="vertical" /> <a-divider type="vertical" />
<a href="javascript:;" @click="propertyDetails(3, record)">查看</a> <a href="javascript:;" @click="propertyDetails(3, record)">查看</a>
<template v-if="!!record.shopNum"> <template v-if="record.shopNum !== null">
<a-divider type="vertical" /> <a-divider type="vertical" />
<a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)"> <a-popconfirm title="确定删除吗?" @confirm="() => handleDelete(record.id)">
<a>删除</a> <a>删除</a>
...@@ -136,6 +139,13 @@ const columns = [ ...@@ -136,6 +139,13 @@ const columns = [
align: 'center', align: 'center',
scopedSlots: { customRender: 'rangNumber' } scopedSlots: { customRender: 'rangNumber' }
}, },
{
title: '商铺数量',
dataIndex: 'shopCount',
key: 'shopCount',
align: 'center',
scopedSlots: { customRender: 'shopCount' }
},
{ {
title: '添加时间', title: '添加时间',
dataIndex: 'createTime', dataIndex: 'createTime',
...@@ -188,7 +198,7 @@ export default { ...@@ -188,7 +198,7 @@ export default {
}, },
methods: { methods: {
propertyDetails(type, row) { propertyDetails(type, row) {
if(row && !row.shopNum) { if(row && row.shopNum == null) {
if(type === 2) { if(type === 2) {
this.handleEdit(row) this.handleEdit(row)
} else { } else {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论