Commit 73347ad1 authored by 黄奎's avatar 黄奎
parents 40896afa fe0cbfe0
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,8 +2,6 @@
<div class="page_FProcessManagement">
<ul class="_nav clearfix">
<li style="color: red;">注:门票不计入人头奖励</li>
<!-- <button class="hollowFixedBtn" style="right: 185px;" @click="clickTheRules(1)">提成限制</button>
<button class="normalBtn" style="position: absolute; right: 90px;top: 9px;" @click="clickTheRules()">提成规则</button> -->
<input type="button" class="hollowFixedBtn" value="新增" @click="AddMsg"/>
<input type="button" class="normalBtn" style="position: absolute; right: 90px;top: 9px;" value="查询" @click="getList"/>
</ul>
......@@ -157,7 +155,7 @@
<div v-if="dataList.length==0"
style="width: 100%;border:1px solid #E6E6E6;display: flex;align-items: center;justify-content: center;height: 60px;margin-top: 30px;"
>暂无数据</div>
<el-dialog :title="titleName" :visible.sync="ruleVisible" width="750px">
<el-dialog :title="titleName" :visible.sync="ruleVisible" width="750px" @close="resetForm('form')">
<el-form ref="form" :model="form" :rules="rules" label-width="100px">
<div class="ImpressionTicketing-msgbox bottom0">
<el-form-item label="规则名称" prop="Name">
......@@ -391,27 +389,6 @@
<el-button size="small" type="danger" @click="RulesOk('form')" :loading="ruleLoading">确 定</el-button>
</span>
</el-dialog>
<!-- 设置限制 -->
<el-dialog :title="titleName" :visible.sync="TheRulesVisible" width="300px">
<el-form ref="form" :model="TheRulesForm" :rules="rules" :label-width="titleName.indexOf('限制')!=-1?'80px':'120px'">
<div v-if="titleName.indexOf('限制')!=-1" class="ImpressionTicketing-msgbox bottom0 line-heigh">
<el-form-item :label="TheRulesForm.SNO =='1'?'限制金额':'限制条数'" prop="Content">
<el-input-number :min="0" v-model="TheRulesForm.Content" clearable></el-input-number>
</el-form-item>
</div>
<div v-else class="ImpressionTicketing-msgbox bottom0" v-for="(item,index) in TheRulesData">
<el-form-item :label="item.Name+':'">
<span style="margin-left: 10px;">{{item.Content}}
<i style="margin-left: 5px;">{{item.SNO==2?' RMB':' 条'}}</i>
</span>
</el-form-item>
</div>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="TheRulesVisible = false,ruleLoading = false">取 消</el-button>
<el-button size="small" type="danger" @click="titleName.indexOf('限制')!=-1?OkTheRules('form'):TheRulesVisible = false" :loading="ruleLoading">确 定</el-button>
</span>
</el-dialog>
</div>
</template>
......@@ -420,7 +397,6 @@
data() {
return {
value:"",
EmployeeList:[],
rules: {
Name: [{
required: true,
......@@ -468,9 +444,6 @@
trigger: "blur"
}],
},
EmpList:[//参与人
{EmployeeId:''}
],
AwardRuleList:
{
StartValue:0,
......@@ -543,85 +516,19 @@
},
ruleLoading: false,
ruleVisible:false,
titleName:'标题',
titleName:'提成规则',
loading: false,
titleList:[
{name:'引流规则',id:'2'},
{name:'销售规则',id:'1'}
],
dataList:[],
msg:{
EmpType: '2'
},
hintStart:'',
hintEnd:'',
TheRulesVisible: false,
TheRulesForm:{
Name:'',
SNO:2,
Content:''
},
TheRulesData:[
]
}
},
created() {},
mounted() {
this.form.EmpType = this.msg.EmpType
this.getList()
this.getEmployeeList()
},
methods: {
// 点击确定
OkTheRules(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
let data = {
SNO:this.TheRulesForm.SNO==1?2:1,
Content:this.TheRulesForm.Content,
}
this.ruleLoading = true
this.crmapipost(
'/api/commission/SetCommissionLimit', data,
res => {
if (res.data.resultCode == 1) {
this.resetForm('form')
// this.getList();
this.TheRulesVisible = false;
this.ruleLoading = false
this.Success(res.data.message)
} else {
this.Error(res.data.message)
}
},
err => {}
)
}
});
},
GetCommissionLimit() {
this.crmapipost(
'/api/commission/GetCommissionLimit', {},
res => {
if (res.data.resultCode == 1) {
this.TheRulesData = res.data.data
} else {
this.Error(res.data.message)
}
},
err => {}
)
},
clickTheRules(type){
this.TheRulesVisible = true
if(type==1){
this.titleName = this.TheRulesForm.SNO==1?'销售提成限制':'引流提成限制'
}else{
this.titleName = '提成规则'
this.ruleLoading = false
this.GetCommissionLimit()
}
// 初始化表单
resetForm(formName) {
this.$refs[formName].resetFields();
},
// 添加规则
addRule(row,index,type){
......@@ -653,19 +560,7 @@
},
AddMsg(){//新增
this.ruleVisible = true
if(this.msg.EmpType=='1'){
this.titleName = '销售规则'
this.hintStart = '开始值'
this.hintEnd = '结束值'
this.rules.StartValue[0].message = '请输入开始值'
this.rules.EndValue[0].message = '请输入结束值'
}if(this.msg.EmpType=='2'){
this.titleName = '引流规则'
this.hintStart = '引流条数'
this.hintEnd = '成交单数'
this.rules.StartValue[0].message = '请输入引流条数'
this.rules.EndValue[0].message = '请输入成交单数'
}
this.titleName = '提成规则'
},
SetRules(item){//编辑
this.ruleVisible = true;
......@@ -725,16 +620,6 @@
}
});
},
// 已选人员获取
personnel(){
this.form.EmpList= []
for(let i=0;i<this.form.EmployeeId.length;i++){
let data = {
EmployeeId:this.form.EmployeeId[i],
}
this.form.EmpList.push(data)
}
},
// 获取列表数据
getList() {
this.loading = true;
......@@ -748,26 +633,6 @@
}
});
},
// 获取人员列表
getEmployeeList() {
let userInfo = this.getLocalStorage()
let msg = {
GroupId: userInfo.RB_Group_id,
BranchId: '-1',
DepartmentId: '-1',
PostId: '-1',
IsLeave: '0'
}
this.apipost(
'admin_get_EmployeeGetList', msg,
res => {
if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data
}
},
err => {}
)
},
// 重置表单
resetForm(formName) {
this.ruleVisible = false;
......
......@@ -276,18 +276,18 @@
}
}
this.msg.PeriodId = this.$route.query&&this.$route.query.PeriodId?Number(this.$route.query.PeriodId):-1
this.msg.OrderId = this.$route.query&&this.$route.query.OrderId?this.$route.query.OrderId:''
this.msg.OutBranchId = this.$route.query&&this.$route.query.RB_Branch_Id>-1?Number(this.$route.query.RB_Branch_Id):Number(userInfo.RB_Branch_id)
this.msg.UserId = this.$route.query&&this.$route.query.UserId?Number(this.$route.query.UserId):Number(userInfo.EmployeeId)
this.msg.PeriodId = this.$route.query.PeriodId?Number(this.$route.query.PeriodId):-1
this.msg.OrderId = this.$route.query.OrderId?this.$route.query.OrderId:''
this.msg.RB_Branch_Id = this.$route.query.RB_Branch_Id?Number(this.$route.query.RB_Branch_Id):Number(userInfo.RB_Branch_id)
this.msg.UserId = this.$route.query.UserId?Number(this.$route.query.UserId):Number(userInfo.EmployeeId)
if (ActionMenuCode.indexOf('S_CheckBranchOrder') != -1
||ActionMenuCode.indexOf('S_CheckAllOrder')!=-1
||ActionMenuCode.indexOf('F_Query_AllIncomPay')!=-1) {//是否有看所有人的权限
this.disabled = false;
this.msg.OutBranchId = -1
this.msg.RB_Branch_Id = -1
this.msg.RB_Branch_Id = this.$route.query.RB_Branch_Id?Number(this.$route.query.RB_Branch_Id):-1
// this.msg.RB_Department_Id = -1
this.msg.UserId = -1
this.msg.UserId = this.$route.query.UserId?Number(this.$route.query.UserId):-1
}else{
this.disabled = true;
}
......
......@@ -18,12 +18,10 @@
<template>
<div style="float: left;">
<span class="cF1416C"
:class="{'cursor-pointer':(objNew.createTime&&objNew.createTime>=new Date('2023-04-01').Format('yyyy-MM-dd'))
||(objNew.createDate&&objNew.createDate>=new Date('2023-04-01').Format('yyyy-MM-dd'))
||(objNew.CreateTime&&new Date(objNew.CreateTime).Format('yyyy-MM-dd')>=new Date('2023-04-01').Format('yyyy-MM-dd'))}"
@click="(objNew.createTime&&objNew.createTime>=new Date('2023-04-01').Format('yyyy-MM-dd'))
||(objNew.createDate&&objNew.createDate>=new Date('2023-04-01').Format('yyyy-MM-dd'))
||(objNew.CreateTime&&new Date(objNew.CreateTime).Format('yyyy-MM-dd')>=new Date('2023-04-01').Format('yyyy-MM-dd'))?DetailsOfRoyalty():''">
:class="{'cursor-pointer':!type||(type=='跟团游订单'&&objNew.startDate&&objNew.startDate>=new Date('2023-04-01').Format('yyyy-MM-dd'))}"
@click="!type||(type=='跟团游订单'&&objNew.startDate&&objNew.startDate>=new Date('2023-04-01').Format('yyyy-MM-dd'))
||objNew.createDate
||objNew.CreateTime?DetailsOfRoyalty():''">
<span class="fz15 fbold">
<!-- {{objNew.commissionCurrency?objNew.commissionCurrency:objNew.CurrencyName!='人民币'?objNew.CurrencyName:'¥'}} -->
{{ objNew.commissionMoney?moneyFormat(objNew.commissionMoney):objNew.SellCommission }}
......@@ -93,14 +91,15 @@
<td>{{item.Description?item.Description:'-'}}</td>
</tr>
</table>
<div v-if="dataList.length==0"
style="width: 100%;border:1px solid #fff;display: flex;align-items: center;justify-content: center;height: 60px;margin-top: 30px;"
>暂无数据</div>
<!-- 分页 -->
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.pageIndex"
layout="total,prev, pager, next, jumper" :page-size='msg.pageSize' :total='total'>
</el-pagination>
</div>
<div v-if="dataList&&dataList.length==0"
style="width: 100%;border:1px solid #fff;display: flex;align-items: center;justify-content: center;height: 60px;margin-top: 30px;"
>暂无数据</div>
</div>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="outerVisible = false">取消</button> &nbsp;
......@@ -112,7 +111,7 @@
<script>
export default {
props:['objNew'],
props:['objNew','type'],
data() {
return {
dataObj:{},
......@@ -137,7 +136,7 @@
watch:{
objNew: {
handler(val, oldVal) {
this.msg.OrderId = val.id?val.id:val.OrderId
this.msg.OrderId = val.id?val.id:val.OrderId?val.OrderId:val.orderId
this.msg.PeriodId = this.$route.query.PeriodId?this.$route.query.PeriodId:-1
},
deep: true,
......
......@@ -84,6 +84,7 @@
<th width="50" style="text-align:center">{{$t('hotel.hotel_Inventory')}}</th>
<th width="80" style="text-align:center">{{$t('ground.shengyukucun')}}</th>
<th width="140" style="text-align:center">{{$t('hotel.hotel_Supplier')}}</th>
<th width="140" style="text-align:center">是否压房</th>
<th width="60" style="text-align:center">{{$t('hotel.table_operat')}}</th>
<th width="60" style="text-align:center">{{$t('fnc.rizhi')}}</th>
</tr>
......@@ -133,6 +134,9 @@
<td style="text-align:center">
{{childItem.SupplierName}}
</td>
<td style="text-align:center">
{{childItem.IsMortgage ? '是':'否'}}
</td>
<td style="text-align:center">
<a style="text-decoration:underline;cursor:pointer;color:blue;"
@click="goEdit('2', subItem.day,childItem.BatchNumber)">{{$t('pub.updateMsg')}}</a>
......@@ -271,12 +275,15 @@
<el-form-item label="早餐">
<el-checkbox v-model="msg2.PriceIsBreakfast" :true-label="1" :false-label="0"></el-checkbox>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="晚餐">
<el-checkbox v-model="msg2.PriceIsDinner" :true-label="1" :false-label="0"></el-checkbox>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="是否压房">
<el-checkbox v-model="msg2.IsMortgage" :true-label="1" :false-label="0"></el-checkbox>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
......@@ -558,12 +565,15 @@
<el-form-item label="早餐">
<el-checkbox v-model="msg.PriceIsBreakfast" :true-label="1" :false-label="0"></el-checkbox>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="晚餐">
<el-checkbox v-model="msg.PriceIsDinner" :true-label="1" :false-label="0"></el-checkbox>
</el-form-item>
</el-col>
<el-col :span="6">
<el-form-item label="是否压房">
<el-checkbox v-model="msg.IsMortgage" :true-label="1" :false-label="0"></el-checkbox>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="6">
......@@ -799,6 +809,7 @@
PriceInTangTax: 0, //入汤税
PriceIsBreakfast: 1, //是否含早餐(1-含,0-不含)
PriceIsDinner: 0, //是否含晚餐(1-含,0-不含)
IsMortgage: 0,
TipContent: "", //注意事项
CustomerPayType: 2, //结款方式
PayLimitFirstDay: 1, //入住前几天上传名单
......@@ -840,6 +851,7 @@
PriceInTangTax: 0, //入汤税
PriceIsBreakfast: 1, //是否含早餐(1-含,0-不含)
PriceIsDinner: 0, //是否含晚餐(1-含,0-不含)
IsMortgage: 0,
TipContent: "", //注意事项
CustomerPayType: 2, //结款方式
PayLimitFirstDay: 1, //入住前几天上传名单
......@@ -1189,6 +1201,7 @@
this.msg.PriceInTangTax = data.PriceInTangTax;
this.msg.PriceIsBreakfast = data.PriceIsBreakfast;
this.msg.PriceIsDinner = data.PriceIsDinner;
this.msg.IsMortgage = data.IsMortgage;
this.msg.TipContent = data.TipContent;
this.msg.CustomerPayType = data.CustomerPayType?data.CustomerPayType:2;
this.msg.PayLimitFirstDay = data.PayLimitFirstDay?data.PayLimitFirstDay:1;
......@@ -1279,6 +1292,7 @@
this.msg.PriceInTangTax = 0;
this.msg.PriceIsBreakfast = 1;
this.msg.PriceIsDinner = 0;
this.msg.IsMortgage = 0;
this.msg.TipContent = "";
this.msg.CustomerPayType = 2;
this.msg.PayLimitFirstDay = 1;
......@@ -1307,6 +1321,7 @@
this.msg2.PriceInTangTax = 0;
this.msg2.PriceIsBreakfast = 1;
this.msg2.PriceIsDinner = 0;
this.msg2.IsMortgage = 0;
this.msg2.TipContent = "";
},
//批量删除
......@@ -1329,6 +1344,7 @@
that.msg2.PriceInTangTax = 0;
that.msg2.PriceIsBreakfast = 1;
that.msg2.PriceIsDinner = 0;
that.msg2.IsMortgage = 0;
that.msg2.TipContent = "";
} else {
that.Error(res.data.message)
......
......@@ -1716,7 +1716,7 @@
<p v-if="item.tradeWay == 1">{{ item.platformOrder }}</p>
<p v-if="item.commissionMoney" style="color: red">
<span style="float: left;">{{ $t("salesModule.Commission") }}</span>
<commissionDialog :objNew="item"></commissionDialog>{{item.commissionCurrency}}
<commissionDialog :type="pagesTitle" :objNew="item"></commissionDialog>{{item.commissionCurrency}}
<!-- {{ item.commissionMoney }} {{item.commissionCurrency}} -->
</p>
<p v-else-if="item.latestCommissionMoney" style="color: red">
......@@ -2432,6 +2432,7 @@
export default {
data() {
return {
pagesTitle:'跟团游订单',
SpecialAppShow: false,
SpecialAppMsg: {
ApplyReason: "",
......
......@@ -723,10 +723,10 @@
<tr>
<td class="CP_ComTitle2">人数统计 </td>
<td class="CP_ComTitle2">成本价(人民币)</td>
<td class="CP_ComTitle2">成本价(日元)</td>
<td class="CP_ComTitle2">成本总价(日元)</td>
<td class="CP_ComTitle2"></td>
<td class="CP_ComTitle2"></td>
<td class="CP_ComTitle2">销售价格(人民币)</td>
<td class="CP_ComTitle2">销售价格(日元)</td>
<td class="CP_ComTitle2"></td>
<td class="CP_ComTitle2">销售付款方式</td>
<td class="CP_ComTitle2">手配费</td>
<td class="CP_ComTitle2">手配费付款方式</td>
......@@ -735,13 +735,12 @@
<tr v-for="item in CostNumberList" :key="item.subCode">
<td>{{item.PeopleNumber}}+1</td>
<td>{{item.TotalMoney}}</td>
<td>{{item.JPYTotalMoney}}</td>
<td>{{item.JPYTotalMoney*item.PeopleNumber}}</td>
<td></td>
<td></td>
<td>
{{item.SalePrice}}
</td>
<td>
{{item.JPYSalePrice}}
</td>
<td>
<template v-if="postConfig.SaleOfferPayType==1">
......
......@@ -379,10 +379,10 @@
<tr>
<td class="CP_ComTitle2">人数统计 </td>
<td class="CP_ComTitle2">成本价(人民币)</td>
<td class="CP_ComTitle2">成本价(日元)</td>
<td class="CP_ComTitle2">成本总价(日元)</td>
<td class="CP_ComTitle2"></td>
<td class="CP_ComTitle2"></td>
<td class="CP_ComTitle2">销售价格(人民币)</td>
<td class="CP_ComTitle2">销售价格(日元)</td>
<td class="CP_ComTitle2"></td>
<td class="CP_ComTitle2">销售付款方式</td>
<td class="CP_ComTitle2">手配费</td>
<td class="CP_ComTitle2">手配费付款方式</td>
......@@ -391,13 +391,12 @@
<tr v-for="item in CostNumberList" :key="item.subCode">
<td>{{item.PeopleNumber}}+1</td>
<td>{{item.TotalMoney}}</td>
<td>{{item.JPYTotalMoney}}</td>
<td>{{item.JPYTotalMoney*item.PeopleNumber}}</td>
<td></td>
<td></td>
<td>
{{item.SalePrice}}
</td>
<td>
{{item.JPYSalePrice}}
</td>
<td>
<template v-if="postConfig.SaleOfferPayType==1">
......
......@@ -294,6 +294,9 @@
this.changeTabs()
},
handleClose(index) {
if(this.orderList.length <= 1) {
return
}
if (this.tabsActive === index) {
this.tabsActive = 0
this.orderList.splice(index, 1)
......@@ -475,23 +478,6 @@
}
},
created() {},
watch: {
OfferArray: {
handler: function (val, oldVal) {
if (!this.OfferArray.length) {
this.createOrderList();
} else {
this.OfferArray.forEach(item => {
item.OtherPrice = item.otherPrice
item.dayCostPrice = item.dayCostPriceList
})
this.orderList = this.OfferArray
this.changeTabs()
}
},
deep: true
}
},
};
</script>
......@@ -111,6 +111,9 @@
<li v-for="item in dataList" :key="item.subCode" :data-id="item.ID" style="padding:0 10px;">
<div class="_left" style="padding:0;flex:0.3;display:flex;">
<div class="QT_CodeNum">
<div class="QT_CodeNum" v-if="item.TCNUMS">
团号:{{item.TCNUMS}}
</div>
{{$t('hotel.hotel_SerialNumber')}}{{item.ID}}
</div>
</div>
......@@ -239,11 +242,12 @@
@click="goMakeQuo('QuotationNewPrice',item.ID, item.TeamType)">
<el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start"
popper-class="max-w250">
<i class="iconfont icon-bianji-smal"></i>
<i class="iconfont icon-bianji-smal"></i>111111
</el-tooltip>
</span>
<!-- v-if="item.TravelState!=3" -->
<span class="bianji newAopbdd" @click="goMakeQuo('QuotationNewPrice',item.ID, item.TeamType)"
v-if="item.TravelState!=3">
>
<el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start"
popper-class="max-w250">
<i class="iconfont icon-bianji-smal"></i>
......@@ -261,11 +265,11 @@
<i @click="goUrl('QuotationAduit',item.ID,1)" class="iconfont icon-view"></i>"></i>
</el-tooltip>
</span>
<span style="background:#85ce61; " class="newAopbdd" @click="showDownLoad(item)">
<!-- <span style="background:#85ce61; " class="newAopbdd" @click="showDownLoad(item)">
<el-tooltip class="item" effect="dark" content="下载" placement="top-start" popper-class="max-w250">
<i class="iconfont icon-bb-xiazai"></i>
</el-tooltip>
</span>
</span> -->
</div>
</div>
</li>
......@@ -690,6 +694,7 @@
GetAuth() {
var actionCode = this.$AuthCode.EditQuotation;
this.CheckUserAuth(actionCode, res => {
console.log('GetAuth', res)
if (res.data.resultCode == 1 && res.data.data == 1) {
this.EditBtn = true;
}
......
......@@ -4005,7 +4005,7 @@ export default {
{ //财务 财务单据 我的财务单据详情
path: '/FinancialDocumentsDetail',
name: 'FinancialDocumentsDetail',
component: resolve => require(['@/components/FinancialModule/FinancialDocumentsDetailSPF'], resolve),
component: resolve => require(['@/components/FinancialModule/FinancialDocumentsDetail'], resolve),
meta: {
title: '单据详情'
},
......@@ -4110,7 +4110,7 @@ export default {
}, { //财务 财务单据 新增财务单据 页面
path: '/addFinancialDocuments',
name: 'addFinancialDocuments',
component: resolve => require(['@/components/FinancialModule/addFinancialDocumentsSPF'], resolve),
component: resolve => require(['@/components/FinancialModule/addFinancialDocuments'], resolve),
meta: {
title: '新增付款单据'
},
......
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