库存详情中,序号改为对应的产品类型(仓库是原材料、成品,耗材对应的是耗材),下面添加备注展示
| | |
| | | const goDetail = (item) => { |
| | | if (!item) return; |
| | | try { |
| | | uni.setStorageSync( |
| | | "stockDetailItem", |
| | | JSON.stringify({ |
| | | uni.setStorageSync('stockDetailItem', JSON.stringify({ |
| | | item, |
| | | type: isQualified() ? "0" : "1", |
| | | }) |
| | | ); |
| | | type: '0' |
| | | })) |
| | | } catch (e) {} |
| | | if (!item.id) { |
| | | uni.navigateTo({ url: "/pages/consumablesLogistics/stockManagement/view" }); |
| | |
| | | </view> |
| | | <view class="section-body"> |
| | | <view class="detail-row"> |
| | | <text class="label">序号</text> |
| | | <text class="value">{{ detail.index ?? '-' }}</text> |
| | | <text class="label">产品类型</text> |
| | | <text class="value">{{ detail.parentName ?? '-' }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="label">产品大类</text> |
| | |
| | | <text class="label">最近更新时间</text> |
| | | <text class="value">{{ detail.updateTime || '-' }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="label">备注</text> |
| | | <text class="value">{{ detail.remark || '-' }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | const d = typeof raw === "object" ? raw : {}; |
| | | return { |
| | | index: d.index ?? 1, |
| | | parentName: d.parentName, |
| | | productName: d.productName, |
| | | model: d.model, |
| | | unit: d.unit, |
| | |
| | | unLockedQuantity: d.unLockedQuantity ?? (d.qualitity - (d.lockedQuantity || 0)), |
| | | updateTime: d.updateTime, |
| | | typeLabel: "合格库存", |
| | | remark: d.remark, |
| | | }; |
| | | } |
| | | |
| | |
| | | </view> |
| | | <view class="section-body"> |
| | | <view class="detail-row"> |
| | | <text class="label">序号</text> |
| | | <text class="value">{{ detail.index ?? '-' }}</text> |
| | | <text class="label">产品类型</text> |
| | | <text class="value">{{ detail.parentName || '-' }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="label">产品大类</text> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="section-card"> |
| | | <view class="section-head"> |
| | | <view class="section-dot"></view> |
| | | <text class="section-title">其他信息</text> |
| | | </view> |
| | | <view class="section-body"> |
| | | <view class="detail-row"> |
| | | <text class="label">备注</text> |
| | | <text class="value value-num">{{ detail.remark ?? '-' }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view v-else class="empty"> |
| | | <text class="empty-text">暂无详情数据</text> |
| | |
| | | const d = typeof raw === 'object' ? raw : {} |
| | | return { |
| | | index: d.index ?? 1, |
| | | parentName: d.parentName, |
| | | productName: d.productName, |
| | | model: d.model, |
| | | unit: d.unit, |
| | | qualitity: d.qualitity, |
| | | lockedQuantity: d.lockedQuantity, |
| | | unLockedQuantity: d.unLockedQuantity, |
| | | updateTime: d.updateTime |
| | | updateTime: d.updateTime, |
| | | remark: d.remark, |
| | | } |
| | | } |
| | | |