|
@@ -24,7 +24,7 @@
|
|
</view>
|
|
</view>
|
|
<view class="order-detail-site">
|
|
<view class="order-detail-site">
|
|
<view class="order-detail-status">
|
|
<view class="order-detail-status">
|
|
- {{detailInfo.status == 0 ? '待处理...' : (detailInfo.status == 1 ? '分析中...' : '已完结')}}
|
|
|
|
|
|
+ {{detailInfo.status == 0 ? '待处理...' : (detailInfo.status == 1 ? '处理中...' : '已完结')}}
|
|
</view>
|
|
</view>
|
|
<view class="order-detail-site-text">
|
|
<view class="order-detail-site-text">
|
|
{{detailInfo.stationName || '-'}}
|
|
{{detailInfo.stationName || '-'}}
|
|
@@ -107,18 +107,18 @@
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view class="order-detail-deal" v-if="detailInfo.status == 0 || (detailInfo.status == 1 && detailInfo.currentPerson == userinfo.userId)">
|
|
|
|
- <view class="order-detail-deal-title">
|
|
|
|
- 处理信息
|
|
|
|
- </view>
|
|
|
|
- <u-form :model="form" ref="uform" :rules="rules" label-align='left' label-width="150">
|
|
|
|
- <u-form-item label="处理方式" prop="statusText">
|
|
|
|
|
|
+ <u-form :model="form" ref="uform" :rules="rules" label-align='left' label-width="150">
|
|
|
|
+ <view class="order-detail-deal" v-if="detailInfo.status == 0 || (detailInfo.status == 1 && detailInfo.currentPerson == userinfo.userId)">
|
|
|
|
+ <view class="order-detail-deal-title">
|
|
|
|
+ 处理信息
|
|
|
|
+ </view>
|
|
|
|
+ <u-form-item label="*处理方式" prop="statusText">
|
|
<u-input type="select" :select-open="dealSelectShow" placeholder="请选择换电站" v-model="form.statusText" @click="dealSelectShow = true"/>
|
|
<u-input type="select" :select-open="dealSelectShow" placeholder="请选择换电站" v-model="form.statusText" @click="dealSelectShow = true"/>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item label="处理人员" prop="nextPerson" v-if="form.status == 3">
|
|
|
|
|
|
+ <u-form-item label="*处理人员" prop="nextPerson" v-if="form.status == 3">
|
|
<u-input type="select" :select-open="showPerson" placeholder="请选择处理人员" v-model="form.nextPerson" @click="showPerson = true"/>
|
|
<u-input type="select" :select-open="showPerson" placeholder="请选择处理人员" v-model="form.nextPerson" @click="showPerson = true"/>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- <u-form-item label="处理记录" prop="info" :label-position="'top'">
|
|
|
|
|
|
+ <u-form-item label="*处理记录" prop="info" :label-position="'top'">
|
|
<u-input type="textarea" placeholder="请输入问题记录 不超过200个字" :maxlength="200" v-model="form.info" />
|
|
<u-input type="textarea" placeholder="请输入问题记录 不超过200个字" :maxlength="200" v-model="form.info" />
|
|
</u-form-item>
|
|
</u-form-item>
|
|
<u-form-item label="问题图片(不超过5张,20M以内)" prop="intro" :label-position="'top'">
|
|
<u-form-item label="问题图片(不超过5张,20M以内)" prop="intro" :label-position="'top'">
|
|
@@ -131,10 +131,11 @@
|
|
</view>
|
|
</view>
|
|
<view class="uploadv" v-if="form.video">
|
|
<view class="uploadv" v-if="form.video">
|
|
<video class="u-add-btn" :src="form.video"></video>
|
|
<video class="u-add-btn" :src="form.video"></video>
|
|
|
|
+ <image class="u-add-img" src="@/static/index-delete.png" alt="" @click="delHandle"/>
|
|
</view>
|
|
</view>
|
|
</u-form-item>
|
|
</u-form-item>
|
|
- </u-form>
|
|
|
|
- </view>
|
|
|
|
|
|
+ </view>
|
|
|
|
+ </u-form>
|
|
<view class="order-footer-button" :disabled="isClick" v-if="detailInfo.status == 0 || (detailInfo.status == 1 && detailInfo.currentPerson == userinfo.userId)" @click="submitHandle">
|
|
<view class="order-footer-button" :disabled="isClick" v-if="detailInfo.status == 0 || (detailInfo.status == 1 && detailInfo.currentPerson == userinfo.userId)" @click="submitHandle">
|
|
处理
|
|
处理
|
|
</view>
|
|
</view>
|
|
@@ -148,7 +149,7 @@
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
<template v-slot:content>
|
|
<template v-slot:content>
|
|
- <view>
|
|
|
|
|
|
+ <view style="margin-left: 20rpx;">
|
|
<view class="u-order-title">
|
|
<view class="u-order-title">
|
|
<span class="u-order-time">{{item.handleTime || '-'}}</span>
|
|
<span class="u-order-time">{{item.handleTime || '-'}}</span>
|
|
<span class="u-order-name" v-if="item.processorName && item.nextPerson">{{item.processorName + '>' + item.nextPerson}}</span>
|
|
<span class="u-order-name" v-if="item.processorName && item.nextPerson">{{item.processorName + '>' + item.nextPerson}}</span>
|
|
@@ -162,7 +163,6 @@
|
|
<view class="u-order-images" v-if="item.video">
|
|
<view class="u-order-images" v-if="item.video">
|
|
<video :src="item.video" class="u-order-img"></video>
|
|
<video :src="item.video" class="u-order-img"></video>
|
|
</view>
|
|
</view>
|
|
-
|
|
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
</u-time-line-item>
|
|
</u-time-line-item>
|
|
@@ -228,7 +228,13 @@
|
|
required: true,
|
|
required: true,
|
|
}
|
|
}
|
|
],
|
|
],
|
|
-
|
|
|
|
|
|
+ nextPerson: [
|
|
|
|
+ {
|
|
|
|
+ trigger: ['change','blur'],
|
|
|
|
+ message: '请选择流转人员',
|
|
|
|
+ required: true,
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
},
|
|
},
|
|
timeDatas: [],
|
|
timeDatas: [],
|
|
//是否点击按钮
|
|
//是否点击按钮
|
|
@@ -242,7 +248,7 @@
|
|
this.userinfo = JSON.parse(userinfo)
|
|
this.userinfo = JSON.parse(userinfo)
|
|
},
|
|
},
|
|
onReady() {
|
|
onReady() {
|
|
- // this.$refs.uform.setRules(this.rules);
|
|
|
|
|
|
+ this.$refs.uform.setRules(this.rules);
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
this.getDetailData();
|
|
this.getDetailData();
|
|
@@ -360,6 +366,21 @@
|
|
},
|
|
},
|
|
})
|
|
})
|
|
},
|
|
},
|
|
|
|
+ //删除视频
|
|
|
|
+ delHandle() {
|
|
|
|
+ let _that = this;
|
|
|
|
+ uni.showModal({
|
|
|
|
+ title: '提示',
|
|
|
|
+ content:'确定删除该视频文件吗?',
|
|
|
|
+ success: (res) => {
|
|
|
|
+ if(res.confirm) {
|
|
|
|
+ _that.form.video = null
|
|
|
|
+ } else {
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
//视频上传
|
|
//视频上传
|
|
onVideoChooseComplete() {
|
|
onVideoChooseComplete() {
|
|
const _that = this;
|
|
const _that = this;
|
|
@@ -422,6 +443,16 @@
|
|
})
|
|
})
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
_that.getDetailData();
|
|
_that.getDetailData();
|
|
|
|
+ _that.form = {
|
|
|
|
+ status: null,
|
|
|
|
+ statusText: null,
|
|
|
|
+ info: null,
|
|
|
|
+ nextPerson: null,
|
|
|
|
+ nextId: null,
|
|
|
|
+ attachment: null,
|
|
|
|
+ img: [],
|
|
|
|
+ video: null,
|
|
|
|
+ }
|
|
}, 1000);
|
|
}, 1000);
|
|
} else {
|
|
} else {
|
|
_that.$utils.msg(res.msg);
|
|
_that.$utils.msg(res.msg);
|
|
@@ -678,16 +709,15 @@
|
|
border-radius: 0rpx 0rpx 16rpx 16rpx;
|
|
border-radius: 0rpx 0rpx 16rpx 16rpx;
|
|
min-height: 220rpx;
|
|
min-height: 220rpx;
|
|
.time-line-node {
|
|
.time-line-node {
|
|
- height: 80rpx;
|
|
|
|
background: #3F8CFF;
|
|
background: #3F8CFF;
|
|
line-height: 80rpx;
|
|
line-height: 80rpx;
|
|
- width: auto;
|
|
|
|
- padding: 0 10rpx;
|
|
|
|
|
|
+ width: 80rpx;
|
|
border-radius: 50%;
|
|
border-radius: 50%;
|
|
font-size: 28rpx;
|
|
font-size: 28rpx;
|
|
font-family: PingFang SC-Regular, PingFang SC;
|
|
font-family: PingFang SC-Regular, PingFang SC;
|
|
font-weight: 500;
|
|
font-weight: 500;
|
|
color: #FFFFFF;
|
|
color: #FFFFFF;
|
|
|
|
+ text-align: center;
|
|
}
|
|
}
|
|
.u-order-title {
|
|
.u-order-title {
|
|
display: flex;
|
|
display: flex;
|
|
@@ -774,6 +804,13 @@
|
|
margin-top: 20rpx;
|
|
margin-top: 20rpx;
|
|
line-height: 20rpx;
|
|
line-height: 20rpx;
|
|
}
|
|
}
|
|
|
|
+ .u-add-img {
|
|
|
|
+ width: 50rpx;
|
|
|
|
+ height: 50rpx;
|
|
|
|
+ position: absolute;
|
|
|
|
+ top: 10rpx;
|
|
|
|
+ right: 15rpx;
|
|
|
|
+ }
|
|
.img {
|
|
.img {
|
|
width: 60%;
|
|
width: 60%;
|
|
height: 60%;
|
|
height: 60%;
|