| | |
| | | <el-skeleton-item variant="text" style="width: 100%" /> |
| | | </template> |
| | | <template #default> |
| | | <el-empty v-if="!deliveryProducts || deliveryProducts.length === 0" description="未查询到对应产品信息" /> |
| | | <div v-else style="margin-top: 20px;"> |
| | | <h4>产品明细</h4> |
| | | <div style="margin-top: 20px;"> |
| | | <el-table :data="deliveryProducts" border style="width: 100%"> |
| | | <el-table-column prop="productCategory" label="产品名称" /> |
| | | <el-table-column prop="specificationModel" label="规格型号" /> |
| | |
| | | import { WarningFilled, Edit, Check, MoreFilled } from '@element-plus/icons-vue' |
| | | import { getQuotationList } from "@/api/salesManagement/salesQuotation.js"; |
| | | import { getPurchaseByCode } from "@/api/procurementManagement/procurementLedger.js"; |
| | | import { productList } from "@/api/salesManagement/salesLedger.js"; |
| | | import { productList, ledgerListPage } from "@/api/salesManagement/salesLedger.js"; |
| | | const emit = defineEmits(['close']) |
| | | const { proxy } = getCurrentInstance() |
| | | |
| | |
| | | |
| | | // 发货审批:根据 salesLedgerId 查询产品列表 |
| | | if (isDeliveryApproval.value) { |
| | | const salesLedgerId = row?.salesLedgerId; |
| | | if (salesLedgerId) { |
| | | const loadProducts = (salesLedgerId) => { |
| | | deliveryLoading.value = true |
| | | productList({ salesLedgerId }).then((res) => { |
| | | deliveryProducts.value = res?.data || [] |
| | |
| | | deliveryLoading.value = false |
| | | }) |
| | | } |
| | | |
| | | let salesLedgerId = row?.salesLedgerId; |
| | | if (salesLedgerId) { |
| | | loadProducts(salesLedgerId) |
| | | } else if (row?.salesContractNo) { |
| | | deliveryLoading.value = true |
| | | ledgerListPage({ salesContractNo: row.salesContractNo, current: 1, size: 1 }).then((res) => { |
| | | const records = res.records |
| | | if (records.length > 0) { |
| | | loadProducts(records[0].id) |
| | | } else { |
| | | deliveryLoading.value = false |
| | | } |
| | | }).catch((err) => { |
| | | console.error('查询销售台账失败:', err) |
| | | deliveryLoading.value = false |
| | | }) |
| | | } |
| | | } |
| | | |
| | | approveProcessDetails(row.approveId).then((res) => { |