|
|
@ -92,7 +92,7 @@ |
|
|
|
<text class="label">上传图片</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="image-container" v-if="!collapsedStates[index]"> |
|
|
|
<view class="image-container" v-if="!collapsedStates[index] && record.image"> |
|
|
|
<image class="uploaded-image" v-for="(value, index) in record.image.split(',')" :key="index" :src="value" mode="aspectFill"></image> |
|
|
|
</view> |
|
|
|
|
|
|
@ -126,7 +126,7 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 保养前图片 --> |
|
|
|
<view class="image-container" v-if="!collapsedStates[index]"> |
|
|
|
<view class="image-container" v-if="!collapsedStates[index] && record.stateFrontImage"> |
|
|
|
<image |
|
|
|
class="uploaded-image" |
|
|
|
v-for="(img, imgIndex) in record.stateFrontImage.split(',')" |
|
|
@ -146,7 +146,7 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 保养后图片 --> |
|
|
|
<view class="image-container" v-if="!collapsedStates[index]"> |
|
|
|
<view class="image-container" v-if="!collapsedStates[index] && record.stateBackImage"> |
|
|
|
<image |
|
|
|
class="uploaded-image" |
|
|
|
v-for="(img, imgIndex) in record.stateBackImage.split(',')" |
|
|
@ -170,7 +170,7 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 费用详情表格 --> |
|
|
|
<view class="cost-table" v-if="!collapsedStates[index]"> |
|
|
|
<view class="cost-table" v-if="!collapsedStates[index] && record.exhibitMaintenanceExpenses.length"> |
|
|
|
<view class="table-header"> |
|
|
|
<text class="header-cell">费用名称</text> |
|
|
|
<text class="header-cell">数量</text> |
|
|
@ -221,7 +221,7 @@ |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 附件图片 --> |
|
|
|
<view class="image-container" v-if="!collapsedStates[index]"> |
|
|
|
<view class="image-container" v-if="!collapsedStates[index] && record.remarkImage"> |
|
|
|
<image class="uploaded-image" v-for="(value, index) in record.remarkImage.split(',')" :src="value" :key="index" mode="aspectFill"></image> |
|
|
|
</view> |
|
|
|
|
|
|
@ -242,12 +242,16 @@ |
|
|
|
<text class="collapse-icon">{{ collapsedStates[index] ? '▼' : '▲' }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<uv-loading-icon v-if="loading"></uv-loading-icon> |
|
|
|
<view v-if="isLoading" style="padding:400rpx 0; "> |
|
|
|
<uv-loading-icon text="正在加载中 先喝杯茶吧"></uv-loading-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view v-else-if="!loading && !records.length "> |
|
|
|
<view v-else-if="!isLoading && !list.length "> |
|
|
|
<uv-empty icon="/static/暂无搜索结果.png" /> |
|
|
|
</view> |
|
|
|
<uv-loading-icon v-else></uv-loading-icon> |
|
|
|
<view v-else style="padding:400rpx 0; "> |
|
|
|
<uv-loading-icon text="正在加载中 先喝杯茶吧"></uv-loading-icon> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
@ -265,7 +269,8 @@ export default { |
|
|
|
activeFilter: 0, // 当前激活的筛选器 |
|
|
|
collapsedStates: [], // 控制每个记录项的展开/收起状态 |
|
|
|
afterUpdateDataFn(list) { |
|
|
|
this.collapsedStates = new Array(list.length).fill(true) |
|
|
|
// 改为新增加的数组部分 为true 原来的 状态保留 |
|
|
|
this.collapsedStates.push(...new Array(8).fill(true)) |
|
|
|
}, |
|
|
|
filterOptions: [ |
|
|
|
{ name: '时间' }, |
|
|
@ -315,6 +320,7 @@ export default { |
|
|
|
this.mixinListApi = this.activeMainTab === 'repair' ? 'exhibit.queryRepairList' : 'exhibit.queryMaintenanceList' |
|
|
|
this.onFilterChange() |
|
|
|
this.initPage() |
|
|
|
this.list = [] |
|
|
|
this.getList(true) |
|
|
|
// this.initCollapsedStates() |
|
|
|
}, |
|
|
|