You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

supplyCardBalance.vue 4.3KB

3 years ago
3 years ago
3 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  1. <template>
  2. <div class="app_container">
  3. <div class="menu">
  4. <el-form :inline="true" :model="formInline" class="demo-form-inline">
  5. <el-form-item label="卡号">
  6. <el-input v-model="formInline.user" placeholder="请输入卡号" />
  7. </el-form-item>
  8. <el-form-item>
  9. <el-button type="primary">读卡</el-button>
  10. <el-button :icon="Search" type="primary">查询</el-button>
  11. <el-button type="info">重置</el-button>
  12. <el-button :icon="download" type="primary">人工录入</el-button>
  13. </el-form-item>
  14. </el-form>
  15. </div>
  16. <el-table :data="tableData" border style="width: 100%" class="table_box" scrollbar-always-on="true" stripe >
  17. <el-table-column prop="date" label="序号" width="100px"/>
  18. <el-table-column prop="name" label="卡号" />
  19. <el-table-column prop="address" label="客户名称" />
  20. <el-table-column prop="number" label="车牌号码" />
  21. <el-table-column prop="regtime" label="车牌颜色" />
  22. <el-table-column prop="type" label="补卡金额" />
  23. <el-table-column prop="regtime" label="录入时间" />
  24. <el-table-column label="操作" class="table_btn" width="150px" align="center">
  25. <el-tooltip content="详细" placement="top">
  26. <el-button type="warning" @click="dialogFormVisible = true">查看详细</el-button>
  27. </el-tooltip>
  28. </el-table-column>
  29. </el-table>
  30. <div class="page_box">
  31. <el-pagination :page-size="20" :pager-count="11" layout="prev, pager, next" :total="1000" />
  32. </div>
  33. <el-dialog v-model="dialogFormVisible" title="补卡详细">
  34. <el-form :model="form">
  35. <el-form-item label="手机号" :label-width="formLabelWidth">
  36. <el-input v-model="form.phone" autocomplete="off" disabled />
  37. </el-form-item>
  38. <el-form-item label="验证码" :label-width="formLabelWidth">
  39. <el-input v-model="form.region" autocomplete="off" />
  40. </el-form-item>
  41. </el-form>
  42. <template #footer>
  43. <span class="dialog-footer">
  44. <el-button @click="dialogFormVisible = false">确定</el-button>
  45. <el-button type="primary" @click="dialogFormVisible = false">关闭</el-button>
  46. </span>
  47. </template>
  48. </el-dialog>
  49. </div>
  50. </template>
  51. <script lang="ts" setup>
  52. import {
  53. Search,
  54. Dwnload
  55. } from '@element-plus/icons-vue'
  56. import {
  57. reactive,
  58. ref
  59. } from 'vue'
  60. const formInline = reactive({
  61. user: '',
  62. region: '',
  63. })
  64. const onSubmit = () => {
  65. console.log('submit!')
  66. }
  67. let title = ref("对公账户信息")
  68. const options = [{
  69. value: '',
  70. label: '全部',
  71. },
  72. {
  73. value: '1',
  74. label: '驳回',
  75. },
  76. {
  77. value: '0',
  78. label: '待审核',
  79. },
  80. {
  81. value: '1',
  82. label: '已启用',
  83. },
  84. {
  85. value: '2',
  86. label: '待修改初始密码',
  87. },
  88. ]
  89. const value1 = ref('')
  90. const value2 = ref('')
  91. const value3 = ref('')
  92. const value4 = ref('')
  93. const dialogTableVisible = ref(false)
  94. const dialogFormVisible = ref(false)
  95. const formLabelWidth = '140px'
  96. const form = reactive({
  97. phone: '13078580843',//手机号
  98. region: '',//验证码
  99. delivery: false,//是否展示详细
  100. number:''//对公账户资金账户编号
  101. })
  102. const optiones = [{
  103. value: '2',
  104. label: '2',
  105. },
  106. {
  107. value: '6',
  108. label: '6',
  109. },
  110. {
  111. value: '10',
  112. label: '10',
  113. },
  114. {
  115. value: '15',
  116. label: '15',
  117. },
  118. {
  119. value: '30',
  120. label: '30',
  121. },
  122. ]
  123. const defaultTime = new Date(2000, 1, 1, 12, 0, 0)
  124. const shortcuts = [{
  125. text: 'Today',
  126. value: new Date(),
  127. },
  128. {
  129. text: 'Yesterday',
  130. value: () => {
  131. const date = new Date()
  132. date.setTime(date.getTime() - 3600 * 1000 * 24)
  133. return date
  134. },
  135. },
  136. {
  137. text: 'A week ago',
  138. value: () => {
  139. const date = new Date()
  140. date.setTime(date.getTime() - 3600 * 1000 * 24 * 7)
  141. return date
  142. },
  143. },
  144. ]
  145. const tableData = [{
  146. date: '01',
  147. name: '52011750220200003674',
  148. address: '安顺市顺安防雷安全检测站平坝分站',
  149. number: "贵AC0263",
  150. time: "2021-06-22T12:52:17",
  151. type: "100.00",
  152. regname: "xn18096012008",
  153. regtime: "蓝色"
  154. }
  155. ]
  156. </script>
  157. <style lang="scss">
  158. .app_container {
  159. padding: 20px;
  160. display: flex;
  161. flex-direction: column;
  162. .table_box {
  163. margin-top: 25px;
  164. .table_btn{
  165. display: flex;
  166. flex-direction: column;
  167. align-self: stretch;
  168. align-content: space-around;
  169. align-items: flex-start;
  170. }
  171. }
  172. .page_box {
  173. margin-top: 25px;
  174. }
  175. }
  176. </style>