| | |
| | | selectProductRecordListByPuechaserId |
| | | } from "@/api/inventoryManagement/stockIn.js"; |
| | | import { purchaseListPage } from "@/api/procurementManagement/procurementLedger.js"; |
| | | import { getCurrentDate } from "@/utils/index.js"; |
| | | |
| | | const userStore = useUserStore() |
| | | const { proxy } = getCurrentInstance() |
| | |
| | | productList.value = []; |
| | | return |
| | | } |
| | | productList.value = productRes.data.map(item => ({ |
| | | ...item, |
| | | quantityStock: 0, |
| | | taxInclusiveUnitPrice: Number(item?.taxInclusiveUnitPrice ?? 0), |
| | | taxInclusiveTotalPrice: 0, |
| | | originalQuantityStock: Number(item.quantityStock ?? item.inboundQuantity ?? 0), |
| | | })) |
| | | productList.value = productRes.data.map(item => { |
| | | const quantityStock = Number(item?.quantity0 ?? 0); |
| | | const taxInclusiveUnitPrice = Number(item?.taxInclusiveUnitPrice ?? 0); |
| | | return { |
| | | ...item, |
| | | quantityStock, |
| | | taxInclusiveUnitPrice, |
| | | taxInclusiveTotalPrice: quantityStock * taxInclusiveUnitPrice, |
| | | originalQuantityStock: Number(item.quantityStock ?? item.inboundQuantity ?? 0), |
| | | }; |
| | | }) |
| | | } catch (error) { |
| | | console.error('查询产品记录失败:', error) |
| | | proxy.$modal.msgError('查询产品记录失败') |
| | |
| | | return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; |
| | | } |
| | | |
| | | function getCurrentDate() { |
| | | return formatDateTime(new Date(), false); |
| | | } |
| | | |
| | | const openDialog = async (type, row) => { |
| | | operationType.value = type |