Commit 44b2b942 authored by youjie's avatar youjie

no message

parent 796c400c
......@@ -20,10 +20,12 @@
color: red;
}
.tdOne{
height: 20px;
border-bottom: 1px solid #eeeeee;
padding: 0 0 5px 0;
}
.tdTwo{
height: 20px;
padding: 5px 0 0 0;
}
.singeRowTableB{
......@@ -63,93 +65,49 @@
<tr>
<th>期数</th>
<th>名称</th>
<th>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr><th style="width: 25%;">类型</th>
<th style="width: 25%;">总提成</th>
<th style="width: 25%;">所属公司提成</th>
<th style="width: 25%;">财务单据</th></tr>
</table>
</th>
<th>类型</th>
<th>总提成</th>
<th>所属公司提成</th>
<th>财务单据</th>
<th>操作信息</th>
<th>操作</th>
</tr>
<tr v-for="item in dataList" style="line-height: 15px;">
<td>{{item.Periods}}</td>
<td>{{item.Name}}</td>
<td :rowspan="1">{{item.Periods}}</td>
<td :rowspan="1">{{item.Name}}</td>
<td>
<table class="singeRowTableB" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="width: 25%;">
<table class="singeRowTableB" border="0" cellspacing="0" cellpadding="0">
<tr style="border-bottom: 1px solid #eeeeee;">
<td >
销售
</td>
</tr>
<tr>
<td >
OP
</td>
</tr>
</table>
</td>
<td style="width: 25%;">
<table class="singeRowTableB" border="0" cellspacing="0" cellpadding="0">
<tr style="border-bottom: 1px solid #eeeeee;">
<td >
{{item.SellSumPrice?item.SellSumPrice:'-'}}
</td>
</tr>
<tr>
<td >
{{item.OPSumPrice?item.OPSumPrice:'-'}}
</td>
</tr>
</table>
</td>
<td style="width: 25%;">
<table class="singeRowTableB" border="0" cellspacing="0" cellpadding="0">
<tr style="border-bottom: 1px solid #eeeeee;">
<td >
{{item.BranchCommission?item.BranchCommission:'-'}}
</td>
</tr>
<tr>
<td >
{{item.BranchOPCommission?item.BranchOPCommission:'-'}}
</td>
</tr>
</table>
</td>
<td style="width: 25%;">
<table class="singeRowTableB" border="0" cellspacing="0" cellpadding="0">
<tr style="border-bottom: 1px solid #eeeeee;">
<td >
<span v-for="(x,y) in item.SellFinanceIdList" >
<span style="cursor: pointer;text-decoration: underline;" @click='gofinancialdetail(x)'>
{{x}}
</span>
{{item.SellFinanceIdList.length == y+1 ?'':'、'}}
</span>
</td>
</tr>
<tr>
<td>
<span v-for="(x,y) in item.OPFinanceIdList" >
<span style="cursor: pointer;text-decoration: underline;" @click='gofinancialdetail(x)'>
{{x}}
</span>
{{item.OPFinanceIdList.length == y+1 ?'':'、'}}
</span>
</td>
</tr>
</table>
</td>
</tr>
</table>
<div class="tdOne">销售</div>
<div class="tdTwo">OP</div>
</td>
<td>
<div class="tdOne">{{item.SellSumPrice}}</div>
<div class="tdTwo">{{item.OPSumPrice}}</div>
</td>
<td>
<div class="tdOne">{{item.BranchCommission?item.BranchCommission:'-'}}</div>
<div class="tdTwo">{{item.BranchOPCommission?item.BranchOPCommission:'-'}}</div>
</td>
<td>
<div class="tdOne">
<span v-for="(x,y) in item.SellFinanceIdList" >
<span style="cursor: pointer;text-decoration: underline;" @click='gofinancialdetail(x)'>
{{x}}
</span>
{{item.SellFinanceIdList.length == y+1 ?'':'、'}}
</span>
</div>
<div class="tdTwo">
<span v-for="(x,y) in item.OPFinanceIdList" >
<span style="cursor: pointer;text-decoration: underline;" @click='gofinancialdetail(x)'>
{{x}}
</span>
{{item.OPFinanceIdList.length == y+1 ?'':'、'}}
</span>
</div>
</td>
<td :rowspan="1">
<div>{{item.CreateByStr}}</div>
<div>{{item.CreateStr}}</div>
</td>
......
......@@ -110,7 +110,6 @@
<th>人数</th>
<th>提成</th>
<th>提成比例</th>
<th>团利润</th>
<th>期数</th>
<th width='400'>备注</th>
......@@ -133,8 +132,7 @@
<td>{{item.TCProfit}}</td>
<td>{{item.OrderCount}}</td>
<td>{{item.CommissionMoney}}</td>
<td>{{item.CommissionRate}}</td>
<td>{{item.TCProfit}}</td>
<td>{{item.CommissionRate}}%</td>
<td>{{item.Periods}}</td>
<td>{{item.Description}}</td>
......
......@@ -57,7 +57,7 @@
<td >
<span v-if="childItem.SourceType==1">正常</span>
<span v-if="childItem.SourceType==2">飞猪</span>
<span v-if="childItem.SourceType==3">小红书</span>
</td>
<td>{{childItem.Name}}</td>
<td>
......@@ -129,6 +129,7 @@
<el-form-item label="来源">
<el-radio v-model="x.SourceType" label="1" @change='getSType(y)'>正常</el-radio>
<el-radio v-model="x.SourceType" label="2" :disabled="x.STdisabled" style="margin-right: 20px;" @change='getSType(y)'>飞猪</el-radio>
<el-radio v-model="x.SourceType" label="3" :disabled="x.STdisabledXHS" style="margin-right: 20px;" @change='getSType(y)'>小红书</el-radio>
</el-form-item>
<el-button style="margin-left: 15px;padding: 6px;" type="danger" size="mini" class="el-icon-delete" circle
v-if="addMsg.TempTypeList.length>1" @click="addMsg.TempTypeList.splice(y,1),selectdis()">
......@@ -240,7 +241,8 @@
Money: '0',
ProfitRate: '0',
SourceType:'1',
STdisabled:false
STdisabled:false,
STdisabledXHS:false
}]
}
export default {
......@@ -448,8 +450,8 @@
Money: '0',
ProfitRate: '0',
SourceType:'1',
STdisabled:false
STdisabled:false,
STdisabledXHS:false,
}]
}
this.selectdis()
......@@ -457,11 +459,14 @@
},
addTempTypeList() { //新增类型
let isdisabled = false
let isdisabledXHS = false
for(let i = 0;i<this.addMsg.TempTypeList.length;i++){
let x = this.addMsg.TempTypeList[i]
if(x.SourceType==2 && this.addMsg.Type!=3){
isdisabled=true
break
if(this.addMsg.Type!=3){
if(x.SourceType==2||x.SourceType==3){
isdisabled=true
break
}
}
}
let obj = {
......@@ -471,12 +476,14 @@
Money: "0",
ProfitRate: "0",
SourceType:'1',
STdisabled:isdisabled
STdisabled:isdisabled,
STdisabledXHS:isdisabled,
}
this.addMsg.TempTypeList.push(obj)
},
RulesOk(formName) {
console.log(this.addMsg,'====')
// return
this.$refs[formName].validate((valid) => {
if (valid) {
let LineshortIds = JSON.parse(JSON.stringify(this.addMsg.LineshortIds))
......@@ -500,11 +507,15 @@
},
isshowfeizhu(){
let isfeizhu = false
let isxiaohongshu = false
for(let i = 0;i<this.addMsg.TempTypeList.length;i++){
let x = this.addMsg.TempTypeList[i]
if(x.SourceType==2){
isfeizhu=true
}
if(x.SourceType==3){
isxiaohongshu=true
}
}
this.addMsg.TempTypeList.forEach(x=>{
if(isfeizhu==true){
......@@ -518,9 +529,23 @@
}else{
x.STdisabled = true
}
}else{
}else if(!isfeizhu){
x.STdisabled = false
}
if(isxiaohongshu==true){
if(x.SourceType==3){
x.STdisabledXHS = false;
if(this.addMsg.Type!=3){
x.Id=0;
x.Name='小红书'
}
}else{
x.STdisabledXHS = true
}
}else if(!isxiaohongshu){
x.STdisabledXHS = false
}
})
},
getSType(index){//选了飞猪之后 后面的不能选飞猪了
......
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