| | |
| | | class="detail-value danger">不足</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">是否生产</text> |
| | | <u-tag size="mini" |
| | | :type="getIsProductionType(item)">{{ getIsProductionText(item) }}</u-tag> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="detail-label">发货状态</text> |
| | | <u-tag size="mini" |
| | | :type="getShippingStatusType(item)">{{ getShippingStatusText(item) }}</u-tag> |
| | |
| | | }; |
| | | return statusTextMap[statusStr] || "待发货"; |
| | | }; |
| | | |
| | | const getIsProductionText = row => { |
| | | const v = row?.isProduction; |
| | | if (v === true || v === 1 || v === "1") return "是"; |
| | | if (v === false || v === 0 || v === "0") return "否"; |
| | | return "-"; |
| | | }; |
| | | |
| | | const getIsProductionType = row => { |
| | | const v = row?.isProduction; |
| | | if (v === true || v === 1 || v === "1") return "success"; |
| | | if (v === false || v === 0 || v === "0") return "info"; |
| | | return "info"; |
| | | }; |
| | | // 获取页面参数 |
| | | const getPageParams = () => { |
| | | // 从本地存储获取供应商ID |