Commit 9a4bb97c authored by 吴春's avatar 吴春

1

parent 947a42af
......@@ -9,7 +9,7 @@
components: { PlatformAccount },
data() {
return {
pagesTitle:'',
pagesTitle:'平台账户',
};
},
methods: {
......
......@@ -220,7 +220,9 @@
<p class="_tit">{{text}}{{$t('fnc.acc')}}</p>
</el-col>
<el-col :span="4" class="_add_saveBtn">
<button type="button" class="normalBtn" @click="submitForm('addMsg',1)">{{$t('pub.saveBtn')}}</button>
<button v-if="examineLoading" type="button" class="normalBtn" @click="examineInstitutions(1)">通过</button>
<button v-if="examineLoading" type="button" class="normalBtn" @click="examineInstitutions(2)">驳回</button>
<button v-if="examineLoading==false" type="button" class="normalBtn" @click="submitForm('addMsg',1)">{{$t('pub.saveBtn')}}</button>
<button class="hollowFixedBtn" type="button"
@click="cancelEdit(),resetForm('addMsg'),addShow=false">{{$t('pub.cancelBtn')}}</button>
</el-col>
......@@ -241,7 +243,6 @@
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35">
<el-form-item :label="$t('fnc.ptjigou')" prop="BackId">
<el-select filterable v-model="addMsg.BackId" class>
......@@ -598,6 +599,11 @@
loading: true,
CompanySelect: [],
ContractUrl: "",
examineLoading: false,
ExamineMsg:{
ID:0,
AccountState:0
},
msg: {
pageIndex: 1,
pageSize: 15,
......@@ -878,6 +884,13 @@
this.text = this.$t('pub.updateMsg')
this.addShow = true
this.addCuren = true
}else if (params.type === 'examine') {
this.editCurency(params.id)
this.text = "审核"
this.addShow = true
this.examineLoading=true
this.ExamineMsg = {ID:params.id,AccountState:0};
this.addCuren = true
}
},
initColums() {
......@@ -953,10 +966,18 @@
width: 80,
formatter: function (rowData, rowIndex, pagingIndex, field) {
let text = that.$t('hotel.hotel_people')
return rowData.SettlementType == 1 ?
rowData.Commission.toFixed(2) + "%" :
rowData.Commission + "/" + text;
let commissionStr="";
if (rowData.SettlementType=="1") {
commissionStr= rowData.Commission.toFixed(2) + "%" ;
}else if (rowData.SettlementType=="2") {
commissionStr= rowData.Commission + "/" + text ;
}
else{
commissionStr= rowData.Commission.toFixed(2) + "%"+'&nbsp;&nbsp;&nbsp;&nbsp;' + rowData.Commission + "/" + text ;
}
return commissionStr;
},
filterMultiple: true,
result: [],
filters: [{
......@@ -1014,7 +1035,7 @@
type: "check"
};
let signingLine = {
field: "SigningLine",
field: "LineList",
title: that.$t('fnc.qyluxian'),
titleAlign: "left",
columnAlign: "left",
......@@ -1033,6 +1054,22 @@
isResize: true,
width: 80
};
let accountState = {
field: "AccountState",
title: "状态",
titleAlign: "left",
columnAlign: "left",
isResize: true,
width: 40,
formatter: function (rowData, rowIndex, pagingIndex, field) {
let accountStateStr="";
if(rowData.AccountState==0){accountStateStr="待审核"}
else if(rowData.AccountState==1){accountStateStr="正常"}
else if(rowData.AccountState==2){accountStateStr="已驳回"}
else{accountStateStr=""}
return accountStateStr;
},
};
let remark = {
field: "Remark",
title: that.$t('hotel.hotel_remark'),
......@@ -1048,7 +1085,7 @@
title: that.$t('hotel.table_operat'),
titleAlign: "left",
columnAlign: "left",
width: 80,
width: 120,
isResize: false,
componentName: 'table-operation'
};
......@@ -1062,6 +1099,7 @@
this.columns.push(contract);
this.columns.push(signingLine);
this.columns.push(bindBank);
this.columns.push(accountState);
this.columns.push(remark);
this.columns.push(opera);
this.isReady = true;
......@@ -1321,6 +1359,11 @@
SettlementDate: "",
SettlementInfo: ""
};
this.examineLoading=false,
this.ExamineMsg={
ID:0,
AccountState:0
},
this.SetProfitLossMsg = {
ID: 0,
EndRate: "",
......@@ -1491,6 +1534,25 @@
err => {}
);
},
examineInstitutions(state) {
this.ExamineMsg.AccountState=state;
this.apipost(
"BankAccount_get_ExaminePlatform", this.ExamineMsg,
res => {
if (res.data.resultCode == 1) {
this.innerVisible = false;
this.$message.success(res.data.message);
} else {
this.$message.error(res.data.message);
}
this.ExamineMsg = {ID:0,AccountState:0};
this.examineLoading = false;
this.getList();
},
err => {}
);
},
initAddMsg() {
//初始化添加、修改数据
let newMsg = {
......@@ -1588,12 +1650,12 @@
}
},
mounted() {
if(this.pagesTitle&&this.pagesTitle=='审核'){
if(this.pagesTitle&&this.pagesTitle=='平台账户'){
this.isExamine = true
console.log('可审核----')
console.log('可审核----',this.isExamine)
}else{
this.isExamine = false
console.log('不能审核---')
console.log('不能审核---',this.isExamine)
}
this.getLineList()
this.msg.pageSize = this.calcPageSize(40);
......@@ -1616,7 +1678,7 @@
},
created() {
Vue.component('table-operation', {
template: `<div style='width:80px;height:40px;background:#fff;text-align:center;position: relative;left:-5px;padding-top: 6px;padding-top:6px;'><el-button type="primary" size='mini' icon="el-icon-edit" circle @click="update(rowData,index)"></el-button><el-button type="danger" size='mini' icon="el-icon-delete" circle @click="deleteRow(rowData,index)"></el-button></div>`,
template: `<div style='width:120px;height:40px;background:#fff;text-align:center;position: relative;left:-5px;padding-top: 6px;padding-top:6px;'><el-button type="primary" size='mini' icon="el-icon-edit" circle @click="update(rowData,index)"></el-button><el-button type="danger" size='mini' icon="el-icon-delete" circle @click="deleteRow(rowData,index)"></el-button><el-button v-if="rowData.AccountState==0&isExamine" type="examine" size='mini' icon="el-icon-check avatar-uploader-icon" circle @click="examineRow(rowData,index)"></el-button></div>`,
props: {
rowData: {
type: Object
......@@ -1643,6 +1705,14 @@
alias: this.rowData.Alias
};
this.$emit('on-custom-comp', params);
},
examineRow() {
let params = {
type: 'examine',
id: this.rowData.ID,
alias: this.rowData.Alias
};
this.$emit('on-custom-comp', params);
}
}
})
......
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