资产配置

main
qinzhenpen 1 year ago
parent 2f55831e22
commit dc23d8fbb2

@ -49,7 +49,7 @@
{{scope.row.availableFunds || 0}} {{scope.row.availableFunds || 0}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="intoAccount" header-align="center" align="center" label="转入账户"> <el-table-column prop="intoAccount" header-align="center" align="center" label="转入账户" class-name="AmountValue">
<template slot-scope="scope"> <template slot-scope="scope">
<template v-if="accountTypeMap[scope.row.name] == '银行账户'"> <template v-if="accountTypeMap[scope.row.name] == '银行账户'">
<el-select v-model="scope.row.value" placeholder="请选择"> <el-select v-model="scope.row.value" placeholder="请选择">
@ -66,14 +66,14 @@
</template> </template>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="zzje" header-align="center" align="center" label="转账金额"> <el-table-column prop="zzje" header-align="center" align="center" label="转账金额" class-name="AmountValue">
<template slot-scope="scope"> <template slot-scope="scope">
<el-input v-model="scope.row.input"></el-input> <el-input v-model="scope.row.input"></el-input>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="messageAcceptState" header-align="center" align="center" label="操作" width="120"> <el-table-column prop="messageAcceptState" header-align="center" align="center" label="操作" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
<el-link type="primary" :underline="false" @click="">确定</el-link> <el-link type="primary" :underline="false" @click="allOpenAccount(scope.row)"></el-link>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -162,7 +162,10 @@
type="daterange" type="daterange"
range-separator="至" range-separator="至"
start-placeholder="开始日期" start-placeholder="开始日期"
end-placeholder="结束日期"> end-placeholder="结束日期"
value-format="timestamp"
@change="getPageList"
>
</el-date-picker> </el-date-picker>
</el-row> </el-row>
<el-table <el-table
@ -295,18 +298,29 @@ export default {
this.$message({message: ret.msg,type: 'error'}); this.$message({message: ret.msg,type: 'error'});
} }
}); });
}, },
allOpenAccount(){ // allOpenAccount(val){ //
let value=''
if(val.hasOwnProperty('value')){
value=val.value
}else{
this.tableData.forEach(item=>{
if(item.name=='BANK_ACCOUNT'){
value=item.applicationId
}
})
}
let param = { let param = {
studentId:this.identityInfo.studentId, studentId:this.identityInfo.studentId,
toAccountsApplicationId:"",// toAccountsApplicationId:value,//
outAccountsApplicationId:"",// outAccountsApplicationId:val.applicationId,//
money:"",// money:val.input,//
} }
this.$post("/api/studentAccountAssetAllocation/allOpenAccount.do",param).then((ret) =>{ this.$post("/api/studentAccountAssetAllocation/allOpenAccount.do",param).then((ret) =>{
if(ret.code == 0){ if(ret.code == 0){
this.tableData = ret.data; this.tableData = ret.data;
this.getInfo()
}else{ }else{
this.$message({message: ret.msg,type: 'error'}); this.$message({message: ret.msg,type: 'error'});
} }
@ -324,8 +338,8 @@ export default {
getPageList(){ //List getPageList(){ //List
let param = { let param = {
studentId:this.identityInfo.studentId, studentId:this.identityInfo.studentId,
startTime:"", startTime:this.value1[0],
endTime:"", endTime:this.value1[1],
} }
this.$post("/api/studentAccountTradingRecordSheet/getPageList.do",param).then((ret) =>{ this.$post("/api/studentAccountTradingRecordSheet/getPageList.do",param).then((ret) =>{
if(ret.code == 0){ if(ret.code == 0){
@ -347,7 +361,8 @@ export default {
this.$addSystemUseLog(param); this.$addSystemUseLog(param);
},timeNum); },timeNum);
// //
} },
}, },
beforeDestroy() { beforeDestroy() {
clearInterval(this.timeIn); // clearInterval(this.timeIn); //
@ -388,5 +403,14 @@ export default {
line-height: 23px; line-height: 23px;
} }
} }
.AmountValue{
padding: 0;
.cell{
padding: 0 !important;
.el-input__inner{
border-radius: 0;
}
}
}
</style> </style>
<!-- Add "scoped" attribute to limit CSS to this component only --> <!-- Add "scoped" attribute to limit CSS to this component only -->

Loading…
Cancel
Save