<
|
|
<template>
|
<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="badge-box"><u-badge :value="index+1" bg-color="#F18201" /></view> -->
|
<view class="item-row">
|
<view class="label">物料件号:</view>
|
<view class="content auto-wrap">KONGTUO</view>
|
</view>
|
<view class="item-row">
|
<view class="label">物料类型:</view>
|
<view class="content auto-wrap">{{parseDic($store,'material_type',2)}}</view>
|
</view>
|
<view class="item-row">
|
<view class="label">物料数量:</view>
|
<view class="content auto-wrap">{{materialData.length}}</view>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
import {parseDic} from '@/static/js/utils/index.js'
|
export default {
|
props: {
|
materialData: {
|
type: Array,
|
default: () => []
|
},
|
// materialModalData:{
|
// type: Array,
|
// default: () => []
|
// }
|
},
|
data() {
|
return {
|
materialModalData:[]
|
}
|
},
|
// created(){
|
// this.materialModalData=getDicList(this.$store,'material_modal')?.sysDictDatas
|
// console.log(this.materialModalData);
|
// },
|
methods:{
|
parseDic
|
}
|
}
|
</script>
|
|
<style scoped >
|
.material-list-item {
|
border-bottom: 2rpx solid $uni-border-color;
|
padding: 10rpx 20rpx;
|
background-color: #fff;
|
/* margin-bottom: 10rpx; */
|
position: relative;
|
margin:-20rpx auto;
|
&:last-child {
|
border-bottom: 0;
|
}
|
|
.item-row {
|
display: flex;
|
|
.label {
|
flex-shrink: 0;
|
color: #000;
|
/* text-align: right; */
|
/* font-weight:5; */
|
width: 200rpx;
|
}
|
|
&>.content {
|
flex-grow: 1;
|
color: $u-content-color;
|
|
uni-input {
|
font: inherit;
|
color: $u-primary;
|
text-decoration: underline;
|
}
|
}
|
}
|
}
|
</style>
|