工单详情增加部分字段,装表新增采集器,修改工单列表查询的问题

This commit is contained in:
2025-11-18 15:11:05 +08:00
parent c03d70b221
commit 4779cc1718
9 changed files with 104 additions and 8 deletions

View File

@@ -11,7 +11,12 @@ Page({
* 页面的初始数据
*/
data: {
detail: {}
detail: {},
header: [
// { key: 'address', title: '电表地址', renderBody: (item) => item.meter?.address },
{ title: '操作人',renderBody: (item) => { return item.user_name } },
{ title: '状态',renderBody: (item) => { return item.status === 0 ? "未确认" : "已确认" } },
],
},
/**

View File

@@ -3,7 +3,8 @@
"navigator": "/components/navigator/index",
"van-popup": "@vant/weapp/popup/index",
"van-field": "@vant/weapp/field/index",
"van-button": "@vant/weapp/button/index"
"van-button": "@vant/weapp/button/index",
"custom-table": "/components/table/table"
},
"navigationStyle": "custom"
}

View File

@@ -36,6 +36,39 @@
<view wx:else> - </view>
</view>
</van-field>
<van-field
value="{{ detail.created_at || '-' }}"
label="发起时间"
readonly
title-width="132rpx"
/>
<van-field
value="{{ detail.created_name || '-' }}"
label="发起人"
readonly
title-width="132rpx"
/>
<van-field
value="{{ detail.target.meter_data.meter_sn || '-' }}"
label="电表编号"
readonly
title-width="132rpx"
/>
<van-field
value="{{ detail.reason || '-' }}"
label="批注"
readonly
title-width="132rpx"
/>
<van-field
value="{{ detail.current_user_audit_status === 0 ? '未确认' : '已确认' }}"
label="工单状态"
readonly
title-width="132rpx"
/>
<view style="margin: 20rpx;">
<custom-table header="{{header}}" list="{{detail.notifier}}" />
</view>
<view class="wrapper">
<view class="operate">
<view class="submit" wx:if="{{detail.current_user_audit_status === 0}}"> <van-button type="info" block bind:click="onSubmit"> 确认 </van-button> </view>