Commit c8f9e203 authored by liudong1993's avatar liudong1993

1 平台回款天数

parent 7f6bacbc
......@@ -279,6 +279,11 @@
<el-date-picker type="date" v-model="addMsg.BeginTimeStr" value-format="yyyy-MM-dd"></el-date-picker>
</el-form-item>
</el-col>
<el-col :span="4" :gutter="35">
<el-form-item label="提现回团天数">
<el-input v-model="addMsg.WithdrawDays" type="number" class></el-input>
</el-form-item>
</el-col>
<el-col :span="24" :gutter="35">
<el-form-item :label="$t('fnc.beizhu')">
<el-input type='textarea' v-model="addMsg.Remark" class></el-input>
......@@ -342,6 +347,20 @@
</el-row>
</el-form>
</div>
<el-dialog custom-class='w400' title="修改回团几天后可提现" :visible.sync="DaysShow" center>
<template>
<el-form label-width="100px">
<el-form-item label="回团后天数">
<el-input v-model="DaysMsg.WithdrawDays" class="w200"></el-input>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="DaysShow=false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="setWithdrawDays">{{$t('pub.sureBtn')}}</button>
</div>
</template>
</el-dialog>
</div>
</template>
<script>
......@@ -426,7 +445,8 @@
ContractArray: [],
ContractUrl: "",
SettlementDate: "",
SettlementInfo: ""
SettlementInfo: "",
WithdrawDays:0
},
getCompanyMsg: {
RB_Group_Id: "0",
......@@ -575,7 +595,12 @@
},
costType: [],
LineList: [],
LineIDdisabled: false
LineIDdisabled: false,
DaysShow: false,
DaysMsg:{
AccountId:0,
WithdrawDays:0
}
};
},
methods: {
......@@ -602,11 +627,11 @@
}, (res) => {
if (res.data.resultCode == 1) {
this.LineList = res.data.data;
let arr = function(list){
list.forEach(x=>{
x.disabled = true
})
}
// let arr = function(list){
// list.forEach(x=>{
// x.disabled = true
// })
// }
}
});
},
......@@ -657,6 +682,12 @@
this.ExamineMsg = {ID:params.id,AccountState:0};
this.addCuren = true
}
else if(params.type === 'days'){
this.DaysMsg.AccountId = params.id;
this.DaysMsg.WithdrawDays = params.WithdrawDays;
this.DaysShow = true;
}
},
initColums() {
this.isReady = false;
......@@ -846,6 +877,20 @@
return `<span style='color:gray'>${rowData.Remark?rowData.Remark:''}</span>`;
},
};
let withdrawDays = {
field: "WithdrawDays",
title: "提现天数",
titleAlign: "left",
columnAlign: "left",
isResize: true,
width: 20,
formatter: function (rowData, rowIndex, pagingIndex, field) {
let accountStateStr="";
if(rowData.WithdrawDays==0){accountStateStr="-"}
else{accountStateStr=rowData.WithdrawDays}
return accountStateStr;
},
};
let opera = {
title: that.$t('hotel.table_operat'),
titleAlign: "left",
......@@ -866,6 +911,7 @@
this.columns.push(bindBank);
this.columns.push(accountState);
this.columns.push(remark);
this.columns.push(withdrawDays);
this.columns.push(opera);
this.isReady = true;
},
......@@ -983,24 +1029,6 @@
this.showEmployeeList2 = [];
}
},
disabledOption() {
// 选择公司 如果选择通用则禁用其它选项
if (this.addMsg.BranchIdS && this.addMsg.BranchIdS.length == 0) {
this.CompanyList.forEach(y => {
y.disabled = false;
});
return;
}
this.addMsg.BranchIdS.forEach(x => {
if (x == "-1") {
this.addMsg.BranchIdS = [];
this.addMsg.BranchIdS.push("-1");
this.CompanyList.forEach(y => {
y.disabled = true;
});
}
});
},
getfinanceinfoList() {
//获取币种列表
this.apipost(
......@@ -1141,7 +1169,8 @@
FinanceNo: "",
ContractUrl: "",
SettlementDate: "",
SettlementInfo: ""
SettlementInfo: "",
WithdrawDays:0
};
this.examineLoading=false,
this.ExamineMsg={
......@@ -1381,6 +1410,23 @@
err => {}
);
},
setWithdrawDays(){
if(this.DaysMsg.AccountId<=0){this.tips('参数不正确','error');}
this.apipost(
"BankAccount_post_SetPlatformWithdrawDays",
this.DaysMsg,
res => {
if (res.data.resultCode == 1) {
this.tips(res.data.message, "success");
this.DaysShow = false;
this.getList();
} else {
this.tips(res.data.message, "error");
}
},
err => {}
);
},
submitForm(addMsg, type) {
//提交创建、修改表单
this.$refs[addMsg].validate(valid => {
......@@ -1466,6 +1512,7 @@
Vue.component('table-operation', {
template: `<div style='width:120px;height:40px;background:#fff;text-align:center;position: relative;left:-5px;padding-top: 6px;padding-top:6px;'>
<el-button v-if="rowData.isExamine==false" type="primary" size='mini' icon="el-icon-edit" circle @click="update(rowData,index)"></el-button>
<el-button v-if="rowData.isExamine==false" type="success" size='mini' icon="el-icon-share" circle @click="editDays(rowData,index)"></el-button>
<el-button v-if="rowData.isExamine==false" type="danger" size='mini' icon="el-icon-delete" circle @click="deleteRow(rowData,index)"></el-button>
<el-button v-if="rowData.AccountState==0&&rowData.isExamine" type="examine" size='mini' icon="el-icon-check avatar-uploader-icon" circle
@click="examineRow(rowData,index)"></el-button></div>`,
......@@ -1488,6 +1535,14 @@
};
this.$emit('on-custom-comp', params);
},
editDays() {
let params = {
type: 'days',
id: this.rowData.ID,
WithdrawDays:this.rowData.WithdrawDays
};
this.$emit('on-custom-comp', params);
},
deleteRow() {
let params = {
type: 'delete',
......
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