|
@@ -0,0 +1,238 @@
|
|
|
+<template>
|
|
|
+ <view class="work-order-wrap info-wrap">
|
|
|
+ <panel>
|
|
|
+ <template v-slot:header>
|
|
|
+ <up-icon size="28rpx" :name="list"></up-icon>
|
|
|
+ 工单信息
|
|
|
+ </template>
|
|
|
+ <template v-slot:content>
|
|
|
+ <view class="order-info">
|
|
|
+ <view class="mix-wrap">
|
|
|
+ <view class="info-column">
|
|
|
+ <label-text
|
|
|
+ label="工单类型"
|
|
|
+ text="告警"
|
|
|
+ />
|
|
|
+ <label-text
|
|
|
+ label="工单号"
|
|
|
+ :line="2"
|
|
|
+ text="GJ20241107000971"
|
|
|
+ />
|
|
|
+ <label-text
|
|
|
+ label="紧急程度"
|
|
|
+ text="一般"
|
|
|
+ />
|
|
|
+ <label-text
|
|
|
+ label="是否逾期"
|
|
|
+ text="处理预期"
|
|
|
+ />
|
|
|
+ </view>
|
|
|
+ <u--image
|
|
|
+ :showLoading="true"
|
|
|
+ src="https://uview-plus.jiangruyi.com/h5/static/uview/common/logo.png"
|
|
|
+ width="160rpx"
|
|
|
+ height="150rpx"
|
|
|
+ />
|
|
|
+ </view>
|
|
|
+ <view class="line-info-wrap">
|
|
|
+ <label-text
|
|
|
+ label="预计处理时间"
|
|
|
+ text="2023-01-14 16:34:23"
|
|
|
+ />
|
|
|
+ <label-text
|
|
|
+ label="预计结束时间"
|
|
|
+ text="2023-01-14 16:34:23"
|
|
|
+ />
|
|
|
+ <label-text
|
|
|
+ label="问题原因"
|
|
|
+ line="3"
|
|
|
+ />
|
|
|
+ <label-text
|
|
|
+ label="解决方案"
|
|
|
+ line="3"
|
|
|
+ />
|
|
|
+ <label-text
|
|
|
+ label="费用/材料"
|
|
|
+ line="3"
|
|
|
+ />
|
|
|
+ <label-text
|
|
|
+ label="是否需要补充材料"
|
|
|
+ text="否"
|
|
|
+ />
|
|
|
+ <label-text
|
|
|
+ label="补充材料说明"
|
|
|
+ line="3"
|
|
|
+ />
|
|
|
+ <label-text
|
|
|
+ label="描述"
|
|
|
+ line="3"
|
|
|
+ text="这是华设智能机箱,这是华设智能机箱,这是华设智能机箱,这是华设智能机箱,这是华设智能机箱。"
|
|
|
+ />
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </panel>
|
|
|
+ <panel>
|
|
|
+ <template v-slot:header>
|
|
|
+ <up-icon size="28rpx" :name="list"></up-icon>
|
|
|
+ 问题图片
|
|
|
+ </template>
|
|
|
+ <template v-slot:content>
|
|
|
+ <view>
|
|
|
+ <up-album :urls="urls2" :autoWrap="true" :maxCount="8"></up-album>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </panel>
|
|
|
+ <panel>
|
|
|
+ <template v-slot:header>
|
|
|
+ <up-icon size="28rpx" :name="list"></up-icon>
|
|
|
+ 处置图
|
|
|
+ </template>
|
|
|
+ <template v-slot:content>
|
|
|
+ <view>
|
|
|
+ <up-album :urls="urls2" :autoWrap="true" :maxCount="8"></up-album>
|
|
|
+ </view>
|
|
|
+ </template>
|
|
|
+ </panel>
|
|
|
+ <panel>
|
|
|
+ <template v-slot:header>
|
|
|
+ <up-icon size="28rpx" :name="list"></up-icon>
|
|
|
+ 工单历程
|
|
|
+ </template>
|
|
|
+ <template v-slot:content>
|
|
|
+ <steps
|
|
|
+ :orientation="'vertical'"
|
|
|
+ :steps="stepList"
|
|
|
+ :options="option"
|
|
|
+ :active="current"
|
|
|
+ @update:active="getActiveIndex">
|
|
|
+ <template #stepTitle="props">
|
|
|
+ <view class="title-info">{{ props.stepInfo.label }}</view>
|
|
|
+ <view class="title-date">2024-08-09 12:20:00</view>
|
|
|
+ </template>
|
|
|
+ <template #stepItem="stepInfo">
|
|
|
+ {{ JSON.stringify(stepInfo) }}
|
|
|
+ </template>
|
|
|
+ </steps>
|
|
|
+ </template>
|
|
|
+ </panel>
|
|
|
+ <up-tabbar
|
|
|
+ :fixed="true"
|
|
|
+ :placeholder="false"
|
|
|
+ :safeAreaInsetBottom="false"
|
|
|
+ >
|
|
|
+ <view class="warning-btn">作废</view>
|
|
|
+ <view class="def-btn">处理</view>
|
|
|
+ <view class="def-btn">指派</view>
|
|
|
+ <view class="def-btn">受理</view>
|
|
|
+ </up-tabbar>
|
|
|
+ </view>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup lang="ts">
|
|
|
+
|
|
|
+import list from "@/static/aiot/list.svg";
|
|
|
+import Panel from "@/components/pannel/index.vue";
|
|
|
+import LabelText from "@/components/labeltext/index.vue";
|
|
|
+import Steps from "@/components/steps/index.vue";
|
|
|
+import {ref} from 'vue';
|
|
|
+
|
|
|
+const urls2 = ref([
|
|
|
+ 'https://uview-plus.jiangruyi.com/h5/static/uview/common/logo.png',
|
|
|
+ 'https://uview-plus.jiangruyi.com/h5/static/uview/common/logo.png',
|
|
|
+ 'https://uview-plus.jiangruyi.com/h5/static/uview/common/logo.png',
|
|
|
+ 'https://uview-plus.jiangruyi.com/h5/static/uview/common/logo.png',
|
|
|
+ 'https://uview-plus.jiangruyi.com/h5/static/uview/common/logo.png',
|
|
|
+ 'https://uview-plus.jiangruyi.com/h5/static/uview/common/logo.png',
|
|
|
+ 'https://uview-plus.jiangruyi.com/h5/static/uview/common/logo.png',
|
|
|
+ 'https://uview-plus.jiangruyi.com/h5/static/uview/common/logo.png',
|
|
|
+ 'https://uview-plus.jiangruyi.com/h5/static/uview/common/logo.png',
|
|
|
+ 'https://uview-plus.jiangruyi.com/h5/static/uview/common/logo.png',
|
|
|
+]);
|
|
|
+const current = ref(0)
|
|
|
+const option = ref({
|
|
|
+ titleKey: "name",
|
|
|
+ content1Key: "details",
|
|
|
+ content2Key: "label"
|
|
|
+})
|
|
|
+const stepList = ref([{
|
|
|
+ name: '进度一',
|
|
|
+ details: '描述一',
|
|
|
+ label: '测试'
|
|
|
+}, {
|
|
|
+ name: '进度二',
|
|
|
+ details: '描述二'
|
|
|
+}, {
|
|
|
+ name: '进度三',
|
|
|
+ details: '描述三'
|
|
|
+}, {
|
|
|
+ name: '进度四',
|
|
|
+ details: '描述四'
|
|
|
+}])
|
|
|
+</script>
|
|
|
+
|
|
|
+
|
|
|
+<style lang="scss">
|
|
|
+.work-order-wrap {
|
|
|
+ padding-bottom: 140rpx;
|
|
|
+
|
|
|
+ .panel-wrap {
|
|
|
+ margin-bottom: $uni-block-gap;
|
|
|
+ }
|
|
|
+
|
|
|
+ .mix-wrap {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+
|
|
|
+ .info-column {
|
|
|
+ display: flex;
|
|
|
+ flex: 1;
|
|
|
+ align-items: flex-start;
|
|
|
+ justify-content: flex-start;
|
|
|
+ flex-direction: column;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .panel-content {
|
|
|
+ box-sizing: border-box;
|
|
|
+ padding: 15px 15px 15px 15px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .label-text-wrap {
|
|
|
+ margin-top: $uni-text-gap;
|
|
|
+ }
|
|
|
+
|
|
|
+ .stepper-container {
|
|
|
+ .title-date {
|
|
|
+ margin-left: auto;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .u-tabbar__content__item-wrapper {
|
|
|
+ padding-bottom: 40rpx;
|
|
|
+
|
|
|
+
|
|
|
+ > view {
|
|
|
+ box-sizing: border-box;
|
|
|
+ flex: 1;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ justify-content: center;
|
|
|
+ color: $uni-bg-color;
|
|
|
+
|
|
|
+ &:not(:last-child) {
|
|
|
+ border-right: 2rpx solid #fefefe47;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .warning-btn {
|
|
|
+ background-color: $uni-color-error;
|
|
|
+ }
|
|
|
+
|
|
|
+ .def-btn {
|
|
|
+ background-color: $uni-color-primary;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|