Commit 3455c127 authored by zhengke's avatar zhengke

no message

parent 090a2fa3
...@@ -184,13 +184,14 @@ ...@@ -184,13 +184,14 @@
class="iconfont iconjia- numIcon"></i> class="iconfont iconjia- numIcon"></i>
<div v-show="scope.row.actuallyReceived" class="agreement-IncomeMoney-pop"> <div v-show="scope.row.actuallyReceived" class="agreement-IncomeMoney-pop">
<div class="float-flag-shape"></div> <div class="float-flag-shape"></div>
<el-checkbox-group v-model="scope.row.checkList" @change="clickMultipleChoice"> <el-checkbox-group v-model="scope.row.checkList"
@change="clickMultipleChoice(scope.row,scope.$index,1)">
<el-checkbox v-for="(item,index) in MultipleChoiceList" :key="index" <el-checkbox v-for="(item,index) in MultipleChoiceList" :key="index"
:label="item.Id">{{item.Name}}</el-checkbox> :label="item.Id">{{item.Name}}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
<div class="agreement-Cancel"> <div class="agreement-Cancel">
<span @click="scope.row.actuallyReceived=false">取消</span> <span @click="scope.row.actuallyReceived=false">取消</span>
<span @click="popClick(scope.$index)">确定</span> <span @click="popClick(scope.$index,1)">确定</span>
</div> </div>
</div> </div>
...@@ -207,8 +208,22 @@ ...@@ -207,8 +208,22 @@
</el-table-column> </el-table-column>
<el-table-column label="成本" width="120"> <el-table-column label="成本" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="agreement-IncomeMoney-box">
{{scope.row.PayMoney}}<i v-if="scope.row.OrderStatus==1" {{scope.row.PayMoney}}<i v-if="scope.row.OrderStatus==1"
@click="makeAdocument(scope.row,scope.$index,3)" class="iconfont iconjia- numIcon"></i> @click="makeAdocument(scope.row,scope.$index,3)" class="iconfont iconjia- numIcon"></i>
<div v-show="scope.row.cost" class="agreement-IncomeMoney-pop">
<div class="float-flag-shape"></div>
<el-checkbox-group v-model="scope.row.checkList" @change="clickMultipleChoice">
<el-checkbox v-for="(item,index) in MultipleChoiceList" :key="index"
:label="item.Id">{{item.Name}}</el-checkbox>
</el-checkbox-group>
<div class="agreement-Cancel">
<span @click="scope.row.cost=false">取消</span>
<span @click="popClick(scope.$index,3)">确定</span>
</div>
</div>
</div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="TaxMoney" label="手续费" show-overflow-tooltip> <el-table-column prop="TaxMoney" label="手续费" show-overflow-tooltip>
...@@ -383,13 +398,16 @@ ...@@ -383,13 +398,16 @@
}); });
}, },
methods: { methods: {
popClick(index){ // 关闭弹窗
popClick(index,num){
if(num==1){
this.dataList[index].actuallyReceived =false this.dataList[index].actuallyReceived =false
}
if(num==3){
this.dataList[index].cost =false
}
}, },
// 多选发生变化
clickMultipleChoice() {
},
// 查看出票凭据 // 查看出票凭据
viewCredentials(row) { viewCredentials(row) {
let $this = this; let $this = this;
...@@ -439,15 +457,56 @@ ...@@ -439,15 +457,56 @@
}); });
this.emptyMore() this.emptyMore()
}, },
// 多选发生变化
clickMultipleChoice(row, index, num) {
if(row.checkList.slice(-1)[0] == 4){
this.delType(row,1)
this.delType(row,2)
this.delType(row,3)
this.delType(row,5)
}else if(row.checkList.slice(-1)[0] == 5){
this.delType(row,1)
this.delType(row,2)
this.delType(row,3)
this.delType(row,4)
}else{
this.delType(row,4)
this.delType(row,5)
}
this.RelevanceFrId = row.checkList.join(',')
console.log(this.RelevanceFrId,'=====')
},
// 删除套餐值
delType(row,item) {
for (let i = 0; i < row.checkList.length; i++) {
if (row.checkList[i] == item) {
row.checkList.splice(i, 1)
}
}
},
// 制作单据 // 制作单据
makeAdocument(row, index, num) { makeAdocument(row, index, num) {
if(row.OrderType.split(',').length>1&&num==1){
this.dataList.forEach(item=>{ this.dataList.forEach(item=>{
return item.actuallyReceived = false return item.actuallyReceived = false
}) })
if(this.dataList[index]){ if(this.dataList[index]){
this.dataList[index].actuallyReceived = true this.dataList[index].actuallyReceived = true
} }
return }
else if(row.OrderType.split(',').length>1&&num==3){
this.dataList.forEach(item=>{
return item.cost = false
})
if(this.dataList[index]){
this.dataList[index].cost = true
}
}else{
this.makeAdocumentFun(row, index, num)
}
},
makeAdocumentFun(row, index, num){
if (this.userInfo.EmName != row.EnterName) { if (this.userInfo.EmName != row.EnterName) {
this.ValidateOperator() this.ValidateOperator()
} else { } else {
......
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