| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- <template>
- <view class="detail-page">
- <navigation title="报修详情"></navigation>
- <view class="list-item">
- <view class="item-text">工单编号:{{ detailInfo.num || '-' }}</view>
- <view class="item-text">设备名称:{{ detailInfo.equipmentName || '-' }}</view>
- <view class="item-text">工单描述:{{ detailInfo.orderMsg || '-' }}</view>
- <view class="item-text">提交人:{{ detailInfo.createUserName || '-' }}</view>
- <view class="item-text">发生时间:{{ detailInfo.happenTime || '-' }}</view>
- <view class="item-text">故障图片:</view>
- <image :src="detailInfo.orderImg" class="orderImg"></image>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- detailInfo: {},
- id: ''
- }
- },
- onLoad(option) {
- this.getDetail(option.id)
- },
- methods: {
- getDetail(id) {
- this.$api.workOrderDetail(id).then(res => {
- this.detailInfo = res.data
- }).catch(err => {})
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .detail-page {
- .list-item {
- background-color: $uni-bg-color;
- padding: 20rpx;
- border-radius: 20rpx;
- margin-top: 28rpx;
-
- .item-text {
- margin-top: 10rpx;
- }
-
- .orderImg {
- width: 400rpx;
- height: 400rpx;
- }
- }
- }
- </style>
|