DeliverySettlement.vue 6.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. <template>
  2. <div class="table" style="color: #666">
  3. <div class="crumbs">
  4. <el-breadcrumb separator="/">
  5. <el-breadcrumb-item><i class="el-icon-lx-cascades"></i> 配送员管理</el-breadcrumb-item>
  6. </el-breadcrumb>
  7. </div>
  8. <div class="container" style="margin-top:10px">
  9. <div>
  10. <el-row style="margin-top:20px;">
  11. <el-col :span="6">
  12. <span style="font-size: 13px">配送员类型</span>
  13. <el-select style="margin-left: 25px;" v-model="storeId">
  14. <el-option label="取餐员" value="1"></el-option>
  15. <el-option label="配送员" value="2"></el-option>
  16. <el-option label="爬楼员" value="3"></el-option>
  17. </el-select>
  18. </el-col>
  19. <el-col :span="6">
  20. <span style="font-size: 13px">提现状态</span>
  21. <el-select style="margin-left: 25px;" v-model="status">
  22. <el-option label="申请中" value="1"></el-option>
  23. <el-option label="提现成功" value="2"></el-option>
  24. <el-option label="提现失败" value="3"></el-option>
  25. </el-select>
  26. </el-col>
  27. <el-col :span="6">
  28. <span style="font-size: 13px;">姓名</span>
  29. <el-input v-model="name" style="width: 205px;margin-left: 25px;" placeholder="请输入姓名" > </el-input>
  30. </el-col>
  31. <el-col :span="2">
  32. <el-button type="primary">
  33. 查询
  34. </el-button>
  35. </el-col>
  36. </el-row>
  37. </div>
  38. <div class="order-table" style="margin-top: 20px;">
  39. <el-table
  40. :data="tableData"
  41. border
  42. style="width: 100%">
  43. <el-table-column
  44. fixed
  45. prop="type"
  46. label="类型"
  47. width="120">
  48. </el-table-column>
  49. <el-table-column
  50. prop="deliverName"
  51. label="配送员姓名"
  52. width="120">
  53. </el-table-column>
  54. <el-table-column
  55. prop="money"
  56. label="提现金额"
  57. width="120">
  58. </el-table-column>
  59. <el-table-column
  60. prop="status"
  61. label="提现状态"
  62. width="120">
  63. </el-table-column>
  64. <el-table-column
  65. prop="wxNumber"
  66. label="打款微信号"
  67. width="120">
  68. </el-table-column>
  69. <el-table-column
  70. prop="paymentTime"
  71. label="打款时间"
  72. width="120">
  73. </el-table-column>
  74. <el-table-column
  75. prop="wxSerialNumber"
  76. label="微信流水号">
  77. </el-table-column>
  78. <el-table-column
  79. prop="applyTime"
  80. label="申请时间">
  81. </el-table-column>
  82. <el-table-column
  83. label="操作">
  84. <template slot-scope="scope">
  85. <el-button type="danger" size="small">打款</el-button>
  86. <el-button @click="handleClick(scope.row)" type="primary" size="small">拒绝</el-button>
  87. </template>
  88. </el-table-column>
  89. </el-table>
  90. </div>
  91. <el-pagination
  92. style="margin-top: 10px;"
  93. background
  94. @size-change="handleSizeChange"
  95. @current-change="handleCurrentChange"
  96. :current-page="currentPage4"
  97. :page-sizes="[10, 20, 30, 40]"
  98. :page-size="10"
  99. layout="total, sizes, prev, pager, next, jumper"
  100. :total="40">
  101. </el-pagination>
  102. </div>
  103. </div>
  104. </template>
  105. <script>
  106. import dptable from '@/components/common/Dptable.vue'
  107. export default {
  108. components: {
  109. dptable
  110. },
  111. data(){
  112. return {
  113. tabIndex: "all",
  114. options: [
  115. {
  116. id: '1',
  117. value: '1',
  118. label: '特色美食店'
  119. }
  120. ],
  121. storeId: '',
  122. status: '',
  123. name: '',
  124. buildingId: '',
  125. orderNum: '',
  126. taker: '',
  127. deliveryer: '',
  128. staier: '',
  129. makeTime: '',
  130. getTime: '',
  131. sendTime: '',
  132. dialogVisible: false,
  133. isExpand: false,
  134. buttonText: '展开',
  135. tableData: [],
  136. options: {
  137. mutiSelect: false, // 是否有前部的多选框
  138. index: false, // 显示序号, 多选则 mutiSelect
  139. initTable: true ,// 是否一挂载就加载数据
  140. height:"500"
  141. },
  142. pagination: {
  143. resultCount: 0,
  144. currentPage: 1,
  145. pageSize: 20
  146. },
  147. columns: [
  148. {
  149. prop: "name",
  150. label: "取餐员姓名",
  151. width: 100,
  152. },
  153. {
  154. prop: "tel",
  155. label: "手机号",
  156. width: 100,
  157. },
  158. {
  159. prop: "sex",
  160. label: "性别",
  161. width: 100,
  162. },
  163. {
  164. button: true,
  165. label: "操作",
  166. width: 100,
  167. group: [
  168. {
  169. name: "选择",
  170. type: "primary",
  171. plain: true,
  172. onClick: (row, index) => {
  173. this.enditRow(row);
  174. }
  175. }
  176. ]
  177. }
  178. ],
  179. userList: [],
  180. currentType: 1,
  181. dialogVisible1: false,
  182. };
  183. },
  184. created() {
  185. this.getDataList();
  186. },
  187. methods: {
  188. closeDialog() {
  189. this.dialogVisible = false
  190. },
  191. handleClick() {
  192. this.dialogVisible1 = true
  193. },
  194. getDataList() {
  195. this.tableData = [
  196. {
  197. type: '配送员',
  198. code: '111',
  199. deliverName: '张鑫鑫',
  200. money: 135.45,
  201. status: '申请中',
  202. balance: 7.92,
  203. income: 7.92,
  204. auth: true,
  205. workStatus: '送餐中',
  206. accountStatus: true,
  207. applyTime: '2023-04-18 15:42:31',
  208. }
  209. ]
  210. },
  211. addDeliver(type) {
  212. if (type == 1) {
  213. this.editTitle = '添加配送员'
  214. } else if (type == 2) {
  215. this.editTitle = '添加爬楼员'
  216. } else if (type == 3) {
  217. this.editTitle = '添加取餐员'
  218. }
  219. this.currentType = type
  220. this.dialogVisible = true
  221. }
  222. }
  223. };
  224. </script>
  225. <style scoped>
  226. .high-light-number {
  227. float: right;
  228. margin-left: 5px;
  229. background:#FF5722;
  230. color:#fff;
  231. padding: 1px 2px;
  232. margin-top: -1px;
  233. }
  234. .order-table {
  235. min-height: 400px;
  236. border: 1px solid #e6e6e6;
  237. border-radius: 2px;
  238. box-sizing: border-box;
  239. font-size: 13px;
  240. }
  241. .order-info {
  242. margin-top: 15px;
  243. }
  244. .trhead {
  245. background: #f2f2f2;
  246. width: 100%;
  247. height: 36px;
  248. }
  249. .tr-border {
  250. border-bottom: 1px solid #E6E6E6;
  251. }
  252. .first-td {
  253. width: 50px;
  254. padding: 10px 0;
  255. }
  256. table {
  257. font-size: 13px;
  258. }
  259. </style>