Files
GX.O3.WMS/APK/APP_O3/pages/views/EQUM01/EQUM01Report.vue
T

187 lines
5.0 KiB
Vue
Executable File

<template>
<view class="report">
<view class="gray-title">
实际执行时间<text>*</text>
</view>
<view class="line-wrapper">
<view class="line-title">
实际开始时间
</view>
<view @click="clickChangeTime('showStartTime')" class="line-child">
{{validate.workStartTime}}
</view>
</view>
<view class="line-wrapper">
<view class="line-title">
实际结束时间
</view>
<view @click="clickChangeTime('showEndTime')" class="line-child">
{{validate.workEndTime}}
</view>
</view>
<view v-if="ticketData.downStatus == 1" class="gray-title">
停机时间<text>*</text>
</view>
<view v-if="ticketData.downStatus == 1" class="line-wrapper">
<view class="line-title">
停机开始时间
</view>
<view @click="clickChangeTime('showStopStart')" class="line-child">
{{validate.stopTimeStart}}
</view>
</view>
<view v-if="ticketData.downStatus == 1" class="line-wrapper">
<view class="line-title">
停机结束时间
</view>
<view @click="clickChangeTime('showStopEnd')" class="line-child">
{{validate.stopTimeEnd}}
</view>
</view>
<view class="gray-title">
工单执行结果<text>*</text>
</view>
<view class="line-wrapper" style="padding-right: 2%;">
<view class="line-title">
点检结果
</view>
<view class="line-child">
<u-radio-group width="160rpx" v-model="validate.checkResult" @change="handleCheckResultGroupChange">
<u-radio v-for="(item, index) in checkResultList" :key="index" :name="item.key" :active-color="item.color">
{{item.value}}
</u-radio>
</u-radio-group>
</view>
</view>
<view class="line-wrapper" style="padding-right: 2%;">
<view class="line-title">
执行结果
</view>
<view class="line-child">
<u-radio-group width="160rpx" v-model="validate.executionResult" @change="handleExecResultGroupChange">
<u-radio v-for="(item, index) in execResultList" :key="index" :name="item.key" :active-color="item.color">
{{item.value}}
</u-radio>
</u-radio-group>
</view>
</view>
<view class="gray-title">
描述
</view>
<view class="textarea-wrapper" style="margin-bottom: 24rpx;">
<u-input type="textarea" v-model="validate.content" placeholder="填写汇报内容" />
</view>
<u-upload max-count="9" :multiple="false" @on-uploaded="handleAllUploaded" @on-list-change="handleFileListChange"
@on-change="uploadFinish" ref="uploader" :auto-upload="false" :action="uploadUrl" :header="uploadHeader"></u-upload>
<view @click="handleSubmit" class="fixed-bottom">提交</view>
<u-picker style="margin-bottom: 24rpx;" mode="time" :params="timeParams" v-model="time.showStartTime" @confirm="handleStartTimeConfirm"></u-picker>
<u-picker style="margin-bottom: 24rpx;" mode="time" :params="timeParams" v-model="time.showEndTime" @confirm="handleEndTimeConfirm"></u-picker>
<u-picker style="margin-bottom: 24rpx;" mode="time" :params="timeParams" v-model="time.showStopStart" @confirm="handleStopStartTimeConfirm"></u-picker>
<u-picker style="margin-bottom: 24rpx;" mode="time" :params="timeParams" v-model="time.showStopEnd" @confirm="handleStopEndTimeConfirm"></u-picker>
<u-toast ref="uToast" />
<u-toast ref="uToast2" />
</view>
</template>
<script>
// import moment from 'moment'
// import baseUrl from '@/common/js/baseUrl.js';
export default {
computed: {
getSpareList: {
get() {},
set(newVal) {}
}
},
components: {
},
onShow() {
},
onReady() {
},
data() {
return {
ticketData: {
downStatus: 0
},
fileList: [],
validate: {
content: '',
workStartTime: '请选择开始时间',
workEndTime: '请选择结束时间',
stopTimeStart: '请选择停机开始时间',
stopTimeEnd: '请选择停机结束时间',
executionResult: 0,
checkResult: 0
},
time: {
showStartTime: false,
showEndTime: false,
showStopStart: false,
showStopEnd: false
},
timeParams: {
year: true,
month: true,
day: true,
hour: true,
minute: true,
second: true
},
execResultList: [{
key: 0,
value: '执行中',
color: 'green'
},
{
key: 1,
value: '已完成',
color: '#4686f4'
}
],
checkResultList: [{
key: 0,
value: '正常',
color: 'green'
},
{
key: 1,
value: '异常',
color: 'red'
}
],
uploadHeader: {},
uploadUrl: '',
fdfsIdList: [],
successCount: 0
};
},
methods: {
}
};
</script>
<style lang="scss">
page {
background-color: #F7F7F7;
}
</style>
<style lang="scss" scoped>
@import './style.scss';
.minus-wrapper {
display: flex;
justify-content: space-between;
padding: 12rpx 0;
border-bottom: 1px solid #F5F5F5;
}
.add-wrapper {
display: flex;
justify-content: space-between;
padding: 12rpx 0;
}
</style>