Commit 14632dbb authored by Mac's avatar Mac

活动提成页面修改

parent 7141389f
...@@ -72,6 +72,8 @@ ...@@ -72,6 +72,8 @@
<div>{{item.StartTime}}</div> <div>{{item.StartTime}}</div>
<div>活动结束时间:</div> <div>活动结束时间:</div>
<div>{{item.EndTime}}</div> <div>{{item.EndTime}}</div>
<div v-if="item.IsCommission == 2" style="color:#f00;cursor: pointer;text-decoration: underline;" @click="gourlactive(item)">提成金额:{{item.CommissionPrice}}</div>
<!-- <div style="margin-top: 10px">{{item.CreateTime}}</div> --> <!-- <div style="margin-top: 10px">{{item.CreateTime}}</div> -->
<template v-if="AuthorityObj.isShowName"> <template v-if="AuthorityObj.isShowName">
<div style="font-weight: bold;color:#2961FE;cursor:pointer;" @click="getClassInfo(item)"> <div style="font-weight: bold;color:#2961FE;cursor:pointer;" @click="getClassInfo(item)">
...@@ -1328,6 +1330,11 @@ ...@@ -1328,6 +1330,11 @@
}else if(type===2){ }else if(type===2){
this.$emit("refuse",item) this.$emit("refuse",item)
} }
},
gourlactive(item){
this.OpenNewUrl('/financial/reportform/activityCommissionForOrderList', {
ActivityId: item.ActivityId,
});
} }
} }
} }
......
...@@ -270,10 +270,15 @@ ...@@ -270,10 +270,15 @@
<div class="pay_ListOne">当前利润</div> <div class="pay_ListOne">当前利润</div>
<div class="pay_Inner orangeStyle">¥{{dataList.ProfitNow}}</div> <div class="pay_Inner orangeStyle">¥{{dataList.ProfitNow}}</div>
</div> </div>
<div class="pay_ListMent">
<div class="pay_ListOne">活动提成</div>
<div class="pay_Inner">{{dataList.ActivityCommission}}</div>
</div>
<div class="pay_ListMent"> <div class="pay_ListMent">
<div class="pay_ListOne"></div> <div class="pay_ListOne"></div>
<div class="pay_Inner">实收-(应付/实付)+其他收入-总支出</div> <div class="pay_Inner">实收-(应付/实付)+其他收入-总支出-活动提成</div>
</div> </div>
</div> </div>
<!-- <div class="col paymentList"> <!-- <div class="col paymentList">
<div class="pay_topList"> <div class="pay_topList">
......
...@@ -133,7 +133,6 @@ ...@@ -133,7 +133,6 @@
GetClassTypePageList, GetClassTypePageList,
} from '../../api/system/index'; } from '../../api/system/index';
import{ import{
setSellCommissionInfo,//生成提成
getActivityCommissionSendEmployeeList,//获取发放用户 getActivityCommissionSendEmployeeList,//获取发放用户
setActivityCommissionSendEmployee,//设置发放用户 setActivityCommissionSendEmployee,//设置发放用户
getActivityCommissionPeriodsPageList,//获取提成列表 getActivityCommissionPeriodsPageList,//获取提成列表
...@@ -202,21 +201,28 @@ ...@@ -202,21 +201,28 @@
scCommission(){//生成提成 scCommission(){//生成提成
if(this.loading1 == false){ if(this.loading1 == false){
this.loading1= true; this.loading1= true;
setSellCommissionInfo({Month:this.value2}).then(res => { let CreateBy = this.getLocalStorage().Id;
if (res.Code == 1) {
this.$q.notify({ this.apipostDS("/api/Education/SetActivityCommissionInfo",{Month:this.value2,CreateBy:CreateBy}, (res) => {
icon: 'iconfont icon-chenggong', this.loading = false
color: 'accent', if (res.data.resultCode === 1) {
timeout: 2000, this.$q.notify({
message: '生成提成成功', icon: 'iconfont icon-chenggong',
position: 'top' color: 'accent',
}) timeout: 2000,
this.getList() message: '生成提成成功',
} position: 'top'
this.loading1= false; })
}).catch(err=>{ this.getList()
this.loading1= false; }else{
}) this.$q.notify({
type: 'negative',
position: "top",
message: res.data.message
})
}
this.loading1= false;
})
} }
}, },
...@@ -261,7 +267,7 @@ ...@@ -261,7 +267,7 @@
tab: "新增付款单据", tab: "新增付款单据",
Type: 2, Type: 2,
IsUploadPic: 1, IsUploadPic: 1,
Name:'销售提成单', Name:'活动提成单',
id:143, id:143,
orderObj: JSON.stringify(obj) orderObj: JSON.stringify(obj)
} }
...@@ -274,7 +280,7 @@ ...@@ -274,7 +280,7 @@
tishi(Money,Id){ tishi(Money,Id){
let that = this let that = this
this.$q.dialog({ this.$q.dialog({
title: "销售制单", title: "活动制单",
message: "你正在进行所有活动一起制单操作?", message: "你正在进行所有活动一起制单操作?",
persistent: true, persistent: true,
cancel: { cancel: {
......
...@@ -66,19 +66,31 @@ ...@@ -66,19 +66,31 @@
</el-table-column> </el-table-column>
<el-table-column prop="OrderId" label="订单号"> <el-table-column prop="OrderId" label="订单号">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.OrderId" style="cursor: pointer;text-decoration: underline;" @click="goUrlorderList(scope.row)"> <div v-if="scope.row.OrderId" style="cursor: pointer;text-decoration: underline;" @click="goUrlactivityList(scope.row)">
{{scope.row.OrderId}} {{scope.row.OrderId}}
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="ActivityName" label="活动名称" > </el-table-column> <el-table-column prop="ActivityName" label="活动名称" >
<template slot-scope="scope">
<div v-if="scope.row.ActivityName" style="cursor: pointer;text-decoration: underline;" @click="goUrlorderList(scope.row)">
{{scope.row.ActivityName}}
</div>
</template>
</el-table-column>
<el-table-column prop="ActivityTime" label="活动日期" > </el-table-column> <el-table-column prop="ActivityTime" label="活动日期" > </el-table-column>
<el-table-column prop="DSUserName" label="报名用户" >
<template slot-scope="scope">
<div v-if="scope.row.DSUserName">
{{scope.row.DSUserName}} <span>({{scope.row.DSUserId}})</span>
</div>
</template>
</el-table-column>
<el-table-column prop="CommissionMoney" label="提成金额" sortable :sort-method="CommissionMoney"> <el-table-column prop="CommissionMoney" label="提成金额" sortable :sort-method="CommissionMoney">
<template slot-scope="scope"> <template slot-scope="scope">
<div style="color: rgb(233, 82, 82);">{{scope.row.CommissionMoney}}</div> <div style="color: rgb(233, 82, 82);">{{scope.row.CommissionMoney}}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="DSUserName" label="报名用户" ></el-table-column>
<el-table-column prop="Periods" label="周期"> </el-table-column> <el-table-column prop="Periods" label="周期"> </el-table-column>
<el-table-column prop="Remark" label="备注" ></el-table-column> <el-table-column prop="Remark" label="备注" ></el-table-column>
...@@ -224,11 +236,17 @@ ...@@ -224,11 +236,17 @@
this.$router.push({ this.$router.push({
path: '/financial/reportform/activityCommissionForOrderList', path: '/financial/reportform/activityCommissionForOrderList',
query: { query: {
OrderId: row.OrderId, ActivityId: row.ActivityId,
blank: 'y', blank: 'y',
} }
}) })
}, },
goUrlactivityList(row) {
this.OpenNewUrl('/sale/activeOrderStatistics', {
OrderId: row.OrderId,
});
},
filterHandler(value, row, column) { filterHandler(value, row, column) {
const property = column['property']; const property = column['property'];
return row[property] === value; return row[property] === value;
......
...@@ -65,12 +65,18 @@ ...@@ -65,12 +65,18 @@
</el-table-column> </el-table-column>
<el-table-column prop="ActivityName" label="活动名称"></el-table-column> <el-table-column prop="ActivityName" label="活动名称"></el-table-column>
<el-table-column prop="ActivityTime" label="活动日期"></el-table-column> <el-table-column prop="ActivityTime" label="活动日期"></el-table-column>
<el-table-column prop="CommissionMoney" label="提成金额" sortable :sort-method="CommissionMoney"> <el-table-column prop="DSUserName" label="报名用户" >
<template slot-scope="scope">
<div v-if="scope.row.DSUserName">
{{scope.row.DSUserName}} <span>({{scope.row.DSUserId}})</span>
</div>
</template>
</el-table-column>
<el-table-column prop="CommissionMoney" label="提成金额" >
<template slot-scope="scope"> <template slot-scope="scope">
<div style="color: rgb(233, 82, 82);">{{scope.row.CommissionMoney}}</div> <div style="color: rgb(233, 82, 82);">{{scope.row.CommissionMoney}}</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="DSUserName" label="报名用户" ></el-table-column>
<el-table-column width='90' prop="Periods" label="期数"> </el-table-column> <el-table-column width='90' prop="Periods" label="期数"> </el-table-column>
<el-table-column prop="Remark" width='160' label="备注"> </el-table-column> <el-table-column prop="Remark" width='160' label="备注"> </el-table-column>
</el-table> </el-table>
...@@ -99,7 +105,7 @@ ...@@ -99,7 +105,7 @@
loading: false, loading: false,
//列表数据参数 //列表数据参数
msg: { msg: {
OrderId: 0, ActivityId: 0,
}, },
pageCount: 0, pageCount: 0,
...@@ -114,8 +120,8 @@ ...@@ -114,8 +120,8 @@
}, },
created() {}, created() {},
mounted() { mounted() {
if (this.$route.query && this.$route.query.OrderId) { if (this.$route.query && this.$route.query.ActivityId) {
this.msg.OrderId = this.$route.query.OrderId this.msg.ActivityId = this.$route.query.ActivityId
} }
this.getList() this.getList()
}, },
...@@ -170,21 +176,12 @@ ...@@ -170,21 +176,12 @@
return (arg1 * m + arg2 * m) / m; return (arg1 * m + arg2 * m) / m;
}, },
goorderUrl(row) {
this.$router.push({
path: '/financial/cycleOrderList',
query: {
OrderId: row.OrderId,
UserId:row.UserId,
blank: 'y',
}
})
},
goreturn() { goreturn() {
this.$router.go(-1); this.$router.go(-1);
}, },
goUrlorderList(path,row){//订单跳转 goUrlorderList(path,row){//订单跳转
this.OpenNewUrl(path, { this.OpenNewUrl('/sale/activeOrderStatistics', {
OrderId: row.OrderId, OrderId: row.OrderId,
// EnterID:row.UserId // EnterID:row.UserId
}); });
......
...@@ -97,8 +97,8 @@ ...@@ -97,8 +97,8 @@
<q-dialog v-model="persistent" maximized full-height seamless position="right" @hide="closeProcess"> <q-dialog v-model="persistent" maximized full-height seamless position="right" @hide="closeProcess">
<q-card style="margin-top:61px;width:400px" class="no-border-radius classinfo_Dialog"> <q-card style="margin-top:61px;width:400px" class="no-border-radius classinfo_Dialog">
<div class="baseSetForm_Dialog"> <div class="baseSetForm_Dialog">
<div class="cycle_Title">周期设置</div> <div class="cycle_Title">活动设置修改</div>
<div class="Okr_Length">活动类型<span class="FormItem-asterisk">*</span></div> <div class="Okr_Length">提成方式<span class="FormItem-asterisk">*</span></div>
<div class="q-gutter-sm" style="margin: 10px 0;"> <div class="q-gutter-sm" style="margin: 10px 0;">
<q-radio v-model="addMsg.Type" val="1" label="人头" @input="getradio"/> <q-radio v-model="addMsg.Type" val="1" label="人头" @input="getradio"/>
<q-radio v-model="addMsg.Type" val="2" label="百分比" @input="getradio"/> <q-radio v-model="addMsg.Type" val="2" label="百分比" @input="getradio"/>
......
...@@ -186,11 +186,14 @@ ...@@ -186,11 +186,14 @@
created() { created() {
if (this.$route.query.OrderId) { if (this.$route.query.OrderId) {
this.msg.OrderId = this.$route.query.OrderId; this.msg.OrderId = this.$route.query.OrderId;
this.msg.Id = this.$route.query.OrderId;
} }
this.getEmployee(0); this.getEmployee(0);
this.getList();
}, },
mounted() { mounted() {
this.getList();
}, },
methods: { methods: {
//筛选员工 //筛选员工
......
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