errorIndex.vue 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <template>
  2. <div class="app-container">
  3. <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="90px">
  4. <!-- <el-form-item label="订单编号" prop="businessCode">-->
  5. <!-- <el-input-->
  6. <!-- v-model="queryParams.businessCode"-->
  7. <!-- placeholder="请输入订单号"-->
  8. <!-- clearable-->
  9. <!-- size="small"-->
  10. <!-- @keyup.enter.native="handleQuery"-->
  11. <!-- />-->
  12. <!-- </el-form-item>-->
  13. <el-form-item label="外部订单" prop="tradeNo">
  14. <el-input
  15. v-model="queryParams.tradeNo"
  16. placeholder="请输入外部订单号"
  17. clearable
  18. size="small"
  19. @keyup.enter.native="handleQuery"
  20. />
  21. </el-form-item>
  22. <el-form-item label="业务类型" prop="businessType">
  23. <el-select v-model="queryParams.businessType" placeholder="请选择业务类型" clearable size="small">
  24. <el-option
  25. v-for="dict in busineOptions"
  26. :key="dict.dictValue"
  27. :label="dict.dictLabel"
  28. :value="dict.dictValue"
  29. />
  30. </el-select>
  31. </el-form-item>
  32. <el-form-item label="状态" prop="status">
  33. <el-select v-model="queryParams.status" placeholder="请选择状态" clearable size="small">
  34. <el-option
  35. v-for="dict in statusOptions"
  36. :key="dict.dictValue"
  37. :label="dict.dictLabel"
  38. :value="dict.dictValue"
  39. />
  40. </el-select>
  41. </el-form-item>
  42. <el-form-item>
  43. <el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
  44. <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
  45. </el-form-item>
  46. </el-form>
  47. <el-table height="600" v-loading="loading" border :data="storePaymentList" @selection-change="handleSelectionChange">
  48. <!-- <el-table-column type="selection" width="55" align="center" />-->
  49. <el-table-column label="订单编号" align="center" prop="orderNo" width="170px"/>
  50. <el-table-column label="外部单号" align="center" prop="orderFlowNo" width="350px"/>
  51. <el-table-column label="业务类型 " align="center" prop="businessType" width="100">
  52. <template slot-scope="scope">
  53. <dict-tag :options="busineOptions" :value="scope.row.businessType"/>
  54. </template>
  55. </el-table-column>
  56. <!-- <el-table-column label="状态" align="center" prop="status">-->
  57. <!-- <template slot-scope="scope">-->
  58. <!-- <dict-tag :options="statusOptions" :value="scope.row.status"/>-->
  59. <!-- </template>-->
  60. <!-- </el-table-column>-->
  61. <el-table-column label="错误信息" align="center" prop="msg" />
  62. <el-table-column label="创建时间" align="center" prop="createTime" width="155" />
  63. </el-table>
  64. <pagination
  65. v-show="total>0"
  66. :total="total"
  67. :page.sync="queryParams.pageNum"
  68. :limit.sync="queryParams.pageSize"
  69. @pagination="getList"
  70. />
  71. </div>
  72. </template>
  73. <script>
  74. import { listStorePaymentError } from "@/api/his/storePayment";
  75. export default {
  76. name: "StoreErrorPayment",
  77. data() {
  78. return {
  79. busineOptions:[],
  80. // 选中数组
  81. ids: [],
  82. // 非单个禁用
  83. single: true,
  84. // 非多个禁用
  85. multiple: true,
  86. // 显示搜索条件
  87. showSearch: true,
  88. // 总条数
  89. total: 0,
  90. // 支付明细表格数据
  91. storePaymentList: [],
  92. payModeOptions:[],
  93. shareOptions:[],
  94. // 弹出层标题
  95. title: "",
  96. // 是否显示弹出层
  97. open: false,
  98. // 状态 0未处理 1已处理
  99. statusOptions: [
  100. {dictValue:'0',dictLabel:"未处理"},
  101. {dictValue:'1',dictLabel:"已处理"}
  102. ],
  103. // 查询参数
  104. queryParams: {
  105. pageNum: 1,
  106. pageSize: 10,
  107. businessType: null,
  108. status: '0',
  109. },
  110. // 表单参数
  111. form: {},
  112. // 表单校验
  113. rules: {
  114. }
  115. };
  116. },
  117. created() {
  118. this.getList();
  119. this.getDicts("sys_store_payment_business_type").then(response => {
  120. this.busineOptions = response.data;
  121. });
  122. },
  123. methods: {
  124. /** 查询支付明细列表 */
  125. getList() {
  126. this.loading = true;
  127. listStorePaymentError(this.queryParams).then(response => {
  128. this.storePaymentList = response.rows;
  129. this.total = response.total;
  130. this.loading = false;
  131. });
  132. },
  133. // 表单重置
  134. reset() {
  135. this.form = {
  136. paymentId: null,
  137. payCode: null,
  138. payTypeCode: null,
  139. payMoney: null,
  140. payTime: null,
  141. createTime: null,
  142. tradeNo: null,
  143. userId: null,
  144. openId: null,
  145. businessType: null,
  146. businessId: null,
  147. status: 0,
  148. remark: null,
  149. bankTransactionId: null,
  150. bankSerialNo: null,
  151. refundMoney: null,
  152. refundTime: null,
  153. storeId: null
  154. };
  155. this.resetForm("form");
  156. },
  157. /** 搜索按钮操作 */
  158. handleQuery() {
  159. this.queryParams.pageNum = 1;
  160. this.getList();
  161. },
  162. /** 重置按钮操作 */
  163. resetQuery() {
  164. this.resetForm("queryForm");
  165. this.handleQuery();
  166. },
  167. // 多选框选中数据
  168. handleSelectionChange(selection) {
  169. this.ids = selection.map(item => item.paymentId)
  170. this.single = selection.length!==1
  171. this.multiple = !selection.length
  172. }
  173. }
  174. };
  175. </script>