Commit 7626ef2a authored by 黄奎's avatar 黄奎

页面修改

parent e7710c73
<style> <style>
.empBankAccountTableLayer{overflow: auto; position:fixed;height:200px; .empBankAccountTableLayer {
z-index:50;bottom:0;left:50px;border-top:3px solid #38425d;background-color:#FFFFFF;padding: 10px 10px 0;width: 100%;} overflow: auto;
.empBankAccountTableLayer .el-form-item__label{font-size: 12px!important;} position: fixed;
.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;} height: 200px;
.empBankAccountTable{width: 100%; min-width: 1500px; font-size:14px; color: #333; background: #ccc;} z-index: 50;
.empBankAccountTable tr{border-bottom: 2px solid #333;} bottom: 0;
.empBankAccountTable tr th{background: #BDBDBD;height:30px; font-size: 12px; text-align: left; text-indent: 20px;} left: 50px;
.empBankAccountTable tr{background: #fff;text-align: left;} border-top: 3px solid #38425d;
.empBankAccountTable tr:nth-child(2n+1){background: #E5E5E5;} background-color: #FFFFFF;
.empBankAccountTable tr td{height: 60px; padding-left:20px; border-right: 1px solid #DCDCDC; border-bottom: 1px solid #DCDCDC;} padding: 10px 10px 0;
width: 100%;
}
.popTable{width: 80%; font-size:14px; color: #333; background: #ccc;} .empBankAccountTableLayer .el-form-item__label {
.popTable tr{border-bottom: 2px solid #333;} font-size: 12px !important;
.popTable tr th{background: #BDBDBD;height:30px; font-size: 12px; text-align: left; text-indent: 20px;} }
.popTable tr{background: #fff;text-align: left;}
.popTable tr:nth-child(2n+1){background: #E5E5E5;} .empBankAccountTableLayer>p {
.popTable tr td{height: 60px; padding-left:20px; border-right: 1px solid #DCDCDC; border-bottom: 1px solid #DCDCDC;} 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;
}
.popTable {
width: 80%;
font-size: 14px;
color: #333;
background: #ccc;
}
.popTable tr {
border-bottom: 2px solid #333;
}
.popTable tr th {
background: #BDBDBD;
height: 30px;
font-size: 12px;
text-align: left;
text-indent: 20px;
}
.popTable tr {
background: #fff;
text-align: left;
}
.popTable tr:nth-child(2n+1) {
background: #E5E5E5;
}
.popTable 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;
}
.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> </style>
<template> <template>
<div class="flexOne"> <div class="flexOne">
<div class="empBankAccountTableLayer" v-show="outerVisible" <div class="empBankAccountTableLayer" v-show="outerVisible"
:style="{'height':accountList.length>0?'355px':'188px'}"> :style="{'height':accountList.length>0?'355px':'188px'}">
<p> <p>
{{dialogTitle}} {{dialogTitle}}
<span style="font-size:12px;color:red;">*如果是个人则无需填写税号,如是供应商则必填税号;</span> <span style="font-size:12px;color:red;">*如果是个人则无需填写税号,如是供应商则必填税号;</span>
<span class="fr"> <span class="fr">
<button class="hollowFixedBtn" @click="outerVisible = false,resetForm('addMsg')">{{$t('pub.cancelBtn')}}</button> <button class="hollowFixedBtn"
<button class="normalBtn" type="primary" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button> @click="outerVisible = false,resetForm('addMsg')">{{$t('pub.cancelBtn')}}</button>
</span> <button class="normalBtn" type="primary" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button>
</p> </span>
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="90px" style="padding-right: 80px"> </p>
<el-row > <el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="90px" style="padding-right: 80px">
<el-col :span="4" :gutter="35"> <el-row>
<el-form-item :label="$t('fnc.zhfenlei')" prop="AccountClassify"> <el-col :span="4" :gutter="35">
<el-select v-model='addMsg.AccountClassify' :placeholder="$t('pub.pleaseSel')" @change='changeTitle'> <el-form-item :label="$t('fnc.zhfenlei')" prop="AccountClassify">
<el-option :label='$t("fnc.yinhang")' value='2' key='2'></el-option> <el-select v-model='addMsg.AccountClassify' :placeholder="$t('pub.pleaseSel')" @change='changeTitle'>
<el-option :label='$t("ground.xunizhanghu")' value='3' key='3'></el-option> <el-option :label='$t("fnc.yinhang")' value='2' key='2'></el-option>
<el-option label='微信支付宝' value='4' key='4'></el-option> <el-option :label='$t("ground.xunizhanghu")' value='3' key='3'></el-option>
</el-select> <el-option label='微信支付宝' value='4' key='4'></el-option>
</el-form-item> </el-select>
</el-col> </el-form-item>
<el-col :span="4" v-if='addMsg.AccountClassify==2' :gutter="35"> </el-col>
<el-form-item :label="$t('fnc.ssjigou')" prop="BankName"> <el-col :span="4" v-if='addMsg.AccountClassify==2' :gutter="35">
<el-input type="text" v-model="addMsg.BankName" :placeholder="$t('ground.liruicbc')"></el-input> <el-form-item :label="$t('fnc.ssjigou')" prop="BankName">
</el-form-item> <el-input type="text" v-model="addMsg.BankName" :placeholder="$t('ground.liruicbc')"></el-input>
</el-col> </el-form-item>
<el-col :span="4" v-if='addMsg.AccountClassify!=3 && addMsg.AccountClassify!=4' :gutter="35"> </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-form-item> <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-col>
<el-form-item :label="nameB" prop="AccountHolder"> <el-col :span="4" v-if='addMsg.AccountClassify!=3 && addMsg.AccountClassify!=4' :gutter="35">
<el-input type="text" v-model="addMsg.AccountHolder"></el-input> <el-form-item :label="nameB" prop="AccountHolder">
</el-form-item> <el-input type="text" v-model="addMsg.AccountHolder"></el-input>
</el-col> </el-form-item>
<el-col :span="4" :gutter="35"> </el-col>
<el-form-item :label="nameC" prop="CardNum" > <el-col :span="4" :gutter="35">
<el-input type="text" v-model="addMsg.CardNum" onkeyup="value=value.replace(/[^\w\u4E00-\u9FA5]/g, '')" placeholder="卡号请输入中文、数字、字母"></el-input> <el-form-item :label="nameC" prop="CardNum">
</el-form-item> <el-input type="text" v-model="addMsg.CardNum" @keyup.native="replaceSpace" placeholder="卡号请输入中文、数字、字母">
</el-col> </el-input>
<el-col :span="4" :gutter="35"> </el-form-item>
<el-form-item :label="nameD" prop="AccountAlias" > </el-col>
<el-input type="text" v-model="addMsg.AccountAlias"></el-input> <el-col :span="4" :gutter="35">
</el-form-item> <el-form-item :label="nameD" prop="AccountAlias">
</el-col> <el-input type="text" v-model="addMsg.AccountAlias"></el-input>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35" v-if="ClientTypeList&&ClientTypeList.length>0"> <el-col :span="4" :gutter="35" v-if="ClientTypeList&&ClientTypeList.length>0">
<el-form-item label="客户类型" prop="Type"> <el-form-item label="客户类型" prop="Type">
<el-select <el-select filterable v-model="addMsg.Type" :placeholder="$t('fnc.khleixing')" @change="getType">
filterable <el-option v-for="item in ClientTypeList" :label="item.Name" :value="item.ID" :key="item.ID">
v-model="addMsg.Type"
:placeholder="$t('fnc.khleixing')"
@change="getType"
>
<el-option
v-for="item in ClientTypeList"
:label="item.Name"
:value="item.ID"
:key="item.ID"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35" v-if="addMsg.Type!=0&&addMsg.Type!=10&&ClientTypeList.length>0"> <el-col :span="4" :gutter="35" v-if="addMsg.Type!=0&&addMsg.Type!=10&&ClientTypeList.length>0">
<el-form-item label="客户名称" prop="ObjID"> <el-form-item label="客户名称" prop="ObjID">
<el-select <el-select filterable remote reserve-keyword v-model="addMsg.ObjID" :remote-method="remoteMethod"
filterable @change="getObjName" :loading="supplierLoading" placeholder="请输入关键词">
remote <el-option v-for="(item,index) in supplierList" :label="item.Name" :value="item.ID" :key="index">
reserve-keyword
v-model="addMsg.ObjID"
:remote-method="remoteMethod"
@change="getObjName"
:loading="supplierLoading"
placeholder="请输入关键词"
>
<el-option
v-for="(item,index) in supplierList"
:label="item.Name"
:value="item.ID"
:key="index"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
<el-form-item label="税号:" prop="DutyNo" > <el-form-item label="税号:" prop="DutyNo">
<el-input type="text" v-model="addMsg.DutyNo"></el-input> <el-input type="text" v-model="addMsg.DutyNo"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="4" :gutter="35"> <el-col :span="4" :gutter="35">
<el-form-item label="供应商:" prop="SupplierName" > <el-form-item label="供应商:" prop="SupplierName">
<el-input type="text" v-model="addMsg.SupplierName"></el-input> <el-input type="text" v-model="addMsg.SupplierName"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<div v-if="accountList.length" style="padding: 20px; display: flex; justify-content: center; align-items: center;flex-direction: column"> <div v-if="accountList.length"
<div style="padding: 10px">已存在相同的账户信息</div> style="padding: 20px; display: flex; justify-content: center; align-items: center;flex-direction: column">
<table class="popTable" border="0" cellspacing="0" cellpadding="0"> <div style="padding: 10px">已存在相同的账户信息</div>
<tr> <table class="popTable" border="0" cellspacing="0" cellpadding="0">
<th>{{$t("ground.zhanghumingcheng")}}</th> <tr>
<th>{{$t("fnc.w_zhbieming")}}</th> <th>{{$t("ground.zhanghumingcheng")}}</th>
<th>{{$t("ground.zhanghuleibie")}}</th> <th>{{$t("fnc.w_zhbieming")}}</th>
<th>{{$t("ground.suoshujigou")}}</th> <th>{{$t("ground.zhanghuleibie")}}</th>
<th>{{$t("fnc.acc")}}</th> <th>{{$t("ground.suoshujigou")}}</th>
<th>{{ $t("fnc.khleixing") }}</th> <th>{{$t("fnc.acc")}}</th>
<th>创建人</th> <th>{{ $t("fnc.khleixing") }}</th>
<th>{{$t("admin.admin_status")}}</th> <th>创建人</th>
<th v-if="addMsg.Type==8">{{ $t("admin.admin_operate") }}</th> <th>{{$t("admin.admin_status")}}</th>
</tr> <th v-if="addMsg.Type==8">{{ $t("admin.admin_operate") }}</th>
<tr v-for="(item,index) in accountList"> </tr>
<td>{{item.OpenBankName}}</td> <tr v-for="(item,index) in accountList">
<td>{{item.AccountAlias}}</td> <td>{{item.OpenBankName}}</td>
<td> <td>{{item.AccountAlias}}</td>
<span v-if="item.AccountClassify==1">{{$t('fnc.a_ptzhanghu')}}</span> <td>
<span v-if="item.AccountClassify==2">银行账户</span> <span v-if="item.AccountClassify==1">{{$t('fnc.a_ptzhanghu')}}</span>
<span v-if="item.AccountClassify==3">虚拟账户</span> <span v-if="item.AccountClassify==2">银行账户</span>
<span v-if="item.AccountClassify==4">微信支付宝</span> <span v-if="item.AccountClassify==3">虚拟账户</span>
</td> <span v-if="item.AccountClassify==4">微信支付宝</span>
<td>{{item.BankName}}</td> </td>
<td>{{item.CardNum}} <td>{{item.BankName}}</td>
<br/>{{item.AccountHolder}}</td> <td>{{item.CardNum}}
<td>{{ item.TypeName }}</td> <br />{{item.AccountHolder}}</td>
<td> <td>{{ item.TypeName }}</td>
{{item.CreateByName?item.CreateByName:'-'}} <td>
<p>{{item.CreateDate?item.CreateDate:'-'}}</p> {{item.CreateByName?item.CreateByName:'-'}}
</td> <p>{{item.CreateDate?item.CreateDate:'-'}}</p>
<td> </td>
<span v-if='item.Status!=0' style="color: #E95252;">{{$t('pub.fressSel')}}</span> <td>
<span v-if='item.Status==0' style="color: #09D49D;">{{$t('pub.normalSel')}}</span> <span v-if='item.Status!=0' style="color: #E95252;">{{$t('pub.fressSel')}}</span>
</td> <span v-if='item.Status==0' style="color: #09D49D;">{{$t('pub.normalSel')}}</span>
</td>
<td class="empBankAccountIcon" v-if="addMsg.Type==8"> <td class="empBankAccountIcon" v-if="addMsg.Type==8">
<el-button-group> <el-button-group>
<el-tooltip class="item" effect="dark" content="绑定" placement="top-start">
<el-tooltip <el-button v-if="item.Type == 10" @click="bindData(item.ID)" type="primary"
class="item" style="background: #09d49d; border-color: #09d49d" icon="iconfont icon-bianji-smal"></el-button>
effect="dark" </el-tooltip>
content="绑定" </el-button-group>
placement="top-start" </td>
> </tr>
<el-button v-if="item.Type == 10" </table>
@click="bindData(item.ID)" </div>
type="primary" </div>
style="background: #09d49d; border-color: #09d49d" <div class="query-box">
icon="iconfont icon-bianji-smal" <ul>
></el-button>
</el-tooltip>
</el-button-group>
</td>
</tr>
</table>
</div>
</div>
<div class="query-box">
<ul>
<li> <li>
<span style="margin-left: 80px"><em>账户分类</em> <span style="margin-left: 80px"><em>账户分类</em>
<el-select <el-select v-model="msg.AccountClassify" :placeholder="$t('pub.pleaseSel')" @change="changeTitle">
v-model="msg.AccountClassify" <el-option label="不限" value="" key="0"> </el-option>
:placeholder="$t('pub.pleaseSel')" <el-option :label="$t('fnc.yinhang')" value="2" key="2"></el-option>
@change="changeTitle" <el-option :label="$t('ground.xunizhanghu')" value="3" key="3"></el-option>
> <el-option label="微信支付宝" value="4" key="4"></el-option>
<el-option label="不限" value="" key="0"> </el-option> </el-select>
<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>
</el-select>
</span> </span>
</li> </li>
<li> <li>
<span><em>关键字</em> <span><em>关键字</em>
<el-input <el-input type="text" v-model="msg.KeyWord"></el-input>
type="text"
v-model="msg.KeyWord"
></el-input>
</span> </span>
</li> </li>
<li> <li>
<input <input type="button" @click="getList" class="normalBtn" value="查询" />
type="button" <input type="button" @click="AddAccountBank" class="normalBtn" :value="$t('pub.addBtn')" />
@click="getList" </li>
class="normalBtn" </ul>
value="查询" </div>
/> <table class="empBankAccountTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<input type="button" @click="AddAccountBank" class="normalBtn" :value="$t('pub.addBtn')" /> <tr>
</li> <th>{{$t("ground.zhanghumingcheng")}}</th>
</ul> <th>{{$t("fnc.w_zhbieming")}}</th>
</div> <th>{{$t("ground.zhanghuleibie")}}</th>
<table class="empBankAccountTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading"> <th>{{$t("ground.suoshujigou")}}</th>
<tr> <th>{{$t("fnc.acc")}}</th>
<th>{{$t("ground.zhanghumingcheng")}}</th> <th>{{$t("admin.admin_status")}}</th>
<th>{{$t("fnc.w_zhbieming")}}</th> <th>{{$t("ground.leijijiaoyi")}}</th>
<th>{{$t("ground.zhanghuleibie")}}</th> <th>{{$t("admin.admin_operate")}}</th>
<th>{{$t("ground.suoshujigou")}}</th> </tr>
<th>{{$t("fnc.acc")}}</th> <tr v-for="(item,index) in list">
<th>{{$t("admin.admin_status")}}</th> <td>{{item.OpenBankName}}</td>
<th>{{$t("ground.leijijiaoyi")}}</th> <td>{{item.AccountAlias}}</td>
<th>{{$t("admin.admin_operate")}}</th> <td>
</tr> <span v-if="item.AccountClassify==1">{{$t('fnc.a_ptzhanghu')}}</span>
<tr v-for="(item,index) in list"> <span v-if="item.AccountClassify==2">银行账户</span>
<td>{{item.OpenBankName}}</td> <span v-if="item.AccountClassify==3">虚拟账户</span>
<td>{{item.AccountAlias}}</td> <span v-if="item.AccountClassify==4">微信支付宝</span>
<td> </td>
<span v-if="item.AccountClassify==1">{{$t('fnc.a_ptzhanghu')}}</span> <td>{{item.BankName}}</td>
<span v-if="item.AccountClassify==2">银行账户</span> <td>{{item.CardNum}}
<span v-if="item.AccountClassify==3">虚拟账户</span> <br />{{item.AccountHolder}}</td>
<span v-if="item.AccountClassify==4">微信支付宝</span> <td>
</td> <span v-if='item.Status!=0' style="color: #E95252;">{{$t('pub.fressSel')}}</span>
<td>{{item.BankName}}</td> <span v-if='item.Status==0' style="color: #09D49D;">{{$t('pub.normalSel')}}</span>
<td>{{item.CardNum}} </td>
<br/>{{item.AccountHolder}}</td> <td style="color: #FF9C00;">{{moneyFormat(item.PayMoney)}}</td>
<td> <td class="empBankAccountIcon">
<span v-if='item.Status!=0' style="color: #E95252;">{{$t('pub.fressSel')}}</span> <el-button-group>
<span v-if='item.Status==0' style="color: #09D49D;">{{$t('pub.normalSel')}}</span> <el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start">
</td> <el-button @click="outerVisible = true,dialogTitle=$t('ground.xiugaizhanghu'),updateData(item.ID)"
<td style="color: #FF9C00;">{{moneyFormat(item.PayMoney)}}</td> type="primary" style='background:#409EFF; border-color:#409EFF' icon="iconfont icon-bianji-smal">
<td class="empBankAccountIcon"> </el-button>
<el-button-group> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start"> <el-tooltip class="item" effect="dark" :content="item.Status=='1'? $t('fnc.qiyong'):$t('pub.fressSel')"
<el-button @click="outerVisible = true,dialogTitle=$t('ground.xiugaizhanghu'),updateData(item.ID)" placement="top-start">
type="primary" style='background:#409EFF; border-color:#409EFF' <el-button v-if='item.Status==1' @click="deleteData(item.ID)" type="primary"
icon="iconfont icon-bianji-smal" ></el-button> style='background:#09D49D; border-color:#09D49D' icon="iconfont icon-qidong"></el-button>
</el-tooltip> <el-button v-if='item.Status==0' @click="deleteData(item.ID)" type="primary"
<el-tooltip class="item" effect="dark" :content="item.Status=='1'? $t('fnc.qiyong'):$t('pub.fressSel')" placement="top-start"> style='background:#E95252; border-color:#E95252' icon="iconfont icon-dongjie"></el-button>
<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-tooltip>
<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="$t('ground.mingxi')" placement="top-start">
</el-tooltip> <el-button type="primary" style='background:#E6A014; border-color:#E6A014' icon="iconfont icon-rizhi1">
<el-tooltip class="item" effect="dark" :content="$t('ground.mingxi')" placement="top-start"> </el-button>
<el-button type="primary" style='background:#E6A014; border-color:#E6A014' icon="iconfont icon-rizhi1" ></el-button> </el-tooltip>
</el-tooltip> </el-button-group>
</el-button-group> </td>
</td> </tr>
</tr> </table>
</table> <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total> layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total=total>
</el-pagination> </el-pagination>
</div>
</div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
return { return {
ClientTypeList: [], ClientTypeList: [],
supplierLoading: false, supplierLoading: false,
supplierList: [], supplierList: [],
supplierMsg: { supplierMsg: {
pageIndex:1, pageIndex: 1,
pageSize:1000, pageSize: 1000,
Name:"", Name: "",
Contact:"", Contact: "",
Type: "", Type: "",
CountryStr:"", CountryStr: "",
ProvinceStr:"", ProvinceStr: "",
CityStr:"", CityStr: "",
DistrictStr:"" DistrictStr: ""
}, },
loading: true, loading: true,
accountList: [], accountList: [],
nameA: this.$t("ground.zhanghumingcheng2"), nameA: this.$t("ground.zhanghumingcheng2"),
nameB: this.$t("fnc.khuren"), nameB: this.$t("fnc.khuren"),
nameC: this.$t("ground.kahao"), nameC: this.$t("ground.kahao"),
nameD: this.$t("fnc.accBming"), nameD: this.$t("fnc.accBming"),
switchValue:'1', switchValue: '1',
dialogTitle: '', dialogTitle: '',
insideDialogTxt: this.$t("tips.saveYes"), insideDialogTxt: this.$t("tips.saveYes"),
outerVisible: false, outerVisible: false,
innerVisible: false, innerVisible: false,
isRight:true, isRight: true,
versions: [], versions: [],
total: 0, total: 0,
currentPage: 1, currentPage: 1,
//请求数据 //请求数据
msg:{ msg: {
BranchId:'-1', BranchId: '-1',
EmpId:'-1', EmpId: '-1',
BankId:'', BankId: '',
AccountHolder:'', AccountHolder: '',
AccountAlias:'', AccountAlias: '',
pageIndex:1, pageIndex: 1,
pageSize:15, pageSize: 15,
Type:'', Type: '',
AccountClassify: '', AccountClassify: '',
KeyWord: '' KeyWord: ''
}, },
getCompanyMsg:{ getCompanyMsg: {
RB_Group_Id:'0', RB_Group_Id: '0',
Status:'0', Status: '0',
}, },
getUserMsg:{ getUserMsg: {
RB_Branch_id:'-1', RB_Branch_id: '-1',
}, },
//返回数据 //返回数据
list:[], list: [],
bankList:[], bankList: [],
layerItem:[], layerItem: [],
addMsg:{ addMsg: {
Id:'0', Id: '0',
ObjID:'-1', ObjID: '-1',
BankId:'-1', BankId: '-1',
OpenBankName:'', OpenBankName: '',
BankName: '', BankName: '',
AccountHolder:'', AccountHolder: '',
CardNum:'', CardNum: '',
AccountAlias:'', AccountAlias: '',
AccountType:'1', AccountType: '1',
AccountClassify:'2', AccountClassify: '2',
Type:'9', Type: '9',
DutyNo:'', DutyNo: '',
SupplierName:'', SupplierName: '',
}, },
rules:{ rules: {
BankName:[ BankName: [{
{ required: true, message: this.$t("ground.qingtianxieyh"), trigger: 'blur' } required: true,
], message: this.$t("ground.qingtianxieyh"),
Type:[ trigger: 'blur'
{ }],
required: true, Type: [{
message: '请选择客户类型', required: true,
trigger: "chang", message: '请选择客户类型',
}, trigger: "chang",
], }, ],
ObjID:[ ObjID: [{
{ required: true,
required: true, message: '请选择客户名称',
message: '请选择客户名称', trigger: "chang",
trigger: "chang", }, ]
}, }
] }
} },
} mounted() {
}, let userInfo = this.getLocalStorage();
mounted() { this.getUserMsg.RB_Group_id = this.getCompanyMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID
let userInfo=this.getLocalStorage(); this.msg.EmpId = this.$route.query.id;
this.getUserMsg.RB_Group_id=this.getCompanyMsg.RB_Group_Id=userInfo.RB_Group_id; //集团ID this.msg.Type = this.$route.query.type;
this.msg.EmpId=this.$route.query.id; this.addMsg.Type = Number(this.$route.query.type);
this.msg.Type=this.$route.query.type; if (this.$route.query.type == 10) {
this.addMsg.Type=Number(this.$route.query.type);
// this.addMsg.ObjID=this.$route.query.id;
if(this.$route.query.type==10){
this.financeinfo_post_GetClientTypeList() this.financeinfo_post_GetClientTypeList()
} }
this.getBank(); this.getBank();
this.getList(); this.getList();
this.changeTitle() this.changeTitle()
}, },
methods: { methods: {
//替换卡号里面的空格
replaceSpace(event) {
// onkeyup="value=value.replace(/[^\w\u4E00-\u9FA5]/g,'')"
this.addMsg.CardNum = event.target.value.replace(/ /g, ''); // 将所有空格替换为空字符串
},
// 获取客户类型 // 获取客户类型
getType(){ getType() {
this.supplierList = [] this.supplierList = []
if(this.addMsg.Type==4){ if (this.addMsg.Type == 4) {
this.supplierMsg.Type = 5 this.supplierMsg.Type = 5
}else{ } else {
this.supplierMsg.Type = this.addMsg.Type this.supplierMsg.Type = this.addMsg.Type
} }
if(this.addMsg.Type!=10){ if (this.addMsg.Type != 10) {
this.addMsg.ObjID = null this.addMsg.ObjID = null
this.addMsg.ObjIdStr = '' this.addMsg.ObjIdStr = ''
this.supplierMsg.Name = '' this.supplierMsg.Name = ''
// this.getSupplierGetPageList() } else {
}else{
this.addMsg.ObjID = this.$route.query.id this.addMsg.ObjID = this.$route.query.id
} }
}, },
getObjName(){ getObjName() {
this.supplierList.filter(x=>{ this.supplierList.filter(x => {
if(x.ID==this.addMsg.ObjID){ if (x.ID == this.addMsg.ObjID) {
this.addMsg.ObjIdStr = x.Name this.addMsg.ObjIdStr = x.Name
this.addMsg.SupplierName = x.Name this.addMsg.SupplierName = x.Name
} }
}) })
}, },
remoteMethod(query) { remoteMethod(query) {
if (query !== '') { if (query !== '') {
this.addMsg.ObjID = null this.addMsg.ObjID = null
this.supplierMsg.Name = query this.supplierMsg.Name = query
this.supplierList=[]; this.supplierList = [];
this.getSupplierGetPageList() this.getSupplierGetPageList()
} else { } else {
this.supplierMsg.Name = '' this.supplierMsg.Name = ''
this.supplierList = []; this.supplierList = [];
} }
}, },
getSupplierGetPageList(){ getSupplierGetPageList() {
if(this.addMsg.Type==10) { if (this.addMsg.Type == 10) {
return return
}
let url = "supplier_get_GetPageList"
let msg = JSON.parse(JSON.stringify(this.supplierMsg))
if(this.addMsg.Type==5) {
url = "dmc_post_visa_GetCommuneInfoPageList"
msg = {
pageIndex:1,
pageSize:this.supplierMsg.pageSize,
Name:this.supplierMsg.Name,
PersonInCharge:"",
Country:"",
City:"",
District:"",
Province:""
} }
} let url = "supplier_get_GetPageList"
if(this.addMsg.Type==7) { let msg = JSON.parse(JSON.stringify(this.supplierMsg))
url = "leader_post_GetPageList" if (this.addMsg.Type == 5) {
msg = { url = "dmc_post_visa_GetCommuneInfoPageList"
Type:"0", msg = {
FullName:this.supplierMsg.Name, pageIndex: 1,
RB_Branch_id:-1, pageSize: this.supplierMsg.pageSize,
pageIndex:1, Name: this.supplierMsg.Name,
pageSize:this.supplierMsg.pageSize, PersonInCharge: "",
total:0, Country: "",
currentPage:1, City: "",
QueryType:0, District: "",
LeaderGuidClass:-1 Province: ""
}
} }
} if (this.addMsg.Type == 7) {
if(this.addMsg.Type==8) { url = "leader_post_GetPageList"
url = "app_customer_GetCustomerListForCareOf" msg = {
msg = { Type: "0",
pageIndex:1, FullName: this.supplierMsg.Name,
pageSize:this.supplierMsg.pageSize, RB_Branch_id: -1,
CustomerName:this.supplierMsg.Name, pageIndex: 1,
CreateBy:"-1", pageSize: this.supplierMsg.pageSize,
DepartmentId:"-2", total: 0,
Brand:-1, currentPage: 1,
allDepartment:1, QueryType: 0,
CustomerStatus:"", LeaderGuidClass: -1
OperationStatus:"", }
jySort:"desc",
rtsSort:"",
orderBy:"TradeMoney desc",
ExceptionCount:0,
} }
} if (this.addMsg.Type == 8) {
if(this.addMsg.Type==9) { url = "app_customer_GetCustomerListForCareOf"
url = "admin_get_EmployeeList" msg = {
msg = { pageIndex: 1,
pageIndex:1, pageSize: this.supplierMsg.pageSize,
pageSize:this.supplierMsg.pageSize, CustomerName: this.supplierMsg.Name,
EmName:this.supplierMsg.Name, CreateBy: "-1",
EmAccount:"", DepartmentId: "-2",
RB_Group_id:2, Brand: -1,
RB_Branch_id:-1, allDepartment: 1,
RB_Department_Id:"0", CustomerStatus: "",
RB_Post_Id:"0", OperationStatus: "",
Status:"0", jySort: "desc",
sEmEntry:"", rtsSort: "",
eEmEntry:"", orderBy: "TradeMoney desc",
sEmLeave:"", ExceptionCount: 0,
eEmLeave:"", }
IsParentCompany:1
} }
} if (this.addMsg.Type == 9) {
if(this.addMsg.Type==11) { url = "admin_get_EmployeeList"
url = "travel_get_GetGroundingSupplierPageList" msg = {
msg = { pageIndex: 1,
pageIndex:1, pageSize: this.supplierMsg.pageSize,
pageSize:this.supplierMsg.pageSize, EmName: this.supplierMsg.Name,
Name:this.supplierMsg.Name, EmAccount: "",
GroundingType:"", RB_Group_id: 2,
LineInfo:"", RB_Branch_id: -1,
LineId:"0", RB_Department_Id: "0",
Id:"" RB_Post_Id: "0",
Status: "0",
sEmEntry: "",
eEmEntry: "",
sEmLeave: "",
eEmLeave: "",
IsParentCompany: 1
}
} }
} if (this.addMsg.Type == 11) {
if(this.addMsg.Type==6) { url = "travel_get_GetGroundingSupplierPageList"
url = "airline_post_GetPageList" msg = {
msg = { pageIndex: 1,
pageIndex:1, pageSize: this.supplierMsg.pageSize,
pageSize:this.supplierMsg.pageSize, Name: this.supplierMsg.Name,
AlName:this.supplierMsg.Name, GroundingType: "",
AlCode:"", LineInfo: "",
TicketCode:"", LineId: "0",
Id: ""
}
} }
} if (this.addMsg.Type == 6) {
this.supplierLoading = true url = "airline_post_GetPageList"
this.apipost( msg = {
url, pageIndex: 1,
msg, pageSize: this.supplierMsg.pageSize,
(res) => { AlName: this.supplierMsg.Name,
if (res.data.resultCode == 1) { AlCode: "",
TicketCode: "",
let dataList }
if(res.data.data.pageData&&res.data.data.pageData.length>0){ }
dataList = res.data.data.pageData this.supplierLoading = true
} this.apipost(
if(res.data.data.pages&&res.data.data.pages.pageData.length>0){ url,
dataList = res.data.data.pages.pageData msg,
} (res) => {
dataList&&dataList.forEach(x=>{ if (res.data.resultCode == 1) {
let Obj = { let dataList
Name: '', if (res.data.data.pageData && res.data.data.pageData.length > 0) {
ID: 0 dataList = res.data.data.pageData
} }
if(this.addMsg.Type==9){ if (res.data.data.pages && res.data.data.pages.pageData.length > 0) {
Obj = { dataList = res.data.data.pages.pageData
Name: x.EmName, }
ID: x.EmployeeId dataList && dataList.forEach(x => {
} let Obj = {
}else if(this.addMsg.Type==8){ Name: '',
Obj = { ID: 0
Name: x.CustomerName,
ID: x.CustomerId
}
}else if(this.addMsg.Type==7){
Obj = {
Name: x.Surname+x.Name,
ID: x.ID
}
}else if(this.addMsg.Type==6){
Obj = {
Name: x.AlName,
ID: x.AirLineId
}
}else if(this.addMsg.Type==11){
Obj = {
Name: x.Name,
ID: x.Id
} }
} else{ if (this.addMsg.Type == 9) {
Obj = { Obj = {
Name:x.Name, Name: x.EmName,
ID: x.ID ID: x.EmployeeId
}
} else if (this.addMsg.Type == 8) {
Obj = {
Name: x.CustomerName,
ID: x.CustomerId
}
} else if (this.addMsg.Type == 7) {
Obj = {
Name: x.Surname + x.Name,
ID: x.ID
}
} else if (this.addMsg.Type == 6) {
Obj = {
Name: x.AlName,
ID: x.AirLineId
}
} else if (this.addMsg.Type == 11) {
Obj = {
Name: x.Name,
ID: x.Id
}
} else {
Obj = {
Name: x.Name,
ID: x.ID
}
} }
this.supplierList.push(Obj)
})
if (this.addMsg.ObjIdStr && this.supplierList.length > 0) {
this.addMsg.ObjID = Number(this.supplierList[0].ID)
} }
this.supplierList.push(Obj)
})
if(this.addMsg.ObjIdStr&&this.supplierList.length>0){
this.addMsg.ObjID = Number(this.supplierList[0].ID)
} }
} this.supplierLoading = false
this.supplierLoading = false },
}, (err) => {
(err)=>{ this.supplierLoading = false
this.supplierLoading = false
})
},
financeinfo_post_GetClientTypeList() {
// 获取对象类型
this.apipost(
"financeinfo_post_GetClientTypeList",
{},
(res) => {
if (res.data.resultCode == 1) {
this.ClientTypeList = res.data.data;}
}) })
}, },
financeinfo_post_GetClientTypeList() {
// 获取对象类型
this.apipost(
"financeinfo_post_GetClientTypeList", {},
(res) => {
if (res.data.resultCode == 1) {
AddAccountBank(){ this.ClientTypeList = res.data.data;
// if(this.list&&this.list.length>0){ }
// return this.$message.info('已有账户,试试编辑已有账户吧!') })
// } },
this.outerVisible = true AddAccountBank() {
this.dialogTitle= this.$t('ground.xinzengzhanghu') this.outerVisible = true
this.resetForm('addMsg') this.dialogTitle = this.$t('ground.xinzengzhanghu')
this.resetForm('addMsg')
}, },
changeTitle(){ changeTitle() {
if(this.addMsg.AccountClassify==1){ if (this.addMsg.AccountClassify == 1) {
this.nameA= this.$t("ground.pingtaimingcheng") this.nameA = this.$t("ground.pingtaimingcheng")
this.nameB= this.$t("ground.yonghumingcheng") this.nameB = this.$t("ground.yonghumingcheng")
this.nameC= this.$t("fnc.ptAcc") this.nameC = this.$t("fnc.ptAcc")
this.nameD= this.$t("fnc.accBming") this.nameD = this.$t("fnc.accBming")
this.addMsg.AccountType='1' this.addMsg.AccountType = '1'
}else if(this.addMsg.AccountClassify==2){ } else if (this.addMsg.AccountClassify == 2) {
this.nameA= this.$t("ground.zhanghumingcheng2") this.nameA = this.$t("ground.zhanghumingcheng2")
this.nameB= this.$t("fnc.khuren") this.nameB = this.$t("fnc.khuren")
this.nameC= this.$t("ground.kahao") this.nameC = this.$t("ground.kahao")
this.nameD= this.$t("fnc.accBming") this.nameD = this.$t("fnc.accBming")
}else if(this.addMsg.AccountClassify==3){ } else if (this.addMsg.AccountClassify == 3) {
this.nameA= this.$t("ground.pingtaimingcheng") this.nameA = this.$t("ground.pingtaimingcheng")
this.nameB= this.$t("ground.yonghumingcheng") this.nameB = this.$t("ground.yonghumingcheng")
this.nameC= this.$t("fnc.ptAcc") this.nameC = this.$t("fnc.ptAcc")
this.nameD= this.$t("fnc.accBming") this.nameD = this.$t("fnc.accBming")
}else if(this.addMsg.AccountClassify==4){ } else if (this.addMsg.AccountClassify == 4) {
this.nameA= this.$t("ground.pingtaimingcheng") this.nameA = this.$t("ground.pingtaimingcheng")
this.nameB= this.$t("ground.yonghumingcheng") this.nameB = this.$t("ground.yonghumingcheng")
this.nameC= "账号" this.nameC = "账号"
this.nameD= "名称" this.nameD = "名称"
} }
}, },
getList() { //获取列表数据 getList() { //获取列表数据
this.loading = true this.loading = true
this.apipost("admin_get_GetEmpBankAccountPageList", this.msg, res => { 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.list = res.data.data.pageData;
this.total = res.data.data.count; this.total = res.data.data.count;
}else{} } else {}
this.loading = false this.loading = false
}, err => {}) }, err => {})
}, },
// getCompany(){ getBank() {
// this.apipost('admin_get_BranchGetList',this.getCompanyMsg,res=>{ this.apipost('FinancialInstitutions_post_GetList', {
// if(res.data.resultCode==1){ Type: 0
// this.companyList=res.data.data; }, res => {
// }else{} if (res.data.resultCode == 1) {
// },err=>{}) this.bankList = res.data.data;
// }, } else {}
getBank(){ }, err => {})
this.apipost('FinancialInstitutions_post_GetList',{Type:0},res=>{ },
if(res.data.resultCode==1){ addData() {
this.bankList=res.data.data; if (this.addMsg.ObjID == null && this.addMsg.Type != 10) {
}else{} this.$message.error('请选择客户名称')
},err=>{}) return
}, }
addData(){ console.log("this.addMsg.Type", this.addMsg.Type);
if(this.addMsg.ObjID==null&&this.addMsg.Type!=10){ if (this.addMsg.Type != 7 && this.addMsg.Type != 9 && this.addMsg.Type != 10) {
this.$message.error('请选择客户名称') if (this.addMsg.DutyNo == '' || this.addMsg.DutyNo == undefined) {
return this.$message.error('请填写税号')
return
} }
console.log("this.addMsg.Type",this.addMsg.Type); }
if (this.addMsg.Type!=7&&this.addMsg.Type!=9&&this.addMsg.Type!=10) { this.addMsg.ObjID = this.addMsg.ObjID != '-1' && this.addMsg.ObjID != null ? this.addMsg.ObjID : this.$route
if(this.addMsg.DutyNo==''||this.addMsg.DutyNo==undefined){ .query.id
this.$message.error('请填写税号') if (this.addMsg.AccountClassify != '3' && this.addMsg.AccountClassify != '4') {
return if (this.addMsg.OpenBankName == '') {
} this.$message.error(this.$t('visaT.Pleasefillin') + this.nameA)
return
} }
this.addMsg.ObjID = this.addMsg.ObjID!='-1'&&this.addMsg.ObjID!=null?this.addMsg.ObjID:this.$route.query.id if (this.addMsg.AccountHolder == '') {
if(this.addMsg.AccountClassify!='3' && this.addMsg.AccountClassify!='4'){ this.$message.error(this.$t('visaT.Pleasefillin') + this.nameB)
if(this.addMsg.OpenBankName==''){ return
this.$message.error(this.$t('visaT.Pleasefillin')+this.nameA) }
return }
} if (this.addMsg.CardNum == '') {
if(this.addMsg.AccountHolder==''){ this.$message.error(this.$t('visaT.Pleasefillin') + this.nameC)
this.$message.error(this.$t('visaT.Pleasefillin')+this.nameB) return
return }
} if (this.addMsg.AccountAlias == '') {
} this.$message.error(this.$t('visaT.Pleasefillin') + this.nameD)
if(this.addMsg.CardNum==''){ return
this.$message.error(this.$t('visaT.Pleasefillin')+this.nameC) }
return this.checkCanAdd()
}
if(this.addMsg.AccountAlias==''){
this.$message.error(this.$t('visaT.Pleasefillin')+this.nameD)
return
}
this.checkCanAdd()
},
addAccount() {
this.apipost("admin_post_SetEmpBankAccount",this.addMsg,res=>{
if(res.data.resultCode==1)
{
this.$message.success(res.data.message)
this.outerVisible=false;
this.getList()
this.resetForm('addMsg');
}else{
this.getList();
this.$message.error(res.data.message)
}
},err=>{})}, },
checkCanAdd() { addAccount() {
this.apipost("admin_post_SetEmpBankAccount", this.addMsg, res => {
if (res.data.resultCode == 1) {
this.$message.success(res.data.message)
this.outerVisible = false;
this.getList()
this.resetForm('addMsg');
} else {
this.getList();
this.$message.error(res.data.message)
}
}, err => {})
},
checkCanAdd() {
this.$confirm("客户类型与税号请务必填写正确,避免单据驳回!!", "提示", { this.$confirm("客户类型与税号请务必填写正确,避免单据驳回!!", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
type: "warning" type: "warning"
}) })
.then(() => { .then(() => {
this.apipost('admin_post_GetBackAccount',{RB_Group_Id: this.addMsg.ObjID, ...this.addMsg},res=>{ this.apipost('admin_post_GetBackAccount', {
if(res.data.resultCode==1){ RB_Group_Id: this.addMsg.ObjID,
if(res.data.data && res.data.data.length) { ...this.addMsg
this.accountList = res.data.data }, res => {
} else { if (res.data.resultCode == 1) {
this.addAccount() if (res.data.data && res.data.data.length) {
} this.accountList = res.data.data
}else{ } else {
this.$message.error(res.data.message)} this.addAccount()
},err=>{}) }
} else {
this.$message.error(res.data.message)
}
}, err => {})
}) })
.catch(() => {}); .catch(() => {});
}, },
updateData(id){ //修改角色 updateData(id) { //修改角色
this.apipost('admin_get_GetEmpBackAccount',{BAId:id},res=>{ this.apipost('admin_get_GetEmpBackAccount', {
if(res.data.resultCode==1){ BAId: id
this.addMsg = res.data.data; }, res => {
this.addMsg.AccountType=res.data.data.AccountType.toString(); if (res.data.resultCode == 1) {
this.addMsg.AccountClassify=res.data.data.AccountClassify.toString(); this.addMsg = res.data.data;
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.addMsg.IsOtherEdit = 1 this.addMsg.IsOtherEdit = 1
this.supplierMsg.Type = this.addMsg.Type this.supplierMsg.Type = this.addMsg.Type
this.addMsg.DutyNo=res.data.data.DutyNo this.addMsg.DutyNo = res.data.data.DutyNo
this.addMsg.SupplierName=res.data.data.SupplierName this.addMsg.SupplierName = res.data.data.SupplierName
if(this.addMsg.ObjIdStr){ if (this.addMsg.ObjIdStr) {
this.supplierMsg.Name = this.addMsg.ObjIdStr this.supplierMsg.Name = this.addMsg.ObjIdStr
this.getSupplierGetPageList() this.getSupplierGetPageList()
}else{ } else {
this.addMsg.ObjID = null this.addMsg.ObjID = null
} }
this.changeTitle() this.changeTitle()
}else{} } else {}
},err=>{}) }, err => {})
// this.addMsg = this.dataList[index] },
// this.addMsg.Status = this.dataList[index].Status.toString(); deleteData(id) {
},
deleteData(id){
let that = this let that = this
this.$confirm(that.$t('ground.querenqiyong'), '提示', { this.$confirm(that.$t('ground.querenqiyong'), '提示', {
confirmButtonText: that.$t('pub.sureBtn'), confirmButtonText: that.$t('pub.sureBtn'),
cancelButtonText: that.$t('pub.cancelBtn'), cancelButtonText: that.$t('pub.cancelBtn'),
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.apipost('admin_post_DelEmpBankAccount', { this.apipost('admin_post_DelEmpBankAccount', {
BAId:id BAId: id
}, res => { }, res => {
if(res.data.resultCode == 1) { if (res.data.resultCode == 1) {
that.$message.success('操作成功') that.$message.success('操作成功')
that.getList(); that.getList();
}else{ } else {
that.$message.info('操作失败') that.$message.info('操作失败')
} }
}, err => {}) }, err => {})
}).catch(() => {
that.$message.info('操作失败')
});
},
bindData(id){ }).catch(() => {
let that = this that.$message.info('操作失败')
this.$confirm("是否绑定当前付款对象", '提示', { });
confirmButtonText: that.$t('pub.sureBtn'), },
cancelButtonText: that.$t('pub.cancelBtn'), bindData(id) {
type: 'warning' let that = this
}).then(() => { this.$confirm("是否绑定当前付款对象", '提示', {
this.apipost('admin_post_BindEmpBankAccount', { confirmButtonText: that.$t('pub.sureBtn'),
BAId:id, cancelButtonText: that.$t('pub.cancelBtn'),
ObjID:this.$route.query.id, type: 'warning'
Type:this.$route.query.type }).then(() => {
}, res => { this.apipost('admin_post_BindEmpBankAccount', {
if(res.data.resultCode == 1) { BAId: id,
that.$message.success('操作成功') ObjID: this.$route.query.id,
this.outerVisible=false; Type: this.$route.query.type
that.getList(); }, res => {
}else{ if (res.data.resultCode == 1) {
that.$message.success('操作成功')
this.outerVisible = false;
that.getList();
} else {
that.$message.info('操作失败') that.$message.info('操作失败')
} }
}, err => {}) }, err => {})
}).catch(() => { }).catch(() => {
that.$message.info('操作失败') that.$message.info('操作失败')
}); });
},
}, handleCurrentChange(val) {
handleCurrentChange(val) { this.msg.pageIndex = val;
this.msg.pageIndex = val; this.getList();
this.getList(); },
}, resetPageIndex() {
resetPageIndex() { this.msg.pageIndex = 1;
this.msg.pageIndex = 1; this.currentPage = 1
this.currentPage = 1 },
}, submitForm(addMsg) { //提交创建、修改表单
submitForm(addMsg) {//提交创建、修改表单 this.$refs[addMsg].validate((valid) => {
this.$refs[addMsg].validate((valid) => { if (valid) {
if (valid) { this.addData();
this.addData(); } else {
} else { return false;
return false; }
} });
}); },
closeChangeMachie(done) { //弹出框关闭初始化弹框内表单
done();
}, this.resetForm('addMsg');
closeChangeMachie(done){//弹出框关闭初始化弹框内表单 },
done(); resetForm(formName) { //弹出框取消 初始化谈框内表单
this.resetForm('addMsg'); this.accountList = []
}, this.$refs[formName].resetFields();
resetForm(formName) {//弹出框取消 初始化谈框内表单 this.addMsg.AccountType = '1';
this.accountList = [] this.addMsg.AccountClassify = '2';
this.$refs[formName].resetFields(); this.addMsg.Id = '0';
this.addMsg.AccountType='1'; this.addMsg.ObjID = '-1';
this.addMsg.AccountClassify='2'; this.addMsg.BankId = '-1';
this.addMsg.Id='0'; this.addMsg.OpenBankName = '';
this.addMsg.ObjID='-1'; this.addMsg.BankName = '';
this.addMsg.BankId='-1'; this.addMsg.AccountHolder = '';
this.addMsg.OpenBankName=''; this.addMsg.CardNum = '';
this.addMsg.BankName=''; this.addMsg.AccountAlias = '';
this.addMsg.AccountHolder=''; }
this.addMsg.CardNum=''; }
this.addMsg.AccountAlias=''; }
}
}
}
</script> </script>
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