|
|
@ -17,7 +17,7 @@ |
|
|
|
|
|
|
|
<!-- 产品列表 --> |
|
|
|
<view class="product-list"> |
|
|
|
<view class="product-item" v-for="(item, index) in productList" :key="index" @click="navigateToDetail(item)"> |
|
|
|
<view class="product-item" v-for="(item, index) in list" :key="index" @click="navigateToDetail(item)"> |
|
|
|
<!-- 产品ID和状态标签 --> |
|
|
|
<view class="item-header"> |
|
|
|
<view > |
|
|
@ -25,7 +25,7 @@ |
|
|
|
<img src="@/static/copy.png" alt="复制图标" class="item-icon"> |
|
|
|
</view> |
|
|
|
<view class="status-tag" :class="[getStatusClass(item.status)]"> |
|
|
|
<text class="status-text">{{ item.status }}</text> |
|
|
|
<text class="status-text">{{ item.status_dictText }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
@ -34,7 +34,7 @@ |
|
|
|
|
|
|
|
<!-- 产品标题 --> |
|
|
|
<view class="item-title"> |
|
|
|
<text class="title-text">{{ item.name }}</text> |
|
|
|
<text class="title-text">{{ item.showpieceId_dictText }}</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
<!-- 产品详情 --> |
|
|
@ -42,33 +42,33 @@ |
|
|
|
<view class="detail-row"> |
|
|
|
<view class="detail-item"> |
|
|
|
<text class="detail-label">展品编号</text> |
|
|
|
<text class="detail-value">{{ item.code }}</text> |
|
|
|
<text class="detail-value">{{ item.showpieceId }}</text> |
|
|
|
</view> |
|
|
|
<view class="detail-item"> |
|
|
|
<text class="detail-label">紧急程度</text> |
|
|
|
<text class="detail-value">一般</text> |
|
|
|
<text class="detail-value">{{ item.urgency_dictText }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="detail-row"> |
|
|
|
<view class="detail-item"> |
|
|
|
<text class="detail-label">展品位置</text> |
|
|
|
<text class="detail-value">{{ item.location }}</text> |
|
|
|
<text class="detail-value">{{ item.position }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="detail-row"> |
|
|
|
<view class="detail-item"> |
|
|
|
<text class="detail-label">报修人</text> |
|
|
|
<text class="detail-value">{{ item.reporter }}</text> |
|
|
|
<text class="detail-value">{{ item.reporterName }}</text> |
|
|
|
</view> |
|
|
|
<view class="detail-item"> |
|
|
|
<text class="detail-label">报修日期</text> |
|
|
|
<text class="detail-value">{{ item.reportDate }}</text> |
|
|
|
<text class="detail-value">{{ item.firstDate }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="detail-row"> |
|
|
|
<view class="detail-item full-width"> |
|
|
|
<text class="detail-label">故障描述</text> |
|
|
|
<text class="detail-value">{{ item.description }}</text> |
|
|
|
<text class="detail-value">{{ item.malfunctionDesc }}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -103,13 +103,17 @@ |
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
import ListMixin from '@/mixins/list' |
|
|
|
|
|
|
|
export default { |
|
|
|
mixins: [ListMixin], |
|
|
|
data() { |
|
|
|
return { |
|
|
|
selectedUrgency: '紧急程度', |
|
|
|
selectedStatus: '维修状态', |
|
|
|
urgencyShow: false, |
|
|
|
statusShow: false, |
|
|
|
mixinListApi: 'exhibit.queryMalfunctionList', |
|
|
|
urgencyColumns: [ |
|
|
|
[ |
|
|
|
|
|
|
@ -126,38 +130,6 @@ export default { |
|
|
|
'已解决' |
|
|
|
] |
|
|
|
], |
|
|
|
productList: [ |
|
|
|
{ |
|
|
|
id: '3451356565', |
|
|
|
name: '展品名称内容', |
|
|
|
code: '56559685623452', |
|
|
|
location: '2楼互动区液体力学', |
|
|
|
reporter: '李天华', |
|
|
|
reportDate: '2025-08-19', |
|
|
|
description: '展品右上边有破损,影响正常使用', |
|
|
|
status: '维修中' |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: '3451356565', |
|
|
|
name: '展品名称内容', |
|
|
|
code: '56559685623452', |
|
|
|
location: '2楼互动区液体力学', |
|
|
|
reporter: '李天华', |
|
|
|
reportDate: '2025-08-19', |
|
|
|
description: '展品右上边有破损,影响正常使用', |
|
|
|
status: '故障中' |
|
|
|
}, |
|
|
|
{ |
|
|
|
id: '3451356565', |
|
|
|
name: '展品名称内容', |
|
|
|
code: '56559685623452', |
|
|
|
location: '2楼互动区液体力学', |
|
|
|
reporter: '李天华', |
|
|
|
reportDate: '2025-08-19', |
|
|
|
description: '展品右上边有破损,影响正常使用', |
|
|
|
status: '已解决' |
|
|
|
} |
|
|
|
] |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|