zhaoxiaoqiang1
2026-01-04 f1d30d03186c79ca2cbcfe60d6d2ce7d73fba97b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
<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>