Commit c4b86246 authored by 黄奎's avatar 黄奎

页面修改

parent 0e6844fc
<!--修改-提成和额外金额-->
<template>
<q-dialog v-model="persistent" content-class="bg-grey-1" persistent transition-show="scale" transition-hide="scale">
<q-card style="width: 400px;max-width:500px;padding:0 20px;">
<q-card-section>
<div class="text-h6">一键制单</div>
</q-card-section>
<q-card-section class="q-pt-none scroll" style="max-height: 70vh">
<div class="col">
<q-radio v-model="FinanceMsg.IsPublic" :val="0" label="私账" />
<q-radio v-model="FinanceMsg.IsPublic" :val="1" label="公账" />
</div>
<div class="col" style="margin-top: 20px">
<q-select standout="bg-primary text-white" option-value="ID" option-label="Name"
v-model="FinanceMsg.CurrencyId" :options="CurrencyList" emit-value map-options label="币种"
class="col-6 q-pr-lg q-pb-lg" />
</div>
</q-card-section>
<q-card-section>
<div class="text-h6">账号信息</div>
<q-card-section class="q-pt-none scroll">
<div class="col">
<q-select standout="bg-primary text-white" option-value="Id" option-label="Name"
v-model="addMsg.AccountClassify" :options="AccountClassifyList" emit-value map-options label="账号分类"
class="col-6 q-pr-lg q-pb-lg" @input="changeTitle" />
</div>
<div class="col" v-if='addMsg.AccountClassify==2'>
<q-input filled stack-label maxlength="100" :dense="false" v-model="addMsg.BankName"
class="col-6 q-pr-lg q-pb-lg" label="所属机构" placeholder="例如:中国银行" />
</div>
<div class="col" v-if='addMsg.AccountClassify!=3 && addMsg.AccountClassify!=4'>
<q-input filled stack-label maxlength="100" :dense="false" v-model="addMsg.OpenBankName"
class="col-6 q-pr-lg q-pb-lg" :label="nameA" placeholder="例如:锦江支行" />
</div>
<div class="col" v-if='addMsg.AccountClassify!=3 && addMsg.AccountClassify!=4'>
<q-input filled stack-label maxlength="100" :dense="false" v-model="addMsg.AccountHolder"
class="col-6 q-pr-lg q-pb-lg" :label="nameB" />
</div>
<div class="col">
<q-input filled stack-label maxlength="100" :dense="false" v-model="addMsg.CardNum"
class="col-6 q-pr-lg q-pb-lg" :label="nameC" />
</div>
<div class="col">
<q-input filled stack-label maxlength="100" :dense="false" v-model="addMsg.AccountAlias"
class="col-6 q-pr-lg q-pb-lg" :label="nameD" />
</div>
</q-card-section>
</q-card-section>
<q-card-actions align="right" class="bg-white">
<q-btn label="取消" flat color="grey-10" style="font-weight:400 !important" @click="closeStuBillForm" />
<q-btn label="保存" color="accent" class="q-px-md" style="font-weight:400 !important" @click="addBack" />
</q-card-actions>
</q-card>
</q-dialog>
</template>
<script>
import {
saveStudentBackFinance, //生成财务单据
} from '../../api/sale/bill'
export default {
props: {
setingObj: {
type: Object,
default: null,
},
},
data() {
return {
persistent: true,
FinanceMsg: {
IsPublic: 0, //公账、私账
CurrencyId: 0, //币种
BackClassId: 0, //退课编号
ClientType: 10,
ClientId: 0
},
CurrencyList: [], //币种数组
//添加常用付款对象
addMsg: {
Id: '0',
ObjID: '-1',
BankId: '-1',
OpenBankName: '',
BankName: '',
AccountHolder: '',
CardNum: '',
AccountAlias: '',
AccountType: '1',
AccountClassify: 2,
Type: '10',
},
AccountClassifyList: [{
Id: 2,
Name: "银行"
},
{
Id: 3,
Name: "虚拟账户"
},
{
Id: 4,
Name: "微信支付宝"
}
],
nameA:"账号名称",
nameB:"开户人",
nameC:"卡号",
nameD:"账号别名",
}
},
created() {
this.FinanceMsg.BackClassId = this.setingObj.BackId;
this.addMsg.ObjID = this.setingObj.GuestId;
this.financeinfo_post_GetList();
},
mounted() {
},
methods: {
changeTitle() {
if (this.addMsg.AccountClassify == 1) {
this.nameA = this.$t("ground.pingtaimingcheng")
this.nameB = this.$t("ground.yonghumingcheng")
this.nameC = this.$t("fnc.ptAcc")
this.nameD = this.$t("fnc.accBming")
this.addMsg.AccountType = '1'
} else if (this.addMsg.AccountClassify == 2) {
this.nameA = this.$t("ground.zhanghumingcheng2")
this.nameB = this.$t("fnc.khuren")
this.nameC = this.$t("ground.kahao")
this.nameD = this.$t("fnc.accBming")
} else if (this.addMsg.AccountClassify == 3) {
this.nameA = this.$t("ground.pingtaimingcheng")
this.nameB = this.$t("ground.yonghumingcheng")
this.nameC = this.$t("fnc.ptAcc")
this.nameD = this.$t("fnc.accBming")
} else if (this.addMsg.AccountClassify == 4) {
this.nameA = this.$t("ground.pingtaimingcheng")
this.nameB = this.$t("ground.yonghumingcheng")
this.nameC = "账号"
this.nameD = "名称"
}
},
addBack() {
this.apipost("admin_post_SetEmpBankAccount", this.addMsg, res => {
if (res.data.resultCode == 1) {
this.FinanceMsg.ClientId = res.data.data;
this.createStuBill();
}
})
},
financeinfo_post_GetList() { // 获取币种
this.apipost('financeinfo_post_GetList', {
Name: '',
TCID: 0
}, res => {
if (res.data.resultCode == 1) {
this.CurrencyList = res.data.data;
this.FinanceMsg.CurrencyId = this.CurrencyList[0].ID
}
}, err => {})
},
//关闭弹窗
closeStuBillForm() {
this.persistent = false;
this.$emit('close');
},
//保存修改
createStuBill() {
saveStudentBackFinance(this.FinanceMsg).then(res => {
if (res.Code == 1) {
this.persistent = false;
this.$q.notify({
icon: 'iconfont icon-chenggong',
color: 'accent',
timeout: 2000,
message: '生成单据成功!',
position: 'top'
})
this.$emit('success');
}
});
}
}
}
</script>
<style>
@import "./css/cssReset.css";
.empBankAccountTableLayer{overflow: auto; position:fixed;height:200px;
z-index:50;bottom:0;left:50px;border-top:3px solid #38425d;background-color:#FFFFFF;padding: 10px 10px 0;width: 100%;}
.empBankAccountTableLayer .el-form-item__label{font-size: 12px!important;}
.empBankAccountTableLayer>p{border-left: 3px solid #E95252; text-indent: 15px; height: 16px; padding-right: 50px; font-family: 'PingFangSc-Fine'; font-size: 16px; margin-bottom:20px; line-height: 14px; color: #000;}
.empBankAccountTable{width: 100%; min-width: 1500px; font-size:14px; color: #333; background: #ccc;}
.empBankAccountTable tr{border-bottom: 2px solid #333;}
.empBankAccountTable tr th{background: #BDBDBD;height:30px; font-size: 12px; text-align: left; text-indent: 20px;}
.empBankAccountTable tr{background: #fff;text-align: left;}
.empBankAccountTable tr:nth-child(2n+1){background: #E5E5E5;}
.empBankAccountTable tr td{height: 60px; padding-left:20px; border-right: 1px solid #DCDCDC; border-bottom: 1px solid #DCDCDC;}
.empBankAccountIcon button{width: 30px; height: 30px;border-radius:4px;}
.empBankAccountIcon .el-button--primary {padding: 5px;margin: 0;font-size: 14px!important;}
.empBankAccountIcon .el-button+.el-button{margin-left: 0!important;}
.empBankAccountTableLayer {
overflow: auto;
position: fixed;
height: 200px;
z-index: 50;
bottom: 0;
left: 50px;
border-top: 3px solid #38425d;
background-color: #FFFFFF;
padding: 10px 10px 0;
width: 100%;
}
.empBankAccountTableLayer .el-form-item__label {
font-size: 12px !important;
}
.empBankAccountTableLayer>p {
border-left: 3px solid #E95252;
text-indent: 15px;
height: 16px;
padding-right: 50px;
font-family: 'PingFangSc-Fine';
font-size: 16px;
margin-bottom: 20px;
line-height: 14px;
color: #000;
}
.empBankAccountTable {
width: 100%;
min-width: 1500px;
font-size: 14px;
color: #333;
background: #ccc;
}
.empBankAccountTable tr {
border-bottom: 2px solid #333;
}
.empBankAccountTable tr th {
background: #BDBDBD;
height: 30px;
font-size: 12px;
text-align: left;
text-indent: 20px;
}
.empBankAccountTable tr {
background: #fff;
text-align: left;
}
.empBankAccountTable tr:nth-child(2n+1) {
background: #E5E5E5;
}
.empBankAccountTable tr td {
height: 60px;
padding-left: 20px;
border-right: 1px solid #DCDCDC;
border-bottom: 1px solid #DCDCDC;
}
.empBankAccountIcon button {
width: 30px;
height: 30px;
border-radius: 4px;
}
.empBankAccountIcon .el-button--primary {
padding: 5px;
margin: 0;
font-size: 14px !important;
}
.empBankAccountIcon .el-button+.el-button {
margin-left: 0 !important;
}
</style>
<template>
<div class="flexOne">
......@@ -21,15 +89,16 @@
<p>
{{dialogTitle}}
<span class="fr">
<button class="hollowFixedBtn" @click="outerVisible = false,resetForm('addMsg')">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button>
</span>
<button class="hollowFixedBtn"
@click="outerVisible = false,resetForm('addMsg')">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button>
</span>
</p>
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="90px" style="padding-right: 80px">
<el-row >
<el-row>
<el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.zhfenlei')" prop="AccountClassify">
<el-select v-model='addMsg.AccountClassify' :placeholder="$t('pub.pleaseSel')" @change='changeTitle'>
<el-form-item :label="$t('fnc.zhfenlei')" prop="AccountClassify">
<el-select v-model='addMsg.AccountClassify' :placeholder="$t('pub.pleaseSel')" @change='changeTitle'>
<el-option :label='$t("fnc.yinhang")' value='2' key='2'></el-option>
<el-option :label='$t("ground.xunizhanghu")' value='3' key='3'></el-option>
<el-option label='微信支付宝' value='4' key='4'></el-option>
......@@ -38,27 +107,27 @@
</el-col>
<el-col :span="4" v-if='addMsg.AccountClassify==2' :gutter="35">
<el-form-item :label="$t('fnc.ssjigou')" prop="BankName">
<el-input type="text" v-model="addMsg.BankName" :placeholder="$t('ground.liruicbc')"></el-input>
<el-input type="text" v-model="addMsg.BankName" :placeholder="$t('ground.liruicbc')"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" v-if='addMsg.AccountClassify!=3 && addMsg.AccountClassify!=4' :gutter="35">
<el-form-item :label="nameA" prop="OpenBankName">
<el-input type="text" v-model="addMsg.OpenBankName" :placeholder="$t('ground.liruzhihang')"></el-input>
<el-form-item :label="nameA" prop="OpenBankName">
<el-input type="text" v-model="addMsg.OpenBankName" :placeholder="$t('ground.liruzhihang')"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" v-if='addMsg.AccountClassify!=3 && addMsg.AccountClassify!=4' :gutter="35">
<el-form-item :label="nameB" prop="AccountHolder">
<el-input type="text" v-model="addMsg.AccountHolder"></el-input>
<el-form-item :label="nameB" prop="AccountHolder">
<el-input type="text" v-model="addMsg.AccountHolder"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35">
<el-form-item :label="nameC" prop="CardNum">
<el-input type="text" v-model="addMsg.CardNum"></el-input>
<el-form-item :label="nameC" prop="CardNum">
<el-input type="text" v-model="addMsg.CardNum"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35">
<el-form-item :label="nameD" prop="AccountAlias" >
<el-input type="text" v-model="addMsg.AccountAlias"></el-input>
<el-form-item :label="nameD" prop="AccountAlias">
<el-input type="text" v-model="addMsg.AccountAlias"></el-input>
</el-form-item>
</el-col>
</el-row>
......@@ -66,9 +135,9 @@
</div>
<div class="query-box">
<ul>
<li>
<input type="button" @click="outerVisible = true,dialogTitle=$t('ground.xinzengzhanghu'),resetForm('addMsg')" class="normalBtn" :value="$t('pub.addBtn')" />
<input type="button" @click="outerVisible = true,dialogTitle=$t('ground.xinzengzhanghu'),resetForm('addMsg')"
class="normalBtn" :value="$t('pub.addBtn')" />
</li>
</ul>
</div>
......@@ -94,7 +163,7 @@
</td>
<td>{{item.BankName}}</td>
<td>{{item.CardNum}}
<br/>{{item.AccountHolder}}</td>
<br />{{item.AccountHolder}}</td>
<td>
<span v-if='item.Status!=0' style="color: #E95252;">{{$t('pub.fressSel')}}</span>
<span v-if='item.Status==0' style="color: #09D49D;">{{$t('pub.normalSel')}}</span>
......@@ -103,25 +172,25 @@
<td class="empBankAccountIcon">
<el-button-group>
<el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start">
<el-button @click="outerVisible = true,dialogTitle=$t('ground.xiugaizhanghu'),updateData(item.ID)" type="primary" style='background:#409EFF; border-color:#409EFF' icon="iconfont icon-bianji-smal" ></el-button>
<el-button @click="outerVisible = true,dialogTitle=$t('ground.xiugaizhanghu'),updateData(item.ID)"
type="primary" style='background:#409EFF; border-color:#409EFF' icon="iconfont icon-bianji-smal">
</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="item.Status=='1'? $t('fnc.qiyong'):$t('pub.fressSel')" placement="top-start">
<el-button v-if='item.Status==1' @click="deleteData(item.ID)" type="primary" style='background:#09D49D; border-color:#09D49D' icon="iconfont icon-qidong" ></el-button>
<el-button v-if='item.Status==0' @click="deleteData(item.ID)" type="primary" style='background:#E95252; border-color:#E95252' icon="iconfont icon-dongjie" ></el-button>
<el-tooltip class="item" effect="dark" :content="item.Status=='1'? $t('fnc.qiyong'):$t('pub.fressSel')"
placement="top-start">
<el-button v-if='item.Status==1' @click="deleteData(item.ID)" type="primary"
style='background:#09D49D; border-color:#09D49D' icon="iconfont icon-qidong"></el-button>
<el-button v-if='item.Status==0' @click="deleteData(item.ID)" type="primary"
style='background:#E95252; border-color:#E95252' icon="iconfont icon-dongjie"></el-button>
</el-tooltip>
<!-- <el-tooltip class="item" effect="dark" :content="$t('ground.mingxi')" placement="top-start">-->
<!-- <el-button type="primary" style='background:#E6A014; border-color:#E6A014' icon="iconfont icon-rizhi1" ></el-button>-->
<!-- </el-tooltip>-->
</el-button-group>
</td>
</tr>
</table>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total>
</el-pagination>
</div>
</template>
<script>
......@@ -132,172 +201,169 @@
nameB: this.$t("fnc.khuren"),
nameC: this.$t("ground.kahao"),
nameD: this.$t("fnc.accBming"),
switchValue:'1',
switchValue: '1',
dialogTitle: '',
insideDialogTxt: this.$t("tips.saveYes"),
outerVisible: false,
innerVisible: false,
isRight:true,
isRight: true,
versions: [],
total: 0,
currentPage: 1,
//请求数据
msg:{
BranchId:'-1',
EmpId:'-1',
BankId:'',
AccountHolder:'',
AccountAlias:'',
pageIndex:1,
pageSize:15,
Type:'',
msg: {
BranchId: '-1',
EmpId: '-1',
BankId: '',
AccountHolder: '',
AccountAlias: '',
pageIndex: 1,
pageSize: 15,
Type: '',
},
getCompanyMsg:{
RB_Group_Id:'0',
Status:'0',
getCompanyMsg: {
RB_Group_Id: '0',
Status: '0',
},
getUserMsg:{
RB_Branch_id:'-1',
getUserMsg: {
RB_Branch_id: '-1',
},
//返回数据
list:[],
bankList:[],
layerItem:[],
addMsg:{
Id:'0',
ObjID:'-1',
BankId:'-1',
OpenBankName:'',
list: [],
bankList: [],
layerItem: [],
addMsg: {
Id: '0',
ObjID: '-1',
BankId: '-1',
OpenBankName: '',
BankName: '',
AccountHolder:'',
CardNum:'',
AccountAlias:'',
AccountType:'1',
AccountClassify:'2',
Type:'9',
AccountHolder: '',
CardNum: '',
AccountAlias: '',
AccountType: '1',
AccountClassify: '2',
Type: '9',
},
rules:{
BankName:[
{ required: true, message: this.$t("ground.qingtianxieyh"), trigger: 'blur' }
],
rules: {
BankName: [{
required: true,
message: this.$t("ground.qingtianxieyh"),
trigger: 'blur'
}],
}
}
},
mounted() {
let userInfo=this.getLocalStorage();
this.getUserMsg.RB_Group_id=this.getCompanyMsg.RB_Group_Id=userInfo.Group_Id; //集团ID
this.msg.EmpId=this.$route.query.id?this.$route.query.id:userInfo.Id;
this.msg.Type=this.$route.query.type?this.$route.query.type:10;
this.addMsg.ObjID=this.$route.query.id?this.$route.query.id:userInfo.Id;
this.addMsg.Type=this.$route.query.type?this.$route.query.type:10;
let userInfo = this.getLocalStorage();
this.getUserMsg.RB_Group_id = this.getCompanyMsg.RB_Group_Id = userInfo.Group_Id; //集团ID
this.msg.EmpId = this.$route.query.id ? this.$route.query.id : userInfo.Id;
this.msg.Type = this.$route.query.type ? this.$route.query.type : 10;
this.addMsg.ObjID = this.$route.query.id ? this.$route.query.id : userInfo.Id;
this.addMsg.Type = this.$route.query.type ? this.$route.query.type : 10;
this.getBank();
this.getList();
this.changeTitle()
},
methods: {
changeTitle(){
if(this.addMsg.AccountClassify==1){
this.nameA= this.$t("ground.pingtaimingcheng")
this.nameB= this.$t("ground.yonghumingcheng")
this.nameC= this.$t("fnc.ptAcc")
this.nameD= this.$t("fnc.accBming")
this.addMsg.AccountType='1'
}else if(this.addMsg.AccountClassify==2){
this.nameA= this.$t("ground.zhanghumingcheng2")
this.nameB= this.$t("fnc.khuren")
this.nameC= this.$t("ground.kahao")
this.nameD= this.$t("fnc.accBming")
}else if(this.addMsg.AccountClassify==3){
this.nameA= this.$t("ground.pingtaimingcheng")
this.nameB= this.$t("ground.yonghumingcheng")
this.nameC= this.$t("fnc.ptAcc")
this.nameD= this.$t("fnc.accBming")
}else if(this.addMsg.AccountClassify==4){
this.nameA= this.$t("ground.pingtaimingcheng")
this.nameB= this.$t("ground.yonghumingcheng")
this.nameC= "账号"
this.nameD= "名称"
changeTitle() {
if (this.addMsg.AccountClassify == 1) {
this.nameA = this.$t("ground.pingtaimingcheng")
this.nameB = this.$t("ground.yonghumingcheng")
this.nameC = this.$t("fnc.ptAcc")
this.nameD = this.$t("fnc.accBming")
this.addMsg.AccountType = '1'
} else if (this.addMsg.AccountClassify == 2) {
this.nameA = this.$t("ground.zhanghumingcheng2")
this.nameB = this.$t("fnc.khuren")
this.nameC = this.$t("ground.kahao")
this.nameD = this.$t("fnc.accBming")
} else if (this.addMsg.AccountClassify == 3) {
this.nameA = this.$t("ground.pingtaimingcheng")
this.nameB = this.$t("ground.yonghumingcheng")
this.nameC = this.$t("fnc.ptAcc")
this.nameD = this.$t("fnc.accBming")
} else if (this.addMsg.AccountClassify == 4) {
this.nameA = this.$t("ground.pingtaimingcheng")
this.nameB = this.$t("ground.yonghumingcheng")
this.nameC = "账号"
this.nameD = "名称"
}
},
getList() { //获取列表数据
getList() { //获取列表数据
this.apipost("admin_get_GetEmpBankAccountPageList", this.msg, res => {
if(res.data.resultCode==1){
if (res.data.resultCode == 1) {
this.list = res.data.data.pageData;
this.total = res.data.data.count;
}else{}
} else {}
}, err => {})
},
// getCompany(){
// this.apipost('admin_get_BranchGetList',this.getCompanyMsg,res=>{
// if(res.data.resultCode==1){
// this.companyList=res.data.data;
// }else{}
// },err=>{})
// },
getBank(){
this.apipost('FinancialInstitutions_post_GetList',{Type:0},res=>{
if(res.data.resultCode==1){
this.bankList=res.data.data;
}else{}
},err=>{})
getBank() {
this.apipost('FinancialInstitutions_post_GetList', {
Type: 0
}, res => {
if (res.data.resultCode == 1) {
this.bankList = res.data.data;
} else {}
}, err => {})
},
addData(){ //添加角色
let userInfo=this.getLocalStorage();
this.addMsg.ObjID=this.$route.query.id?this.$route.query.id:userInfo.Id;
if(this.addMsg.AccountClassify!='3' && this.addMsg.AccountClassify!='4'){
if(this.addMsg.OpenBankName==''){
this.$message.error(this.$t('visaT.Pleasefillin')+this.nameA)
addData() { //添加角色
let userInfo = this.getLocalStorage();
this.addMsg.ObjID = this.$route.query.id ? this.$route.query.id : userInfo.Id;
if (this.addMsg.AccountClassify != '3' && this.addMsg.AccountClassify != '4') {
if (this.addMsg.OpenBankName == '') {
this.$message.error(this.$t('visaT.Pleasefillin') + this.nameA)
return
}
if(this.addMsg.AccountHolder==''){
this.$message.error(this.$t('visaT.Pleasefillin')+this.nameB)
if (this.addMsg.AccountHolder == '') {
this.$message.error(this.$t('visaT.Pleasefillin') + this.nameB)
return
}
}
if(this.addMsg.CardNum==''){
this.$message.error(this.$t('visaT.Pleasefillin')+this.nameC)
if (this.addMsg.CardNum == '') {
this.$message.error(this.$t('visaT.Pleasefillin') + this.nameC)
return
}
if(this.addMsg.AccountAlias==''){
this.$message.error(this.$t('visaT.Pleasefillin')+this.nameD)
if (this.addMsg.AccountAlias == '') {
this.$message.error(this.$t('visaT.Pleasefillin') + this.nameD)
return
}
this.apipost("admin_post_SetEmpBankAccount",this.addMsg,res=>{
if(res.data.resultCode==1)
{
this.apipost("admin_post_SetEmpBankAccount", this.addMsg, res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message)
this.outerVisible=false;
this.outerVisible = false;
this.getList()
this.resetForm('addMsg');
}else{
} else {
this.$message.error(res.data.message)
}
},err=>{})
}, err => {})
},
updateData(id){ //修改角色
this.apipost('admin_get_GetEmpBackAccount',{BAId:id},res=>{
if(res.data.resultCode==1){
updateData(id) { //修改角色
this.apipost('admin_get_GetEmpBackAccount', {
BAId: id
}, res => {
if (res.data.resultCode == 1) {
this.addMsg = res.data.data;
this.addMsg.AccountType=res.data.data.AccountType.toString();
this.addMsg.AccountClassify=res.data.data.AccountClassify.toString();
this.addMsg.BankId=res.data.data.BankId
this.addMsg.AccountType = res.data.data.AccountType.toString();
this.addMsg.AccountClassify = res.data.data.AccountClassify.toString();
this.addMsg.BankId = res.data.data.BankId
this.changeTitle()
}else{}
},err=>{})
// this.addMsg = this.dataList[index]
// this.addMsg.Status = this.dataList[index].Status.toString();
} else {}
}, err => {})
// this.addMsg = this.dataList[index]
// this.addMsg.Status = this.dataList[index].Status.toString();
},
deleteData(id){
deleteData(id) {
this.$confirm(this.$t('ground.querenqiyong'), '提示', {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
this.apipost('admin_post_DelEmpBankAccount', {
BAId:id
BAId: id
}, res => {
if(res.data.resultCode == 1) {
if (res.data.resultCode == 1) {
this.$message.success(this.$t('tips.saveYes'))
this.getList();
}
......@@ -315,7 +381,7 @@
this.msg.pageIndex = 1;
this.currentPage = 1
},
submitForm(addMsg) {//提交创建、修改表单
submitForm(addMsg) { //提交创建、修改表单
this.$refs[addMsg].validate((valid) => {
if (valid) {
this.addData();
......@@ -325,24 +391,25 @@
}
});
},
closeChangeMachie(done){//弹出框关闭初始化弹框内表单
closeChangeMachie(done) { //弹出框关闭初始化弹框内表单
done();
this.resetForm('addMsg');
},
resetForm(formName) {//弹出框取消 初始化谈框内表单
resetForm(formName) { //弹出框取消 初始化谈框内表单
this.$refs[formName].resetFields();
this.addMsg.AccountType='1';
this.addMsg.AccountClassify='2';
this.addMsg.Id='0';
this.addMsg.ObjID='-1';
this.addMsg.BankId='-1';
this.addMsg.OpenBankName='';
this.addMsg.BankName='';
this.addMsg.AccountHolder='';
this.addMsg.CardNum='';
this.addMsg.AccountAlias='';
this.addMsg.AccountType = '1';
this.addMsg.AccountClassify = '2';
this.addMsg.Id = '0';
this.addMsg.ObjID = '-1';
this.addMsg.BankId = '-1';
this.addMsg.OpenBankName = '';
this.addMsg.BankName = '';
this.addMsg.AccountHolder = '';
this.addMsg.CardNum = '';
this.addMsg.AccountAlias = '';
}
}
}
</script>
......@@ -81,21 +81,25 @@
<backbill-form v-if="isShowBillForm" :seting-obj="billObj" :showType="showType" @close="closeBillForm"
@success="refreshPage">
</backbill-form>
<createbackbill-form v-if="isShowCreateBillForm" :seting-obj="billObj" @close="closeBillForm"
@success="refreshPage">
</createbackbill-form>
</div>
</div>
</template>
<script>
import {
queryStudentBackClassPage,
saveStudentBackFinance, //生成财务单据
} from '../../api/sale/bill'
import backbillForm from '../../components/sale/backbill-form';
import createbackbillForm from '../../components/sale/createbackbill-form';
export default {
meta: {
title: "退课单据"
},
components: {
backbillForm
backbillForm,
createbackbillForm
},
data() {
return {
......@@ -203,6 +207,7 @@
tabCheck: "1",
pageCount: 0,
isShowBillForm: false, //是否显示单据表单
isShowCreateBillForm: false, //是否显示制单表单
billObj: {}, //单据信息
showType: 1, //1-查看,2-审核
}
......@@ -217,21 +222,13 @@
methods: {
//生成财务单据
createBillForm(item) {
console.log("item", item);
var billMsg = {
BackClassId: item.BackId,
IsPublic: 1,
CurrencyId: 1,
ClientType: 1,
ClientId: item.GuestId
};
saveStudentBackFinance(billMsg).then(res => {
console.log("createBillForm", res);
});
this.isShowCreateBillForm = true;
this.billObj = item;
},
//关闭表单
closeBillForm() {
this.isShowBillForm = false;
this.isShowCreateBillForm = false;
this.billObj = {};
},
//显示表单
......
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