| | |
| | | <text class="info-value">{{ form.salesContractNo }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">客户合同号</text> |
| | | <text class="info-value highlight">{{ form.customerContractNo }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">客户名称</text> |
| | | <text class="info-value">{{ form.customerName }}</text> |
| | | </view> |
| | |
| | | |
| | | <script setup> |
| | | import {onMounted, ref} from 'vue'; |
| | | import {getSalesLedgerWithProducts} from "@/api/salesManagement/salesLedger"; |
| | | import {productList} from "@/api/salesManagement/salesLedger"; |
| | | |
| | | // 表单数据 |
| | | const form = ref({ |
| | | id: '', |
| | | salesContractNo: '', |
| | | customerContractNo: '', |
| | | customerId: '', |
| | | customerName: '', |
| | | projectName: '', |
| | |
| | | if (!editData.value) return; |
| | | |
| | | // 获取完整的产品信息 |
| | | getSalesLedgerWithProducts({ id: editData.value.id, type: 1 }).then((res) => { |
| | | productData.value = res.productData || []; |
| | | productList({ salesLedgerId: editData.value.id, type: 1 }).then((res) => { |
| | | productData.value = res.data || []; |
| | | form.value = {...editData.value} |
| | | }); |
| | | }; |