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>
<view v-if="uitem.ptValList">
<view class="checkboxtext" v-for="bitem in uitem.ptValList"
:key="bitem.id">
{{ bitem.content }}
</view>
</view>
</u-checkbox> </u-checkbox>
<view v-if="uitem.ptValList">
<view class="checkboxtext" v-for="bitem in uitem.ptValList"
:key="bitem.id">
{{ bitem.content }}
</view>
</view>
</view> </view>
</view> </view>
</view> </view>
@ -119,8 +119,7 @@
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,20 +128,9 @@
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 : ''
detail(this.recordCode).then(res => { this.dataies({
res.data && res.data.ptList && res.data.ptList.length > 0 ? res.data.ptList[0] recordCode: this.recordCode
.open = true : '' });
res.data.ptList.forEach(e => {
e.ptValList.forEach(el => {
el.val == "true" ? el.val = true : el.val = false
})
e.onelist = e.ptValList.filter(el => el.itemType == '1')
e.twolist = e.ptValList.filter(el => el.itemType == '2')
e.threelist = e.ptValList.filter(el => el.itemType == '3')
})
this.itemList = res.data.ptList
this.show = false
})
}) })
} }
}, },
@ -152,7 +140,18 @@
dataies(aitem) { dataies(aitem) {
this.recordCode = aitem.recordCode this.recordCode = aitem.recordCode
detail(this.recordCode).then(res => { detail(this.recordCode).then(res => {
this.itemList = res.data res.data && res.data.ptList && res.data.ptList.length > 0 ? res.data.ptList[0]
.open = true : ''
res.data.ptList.forEach(e => {
e.ptValList.forEach(el => {
el.val == "true" ? el.val = true : el.val = false
})
e.onelist = e.ptValList.filter(el => el.itemType == '1')
e.twolist = e.ptValList.filter(el => el.itemType == '2')
e.threelist = e.ptValList.filter(el => el.itemType == '3')
})
this.itemList = res.data.ptList
this.show = false
}) })
}, },
tapcollapseleft(item) { tapcollapseleft(item) {
@ -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;
} }
} }
} }
} }
} }
} }
} }