<template>
|
<u-swipe-action >
|
<u-swipe-action-item :options="options" :disabled="true" style="margin-bottom: 20rpx;"
|
@click="deleteItem" :name="sortInfo.materialNo">
|
<view class="material-item-group">
|
<view class="material-list-item" >
|
<view class="close-btn">
|
<view class="icon-layer"><u-icon name="close" color="#ffffff" size="24" /></view>
|
</view>
|
<view class="item-row">
|
<view class="label-content">
|
<view class="label">物料件号:</view>
|
<view class="content">{{ sortInfo.materialNo }}</view>
|
</view>
|
<view class="label-content">
|
<view class="label">物料名称:</view>
|
<view class="content">{{ sortInfo.materialName }}</view>
|
</view>
|
</view>
|
<view class="item-row">
|
<view class="label-content">
|
<view class="label">分拣数量:</view>
|
<view class="content">{{ sortInfo.sortQuantity }}</view>
|
</view>
|
<view class="label-content">
|
<view class="label">已拣数量:</view>
|
<view class="content">{{ sortInfo.actualQuantity }}</view>
|
</view>
|
</view>
|
|
<view class="item-row">
|
<view class="label-content">
|
<view class="label">选中数量:</view>
|
<view class="content">{{ sortInfo.selectQuantity }}</view>
|
</view>
|
</view>
|
<view class="item-row-sign">
|
<view class="label-content">
|
<view class="label">单据编号:</view>
|
<view class="content">{{ sortInfo.orderNo }}</view>
|
</view>
|
</view>
|
</view>
|
</view>
|
</u-swipe-action-item>
|
</u-swipe-action>
|
</template>
|
|
<script>
|
import { parseDic } from '@/static/js/utils/index.js'
|
export default {
|
props: {
|
sortInfo: {
|
type: Object,
|
default: () => ({})
|
}
|
},
|
data() {
|
return {
|
options: [{
|
text: '删除',
|
style:{
|
backgroundColor: '#F18202'
|
}
|
}]
|
}
|
},
|
|
methods: {
|
|
parseDic,
|
deleteItem() {
|
this.$emit('sortInfo', this.sortInfo.materialNo)
|
}
|
}
|
}
|
</script>
|
|
<style scoped lang="scss">
|
.material-item-group {
|
padding-top: 10rpx;
|
|
.material-list-item {
|
border-bottom: 2rpx solid $uni-border-color;
|
padding-bottom: 10rpx;
|
padding-left: 20rpx;
|
position: relative;
|
|
&:last-child {
|
border-bottom: 0;
|
}
|
|
.item-row {
|
display: grid;
|
grid-template-columns: repeat(2, 1fr);
|
grid-column-gap: 10px;
|
|
.label-content {
|
display: flex;
|
align-items: center;
|
|
.label {
|
flex-shrink: 0;
|
color: #000;
|
}
|
|
.content {
|
flex-grow: 1;
|
color: $u-content-color;
|
}
|
}
|
}
|
.item-row-sign {
|
display: grid;
|
grid-template-columns: repeat(1, 1fr);
|
grid-column-gap: 10px;
|
|
.label-content {
|
display: flex;
|
align-items: center;
|
|
.label {
|
flex-shrink: 0;
|
color: #000;
|
}
|
|
.content {
|
flex-grow: 1;
|
color: $u-content-color;
|
}
|
}
|
}
|
|
.badge-box {
|
position: absolute;
|
top: 8rpx;
|
left: 8rpx;
|
z-index: 1;
|
}
|
|
.close-btn {
|
$closeBtnSize: 70rpx;
|
width: $closeBtnSize;
|
height: $closeBtnSize;
|
z-index: 1;
|
position: absolute;
|
top: 0rpx;
|
right: 8rpx;
|
background-color: $u-error;
|
opacity: 0.6;
|
border-radius: 25rpx;
|
|
.icon-layer {
|
position: absolute;
|
width: 100%;
|
height: 100%;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
z-index: 2;
|
}
|
}
|
}
|
}
|
</style>
|