Browse Source

'存在问题-待询问'

mian
hflllll 1 week ago
parent
commit
8095477b48
3 changed files with 50 additions and 45 deletions
  1. +20
    -0
      api/modules/exhibit.js
  2. +13
    -41
      pages/index/maintain.vue
  3. +17
    -4
      subPages/home/RAArecord.vue

+ 20
- 0
api/modules/exhibit.js View File

@ -20,6 +20,15 @@ export default {
})
},
// 查看保养记录
async queryMaintenanceList(data) {
return http({
url: '/showpiece/queryMaintenanceList',
method: 'GET',
data
})
},
// 保养-新增保养记录
async addMaintenance(data) {
return http({
@ -29,4 +38,15 @@ export default {
needToken: true
})
},
// 报修- 查看报修单列表
async queryMalfunctionList(data) {
return http({
url: '/showpiece/queryMalfunctionList',
method: 'GET',
data
})
},
// chakan
}

+ 13
- 41
pages/index/maintain.vue View File

@ -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: {


+ 17
- 4
subPages/home/RAArecord.vue View File

@ -246,9 +246,14 @@
</template>
<script>
import ListMixin from '@/mixins/list'
export default {
mixins: [ListMixin],
data() {
return {
showpieceId: '',
mixinListApi: 'exhibit.queryRepairList',
activeMainTab: 'repair', // Tab
activeFilter: 0, //
filterOptions: [
@ -340,9 +345,9 @@ export default {
}
},
computed: {
list() {
return this.activeMainTab === 'repair' ? this.repairData : this.maintainData
},
// list() {
// return this.activeMainTab === 'repair' ? this.repairData : this.maintainData
// },
contentText() {
const tabText = this.activeMainTab === 'repair' ? '维修' : '保养'
const filterText = this.filterOptions[this.activeFilter].name
@ -358,6 +363,11 @@ export default {
}
},
methods: {
mixinSetParams() {
return {
showpieceId: this.showpieceId
}
},
switchMainTab(tab) {
this.activeMainTab = tab
},
@ -396,7 +406,10 @@ export default {
console.log('收起/展开费用详情', this.maintainData[index].isCollapsed)
}
}
}
},
onLoad(args){{
this.showpieceId = args.id
}}
}
</script>


Loading…
Cancel
Save