| | |
| | | <text class="info-value">{{ form.purchaseContractNumber }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">销售合同号</text> |
| | | <text class="info-value">{{ form.salesContractNo }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">供应商名称</text> |
| | | <text class="info-value">{{ form.supplierName }}</text> |
| | | </view> |
| | |
| | | <text class="info-value">{{ form.paymentMethod }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">入库状态</text> |
| | | <text class="info-value">{{ form.stockInStatus || '--' }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">录入人</text> |
| | | <text class="info-value">{{ form.recorderName }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">录入日期</text> |
| | | <text class="info-value">{{ form.entryDate }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">备注</text> |
| | | <text class="info-value">{{ form.remarks || '--' }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | <text class="info-value">{{ product.unit }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">入库审核状态</text> |
| | | <text class="info-value">{{ product.stockInApprovalStatus || '--' }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">税率(%)</text> |
| | | <text class="info-value">{{ product.taxRate }}</text> |
| | | </view> |
| | |
| | | <view class="info-item"> |
| | | <text class="info-label">数量</text> |
| | | <text class="info-value highlight">{{ product.quantity }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">可用数量</text> |
| | | <text class="info-value">{{ product.availableQuality ?? '--' }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">退货数量</text> |
| | | <text class="info-value">{{ product.returnQuality ?? '--' }}</text> |
| | | </view> |
| | | <view class="info-item"> |
| | | <text class="info-label">含税总价(元)</text> |
| | |
| | | // 表单数据 |
| | | const form = ref({ |
| | | id: '', |
| | | salesContractNo: '', |
| | | customerContractNo: '', |
| | | customerId: '', |
| | | customerName: '', |
| | |
| | | |
| | | // 获取完整的产品信息 |
| | | getPurchaseById({ id: editData.value.id, type: 2 }).then((res) => { |
| | | productData.value = res.productData || []; |
| | | form.value = {...res} |
| | | const data = res?.data ? res.data : res || {}; |
| | | const products = |
| | | data.purchaseLedgerProductList || res?.productData || data.productData || []; |
| | | productData.value = Array.isArray(products) ? products : []; |
| | | form.value = { ...data } |
| | | }); |
| | | }; |
| | | |