| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112 |
- <template>
- <view>
- <u-card :title="'样品编号:'+ item.yangPinBianHao" :subTitle="'样品'+(index+1)">
- <view class="" slot="body">
- <view class="u-body-item u-flex u-border-bottom u-col-between u-p-t-0">
- <view class="u-body-item-title ">
- 样品名称:
- </view>
- <view class="u-body-item-title u-line-2 u-body-item-title-color">
- {{item.yangPinMingCheng}}
- </view>
- </view>
- <view class="u-body-item u-flex u-border-bottom u-col-between u-p-t-0 u-m-t-20">
- <view class="u-body-item-title">
- 送检批号/编号:
- </view>
- <view class="u-body-item-title u-line-2 u-body-item-title-color">
- {{item.songJianPiHao}}
- </view>
- </view>
- <view class="u-body-item u-flex u-border-bottom u-col-between u-p-t-0 u-m-t-20">
- <view class="u-body-item-title">
- 样品状态:
- </view>
- <view class="u-body-item-title u-line-2 u-body-item-title-color">
- {{item.yangPinZhuangTai}}
- </view>
- </view>
- <view class="u-body-item u-flex u-p-t-0 u-m-t-20">
- <view class="u-body-item-title">
- 送检时间:
- </view>
- <view class="u-body-item-title u-line-2 u-body-item-title-color">
- {{item.songJianShiJian}}
- </view>
- </view>
- </view>
- <view class="u-body-footer" slot="foot">
- <u-icon name="setting" size="34" color="#3396d1" label="详情" class="u-m-r-20"
- @click="updateClick(index,'detail')"></u-icon>
- <u-icon name="edit-pen" size="34" color="#99cc66" label="编辑" class="u-m-r-20"
- @click="updateClick(index,'edit')" v-if="type != 'detail'">
- </u-icon>
- <u-icon name="trash" size="34" color="red" label="删除" @click="deleteClick(index)"
- v-if="type != 'detail'">
- </u-icon>
- </view>
- </u-card>
- </view>
- </template>
- <script>
- export default {
- props: {
- item: {
- type: Object,
- default: () => {}
- },
- index: {
- type: Number,
- default: 0
- },
- type: {
- type: String,
- default: 'add'
- }
- },
- data() {
- return {
- title: 'S2023012155',
- }
- },
- methods: {
- deleteClick(index) {
- this.$emit("deleteClick", index)
- },
- updateClick(index, type) {
- this.$emit("updateClick", index, type)
- }
- },
- }
- </script>
- <style lang="scss" scoped>
- .u-card-wrap {
- background-color: $u-bg-color;
- padding: 1px;
- }
- .u-body-item-title-color {
- color: #909399;
- }
- .u-body-item {
- font-size: 28rpx;
- color: #333;
- padding: 20rpx 10rpx;
- }
- .u-body-item image {
- width: 120rpx;
- flex: 0 0 120rpx;
- height: 120rpx;
- border-radius: 8rpx;
- margin-left: 12rpx;
- }
- .u-body-footer {
- display: flex;
- justify-content: flex-end;
- }
- </style>
|