Commit 09f2ebad authored by youjie's avatar youjie

团队收支冲抵

parent 5b1a695f
......@@ -301,6 +301,15 @@
<el-tooltip effect="dark" :content="$t('pub.more')" placement="top-start" style="float: left">
<el-popover width="100" trigger="hover">
<div class="groupTourOrder_more">
<div @click="
goTeamBalance(
'TeamBalancePayment',
item.tcid,
item.outBranchId
)
">
{{ $t("Operation.Op_shouzhiDetail") }}
</div>
<div @click="goUrlT('confirmationOrder', item.orderId)">
{{ $t("salesModule.QRH")
}}{{
......@@ -421,6 +430,7 @@
">
{{ $t("salesModule.LookTourse") }}
</div>
</div>
<el-button slot="reference" type="primary" style="
background: #297bef;
......@@ -759,6 +769,18 @@ export default {
},
methods: {
goTeamBalance(path,id, OutBranchId) {
this.$router.push({
name: path,
query: {
id: id,
OutBranchId: OutBranchId,
IsHaveAuth: true,
blank: "y",
tab: "团队收支明细",
},
});
},
goIisDetail (id) {
this.$emit('goIisDetail', id)
},
......@@ -820,7 +842,7 @@ export default {
this.$emit('getLogDetail', obj)
},
getRemarks(obj,type) {
this.$emit('getRemarks', obj,1)
this.$emit('getRemarks', obj,type)
},
getDetail(obj) {
this.$emit('getDetail', obj)
......
......@@ -939,8 +939,11 @@
<template v-if="IsHaveAuth">
<input type="button" :value="$t('Operation.Op_visaPrice')" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="goUrlVisa" />
<input type="button" :value="$t('objFill.tuanduizr')" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="TDZR" />
<input v-if="groupId!=2" type="button" :value="$t('pub.addBtn')" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddOutDetail(3)" />
<span style="float:right" v-if="groupId==2">{{$t('objFill.zhuyi')}}{{$t('objFill.feiqianzfcbzd')}} &nbsp;</span>
<template v-if="userInfo.SimpleEasy&&userInfo.SimpleEasy==1">
<input type="button" class="normalBtn TeamAddBtn" :value="$t('objFill.precharge')" @click="isOffset(14,2)" />
<input type="button" :value="$t('pub.addBtn')" class="hollowFixedBtn TeamAddBtn" v-show="ishowBtn" @click="AddOutDetail(3)" />
</template>
<span style="float:right" v-else>{{$t('objFill.zhuyi')}}:{{$t('objFill.feiqianzfcbzd')}} &nbsp;</span>
</template>
</div>
<div class="clearfix TB_PrintDiv">
......@@ -2111,10 +2114,15 @@
</div>
</el-dialog>
<offset :isShow="cdState" :obj="queryObj" @close="cdState=false"></offset>
</div>
</template>
<script>
import { userMixin } from "../../common/mixins/userMixin.js";
import offset from '../../public/offset.vue';
export default {
mixins: [userMixin],
components: { offset },
data() {
return {
draftList: [],//我的草稿数据
......@@ -2244,10 +2252,62 @@
dataDocList: [],
EditBtn: false,
ActionMenuCode: '',
groupId:2
groupId:2,
queryObj: {},
cdState: false,
};
},
methods: {
isOffset(_orderSource, _type){
if(this.OutBranchId>0){
this.goUrlYFKCD(_orderSource, _type,'Offset')
}else{
this.$message({
message: '出团公司为空,不能冲抵',
type: 'warning'
})
}
},
goUrlYFKCD(_orderSource, _type,Offset) {
let Handmsg = {
OtherType: 7,
ReFinanceId: 0,
Rate: 0,
TCNUM: '',
czState: true,
}
let TCIDARR = []
let id = [];
TCIDARR.push(this.TCID)
let orderObj = {
OrderID: 0,
OrderSource: _orderSource,
Obj: {},
SourceID: this.TCID,
TCIDList: TCIDARR,
// LineId : ''
}
id = id.length > 0 ? JSON.stringify(id) : null;
// 冲抵
if(Offset){
orderObj.TCIDList = [this.TCID]
let query = {
'czmsg': Handmsg,
'Type': _type,
'path': 'teamRevenueExpenditure',
'companyID': this.OutBranchId,
'blank': 'y',
'orderObj': JSON.stringify(orderObj),
'OrderSource': _orderSource,
'searchTitle': '分摊'
};
this.queryObj = query
this.cdState = true
return
}
},
Financial_post_GetPageList(){
let msg = {
pageIndex: 1,
......
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