From 745059a8eb85e0bc705a5f0fb808e3d3c30f2202 Mon Sep 17 00:00:00 2001 From: 13405411873 <1994398261@qq.com> Date: Thu, 24 Oct 2024 22:29:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E4=B8=9A=E5=8A=A1=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/repair/orderinfo/index.js | 2 +- src/views/repair/orderinfo/index.vue | 558 +++++++++++++-------------- 2 files changed, 280 insertions(+), 280 deletions(-) diff --git a/src/api/repair/orderinfo/index.js b/src/api/repair/orderinfo/index.js index 31ac54e..73504c7 100644 --- a/src/api/repair/orderinfo/index.js +++ b/src/api/repair/orderinfo/index.js @@ -56,7 +56,7 @@ export function exportOrderInfoExcel(params) { export function toPay(params) { return request({ - url: '/admin-api/pay/toPay', + url: '/admin-api/pay/toPayCode', method: 'get', params }) diff --git a/src/views/repair/orderinfo/index.vue b/src/views/repair/orderinfo/index.vue index 2ec39b3..c445307 100644 --- a/src/views/repair/orderinfo/index.vue +++ b/src/views/repair/orderinfo/index.vue @@ -1,289 +1,289 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - +--> - - - - - - - - + }, + /** 添加/修改操作 */ + openForm(id) { + this.$refs["formRef"].open(id); + }, + /** 删除按钮操作 */ + async handleDelete(row) { + const id = row.id; + await this.$modal.confirm('是否确认删除维修模块 订单编号为"' + row.orderNo + '"的数据项?') + try { + await OrderInfoApi.deleteOrderInfo(id); + await this.getList(); + this.$modal.msgSuccess("删除成功"); + } catch { + } + }, + /** 导出按钮操作 */ + async handleExport() { + await this.$modal.confirm('是否确认导出所有维修模块 订单数据项?'); + try { + this.exportLoading = true; + const data = await OrderInfoApi.exportOrderInfoExcel(this.queryParams); + this.$download.excel(data, '维修模块 订单.xls'); + } catch { + } finally { + this.exportLoading = false; + } + }, + async getCensus() { + const res = await getOrderCensus() + this.census = res.data + }, + } +}; + +--> +.signedPay { + color: orange; +} +