| | |
| | | item.children = [] |
| | | }) |
| | | total.value = res.total |
| | | }).catch(() => { |
| | | tableLoading.value = false |
| | | }) |
| | | } |
| | | // 表格选择数据 |
| | |
| | | addOrUpdateSalesLedgerProduct(productForm.value).then(res => { |
| | | proxy.$modal.msgSuccess("提交成功") |
| | | closeProductDia() |
| | | getSalesLedgerWithProducts({id: currentId.value}).then(res => { |
| | | getSalesLedgerWithProducts({id: currentId.value, type: 1}).then(res => { |
| | | productData.value = res.productData |
| | | }) |
| | | }) |
| | |
| | | delProduct(ids).then(res => { |
| | | proxy.$modal.msgSuccess("删除成功") |
| | | closeProductDia() |
| | | getSalesLedgerWithProducts({id: currentId.value}).then(res => { |
| | | getSalesLedgerWithProducts({id: currentId.value, type: 1}).then(res => { |
| | | productData.value = res.productData |
| | | }) |
| | | }) |