| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- <template>
- <view class="">
- <view @click="goDetail(item)" class="data" v-for="(item, index) in list" :key="index">
- <view class="top" style="color: #444444;">
- <view class="left">
- <view class="title">
- <text>报修编号:{{item.jobNo}}</text>
- <text @click.stop="copy(item.repairNo)" class="padding-left-20">复制</text>
- </view>
- </view>
- <view class="right">
- <text class="text-red" v-if="item.handleStatus==-1">已取消</text>
- <text class="text-orange" v-if="item.handleStatus==0">待处理</text>
- <text class="" v-if="item.handleStatus==1">已处理</text>
- </view>
- </view>
- <view class="item">
- <view style="padding: 0 30rpx;">
- <view class="content text-bold text-lg">
- <text style="line-height: 50rpx;">{{item.reportDetail}}</text>
- </view>
- <view class="content flex">
- <u-icon name="map-fill" size="30" color="#dc9c72"></u-icon>
- <view class="padding-left-10">
- {{item.residentialName}}
- <text class="cuIcon-move" style="padding: 0 4rpx;"></text>
- {{item.reportPosition}}
- </view>
- </view>
- <view class="content flex">
- <u-icon name="clock-fill" size="30" color="#fb970b"></u-icon>
- <view class="padding-left-10">
- {{item.beginTime}}
- <text class="cuIcon-move" style="padding: 0 4rpx;"></text>
- {{item.endTime}}
- </view>
- </view>
- </view>
- </view>
- <view class="bottom">
- <!-- 待处理状态 -->
- <view v-if="item.handleStatus==0" @click.stop="handleRepair(item)" class="cu-btn sm round line-base" style="margin: 0 8rpx;padding: 0 20rpx;font-size: 22rpx;">
- 处理工单
- </view>
- <view v-else class="cu-btn sm round line-base" style="margin: 0 8rpx;padding: 0 20rpx;font-size: 22rpx;">
- 查看详情
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- name: 'card',
- props:{
- list:{
- type:Array
- }
- },
- data() {
- return {
-
- };
- },
- onLoad() {
-
- },
- methods:{
- copy(data){
- uni.setClipboardData({
- data:data
- })
- },
- goDetail(item){
- uni.navigateTo({
- url:"/pages/repair/detail?id="+item.id
- })
- },
- handleRepair(item){
- this.$emit('handleRepair',item)
- }
- }
- };
- </script>
- <style lang="scss">
- .data {
- background-color: #ffffff;
- margin:8rpx;
- border-radius: 6rpx;
- box-sizing: border-box;
- padding:0 10rpx;
- font-size: 28rpx;
- .top {
- display: flex;
- justify-content: space-between;
- padding: 18rpx 0;
- font-size: 26rpx;
- border-bottom: 1rpx dashed #EDEDED;
- .left {
- display: flex;
- align-items: center;
- .title {
- margin: 0 10rpx;
- }
- }
- .right{
- margin-right: 10rpx;
- }
- }
- .item {
- margin: 4rpx 0 20rpx 0;
- .content {
- padding: 8rpx 0;
- }
- }
- .bottom {
- display: flex;
- padding-bottom: 15rpx;
- padding-right: 10rpx;
- justify-content: flex-end;
- align-items: center;
- }
- }
- </style>
|