This commit is contained in:
cclu 2023-08-02 18:33:48 +08:00
parent ceef51971c
commit 50641c7795

View File

@ -203,22 +203,22 @@
<view class="tab"> <view class="tab">
<view :class="popupTabSelect===item.value?'tabItem selectTabItem':'tabItem'" v-for="(item,index) in popupTab" :key="index" @click="handleChangePopupTab(item.value)">{{item.label}}</view> <view :class="popupTabSelect===item.value?'tabItem selectTabItem':'tabItem'" v-for="(item,index) in popupTab" :key="index" @click="handleChangePopupTab(item.value)">{{item.label}}</view>
</view> </view>
<view class="assessmentTable"> <view class="assessmentTable" v-if="popupServiceShowList.DetailList && popupServiceShowList.DetailList.length>0">
<view class="bigBox" v-for="(item,index) in popupServiceShowList.DetailList" :key="index" > <view class="bigBox" v-for="(item,index) in popupServiceShowList.DetailList" :key="index" >
<view class="assessmentItem" @click="handleNoShow(item)"> <view class="assessmentItem" @click="handleNoShow(item)" :style="{borderBottomWidth:!item.showChild?'0px':'1px'}">
<view class="left">{{item.PATROL_POSITION}}</view> <view class="left">{{item.PATROL_POSITION}}</view>
<view class="right"> <view class="right">
<image :style="{transform:item.showChild?'':'rotate(-90deg)'}" class="more" src="https://eshangtech.com/ShopICO/ahyd-BID/newCommercial/arrow_bottom.svg"/> <image :style="{transform:item.showChild?'':'rotate(-90deg)'}" class="more" src="https://eshangtech.com/ShopICO/ahyd-BID/newCommercial/arrow_bottom.svg"/>
</view> </view>
</view> </view>
<view v-if="item.showChild"> <view v-if="item.showChild">
<view class="smallItem" v-for="(subItem,subIndex) in item.PositionDetailList" :key="subIndex" :style="{borderBottomWidth:subIndex===item.PositionDetailList.length-1?'0px':'2px'}" @click="handleShowImgDetail(subItem)"> <view class="smallItem" v-for="(subItem,subIndex) in item.PositionDetailList" :key="subIndex" :style="{borderBottomWidth:subIndex===item.PositionDetailList.length-1 ?'0px':'2px'}" @click="handleShowImgDetail(subItem)">
<view class="top"> <view class="top">
<view class="time">{{subItem.PATROL_DATE.split(' ')[1]}}</view> <view class="time">{{subItem.PATROL_DATE.split(' ')[1]}}</view>
<view class="label">检查人: <span class="name">{{subItem.PATROL_PERSON}}</span></view> <view class="label">检查人: <span class="name">{{subItem.PATROL_PERSON}}</span></view>
</view> </view>
<view class="itemBox" v-if="subItem.PATROL_SITUATION" @click="changeDetail(subItem)"> <view class="itemBox" v-if="subItem.PATROL_SITUATION" @click="changeDetail(subItem)">
<view class="detailItem" > <view class="detailItem">
<view class="detailValue"> <view class="detailValue">
<view class="detailText">{{ subItem.PATROL_SITUATION || "-"}}</view> <view class="detailText">{{ subItem.PATROL_SITUATION || "-"}}</view>
</view> </view>
@ -253,6 +253,26 @@
</view> </view>
</view> </view>
</view> </view>
<view class="list" v-else>
<view class="item" v-for="(item,index) in popupServiceShowList.SERVERPARTList" :key="index">
<view class="person">
<p class="value">{{item.PATROL_PERSON}}</p>
<p class="label">检查人</p>
</view>
<view class="person">
<p class="value">{{item.PATROL_DATE}}</p>
<p class="label">检查日期</p>
</view>
<view class="person">
<p class="value">{{item.PATROL_ROUTE}}</p>
<p class="label">路线</p>
</view>
<view class="person">
<image v-if="item.PATROL_IMG && item.PATROL_IMG.length>0" class="icon" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/haveImg.svg"></image>
<p v-if="item.PATROL_IMG && item.PATROL_IMG.length>0" class="label">图片</p>
</view>
</view>
</view>
</view> </view>
<view class="meetList" v-if="popupShow===3"> <view class="meetList" v-if="popupShow===3">
<view class="message" style="margin-bottom: 8px"> <view class="message" style="margin-bottom: 8px">
@ -425,6 +445,8 @@ export default {
item.DetailList.forEach(subItem=>{ item.DetailList.forEach(subItem=>{
subItem.showChild = true subItem.showChild = true
}) })
//
item.DetailList.reverse()
}) })
// //
this.popupServiceShowList = this.popupServiceList[0] this.popupServiceShowList = this.popupServiceList[0]
@ -476,9 +498,10 @@ export default {
previewImage(event,subItem){ previewImage(event,subItem){
console.log('event',event) console.log('event',event)
console.log('subItem',subItem) console.log('subItem',subItem)
//
wx.previewImage({ wx.previewImage({
current: event.currentTarget.dataset.src, // http current: event.currentTarget.dataset.src, // http
urls: subItem.imgList // http urls: subItem.imgList // http
}) })
}, },
// //
@ -552,7 +575,8 @@ export default {
this.getMeetingDetail() this.getMeetingDetail()
} }
}, },
// //
//
handleChangeTab(value){ handleChangeTab(value){
this.selectTab = value this.selectTab = value
uni.showLoading({ uni.showLoading({
@ -598,6 +622,9 @@ export default {
duration:3000 duration:3000
}) })
}else{ }else{
uni.showLoading({
title: '正在加载...'
})
this.selectDate = value this.selectDate = value
// 2 // 2
if (this.selectTab===2){ if (this.selectTab===2){
@ -626,7 +653,6 @@ export default {
}, },
// //
async getAreaList(){ async getAreaList(){
const total = await request.$webGet(`CommercialApi/BaseInfo/GetSPRegionList`,{Province_Code:Store.state.userData.ProvinceCode}) const total = await request.$webGet(`CommercialApi/BaseInfo/GetSPRegionList`,{Province_Code:Store.state.userData.ProvinceCode})
uni.hideLoading() uni.hideLoading()
if (total.Result_Code===100){ if (total.Result_Code===100){
@ -639,7 +665,7 @@ export default {
this.selectAreaValue = this.areaList[0].value this.selectAreaValue = this.areaList[0].value
this.selectAreaName = this.areaList[0].label this.selectAreaName = this.areaList[0].label
// selectAreaValue // selectAreaValue
// //
this.getManagerList() this.getManagerList()
} }
}, },
@ -667,6 +693,9 @@ export default {
}, },
// //
async getManagerList(){ async getManagerList(){
uni.showLoading({
title: '正在加载...'
})
const date = new Date(this.searchTime) const date = new Date(this.searchTime)
let y = date.getFullYear() let y = date.getFullYear()
let m = date.getMonth() + 1 let m = date.getMonth() + 1
@ -1424,7 +1453,7 @@ export default {
.itemBox{ .itemBox{
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: flex-end;
.detailItem{ .detailItem{
width: 100%; width: 100%;
.detailValue{ .detailValue{