| | |
| | | </view> |
| | | <up-divider></up-divider> |
| | | <view class="item-details"> |
| | | <!-- <view class="detail-row"> |
| | | <text class="detail-label">销售合同号</text> |
| | | <text class="detail-value">{{ item.salesContractNo }}</text> |
| | | </view> --> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">入库状态</text> |
| | | <view class="detail-value"> |
| | | <u-tag :type="getStockInStatusType(item.stockInStatus)"> |
| | | {{ item.stockInStatus || '--' }} |
| | | </u-tag> |
| | | </view> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">供应商名称</text> |
| | | <text class="detail-value">{{ item.supplierName }}</text> |
| | |
| | | </view> |
| | | <!-- 仅非“审批通过”的台账展示删除按钮 --> |
| | | <view class="detail-row" |
| | | v-if="item.approvalStatus !== 3" |
| | | v-if="item.approvalStatus !== 3 && item.stockInStatus !== '完全入库'" |
| | | style="justify-content: flex-end; margin-top: 8px;"> |
| | | <up-button type="error" |
| | | size="small" |
| | |
| | | 4: "error", // 审批失败 - 红色 |
| | | }; |
| | | return typeMap[status] || ""; |
| | | }; |
| | | const getStockInStatusType = status => { |
| | | const typeMap = { |
| | | 待入库: "info", |
| | | 入库中: "warning", |
| | | 完全入库: "success", |
| | | }; |
| | | return typeMap[status] || "info"; |
| | | }; |
| | | // 搜索关键词 |
| | | const purchaseContractNumber = ref(""); |
| | |
| | | }); |
| | | return; |
| | | } |
| | | if (row.stockInStatus === "完全入库") { |
| | | uni.setStorageSync("editData", JSON.stringify(row)); |
| | | uni.navigateTo({ |
| | | url: "/pages/procurementManagement/procurementLedger/view", |
| | | }); |
| | | return; |
| | | } |
| | | |
| | | // 录入人编辑:存储数据并跳转到编辑页面 |
| | | uni.setStorageSync("editData", JSON.stringify(row)); |