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">
{{ uitem.content }}
</view>
<view v-if="uitem.ptValList">
<view class="checkboxtext" v-for="bitem in uitem.ptValList"
:key="bitem.id">
{{ bitem.content }}
</view>
</view>
</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>
@ -119,8 +119,7 @@
res.data.forEach(e => {
if (e.list && e.list.length > 0) {
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 : ''
res.data && res.data[0].list.length > 0 ? this.recordCode = res.data[0].list[0]
.recordCode : ''
detail(this.recordCode).then(res => {
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
})
this.dataies({
recordCode: this.recordCode
});
})
}
},
@ -152,7 +140,18 @@
dataies(aitem) {
this.recordCode = aitem.recordCode
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) {
@ -179,9 +178,10 @@
}
.checkboxtext {
color: #606266;
font-weight: 550;
font-size: 20rpx;
padding-left: 20rpx;
font-size: 22rpx;
padding-left: 40rpx;
}
.app {
@ -300,7 +300,7 @@
font-size: 22rpx;
font-weight: 500;
color: #000;
width: 94%;
width: 100%;
line-height: 40rpx;
margin: 0 auto;
padding: 10rpx;
@ -310,15 +310,10 @@
.itemword {
margin: 15rpx;
}
}
}
}
}
}
}