This commit is contained in:
2024-05-17 09:42:55 +08:00
parent 725511c4f9
commit 393de6531c

View File

@ -71,13 +71,13 @@
<view class="checkboxtitle"> <view class="checkboxtitle">
{{ uitem.content }} {{ uitem.content }}
</view> </view>
</u-checkbox>
<view v-if="uitem.ptValList"> <view v-if="uitem.ptValList">
<view class="checkboxtext" v-for="bitem in uitem.ptValList" <view class="checkboxtext" v-for="bitem in uitem.ptValList"
:key="bitem.id"> :key="bitem.id">
{{ bitem.content }} {{ bitem.content }}
</view> </view>
</view> </view>
</u-checkbox>
</view> </view>
</view> </view>
</view> </view>
@ -119,7 +119,6 @@
res.data.forEach(e => { res.data.forEach(e => {
if (e.list && e.list.length > 0) { if (e.list && e.list.length > 0) {
e.list.forEach(el => { e.list.forEach(el => {
const parts =
el.recordDate = el.recordDate.substr(5, 9); el.recordDate = el.recordDate.substr(5, 9);
}) })
} }
@ -129,6 +128,17 @@
this.itemlistleft && this.itemlistleft.length > 0 ? this.itemlistleft[0].open = true : '' this.itemlistleft && this.itemlistleft.length > 0 ? this.itemlistleft[0].open = true : ''
res.data && res.data[0].list.length > 0 ? this.recordCode = res.data[0].list[0] res.data && res.data[0].list.length > 0 ? this.recordCode = res.data[0].list[0]
.recordCode : '' .recordCode : ''
this.dataies({
recordCode: this.recordCode
});
})
}
},
tapcollapse(item) {
item.check = !item.check
},
dataies(aitem) {
this.recordCode = aitem.recordCode
detail(this.recordCode).then(res => { detail(this.recordCode).then(res => {
res.data && res.data.ptList && res.data.ptList.length > 0 ? res.data.ptList[0] res.data && res.data.ptList && res.data.ptList.length > 0 ? res.data.ptList[0]
.open = true : '' .open = true : ''
@ -143,17 +153,6 @@
this.itemList = res.data.ptList this.itemList = res.data.ptList
this.show = false this.show = false
}) })
})
}
},
tapcollapse(item) {
item.check = !item.check
},
dataies(aitem) {
this.recordCode = aitem.recordCode
detail(this.recordCode).then(res => {
this.itemList = res.data
})
}, },
tapcollapseleft(item) { tapcollapseleft(item) {
item.check = !item.check item.check = !item.check
@ -179,9 +178,10 @@
} }
.checkboxtext { .checkboxtext {
color: #606266;
font-weight: 550; font-weight: 550;
font-size: 20rpx; font-size: 22rpx;
padding-left: 20rpx; padding-left: 40rpx;
} }
.app { .app {
@ -300,7 +300,7 @@
font-size: 22rpx; font-size: 22rpx;
font-weight: 500; font-weight: 500;
color: #000; color: #000;
width: 94%; width: 100%;
line-height: 40rpx; line-height: 40rpx;
margin: 0 auto; margin: 0 auto;
padding: 10rpx; padding: 10rpx;
@ -310,15 +310,10 @@
.itemword { .itemword {
margin: 15rpx; margin: 15rpx;
}
}
} }
} }
}
}
} }
} }
} }