| | |
| | | </view> |
| | | |
| | | <view class="card-content"> |
| | | <view class="info-row"> |
| | | <text class="info-label">{{ $t('container.matName') }}</text> |
| | | <text class="info-value"> |
| | | {{ item.maktx || '-' }} |
| | | </text> |
| | | </view> |
| | | <view class="info-row"> |
| | | <view class="info-col"> |
| | | <text class="info-label">{{ $t('container.matSpec') }}</text> |
| | | <text class="info-value"> |
| | | {{ item.specs || '-' }} |
| | | </text> |
| | | </view> |
| | | <view class="info-col"> |
| | | <text class="info-label">{{ $t('container.matBatch') }}</text> |
| | | <text class="info-value highlight"> |
| | | {{ item.batch || '-' }} |
| | | </text> |
| | | </view> |
| | | </view> |
| | | <view class="info-row"> |
| | | <view class="info-col"> |
| | | <text class="info-label">{{ $t('container.matQty') }}</text> |
| | | <text class="info-value qty"> |
| | | {{ item.anfme }} |
| | | </text> |
| | | </view> |
| | | <view class="info-row" v-for="(field, idx) in displayFields" :key="idx"> |
| | | <text class="info-label">{{ $t(field.label) }}</text> |
| | | <text class="info-value">{{ item[field.field] || '-' }}</text> |
| | | </view> |
| | | </view> |
| | | |
| | |
| | | orderCombNeedSplit: true, |
| | | orderCombSeparator: ';', |
| | | orderCombArrayIndex: 0, |
| | | orderCombStartPos: 3 |
| | | orderCombStartPos: 3, |
| | | displayFields: [ |
| | | { field: 'maktx', label: 'container.matName' }, |
| | | { field: 'specs', label: 'container.matSpec' }, |
| | | { field: 'batch', label: 'container.matBatch' }, |
| | | { field: 'anfme', label: 'container.matQty' } |
| | | ] |
| | | } |
| | | }, |
| | | onShow() { |
| | |
| | | this.orderCombSeparator = settings.orderCombSeparator || ';' |
| | | this.orderCombArrayIndex = settings.orderCombArrayIndex !== undefined ? Number(settings.orderCombArrayIndex) : 0 |
| | | this.orderCombStartPos = settings.orderCombStartPos !== undefined ? Number(settings.orderCombStartPos) : 3 |
| | | if (settings.containerBindingFields && settings.containerBindingFields.length > 0) { |
| | | this.displayFields = settings.containerBindingFields |
| | | } |
| | | } else { |
| | | this.orderCombNeedSplit = true |
| | | this.orderCombSeparator = ';' |