| | |
| | | <text class="detail-label">产品状态</text> |
| | | <text v-if="item.approveStatus === 1" |
| | | class="detail-value highlight">充足</text> |
| | | <text v-else-if=" |
| | | item.approveStatus === 0 && Number(item.noQuantity || 0) === 0 |
| | | " |
| | | class="detail-value highlight">已出库</text> |
| | | <text v-else |
| | | class="detail-value danger">不足</text> |
| | | </view> |
| | |
| | | <text class="detail-label">发货状态</text> |
| | | <u-tag size="mini" |
| | | :type="getShippingStatusType(item)">{{ getShippingStatusText(item) }}</u-tag> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">审批中数量</text> |
| | | <text class="detail-value">{{ item.pendingApprovalQuantity || 0 }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">快递公司</text> |
| | |
| | | <view class="detail-row"> |
| | | <text class="detail-label">数量</text> |
| | | <text class="detail-value">{{ item.quantity }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">退货数量</text> |
| | | <text class="detail-value">{{ item.returnQuantity || 0 }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">待发货数量</text> |
| | | <text class="detail-value">{{ item.noQuantity || 0 }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">税率(%)</text> |
| | |
| | | // 获取发货状态 |
| | | const shippingStatus = row.shippingStatus; |
| | | |
| | | // 如果已发货(有发货日期或车牌号),不能再次发货 |
| | | if (row.shippingDate || row.shippingCarNumber) { |
| | | // 如果已发货,不能再次发货 |
| | | if (shippingStatus === "已发货") { |
| | | return false; |
| | | } |
| | | |
| | | // 发货状态必须是"待发货"或"审核拒绝" |
| | | // 发货状态必须是"待发货"、"审批中"、"审核拒绝"或"部分发货" |
| | | const statusStr = shippingStatus ? String(shippingStatus).trim() : ""; |
| | | return statusStr === "待发货" || statusStr === "审核拒绝"; |
| | | return ( |
| | | statusStr === "待发货" || |
| | | statusStr === "审批中" || |
| | | statusStr === "审核拒绝" || |
| | | statusStr === "部分发货" |
| | | ); |
| | | }; |
| | | |
| | | // 显示加载提示 |