<template>
|
<div class="menuPage">
|
<div class="selectMenu">
|
<div class="selectOptions">
|
<div class="subMenuItem">
|
<span>客户名称:</span>
|
<el-input placeholder="请输入客户姓名" v-model="searchData.userName" clearable style="width: 197px;">
|
</el-input>
|
</div>
|
<div class="subMenuItem">
|
<span>银行卡:</span>
|
<el-input placeholder="请输入银行卡号" v-model="searchData.bank" clearable style="width: 197px;">
|
</el-input>
|
</div>
|
<div class="subMenuItem">
|
<span>手机号:</span>
|
<el-input placeholder="请输入客户手机号" v-model="searchData.phone" clearable style="width: 197px;">
|
</el-input>
|
</div>
|
<div class="subMenuItem">
|
<span>开始日期:</span>
|
<el-date-picker v-model="searchData.offStart" type="date" placeholder="选择开始日期" format="yyyy - MM - dd " value-format="yyyy-MM-dd"
|
style="width: 197px;">
|
</el-date-picker>
|
</div>
|
<div class="subMenuItem">
|
<span>结束日期:</span>
|
<el-date-picker v-model="searchData.offEnd" style="width: 197px;" type="date" placeholder="选择结束日期" format="yyyy - MM - dd " value-format="yyyy-MM-dd">
|
</el-date-picker>
|
</div>
|
<div class="subMenuItem">
|
<span>订单号:</span>
|
<el-input placeholder="请输入订单号" v-model="searchData.orderNum" clearable style="width: 197px;"></el-input>
|
</div>
|
</div>
|
<div class="selectBtn">
|
<div class="center">
|
<el-button @click="search" type="primary">查询</el-button>
|
<el-button type="warning" @click="reset">重置</el-button>
|
</div>
|
</div>
|
<div class="channelMenu">
|
<div class="add">
|
<el-button type="primary" @click="add">新增</el-button>
|
</div>
|
<div class="channelMenuTitle">
|
<div v-for="(item,index) in queryChannelRespDto.tableTitle" :key="index" :style="tableWidth()">{{item}}</div>
|
</div>
|
<div class="channelMenuContent">
|
<form class="contentItem" v-for="(items,index) in menuItems" :key="index">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
<input class="contentValue" disabled :style="tableWidth()">
|
</form>
|
</div>
|
</div>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
data() {
|
return {
|
menuItems: ["1"],
|
searchData: {
|
userName: "",
|
bank: "",
|
phone: "",
|
offStart: "",
|
offEnd: "",
|
orderNum: ""
|
},
|
queryChannelRespDto: {
|
tableTitle: [
|
"退款单号",
|
"客户名称",
|
"银行卡号",
|
"手机号",
|
"银行名称",
|
"支付公司",
|
"商户号",
|
"交易类型",
|
"订单号",
|
"订单金额",
|
"子订单",
|
"子订单金额",
|
"支付单号",
|
"退款金额",
|
"交易时间",
|
"交易状态",
|
"备注"
|
]
|
}
|
};
|
},
|
methods: {
|
// 表单适应宽度
|
tableWidth() {
|
return "width:" + 100 / (this.queryChannelRespDto.tableTitle.length) + "%";
|
},
|
search() {
|
console.log(this.searchData);
|
},
|
reset() {
|
this.searchData = {};
|
},
|
add() {
|
|
}
|
}
|
};
|
</script>
|
|
<style lang="less" scoped>
|
.menuPage {
|
width: 100%;
|
padding: 0px 0px;
|
overflow: hidden;
|
.selectMenu {
|
width: 100%;
|
overflow: hidden;
|
border-radius: 8px;
|
.selectOptions {
|
width: 60%;
|
overflow: hidden;
|
border-bottom: 1px solid #eee;
|
.subMenuItem {
|
width: 50%;
|
float: left;
|
padding: 8px 0px;
|
color: black;
|
> span {
|
display: inline-block;
|
font-size: 14px;
|
width: 26%;
|
height: 100%;
|
text-align: right;
|
}
|
}
|
}
|
.selectBtn {
|
width: 60%;
|
height: 100%;
|
padding: 10px 0px;
|
.center {
|
margin-left: 50%;
|
transform: translateX(-50%);
|
> button {
|
padding: 8px 23px;
|
margin-right: 20px;
|
}
|
}
|
}
|
.channelMenu {
|
width: 100%;
|
margin-top: 20px;
|
border-top: 1px solid #ccc;
|
.channelMenuTitle {
|
width: 100%;
|
height: 30px;
|
> div {
|
height: 100%;
|
float: left;
|
background-color: #333333;
|
border: 1px solid #999;
|
line-height: 30px;
|
text-align: center;
|
color: white;
|
font-size: 14px;
|
width: 12.5%;
|
margin-right: -1px;
|
}
|
}
|
.add {
|
margin: 10px 0px 5px;
|
}
|
.channelMenuContent {
|
width: 100%;
|
.contentItem {
|
width: 100%;
|
height: 36px;
|
> .contentValue {
|
float: left;
|
width: 12.5%;
|
height: 36px;
|
border: 1px solid #797979;
|
border-top: none;
|
text-align: center;
|
line-height: 36px;
|
background-color: #fff;
|
margin-right: -1px;
|
> button {
|
border: 1px solid #eee;
|
background-color: #66b1ff;
|
width: 50px;
|
height: 70%;
|
border-radius: 6px;
|
outline: none;
|
}
|
}
|
}
|
}
|
}
|
}
|
}
|
</style>
|