优化打印 优化退单

This commit is contained in:
gyq
2025-03-17 09:47:49 +08:00
parent d08a629b0a
commit 64f539623f
14 changed files with 279 additions and 118 deletions

View File

@@ -87,7 +87,7 @@ function show(item, type = 'add') {
setTimeout(() => {
goodsItem.value.groupSnap.map((item, index) => {
item.goods.map((val, i) => {
selectGroup[index].map(sg => {
selectGroup[index].goods.map(sg => {
if (val.proId == sg.proId) {
tabRefs.value[index].toggleRowSelection(val, true)
}
@@ -158,8 +158,9 @@ function confirmHandle() {
let goodIds = []
goodsItem.value.groupSnap.map((item, index) => {
let selectNum = tabRefs.value[index].getSelectionRows()
goodIds.push(selectNum)
let obj = { ...item }
obj.goods = tabRefs.value[index].getSelectionRows()
goodIds.push(obj)
})
// 将商品数据转为一维数组返回