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 @@ - - -