| | |
| | | dealDate: dayjs().format('YYYY-MM-DD HH:mm:ss'),
|
| | | multifileList: fileList
|
| | | }).then(res => {
|
| | | if (res && res.code == 200) {
|
| | | if (param.status != 0) {
|
| | | uni.showModal({
|
| | | title: '温馨提示',
|
| | |
| | | this.showToast('提交成功') |
| | | uni.navigateBack() |
| | | }
|
| | | }
|
| | |
|
| | | })
|
| | | },
|
| | | getDevice() {
|
| | |
| | | info: {},
|
| | | list: [],
|
| | | flag: false,
|
| | | userInfo: uni.getStorageSync('userInfo') || {},
|
| | | statusM: [{
|
| | | color: '#4593f7',
|
| | | name: '待开始'
|
| | |
| | | this.info = res.data
|
| | | let time = new Date(res.data.startDate).getTime()
|
| | | console.log('res.data.startDate', new Date().getTime());
|
| | | if(res.data.userIds.indexOf(this.userInfo.id) > -1){ |
| | | this.flag = new Date().getTime() > time && (this.info.status == 0 || this.info.status == 1 || this.info.status == 2)
|
| | | }
|
| | | })
|
| | | ywPatrolTaskRecord({
|
| | | capacity: 999,
|
| | |
| | | <template v-if="info.status == 1">
|
| | | <view class="line">
|
| | | <div class="la">巡检结果:</div>
|
| | | <div class="val primaryColor" :class="{red: info.dealStatus == 1}">{{ info.dealStatus == 0 ? '正常' : info.dealStatus == 1 ? '异常' : '-' }}
|
| | | <div class="val primaryColor" :class="{red: info.dealStatus == 1}">
|
| | | {{ info.dealStatus == 0 ? '正常' : info.dealStatus == 1 ? '异常' : '-' }}
|
| | | </div>
|
| | | </view>
|
| | | <view class="line">
|
| | |
| | | multifileList: fileList,
|
| | | id,
|
| | | }).then(res => {
|
| | | if (res.code == 200) {
|
| | | if (handleParam.dealStatus == 1) {
|
| | | return uni.showModal({
|
| | | title: '温馨提示',
|
| | |
| | | uni.navigateBack() |
| | | }, 300)
|
| | | }
|
| | | }
|
| | |
|
| | | })
|
| | | },
|
| | | getDetail() {
|
| | |
| | | width: 100%;
|
| | | height: 100%;
|
| | | } |
| | |
|
| | | video { |
| | | width: 100%; |
| | | height: 100%; |
| | | }
|
| | |
|
| | | .video_wrap { |
| | | position: relative; |
| | | border: 1px solid; |
| | |
| | | this.list = [...this.list, ...res.data.records] |
| | | this.list.forEach(item => { |
| | | let time = new Date(item.startDate).getTime() |
| | | item.flag = new Date().getTime() > time |
| | | let userInfo = uni.getStorageSync('userInfo') || {} |
| | | item.flag = new Date().getTime() > time && item.userIds.indexOf(userInfo.id) > -1 |
| | | })
|
| | | this.total = res.data.total
|
| | | })
|
| | |
| | | <view class="la"><text class="red">*</text>工单分类</view>
|
| | | <view class="line sel_wrap" @click="showCate1 = true">
|
| | | <view class="left" :class="param.cateName ? '' : 'placeholder9'">
|
| | | {{ param.cateName ? param.cateName : '请选择' }}</view>
|
| | | {{ param.cateName ? param.cateName : '请选择' }}
|
| | | </view>
|
| | | <u-icon name="arrow-right" color="#999999" size="15"></u-icon>
|
| | | </view>
|
| | | </view>
|
| | |
| | | <u-icon class="close" size="20" name="close-circle-fill" color="red"
|
| | | @click="fileDel('fileList', i)"></u-icon>
|
| | | <image v-if="item.type == 0" :src="item.fileurlFull" mode="widthFix"></image>
|
| | | <video v-if="item.type == 1" :show-center-play-btn="false" :src="item.fileurlFull" :controls="false"></video>
|
| | | <video v-if="item.type == 1" :show-center-play-btn="false" :src="item.fileurlFull"
|
| | | :controls="false"></video>
|
| | | </view>
|
| | | </view>
|
| | | </view>
|
| | |
| | | // roomId: '',
|
| | | fileList
|
| | | }).then(res => {
|
| | | if (res && res.code == 200) {
|
| | | this.showToast('提交成功')
|
| | | uni.redirectTo({
|
| | | url: '/pages/workOrder/list'
|
| | | })
|
| | | }
|
| | | })
|
| | | },
|
| | | changeHandler(e) {
|
| | |
| | | ...param,
|
| | | fileList
|
| | | }).then(res => {
|
| | | if(res && res.code == 200){ |
| | | this.showToast('提交成功')
|
| | | this.param = {} |
| | | uni.navigateTo({ |
| | | url: '/pages/workOrder/result' |
| | | })
|
| | | }
|
| | | })
|
| | | },
|
| | | fileDel(str, i) {
|