diff --git a/src/api/repair/tickets/TicketWares.js b/src/api/repair/tickets/TicketWares.js index 3f1d86c..deaa773 100644 --- a/src/api/repair/tickets/TicketWares.js +++ b/src/api/repair/tickets/TicketWares.js @@ -27,3 +27,30 @@ export function removeTicketWares(id){ method: 'delete' }) } + +// 审核 +export function auditTicketWares(data){ + return request({ + url: preUrl + '/audit', + method: 'post', + data + }) +} + +// 仓库通知领料 +export function pass(data){ + return request({ + url: preUrl + '/pass', + method: 'post', + data + }) +} + +// 员工确认领料 +export function repairPassTicketWares(data){ + return request({ + url: preUrl + "/repairPass", + method: "post", + data + }) +} diff --git a/src/views/repair/stockOperate/Components/SoSow.vue b/src/views/repair/stockOperate/Components/SoSow.vue index a0ad199..1bfc489 100644 --- a/src/views/repair/stockOperate/Components/SoSow.vue +++ b/src/views/repair/stockOperate/Components/SoSow.vue @@ -164,7 +164,7 @@ export default { this.loading = false }, getWareHoseName(value){ - return this.warehouseList.find(item => item.id === value).name + return this.warehouseList?.find(item => item.id === value)?.name } } } diff --git a/src/views/repair/stockOperate/Components/SoTable.vue b/src/views/repair/stockOperate/Components/SoTable.vue index edd21de..2385a65 100644 --- a/src/views/repair/stockOperate/Components/SoTable.vue +++ b/src/views/repair/stockOperate/Components/SoTable.vue @@ -188,7 +188,7 @@ export default { /** 保存数据 */ save(row) { if (!this.soByType && row.stock < row.count){ - row.count = 1 + row.count = 0 this.$modal.msgError("库存数量不足") } // 更新表格的数据 diff --git a/src/views/repair/stockOperate/Components/SoiTable.vue b/src/views/repair/stockOperate/Components/SoiTable.vue index 9aae4e6..36e83f4 100644 --- a/src/views/repair/stockOperate/Components/SoiTable.vue +++ b/src/views/repair/stockOperate/Components/SoiTable.vue @@ -161,7 +161,7 @@ export default { }, getWareHoseName(value){ if (!(this.warehouseList && this.warehouseList.length > 0)) return '' - return this.warehouseList.find(item => item.id === value).name + return this.warehouseList.find(item => item.id === value)?.name } } } diff --git a/src/views/repair/stockOperate/Components/WaresItem.vue b/src/views/repair/stockOperate/Components/WaresItem.vue new file mode 100644 index 0000000..4f21de6 --- /dev/null +++ b/src/views/repair/stockOperate/Components/WaresItem.vue @@ -0,0 +1,484 @@ + + + + + diff --git a/src/views/repair/stockOperate/WaresAudit.vue b/src/views/repair/stockOperate/WaresAudit.vue new file mode 100644 index 0000000..bff6e6f --- /dev/null +++ b/src/views/repair/stockOperate/WaresAudit.vue @@ -0,0 +1,33 @@ + + + + + diff --git a/src/views/repair/tickets/Components/TicketManagerItem.vue b/src/views/repair/tickets/Components/TicketManagerItem.vue index 674e7c0..16b91ac 100644 --- a/src/views/repair/tickets/Components/TicketManagerItem.vue +++ b/src/views/repair/tickets/Components/TicketManagerItem.vue @@ -53,7 +53,7 @@ 更多 - 申请领料 - + @@ -159,7 +159,7 @@ - + @@ -175,6 +175,7 @@ diff --git a/src/views/repair/tickets/Components/TicketWares.vue b/src/views/repair/tickets/Components/TicketWares.vue index a0ad1c0..fd17436 100644 --- a/src/views/repair/tickets/Components/TicketWares.vue +++ b/src/views/repair/tickets/Components/TicketWares.vue @@ -36,14 +36,14 @@ @@ -52,13 +52,27 @@ - + + + + + + + + + + + diff --git a/src/views/repair/tickets/form/UpdateRepair.vue b/src/views/repair/tickets/form/UpdateRepair.vue index 53d2f0b..6c722c1 100644 --- a/src/views/repair/tickets/form/UpdateRepair.vue +++ b/src/views/repair/tickets/form/UpdateRepair.vue @@ -186,7 +186,6 @@ export default { try { this.info = row this.loading = true - console.log(row.isLeads) if (!row.isLeads) { const res = await listByTicketId(row.id) this.workerList = res.data