From 8c1c1f6e609277799842d3fefb3e86a7d876618b Mon Sep 17 00:00:00 2001 From: xiaofajia <1665375861@qq.com> Date: Mon, 18 Nov 2024 19:32:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E6=8B=A9=E9=85=8D=E4=BB=B6=E7=94=9F?= =?UTF-8?q?=E6=88=90=E9=87=87=E8=B4=AD=E5=8D=95=E5=B1=95=E7=A4=BA=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E3=80=81=E5=B1=95=E7=A4=BA=E4=BF=AE=E6=94=B9?= =?UTF-8?q?=E4=B8=BA=E6=8A=98=E5=8F=A0=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/repair/tickets/TicketWares.js | 8 + src/api/repair/tickets/Tickets.js | 8 + .../stockOperate/Components/WaresItem.vue | 246 ++++++++++-------- 3 files changed, 155 insertions(+), 107 deletions(-) diff --git a/src/api/repair/tickets/TicketWares.js b/src/api/repair/tickets/TicketWares.js index a9bbf66..71e6906 100644 --- a/src/api/repair/tickets/TicketWares.js +++ b/src/api/repair/tickets/TicketWares.js @@ -80,3 +80,11 @@ export function getById(id){ method: 'get' }) } + +// 根据选择的配件生成采购单需要的数据 +export function getByIds(ids){ + return request({ + url: preUrl + "/getByIds?ids=" + ids, + method: 'get' + }) +} diff --git a/src/api/repair/tickets/Tickets.js b/src/api/repair/tickets/Tickets.js index f384792..b5c8a5b 100644 --- a/src/api/repair/tickets/Tickets.js +++ b/src/api/repair/tickets/Tickets.js @@ -192,3 +192,11 @@ export function overOrder(data){ data }) } + +// 根据工单ID查客户和车辆信息 +export function getCusAndCarById(id){ + return request({ + url: preUrl + "/getCusAndCarById?id=" + id, + method: 'get' + }) +} diff --git a/src/views/repair/stockOperate/Components/WaresItem.vue b/src/views/repair/stockOperate/Components/WaresItem.vue index 6cd2493..ec4bf77 100644 --- a/src/views/repair/stockOperate/Components/WaresItem.vue +++ b/src/views/repair/stockOperate/Components/WaresItem.vue @@ -71,6 +71,7 @@ :row-class-name="getRowClass" @selection-change="handleSelect" :key="tableKey" + ref="tableRef" > @@ -108,94 +109,110 @@ - - -