6/9
This commit is contained in:
@@ -2,12 +2,12 @@
|
||||
<view class="page_padding">
|
||||
<view class="flex-1 flex-col flex inspection_main_box">
|
||||
<view class="info_box">
|
||||
<view class="title_box flex items-center justify-between">
|
||||
<view class="title flex items-center">
|
||||
<view class="line"> </view>
|
||||
<view class="title_box flex flex-between">
|
||||
<view class="title flex">
|
||||
<text class="line"></text>
|
||||
<text>{{ info.villageName }} - {{ info.taskName }}</text>
|
||||
</view>
|
||||
<view class="inspection_status"> <text>已巡检</text> </view>
|
||||
<view class="inspection_status" style="flex: 100rpx"> <text>已巡检</text> </view>
|
||||
</view>
|
||||
<view class="info">
|
||||
<view class="item">
|
||||
@@ -180,7 +180,6 @@ onLoad(options => {
|
||||
font-size: 32rpx;
|
||||
color: #333333;
|
||||
min-height: 40rpx;
|
||||
text-wrap: wrap;
|
||||
line-height: 40rpx;
|
||||
.line {
|
||||
display: block;
|
||||
@@ -190,12 +189,11 @@ onLoad(options => {
|
||||
}
|
||||
}
|
||||
.inspection_status {
|
||||
width: 100rpx;
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
line-height: 36rpx;
|
||||
|
||||
text-align: center;
|
||||
&.todo {
|
||||
color: #4d5dfa;
|
||||
}
|
||||
|
||||
@@ -155,6 +155,11 @@ function handleChangeTime(event: string) {
|
||||
}
|
||||
|
||||
function handleTap(ite) {
|
||||
const today = parseTime(new Date(), '{m}月{d}日')
|
||||
if (today !== showDate.value) {
|
||||
return
|
||||
}
|
||||
|
||||
if (isComputed(ite.taskStatus)) {
|
||||
uni.navigateTo({
|
||||
url: '/pageSubPack/inspection/inspection_main?id=' + ite.id
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
<view class="info_body" v-for="(ite, ind) in item.points" :key="ind">
|
||||
<view class="info_title" style="margin-bottom: 20rpx"> {{ ite.ponitName }} </view>
|
||||
<uni-forms :modelValue="ite" :rules="rules" label-position="left" label-width="150">
|
||||
<uni-forms-item label="巡检状态" required>
|
||||
<uni-forms-item label="巡检状态" :required="!ite.complated">
|
||||
<uni-data-checkbox
|
||||
:disabled="ite.complated"
|
||||
v-model="ite.status"
|
||||
@@ -68,7 +68,7 @@
|
||||
</view>
|
||||
<view class="items_picker_box">
|
||||
<view class="label">
|
||||
<text class="is-required">*</text>
|
||||
<text class="is-required" v-if="!ite.complated">*</text>
|
||||
<text>巡检照片</text>
|
||||
</view>
|
||||
<view class="filePickerbox" v-if="!ite.complated">
|
||||
|
||||
@@ -153,7 +153,6 @@ function init() {
|
||||
|
||||
onLoad(options => {
|
||||
activeValue.value = Number(options.type)
|
||||
console.log(activeValue.value)
|
||||
})
|
||||
|
||||
onShow(() => {
|
||||
|
||||
Reference in New Issue
Block a user