| | |
| | | <text class="value value-num">{{ detail.stockOutNum ?? '-' }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="label">出库人</text> |
| | | <text class="value">{{ detail.createBy || '-' }}</text> |
| | | <text class="label">采购员</text> |
| | | <text class="value">{{ detail.purchaser || detail.createBy || '-' }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="label">来源</text> |
| | | <text class="value">{{ getRecordType(detail.recordType) || '-' }}</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">{{ detail.licensePlateNo || '-' }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="label">毛重(吨)</text> |
| | | <text class="value">{{ detail.grossWeight ?? '-' }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="label">皮重(吨)</text> |
| | | <text class="value">{{ detail.tareWeight ?? '-' }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="label">净重(吨)</text> |
| | | <text class="value">{{ detail.netWeight ?? '-' }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="label">过磅日期</text> |
| | | <text class="value">{{ detail.weighingDate || '-' }}</text> |
| | | </view> |
| | | <view class="detail-row"> |
| | | <text class="label">过磅员</text> |
| | | <text class="value">{{ detail.weighingOperator || '-' }}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | import { onLoad } from '@dcloudio/uni-app' |
| | | import PageHeader from '@/components/PageHeader.vue' |
| | | import { |
| | | findAllQualifiedStockOutRecordTypeOptions, |
| | | findAllUnQualifiedStockOutRecordTypeOptions |
| | | findAllQualifiedStockOutRecordTypeOptions |
| | | } from '@/api/basicData/enum.js' |
| | | |
| | | const detail = ref(null) |
| | |
| | | stockOutNum: d.stockOutNum, |
| | | createBy: d.createBy, |
| | | recordType: d.recordType, |
| | | licensePlateNo: d.licensePlateNo, |
| | | grossWeight: d.grossWeight, |
| | | tareWeight: d.tareWeight, |
| | | netWeight: d.netWeight, |
| | | weighingDate: d.weighingDate, |
| | | weighingOperator: d.weighingOperator |
| | | purchaser: d.purchaser |
| | | } |
| | | } |
| | | |
| | |
| | | return stockRecordTypeOptions.value.find(item => item.value === recordType)?.label || '' |
| | | } |
| | | |
| | | function fetchRecordTypeOptions(type) { |
| | | const api = type === '1' |
| | | ? findAllUnQualifiedStockOutRecordTypeOptions |
| | | : findAllQualifiedStockOutRecordTypeOptions |
| | | api() |
| | | function fetchRecordTypeOptions() { |
| | | findAllQualifiedStockOutRecordTypeOptions() |
| | | .then(res => { |
| | | const data = res.data != null ? res.data : res |
| | | stockRecordTypeOptions.value = Array.isArray(data) ? data : [] |
| | |
| | | try { |
| | | const payload = typeof cached === 'string' ? JSON.parse(cached) : cached |
| | | const item = payload && payload.item != null ? payload.item : payload |
| | | const type = payload && payload.type != null ? payload.type : '0' |
| | | detail.value = normalizeDetail({ ...item, index: 1 }) |
| | | fetchRecordTypeOptions(type) |
| | | fetchRecordTypeOptions() |
| | | uni.removeStorageSync('dispatchDetailItem') |
| | | } catch (e) { |
| | | uni.removeStorageSync('dispatchDetailItem') |