|
@@ -300,7 +300,14 @@
|
|
<span>{{ scope.row.invoiceTime }}</span>
|
|
<span>{{ scope.row.invoiceTime }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="操作" align="center" width="100" class-name="small-padding fixed-width">
|
|
|
|
|
|
+ <el-table-column label="是否其他团队代付" align="center" prop="ifRepay">
|
|
|
|
+ <template slot-scope="scope">
|
|
|
|
+ <el-tag type="danger" v-if="scope.row.ifRepay == '0'">否</el-tag>
|
|
|
|
+ <el-tag type="success" v-else-if="scope.row.ifRepay == '1'">是</el-tag>
|
|
|
|
+ <span v-else></span>
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <el-table-column label="操作" align="center" width="120px" class-name="small-padding fixed-width">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
size="mini"
|
|
size="mini"
|
|
@@ -405,6 +412,21 @@
|
|
@close="handleCorporatePayClose"
|
|
@close="handleCorporatePayClose"
|
|
:before-close="handleCorporatePayClose">
|
|
:before-close="handleCorporatePayClose">
|
|
<el-form v-loading="corporatePayLoading" :model="form" :rules="corporatePayRules" ref="ruleForm1" label-width="120px" class="demo-ruleForm pay-type-dialog">
|
|
<el-form v-loading="corporatePayLoading" :model="form" :rules="corporatePayRules" ref="ruleForm1" label-width="120px" class="demo-ruleForm pay-type-dialog">
|
|
|
|
+ <el-form-item v-if="form.payWay != 3" label="支付团队:" prop="payerId">
|
|
|
|
+ <el-select
|
|
|
|
+ v-model="form.payerId"
|
|
|
|
+ clearable
|
|
|
|
+ style="width: 100%"
|
|
|
|
+ placeholder="请输入团队名称"
|
|
|
|
+ >
|
|
|
|
+ <el-option
|
|
|
|
+ v-for="item in nameList"
|
|
|
|
+ :key="item.id"
|
|
|
|
+ :label="item.name"
|
|
|
|
+ :value="item.id">
|
|
|
|
+ </el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
<el-form-item v-if="!form.eaitType" label="支付方式" prop="payWay">
|
|
<el-form-item v-if="!form.eaitType" label="支付方式" prop="payWay">
|
|
<el-radio-group v-model="form.payWay">
|
|
<el-radio-group v-model="form.payWay">
|
|
<el-radio :label="1">对公转账</el-radio>
|
|
<el-radio :label="1">对公转账</el-radio>
|
|
@@ -513,7 +535,7 @@ import {
|
|
balancePay,
|
|
balancePay,
|
|
creditPay
|
|
creditPay
|
|
} from '@/api/order/groupBuyingMr';
|
|
} from '@/api/order/groupBuyingMr';
|
|
- import { getSelectById as getBalanceInfo } from '@/api/team/teamMr'
|
|
|
|
|
|
+ import { getBindTeamList, getSelectById as getBalanceInfo } from '@/api/team/teamMr'
|
|
import { orderInfoCancel } from '@/api/windowTicketSales/ticketingSales';
|
|
import { orderInfoCancel } from '@/api/windowTicketSales/ticketingSales';
|
|
import detailsDia from "./dialog/details.vue";
|
|
import detailsDia from "./dialog/details.vue";
|
|
import resetOrder from "./dialog/resetOrder.vue";
|
|
import resetOrder from "./dialog/resetOrder.vue";
|
|
@@ -619,6 +641,7 @@ export default {
|
|
},
|
|
},
|
|
balanceInfo: null, // 余额信息
|
|
balanceInfo: null, // 余额信息
|
|
currentOrder: null, // 当前操作的订单
|
|
currentOrder: null, // 当前操作的订单
|
|
|
|
+ nameList: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
@@ -648,6 +671,25 @@ export default {
|
|
hasPermi(value){
|
|
hasPermi(value){
|
|
return auth.hasPermi(value)
|
|
return auth.hasPermi(value)
|
|
},
|
|
},
|
|
|
|
+ //
|
|
|
|
+ // handleChange(val) {
|
|
|
|
+ // if(val === 3) {
|
|
|
|
+ // this.$set(this.form,'payerId','')
|
|
|
|
+ // }
|
|
|
|
+ // },
|
|
|
|
+ // 查询团队列表
|
|
|
|
+ getTeamList(id) {
|
|
|
|
+ this.nameList = []
|
|
|
|
+ getBindTeamList({
|
|
|
|
+ teamId: id
|
|
|
|
+ })
|
|
|
|
+ .then(response => {
|
|
|
|
+ console.log(response,'111111');
|
|
|
|
+ this.nameList = response.data.rows;
|
|
|
|
+ }).catch(()=>{
|
|
|
|
+ this.nameList = []
|
|
|
|
+ })
|
|
|
|
+ },
|
|
/** 查询列表 */
|
|
/** 查询列表 */
|
|
getList(value) {
|
|
getList(value) {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
@@ -862,6 +904,7 @@ export default {
|
|
this.currentOrder = row
|
|
this.currentOrder = row
|
|
|
|
|
|
let res = await getSelectById(row.id)
|
|
let res = await getSelectById(row.id)
|
|
|
|
+ this.getTeamList(row.id);
|
|
this.form.orderId = row.id
|
|
this.form.orderId = row.id
|
|
this.$set(this.form,'photoList',[])
|
|
this.$set(this.form,'photoList',[])
|
|
this.form.eaitType = null
|
|
this.form.eaitType = null
|
|
@@ -875,11 +918,14 @@ export default {
|
|
} catch(err) {
|
|
} catch(err) {
|
|
console.error('获取余额信息失败', err)
|
|
console.error('获取余额信息失败', err)
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ console.log(res.data,'res.data.corporate');
|
|
|
|
+ this.getTeamList(res.data.teamId);
|
|
|
|
+ this.$set(this.form,'payerId',res.data.teamId)
|
|
if(res.data.corporate && JSON.stringify(res.data.corporate) != '{}'){
|
|
if(res.data.corporate && JSON.stringify(res.data.corporate) != '{}'){
|
|
let urlList = res.data.corporate.voucherUrl.split(',')||[]
|
|
let urlList = res.data.corporate.voucherUrl.split(',')||[]
|
|
this.form.eaitType = 1
|
|
this.form.eaitType = 1
|
|
this.$set(this.form,'payWay',1)
|
|
this.$set(this.form,'payWay',1)
|
|
|
|
+ // this.$set(this.form,'payerId',res.data.corporate.payerId)
|
|
this.$set(this.form,'rePaymentTime','')
|
|
this.$set(this.form,'rePaymentTime','')
|
|
this.$set(this.form,'photoList',urlList)
|
|
this.$set(this.form,'photoList',urlList)
|
|
this.$set(this.form.corporate,'remark',res.data.corporate.remark)
|
|
this.$set(this.form.corporate,'remark',res.data.corporate.remark)
|
|
@@ -887,6 +933,7 @@ export default {
|
|
this.form.eaitType = 2
|
|
this.form.eaitType = 2
|
|
let urlList = res.data.teamCredit.voucherUrl.split(',')||[]
|
|
let urlList = res.data.teamCredit.voucherUrl.split(',')||[]
|
|
this.$set(this.form,'payWay',2)
|
|
this.$set(this.form,'payWay',2)
|
|
|
|
+ // this.$set(this.form,'payerId',res.data.corporate.payerId)
|
|
this.$set(this.form,'rePaymentTime',res.data.teamCredit.repaymentTime)
|
|
this.$set(this.form,'rePaymentTime',res.data.teamCredit.repaymentTime)
|
|
this.$set(this.form,'photoList',urlList)
|
|
this.$set(this.form,'photoList',urlList)
|
|
this.$set(this.form.corporate,'remark',res.data.teamCredit.remark)
|
|
this.$set(this.form.corporate,'remark',res.data.teamCredit.remark)
|
|
@@ -896,6 +943,7 @@ export default {
|
|
this.$set(this.form,'rePaymentTime','')
|
|
this.$set(this.form,'rePaymentTime','')
|
|
this.$set(this.form,'photoList',[])
|
|
this.$set(this.form,'photoList',[])
|
|
this.$set(this.form.corporate,'remark','')
|
|
this.$set(this.form.corporate,'remark','')
|
|
|
|
+ // this.$set(this.form,'payerId','')
|
|
}
|
|
}
|
|
this.$nextTick(()=>{
|
|
this.$nextTick(()=>{
|
|
this.$refs.ruleForm1.clearValidate()
|
|
this.$refs.ruleForm1.clearValidate()
|