46 lines
1.9 KiB
Plaintext
46 lines
1.9 KiB
Plaintext
<!--pages/device/detail/detail.wxml-->
|
|
<view class="container">
|
|
<view class="detail-card">
|
|
<view class="card-header">
|
|
<view class="device-title">{{device.deviceName}}</view>
|
|
<t-tag theme="{{device.statusTheme}}" size="medium">{{device.statusText}}</t-tag>
|
|
</view>
|
|
|
|
<t-cell-group>
|
|
<t-cell title="设备编号" note="{{device.deviceCode}}" />
|
|
<t-cell title="设备类型" note="{{device.deviceType}}" />
|
|
<t-cell title="规格型号" note="{{device.specification}}" />
|
|
<t-cell title="生产厂家" note="{{device.manufacturer || '-'}}" />
|
|
<t-cell title="使用单位" note="{{device.useUnit}}" />
|
|
<t-cell title="所属单位" note="{{device.belongUnit}}" />
|
|
<t-cell title="存放位置" note="{{device.location || '-'}}" />
|
|
<t-cell title="责任人" note="{{device.responsible || '-'}}" />
|
|
</t-cell-group>
|
|
</view>
|
|
|
|
<view class="detail-card">
|
|
<view class="card-title">检验信息</view>
|
|
<t-cell-group>
|
|
<t-cell title="购置日期" note="{{device.purchaseDate || '-'}}" />
|
|
<t-cell title="上次检验日期" note="{{device.lastInspectionDate}}" />
|
|
<t-cell title="下次检验日期" note="{{device.nextInspectionDate}}" />
|
|
<t-cell title="检验周期" note="{{device.inspectionCycle || '-'}}个月" />
|
|
<t-cell
|
|
title="距离检验到期"
|
|
note="{{device.daysLeft > 0 ? '还有' + device.daysLeft + '天' : '已到期' + Math.abs(device.daysLeft) + '天'}}"
|
|
/>
|
|
</t-cell-group>
|
|
</view>
|
|
|
|
<view class="detail-card" wx:if="{{device.remark}}">
|
|
<view class="card-title">备注信息</view>
|
|
<view class="remark-content">{{device.remark}}</view>
|
|
</view>
|
|
|
|
<view class="action-buttons">
|
|
<t-button theme="primary" size="large" block bindtap="editDevice">编辑设备</t-button>
|
|
<t-button theme="default" size="large" block bindtap="deleteDevice" style="margin-top: 24rpx;">删除设备</t-button>
|
|
</view>
|
|
</view>
|
|
|