| | |
| | | item.children = [] |
| | | }) |
| | | total.value = res.total |
| | | }).catch(() => { |
| | | tableLoading.value = false |
| | | }) |
| | | } |
| | | // 表格选择数据 |
| | |
| | | } |
| | | // 移除文件 |
| | | function handleRemove (file) { |
| | | console.log('handleRemove', file) |
| | | console.log('operationType.value', operationType.value) |
| | | if (operationType.value === 'edit') { |
| | | let ids = [] |
| | | ids.push(file.id) |
| | |
| | | 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 |
| | | }) |
| | | }) |