2023-12-21 16:29:58 +08:00
|
|
|
<template>
|
|
|
|
<view class="content">
|
|
|
|
<view class="card-d">
|
2024-01-31 11:16:49 +08:00
|
|
|
<u--form labelWidth='130' :model="formData" ref="form">
|
2023-12-21 16:29:58 +08:00
|
|
|
<view class="c-title">消毒信息</view>
|
|
|
|
<view class="c-box">
|
|
|
|
<u-form-item label="消毒剂名称" borderBottom>
|
2024-01-31 11:16:49 +08:00
|
|
|
<up-input readonly
|
|
|
|
border="none" v-model="formData.disinfectant_name"></up-input>
|
2023-12-21 16:29:58 +08:00
|
|
|
</u-form-item>
|
|
|
|
<u-form-item label="消毒剂浓度" borderBottom>
|
2024-01-31 11:16:49 +08:00
|
|
|
<up-input readonly
|
|
|
|
border="none" v-model="formData.concentration"></up-input>
|
2023-12-21 16:29:58 +08:00
|
|
|
</u-form-item>
|
|
|
|
<u-form-item label="消毒方法" borderBottom>
|
2024-01-31 11:16:49 +08:00
|
|
|
<up-input readonly
|
|
|
|
border="none" v-model="formData.disinfectant_method"></up-input>
|
2023-12-21 16:29:58 +08:00
|
|
|
</u-form-item>
|
|
|
|
<u-form-item label="消毒区域" borderBottom>
|
2024-01-31 11:16:49 +08:00
|
|
|
<up-input readonly
|
|
|
|
border="none" v-model="formData.disinfectant_area"></up-input>
|
2023-12-21 16:29:58 +08:00
|
|
|
</u-form-item>
|
|
|
|
<u-form-item label="消毒人员" borderBottom >
|
2024-01-31 11:16:49 +08:00
|
|
|
<up-input readonly
|
|
|
|
border="none" v-model="formData.operator"></up-input>
|
2023-12-21 16:29:58 +08:00
|
|
|
</u-form-item>
|
|
|
|
<u-form-item label="消毒时间" borderBottom >
|
2024-01-31 11:16:49 +08:00
|
|
|
<up-input readonly
|
|
|
|
border="none" v-model="formData.create_time"></up-input>
|
2023-12-21 16:29:58 +08:00
|
|
|
</u-form-item>
|
|
|
|
<swiper class="swiper" autoplay indicator-dots indicator-active-color="#ffb049" indicator-color="rgba(255,255,255,0.4)">
|
2024-01-31 11:16:49 +08:00
|
|
|
<swiper-item class="swiper-item" v-for="(item, index) in formData.pic" :key="index">
|
|
|
|
<image class="img" :src="item"></image>
|
2023-12-21 16:29:58 +08:00
|
|
|
</swiper-item>
|
|
|
|
</swiper>
|
|
|
|
<u-form-item label="备注" borderBottom >
|
|
|
|
<view class="">
|
2024-01-31 11:16:49 +08:00
|
|
|
{{formData.remark}}
|
2023-12-21 16:29:58 +08:00
|
|
|
</view>
|
|
|
|
</u-form-item>
|
|
|
|
</view>
|
|
|
|
</u--form>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import {
|
|
|
|
reactive,
|
2024-01-31 11:16:49 +08:00
|
|
|
ref,
|
|
|
|
getCurrentInstance
|
2023-12-21 16:29:58 +08:00
|
|
|
} from "vue";
|
|
|
|
import {
|
|
|
|
onLoad,
|
|
|
|
onReady
|
|
|
|
} from "@dcloudio/uni-app"
|
2024-01-31 11:16:49 +08:00
|
|
|
|
|
|
|
const formData = reactive({})
|
|
|
|
|
|
|
|
onLoad(function(options){
|
|
|
|
const eventChannel = getCurrentInstance().proxy.getOpenerEventChannel();
|
|
|
|
eventChannel.on('setDatasItem', function(data) {
|
|
|
|
console.log(data);
|
|
|
|
Object.assign(formData, data)
|
|
|
|
})
|
2023-12-21 16:29:58 +08:00
|
|
|
})
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang='scss' scoped>
|
|
|
|
page {
|
|
|
|
background-color: #fffcf5;
|
|
|
|
}
|
|
|
|
|
|
|
|
.card-d {
|
|
|
|
background-color: #fffcf5;
|
|
|
|
|
|
|
|
.c-title {
|
|
|
|
font-weight: bold;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
padding: 30rpx;
|
|
|
|
padding-bottom: 15rpx;
|
|
|
|
|
|
|
|
&:before {
|
|
|
|
content: '';
|
|
|
|
display: inline-block;
|
|
|
|
height: 0.8rem;
|
|
|
|
width: 6rpx;
|
|
|
|
margin-top: 0.2rem;
|
|
|
|
margin-right: 10rpx;
|
|
|
|
background-color: #feb048;
|
|
|
|
border-radius: 6rpx;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.c-box {
|
|
|
|
background-color: #fff;
|
|
|
|
padding: 20rpx;
|
|
|
|
margin: 28rpx;
|
|
|
|
margin-top: 0;
|
|
|
|
border-radius: 14rpx;
|
|
|
|
box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
|
|
|
|
}
|
|
|
|
|
|
|
|
.c-box-p {
|
|
|
|
padding: 20rpx;
|
|
|
|
}
|
|
|
|
|
|
|
|
.btn {
|
|
|
|
margin: 20rpx auto;
|
|
|
|
width: 694rpx;
|
|
|
|
height: 80rpx;
|
|
|
|
border-radius: 80rpx;
|
|
|
|
background-color: #feb048;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.swiper{
|
|
|
|
width: 654rpx;
|
|
|
|
height: 400rpx;
|
|
|
|
margin: 20rpx 0;
|
|
|
|
border-radius: 14rpx;
|
|
|
|
overflow: hidden;
|
|
|
|
.img{
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
:deep(.u-form-item__body){
|
|
|
|
padding: 5rpx 0 !important;
|
|
|
|
}
|
|
|
|
</style>
|