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%;
}
.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;
}
.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{width: 80%; font-size:14px; color: #333; background: #ccc;} .popTable tr {
.popTable tr{border-bottom: 2px solid #333;} background: #fff;
.popTable tr th{background: #BDBDBD;height:30px; font-size: 12px; text-align: left; text-indent: 20px;} text-align: left;
.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;} .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">
...@@ -29,12 +124,13 @@ ...@@ -29,12 +124,13 @@
{{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"
@click="outerVisible = false,resetForm('addMsg')">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button> <button class="normalBtn" type="primary" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button>
</span> </span>
</p> </p>
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="90px" style="padding-right: 80px"> <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-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.zhfenlei')" prop="AccountClassify"> <el-form-item :label="$t('fnc.zhfenlei')" prop="AccountClassify">
<el-select v-model='addMsg.AccountClassify' :placeholder="$t('pub.pleaseSel')" @change='changeTitle'> <el-select v-model='addMsg.AccountClassify' :placeholder="$t('pub.pleaseSel')" @change='changeTitle'>
...@@ -62,70 +158,47 @@ ...@@ -62,70 +158,47 @@
</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="nameC" prop="CardNum" > <el-form-item :label="nameC" prop="CardNum">
<el-input type="text" v-model="addMsg.CardNum" onkeyup="value=value.replace(/[^\w\u4E00-\u9FA5]/g, '')" placeholder="卡号请输入中文、数字、字母"></el-input> <el-input type="text" v-model="addMsg.CardNum" @keyup.native="replaceSpace" placeholder="卡号请输入中文、数字、字母">
</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="nameD" prop="AccountAlias" > <el-form-item :label="nameD" prop="AccountAlias">
<el-input type="text" v-model="addMsg.AccountAlias"></el-input> <el-input type="text" v-model="addMsg.AccountAlias"></el-input>
</el-form-item> </el-form-item>
</el-col> </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"
style="padding: 20px; display: flex; justify-content: center; align-items: center;flex-direction: column">
<div style="padding: 10px">已存在相同的账户信息</div> <div style="padding: 10px">已存在相同的账户信息</div>
<table class="popTable" border="0" cellspacing="0" cellpadding="0"> <table class="popTable" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
...@@ -150,7 +223,7 @@ ...@@ -150,7 +223,7 @@
</td> </td>
<td>{{item.BankName}}</td> <td>{{item.BankName}}</td>
<td>{{item.CardNum}} <td>{{item.CardNum}}
<br/>{{item.AccountHolder}}</td> <br />{{item.AccountHolder}}</td>
<td>{{ item.TypeName }}</td> <td>{{ item.TypeName }}</td>
<td> <td>
{{item.CreateByName?item.CreateByName:'-'}} {{item.CreateByName?item.CreateByName:'-'}}
...@@ -160,25 +233,12 @@ ...@@ -160,25 +233,12 @@
<span v-if='item.Status!=0' style="color: #E95252;">{{$t('pub.fressSel')}}</span> <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> <span v-if='item.Status==0' style="color: #09D49D;">{{$t('pub.normalSel')}}</span>
</td> </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"
content="绑定"
placement="top-start"
>
<el-button v-if="item.Type == 10"
@click="bindData(item.ID)"
type="primary"
style="background: #09d49d; border-color: #09d49d"
icon="iconfont icon-bianji-smal"
></el-button>
</el-tooltip> </el-tooltip>
</el-button-group> </el-button-group>
</td> </td>
</tr> </tr>
...@@ -189,41 +249,21 @@ ...@@ -189,41 +249,21 @@
<ul> <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"
:placeholder="$t('pub.pleaseSel')"
@change="changeTitle"
>
<el-option label="不限" value="" key="0"> </el-option> <el-option label="不限" value="" key="0"> </el-option>
<el-option <el-option :label="$t('fnc.yinhang')" value="2" key="2"></el-option>
:label="$t('fnc.yinhang')" <el-option :label="$t('ground.xunizhanghu')" value="3" key="3"></el-option>
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-option label="微信支付宝" value="4" key="4"></el-option>
</el-select> </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"
@click="getList"
class="normalBtn"
value="查询"
/>
<input type="button" @click="AddAccountBank" class="normalBtn" :value="$t('pub.addBtn')" /> <input type="button" @click="AddAccountBank" class="normalBtn" :value="$t('pub.addBtn')" />
</li> </li>
</ul> </ul>
...@@ -250,7 +290,7 @@ ...@@ -250,7 +290,7 @@
</td> </td>
<td>{{item.BankName}}</td> <td>{{item.BankName}}</td>
<td>{{item.CardNum}} <td>{{item.CardNum}}
<br/>{{item.AccountHolder}}</td> <br />{{item.AccountHolder}}</td>
<td> <td>
<span v-if='item.Status!=0' style="color: #E95252;">{{$t('pub.fressSel')}}</span> <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> <span v-if='item.Status==0' style="color: #09D49D;">{{$t('pub.normalSel')}}</span>
...@@ -260,29 +300,29 @@ ...@@ -260,29 +300,29 @@
<el-button-group> <el-button-group>
<el-tooltip class="item" effect="dark" :content="$t('pub.updateMsg')" placement="top-start"> <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)" <el-button @click="outerVisible = true,dialogTitle=$t('ground.xiugaizhanghu'),updateData(item.ID)"
type="primary" style='background:#409EFF; border-color:#409EFF' type="primary" style='background:#409EFF; border-color:#409EFF' icon="iconfont icon-bianji-smal">
icon="iconfont icon-bianji-smal" ></el-button> </el-button>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="item.Status=='1'? $t('fnc.qiyong'):$t('pub.fressSel')" placement="top-start"> <el-tooltip class="item" effect="dark" :content="item.Status=='1'? $t('fnc.qiyong'):$t('pub.fressSel')"
<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> placement="top-start">
<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-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>
<el-tooltip class="item" effect="dark" :content="$t('ground.mingxi')" placement="top-start"> <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-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" 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> </el-pagination>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
data() { data() {
...@@ -291,15 +331,15 @@ ...@@ -291,15 +331,15 @@
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: [],
...@@ -307,84 +347,80 @@ ...@@ -307,84 +347,80 @@
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'
{ }],
Type: [{
required: true, required: true,
message: '请选择客户类型', message: '请选择客户类型',
trigger: "chang", trigger: "chang",
}, }, ],
], ObjID: [{
ObjID:[
{
required: true, required: true,
message: '请选择客户名称', message: '请选择客户名称',
trigger: "chang", trigger: "chang",
}, }, ]
]
} }
} }
}, },
mounted() { mounted() {
let userInfo=this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.getUserMsg.RB_Group_id=this.getCompanyMsg.RB_Group_Id=userInfo.RB_Group_id; //集团ID this.getUserMsg.RB_Group_id = this.getCompanyMsg.RB_Group_Id = userInfo.RB_Group_id; //集团ID
this.msg.EmpId=this.$route.query.id; this.msg.EmpId = this.$route.query.id;
this.msg.Type=this.$route.query.type; this.msg.Type = this.$route.query.type;
this.addMsg.Type = Number(this.$route.query.type);
this.addMsg.Type=Number(this.$route.query.type); if (this.$route.query.type == 10) {
// 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();
...@@ -392,26 +428,30 @@ ...@@ -392,26 +428,30 @@
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
} }
...@@ -421,103 +461,103 @@ ...@@ -421,103 +461,103 @@
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 url = "supplier_get_GetPageList"
let msg = JSON.parse(JSON.stringify(this.supplierMsg)) let msg = JSON.parse(JSON.stringify(this.supplierMsg))
if(this.addMsg.Type==5) { if (this.addMsg.Type == 5) {
url = "dmc_post_visa_GetCommuneInfoPageList" url = "dmc_post_visa_GetCommuneInfoPageList"
msg = { msg = {
pageIndex:1, pageIndex: 1,
pageSize:this.supplierMsg.pageSize, pageSize: this.supplierMsg.pageSize,
Name:this.supplierMsg.Name, Name: this.supplierMsg.Name,
PersonInCharge:"", PersonInCharge: "",
Country:"", Country: "",
City:"", City: "",
District:"", District: "",
Province:"" Province: ""
} }
} }
if(this.addMsg.Type==7) { if (this.addMsg.Type == 7) {
url = "leader_post_GetPageList" url = "leader_post_GetPageList"
msg = { msg = {
Type:"0", Type: "0",
FullName:this.supplierMsg.Name, FullName: this.supplierMsg.Name,
RB_Branch_id:-1, RB_Branch_id: -1,
pageIndex:1, pageIndex: 1,
pageSize:this.supplierMsg.pageSize, pageSize: this.supplierMsg.pageSize,
total:0, total: 0,
currentPage:1, currentPage: 1,
QueryType:0, QueryType: 0,
LeaderGuidClass:-1 LeaderGuidClass: -1
} }
} }
if(this.addMsg.Type==8) { if (this.addMsg.Type == 8) {
url = "app_customer_GetCustomerListForCareOf" url = "app_customer_GetCustomerListForCareOf"
msg = { msg = {
pageIndex:1, pageIndex: 1,
pageSize:this.supplierMsg.pageSize, pageSize: this.supplierMsg.pageSize,
CustomerName:this.supplierMsg.Name, CustomerName: this.supplierMsg.Name,
CreateBy:"-1", CreateBy: "-1",
DepartmentId:"-2", DepartmentId: "-2",
Brand:-1, Brand: -1,
allDepartment:1, allDepartment: 1,
CustomerStatus:"", CustomerStatus: "",
OperationStatus:"", OperationStatus: "",
jySort:"desc", jySort: "desc",
rtsSort:"", rtsSort: "",
orderBy:"TradeMoney desc", orderBy: "TradeMoney desc",
ExceptionCount:0, ExceptionCount: 0,
} }
} }
if(this.addMsg.Type==9) { if (this.addMsg.Type == 9) {
url = "admin_get_EmployeeList" url = "admin_get_EmployeeList"
msg = { msg = {
pageIndex:1, pageIndex: 1,
pageSize:this.supplierMsg.pageSize, pageSize: this.supplierMsg.pageSize,
EmName:this.supplierMsg.Name, EmName: this.supplierMsg.Name,
EmAccount:"", EmAccount: "",
RB_Group_id:2, RB_Group_id: 2,
RB_Branch_id:-1, RB_Branch_id: -1,
RB_Department_Id:"0", RB_Department_Id: "0",
RB_Post_Id:"0", RB_Post_Id: "0",
Status:"0", Status: "0",
sEmEntry:"", sEmEntry: "",
eEmEntry:"", eEmEntry: "",
sEmLeave:"", sEmLeave: "",
eEmLeave:"", eEmLeave: "",
IsParentCompany:1 IsParentCompany: 1
} }
} }
if(this.addMsg.Type==11) { if (this.addMsg.Type == 11) {
url = "travel_get_GetGroundingSupplierPageList" url = "travel_get_GetGroundingSupplierPageList"
msg = { msg = {
pageIndex:1, pageIndex: 1,
pageSize:this.supplierMsg.pageSize, pageSize: this.supplierMsg.pageSize,
Name:this.supplierMsg.Name, Name: this.supplierMsg.Name,
GroundingType:"", GroundingType: "",
LineInfo:"", LineInfo: "",
LineId:"0", LineId: "0",
Id:"" Id: ""
} }
} }
if(this.addMsg.Type==6) { if (this.addMsg.Type == 6) {
url = "airline_post_GetPageList" url = "airline_post_GetPageList"
msg = { msg = {
pageIndex:1, pageIndex: 1,
pageSize:this.supplierMsg.pageSize, pageSize: this.supplierMsg.pageSize,
AlName:this.supplierMsg.Name, AlName: this.supplierMsg.Name,
AlCode:"", AlCode: "",
TicketCode:"", TicketCode: "",
} }
} }
this.supplierLoading = true this.supplierLoading = true
...@@ -526,179 +566,168 @@ ...@@ -526,179 +566,168 @@
msg, msg,
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
let dataList let dataList
if(res.data.data.pageData&&res.data.data.pageData.length>0){ if (res.data.data.pageData && res.data.data.pageData.length > 0) {
dataList = res.data.data.pageData dataList = res.data.data.pageData
} }
if(res.data.data.pages&&res.data.data.pages.pageData.length>0){ if (res.data.data.pages && res.data.data.pages.pageData.length > 0) {
dataList = res.data.data.pages.pageData dataList = res.data.data.pages.pageData
} }
dataList&&dataList.forEach(x=>{ dataList && dataList.forEach(x => {
let Obj = { let Obj = {
Name: '', Name: '',
ID: 0 ID: 0
} }
if(this.addMsg.Type==9){ if (this.addMsg.Type == 9) {
Obj = { Obj = {
Name: x.EmName, Name: x.EmName,
ID: x.EmployeeId ID: x.EmployeeId
} }
}else if(this.addMsg.Type==8){ } else if (this.addMsg.Type == 8) {
Obj = { Obj = {
Name: x.CustomerName, Name: x.CustomerName,
ID: x.CustomerId ID: x.CustomerId
} }
}else if(this.addMsg.Type==7){ } else if (this.addMsg.Type == 7) {
Obj = { Obj = {
Name: x.Surname+x.Name, Name: x.Surname + x.Name,
ID: x.ID ID: x.ID
} }
}else if(this.addMsg.Type==6){ } else if (this.addMsg.Type == 6) {
Obj = { Obj = {
Name: x.AlName, Name: x.AlName,
ID: x.AirLineId ID: x.AirLineId
} }
}else if(this.addMsg.Type==11){ } else if (this.addMsg.Type == 11) {
Obj = { Obj = {
Name: x.Name, Name: x.Name,
ID: x.Id ID: x.Id
} }
} else{ } else {
Obj = { Obj = {
Name:x.Name, Name: x.Name,
ID: x.ID ID: x.ID
} }
} }
this.supplierList.push(Obj) this.supplierList.push(Obj)
}) })
if(this.addMsg.ObjIdStr&&this.supplierList.length>0){ if (this.addMsg.ObjIdStr && this.supplierList.length > 0) {
this.addMsg.ObjID = Number(this.supplierList[0].ID) 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() { financeinfo_post_GetClientTypeList() {
// 获取对象类型 // 获取对象类型
this.apipost( this.apipost(
"financeinfo_post_GetClientTypeList", "financeinfo_post_GetClientTypeList", {},
{},
(res) => { (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
this.ClientTypeList = res.data.data;} this.ClientTypeList = res.data.data;
}
}) })
}, },
AddAccountBank() {
AddAccountBank(){
// if(this.list&&this.list.length>0){
// return this.$message.info('已有账户,试试编辑已有账户吧!')
// }
this.outerVisible = true this.outerVisible = true
this.dialogTitle= this.$t('ground.xinzengzhanghu') this.dialogTitle = this.$t('ground.xinzengzhanghu')
this.resetForm('addMsg') 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){
this.bankList=res.data.data;
}else{}
},err=>{})
}, },
addData(){ addData() {
if(this.addMsg.ObjID==null&&this.addMsg.Type!=10){ if (this.addMsg.ObjID == null && this.addMsg.Type != 10) {
this.$message.error('请选择客户名称') this.$message.error('请选择客户名称')
return return
} }
console.log("this.addMsg.Type",this.addMsg.Type); console.log("this.addMsg.Type", this.addMsg.Type);
if (this.addMsg.Type!=7&&this.addMsg.Type!=9&&this.addMsg.Type!=10) { if (this.addMsg.Type != 7 && this.addMsg.Type != 9 && this.addMsg.Type != 10) {
if(this.addMsg.DutyNo==''||this.addMsg.DutyNo==undefined){ if (this.addMsg.DutyNo == '' || this.addMsg.DutyNo == undefined) {
this.$message.error('请填写税号') this.$message.error('请填写税号')
return return
} }
} }
this.addMsg.ObjID = this.addMsg.ObjID!='-1'&&this.addMsg.ObjID!=null?this.addMsg.ObjID:this.$route.query.id this.addMsg.ObjID = this.addMsg.ObjID != '-1' && this.addMsg.ObjID != null ? this.addMsg.ObjID : this.$route
if(this.addMsg.AccountClassify!='3' && this.addMsg.AccountClassify!='4'){ .query.id
if(this.addMsg.OpenBankName==''){ if (this.addMsg.AccountClassify != '3' && this.addMsg.AccountClassify != '4') {
this.$message.error(this.$t('visaT.Pleasefillin')+this.nameA) if (this.addMsg.OpenBankName == '') {
this.$message.error(this.$t('visaT.Pleasefillin') + this.nameA)
return return
} }
if(this.addMsg.AccountHolder==''){ if (this.addMsg.AccountHolder == '') {
this.$message.error(this.$t('visaT.Pleasefillin')+this.nameB) this.$message.error(this.$t('visaT.Pleasefillin') + this.nameB)
return return
} }
} }
if(this.addMsg.CardNum==''){ if (this.addMsg.CardNum == '') {
this.$message.error(this.$t('visaT.Pleasefillin')+this.nameC) this.$message.error(this.$t('visaT.Pleasefillin') + this.nameC)
return return
} }
if(this.addMsg.AccountAlias==''){ if (this.addMsg.AccountAlias == '') {
this.$message.error(this.$t('visaT.Pleasefillin')+this.nameD) this.$message.error(this.$t('visaT.Pleasefillin') + this.nameD)
return return
} }
this.checkCanAdd() this.checkCanAdd()
}, },
addAccount() { addAccount() {
this.apipost("admin_post_SetEmpBankAccount",this.addMsg,res=>{ this.apipost("admin_post_SetEmpBankAccount", this.addMsg, res => {
if(res.data.resultCode==1) if (res.data.resultCode == 1) {
{
this.$message.success(res.data.message) this.$message.success(res.data.message)
this.outerVisible=false; this.outerVisible = false;
this.getList() this.getList()
this.resetForm('addMsg'); this.resetForm('addMsg');
}else{ } else {
this.getList(); this.getList();
this.$message.error(res.data.message) this.$message.error(res.data.message)
} }
}, err => {})
},err=>{})}, },
checkCanAdd() { checkCanAdd() {
this.$confirm("客户类型与税号请务必填写正确,避免单据驳回!!", "提示", { this.$confirm("客户类型与税号请务必填写正确,避免单据驳回!!", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
...@@ -706,43 +735,47 @@ ...@@ -706,43 +735,47 @@
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
}, res => {
if (res.data.resultCode == 1) {
if (res.data.data && res.data.data.length) {
this.accountList = res.data.data this.accountList = res.data.data
} else { } else {
this.addAccount() this.addAccount()
} }
}else{ } else {
this.$message.error(res.data.message)} this.$message.error(res.data.message)
},err=>{}) }
}, 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
}, res => {
if (res.data.resultCode == 1) {
this.addMsg = res.data.data; this.addMsg = res.data.data;
this.addMsg.AccountType=res.data.data.AccountType.toString(); this.addMsg.AccountType = res.data.data.AccountType.toString();
this.addMsg.AccountClassify=res.data.data.AccountClassify.toString(); this.addMsg.AccountClassify = res.data.data.AccountClassify.toString();
this.addMsg.BankId=res.data.data.BankId 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'),
...@@ -750,12 +783,12 @@ ...@@ -750,12 +783,12 @@
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 => {})
...@@ -764,8 +797,7 @@ ...@@ -764,8 +797,7 @@
that.$message.info('操作失败') that.$message.info('操作失败')
}); });
}, },
bindData(id) {
bindData(id){
let that = this let that = this
this.$confirm("是否绑定当前付款对象", '提示', { this.$confirm("是否绑定当前付款对象", '提示', {
confirmButtonText: that.$t('pub.sureBtn'), confirmButtonText: that.$t('pub.sureBtn'),
...@@ -773,15 +805,15 @@ ...@@ -773,15 +805,15 @@
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
this.apipost('admin_post_BindEmpBankAccount', { this.apipost('admin_post_BindEmpBankAccount', {
BAId:id, BAId: id,
ObjID:this.$route.query.id, ObjID: this.$route.query.id,
Type:this.$route.query.type Type: this.$route.query.type
}, res => { }, res => {
if(res.data.resultCode == 1) { if (res.data.resultCode == 1) {
that.$message.success('操作成功') that.$message.success('操作成功')
this.outerVisible=false; this.outerVisible = false;
that.getList(); that.getList();
}else{ } else {
that.$message.info('操作失败') that.$message.info('操作失败')
} }
}, err => {}) }, err => {})
...@@ -789,7 +821,6 @@ ...@@ -789,7 +821,6 @@
}).catch(() => { }).catch(() => {
that.$message.info('操作失败') that.$message.info('操作失败')
}); });
}, },
handleCurrentChange(val) { handleCurrentChange(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
...@@ -799,7 +830,7 @@ ...@@ -799,7 +830,7 @@
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();
...@@ -807,28 +838,26 @@ ...@@ -807,28 +838,26 @@
return false; return false;
} }
}); });
}, },
closeChangeMachie(done){//弹出框关闭初始化弹框内表单 closeChangeMachie(done) { //弹出框关闭初始化弹框内表单
done(); done();
this.resetForm('addMsg'); this.resetForm('addMsg');
}, },
resetForm(formName) {//弹出框取消 初始化谈框内表单 resetForm(formName) { //弹出框取消 初始化谈框内表单
this.accountList = [] this.accountList = []
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
this.addMsg.AccountType='1'; this.addMsg.AccountType = '1';
this.addMsg.AccountClassify='2'; this.addMsg.AccountClassify = '2';
this.addMsg.Id='0'; this.addMsg.Id = '0';
this.addMsg.ObjID='-1'; this.addMsg.ObjID = '-1';
this.addMsg.BankId='-1'; this.addMsg.BankId = '-1';
this.addMsg.OpenBankName=''; this.addMsg.OpenBankName = '';
this.addMsg.BankName=''; this.addMsg.BankName = '';
this.addMsg.AccountHolder=''; this.addMsg.AccountHolder = '';
this.addMsg.CardNum=''; this.addMsg.CardNum = '';
this.addMsg.AccountAlias=''; 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