Commit 0ea6512b authored by 吴春's avatar 吴春
parents 1d53df33 eebde6a9
......@@ -137,7 +137,7 @@
</div>
<div v-if="item.CourseSubjectName">
所属科目:<span style="color:green;">{{
item.CourseSubjectName
item.CourseSubjectName
}}</span>
</div>
<div v-if="item.JoinType == 2" style="color:red;cursor:pointer">
......@@ -645,7 +645,11 @@
</div>
<div class="col">
<div class="row" style="justify-content: space-between">
<span>收款单据:</span>
<div class="col row justify-between">
<span>收款单据:</span>
<span v-if="AuthorityObj.Finance_RefundCreate&&item.Income>0"
style="color: #2961FE;cursor: pointer;" @click="clickRefund(1)">原路退款</span>
</div>
<q-btn flat size="xs" icon="edit" v-if="
AuthorityObj.isShowFinanceBtn &&
AuthorityObj.isShowEdit &&
......@@ -658,31 +662,33 @@
">
<q-btn flat size="xs" icon="edit" style="font-weight:400;color: #02C499" label="修改"
@click="showChooseStudent = true" />
<q-popup-proxy v-if="showChooseStudent">
<q-banner>
<div style="width:500px;max-height:400px;overflow-y:auto;">
<table class="Contract_Table">
<tr>
<th>选择</th>
<th>姓名</th>
<th style="width:180px;">合同编号</th>
<th>状态</th>
</tr>
<tr v-for="(subItem,subIndex) in item.GuestList" :key="subIndex">
<td>
<q-radio dense v-model="chooseStudent" :val="subItem.Id" />
</td>
<td>{{ subItem.GuestName }}</td>
<td>{{ subItem.ContractNo }}</td>
<td>{{ subItem.ContractStatusStr }}</td>
</tr>
</table>
</div>
<q-btn color="accent" size="sm" class="q-mr-md" @click="chanceType(item, 1)" label="制单"
style="min-width:70px;float:right;margin-top:10px" />
</q-banner>
</q-popup-proxy>
</template>
<q-popup-proxy v-if="showChooseStudent">
<q-banner>
<div style="width:500px;max-height:400px;overflow-y:auto;">
<table class="Contract_Table">
<tr>
<th>选择</th>
<th>姓名</th>
<th style="width:180px;">合同编号</th>
<th>状态</th>
</tr>
<tr v-for="(subItem,subIndex) in item.GuestList" :key="subIndex">
<td>
<q-radio dense v-model="chooseStudent" :val="subItem.Id" />
</td>
<td>{{ subItem.GuestName }}</td>
<td>{{ subItem.ContractNo }}</td>
<td>{{ subItem.ContractStatusStr }}</td>
</tr>
</table>
</div>
<q-btn v-if="!IsRefund" color="accent" size="sm" class="q-mr-md" @click="chanceType(item, 1)" label="制单"
style="min-width:70px;float:right;margin-top:10px" />
<q-btn v-if="IsRefund" color="accent" size="sm" class="q-mr-md" @click="chanceType(item, 1,'原路')" label="确定原路退款"
style="min-width:70px;float:right;margin-top:10px" />
</q-banner>
</q-popup-proxy>
</div>
<div class="row wrap">
<div class="finance row" v-for="(x, j) in item.FinanceList" :key="j" :style="{
......@@ -708,7 +714,11 @@
</div>
<div class="row" style="justify-content: space-between">
<span>付款单据:</span>
<div class="col row justify-between">
<span>付款单据:</span>
<span v-if="AuthorityObj.Finance_RefundCreate&&item.Income>0"
style="color: #2961FE;cursor: pointer;" @click="clickRefund(2)">转账退款</span>
</div>
<q-btn flat size="xs" icon="edit" v-if="
AuthorityObj.isShowFinanceBtn &&
AuthorityObj.isShowEdit &&
......@@ -721,31 +731,33 @@
">
<q-btn flat size="xs" icon="edit" style="font-weight:400;color: #02C499" label="修改"
@click="showChooseStudent = true" />
<q-popup-proxy v-if="showChooseStudent">
<q-banner>
<div style="width:500px;max-height:400px;overflow-y:auto;">
<table class="Contract_Table">
<tr>
<th>选择</th>
<th>姓名</th>
<th style="width:180px;">合同编号</th>
<th>状态</th>
</tr>
<tr v-for="(subItem,subIndex) in item.GuestList" :key="subIndex+500000">
<td>
<q-radio dense v-model="chooseStudent" :val="subItem.Id" />
</td>
<td>{{ subItem.GuestName }}</td>
<td>{{ subItem.ContractNo }}</td>
<td>{{ subItem.ContractStatusStr }}</td>
</tr>
</table>
</div>
<q-btn color="accent" size="sm" class="q-mr-md" @click="chanceType(item, 2)" label="制单"
style="min-width:70px;float:right;margin-top:10px" />
</q-banner>
</q-popup-proxy>
</template>
<q-popup-proxy v-if="showChooseStudent">
<q-banner>
<div style="width:500px;max-height:400px;overflow-y:auto;">
<table class="Contract_Table">
<tr>
<th>选择</th>
<th>姓名</th>
<th style="width:180px;">合同编号</th>
<th>状态</th>
</tr>
<tr v-for="(subItem,subIndex) in item.GuestList" :key="subIndex+500000">
<td>
<q-radio dense v-model="chooseStudent" :val="subItem.Id" />
</td>
<td>{{ subItem.GuestName }}</td>
<td>{{ subItem.ContractNo }}</td>
<td>{{ subItem.ContractStatusStr }}</td>
</tr>
</table>
</div>
<q-btn v-if="!IsRefund" color="accent" size="sm" class="q-mr-md" @click="chanceType(item, 2)" label="制单"
style="min-width:70px;float:right;margin-top:10px" />
<q-btn v-if="IsRefund" color="accent" size="sm" class="q-mr-md" @click="chanceType(item, 2,'学费退回')" label="确定转账退款"
style="min-width:70px;float:right;margin-top:10px" />
</q-banner>
</q-popup-proxy>
</div>
<div class="row wrap">
<div class="finance row" v-for="(x, j) in item.RefundFinanceList"
......@@ -1370,7 +1382,8 @@
isShowContract: false,
imgViewUrl: "",
imgViewList: [],
initialIndex: 0
initialIndex: 0,
IsRefund: 0,
};
},
created() {
......@@ -1387,6 +1400,7 @@
if (x.FunctionCode == "Edit_Order") {
this.isEditOrder = true;
}
this.AuthorityObj[x.FunctionCode] = x.FunctionCode
});
}
},
......@@ -1414,6 +1428,10 @@
},
mounted() {},
methods: {
clickRefund(type){
this.IsRefund = type
this.showChooseStudent = true
},
//点击合同编号预览
getShowContract(item) {
this.isShowPop = false;
......@@ -1797,7 +1815,7 @@
});
},
//财务单据
chanceType(obj, type) {
chanceType(obj, type,name) {
let TCIDARR = [];
if (obj && obj.OrderType == 2) {
//留学就业订单
......@@ -1872,17 +1890,20 @@
type = 1;
orderObj.OtherType = 59; //59 教育 留学订单返佣 收入 2022-06-08 hk
}
let query = {
Type: type,
companyID: obj.ClassSchoolId,
path: "",
blank: "y",
orderObj: JSON.stringify(orderObj),
tradeWay: obj.tradeWay,
GuestId: guestId,
searchTitle: name?name:''
}
this.IsRefund = 0
this.$router.push({
path: "/financial/financalDocument/ChoiceAddFinancialDocuments",
query: {
Type: type,
companyID: obj.ClassSchoolId,
path: "",
blank: "y",
orderObj: JSON.stringify(orderObj),
tradeWay: obj.tradeWay,
GuestId: guestId
}
query
});
},
chanceType_lx(obj) {
......
......@@ -524,7 +524,6 @@
this.platformAccount = this.$route.query.platformAccount ? this.$route.query.platformAccount : 0;
this.searchVal = this.$route.query.searchTitle ? this.$route.query.searchTitle : '';
// searchVal
if (this.$route.query.visaType) {
this.visaShowTab = true;
......
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