Commit 84ce6fc3 authored by liudong1993's avatar liudong1993

1 约课订单 增加成本单据录入

parent 3de3d7cd
......@@ -399,10 +399,10 @@
</template>
</q-table>
<!--成本单-->
<div class="row " style="align-items: center;margin: 20px 0;" v-if="saveObj.OrderType==2 ">
<div class="row " style="align-items: center;margin: 20px 0;" v-if="saveObj.OrderType==2 || saveObj.ClassScrollType == 2">
<div style="width: 3px;height: 15px;background: #3FC4FF;margin-right: 10px"></div>成本单
</div>
<q-table v-if="saveObj.OrderType==2 " :pagination="financiaMsg" style="padding-bottom:80px;" :loading="floading" no-data-label="暂无相关数据" flat
<q-table v-if="saveObj.OrderType==2 || saveObj.ClassScrollType == 2" :pagination="financiaMsg" style="padding-bottom:80px;" :loading="floading" no-data-label="暂无相关数据" flat
class="sticky-tow-column-table" :hide-pagination="true" :data="dataListCB" :columns="receiptColumns"
row-key="name">
<template v-slot:body-cell-FrID="props">
......@@ -826,9 +826,9 @@
this.getfinanciaALLPageList(2, TCID, OrderID)
} else {
if(this.saveObj.OrderType==1){
if(this.saveObj.OrderType==1 && this.saveObj.ClassScrollType == 1){
this.dataListP = data;
}else if(this.saveObj.OrderType==2){//等于留学的时候 成本单据
}else if(this.saveObj.OrderType==2 || this.saveObj.ClassScrollType == 2){//等于留学的时候 成本单据
this.dataListCB = []
this.dataListP = []
data.forEach(x=>{
......
......@@ -786,7 +786,7 @@
<span style="cursor: pointer" @click="goOrderdetails(item, 4)">{{ x.FrID }}</span>
</div>
</div>
<div class="row" style="justify-content: space-between" v-if="item.OrderType == 2">
<div class="row" style="justify-content: space-between" v-if="item.OrderType == 2 || item.ClassScrollType == 2">
<span>成本单据:</span>
<q-btn flat size="xs" icon="edit" v-if="
AuthorityObj.isShowFinanceBtn &&
......@@ -820,13 +820,13 @@
</tr>
</table>
</div>
<q-btn color="accent" size="sm" class="q-mr-md" @click="chanceType(item, 2)" label="制单"
<q-btn color="accent" size="sm" class="q-mr-md" @click="chanceType(item, 3)" label="制单"
style="min-width:70px;float:right;margin-top:10px" />
</q-banner>
</q-popup-proxy>
</template>
</div>
<div class="row wrap" v-if="item.OrderType == 2">
<div class="row wrap" v-if="item.OrderType == 2 || item.ClassScrollType == 2">
<div class="finance row" v-for="(x, j) in item.RefundFinanceList" v-if="x.OtherType == 45" :key="j"
:style="{
background:
......@@ -1812,6 +1812,10 @@
//默认取第一个人的 (现基本都是单人订单 如果有多人订单 需调整)
guestId = obj.GuestList[0].Id;
}
if(obj && obj.OrderType == 1 && obj.ClassScrollType == 2 && type == 3){
orderObj.OtherType = 45; //成本单据 (约课的订单上做成本单据)
type = 2;//付款单据
}
this.$router.push({
path: "/financial/financalDocument/ChoiceAddFinancialDocuments",
query: {
......
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