| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344 |
- <template>
- <view class="container">
- <view class="title">工单信息</view>
- <view class="box">
- <view class="box_key">工单编号:</view>
- <view class="box_value">{{ detailInfo.order }}</view>
- </view>
- <view class="box_time">
- <view class="time_msg">
- 报修时间:
- <text>{{ detailInfo.time }}</text>
- </view>
- <view class="time_type" v-if="detailInfo.type === 1">待接单</view>
- <view class="time_type color_type" v-if="detailInfo.type === 2">维修中</view>
- <view class="time_type" v-if="detailInfo.type === 3">待确认</view>
- <view class="time_type color_type2" v-if="detailInfo.type === 4">已完成</view>
- <view class="time_type" v-if="detailInfo.type === 5">已取消</view>
- </view>
- <view class="box">
- <view class="box_key">报修姓名:</view>
- <view class="box_value">{{ detailInfo.name }}</view>
- </view>
- <view class="box">
- <view class="box_key">报修电话:</view>
- <view class="box_value phone" @click="handleCallPhone(detailInfo.phone)">
- {{ detailInfo.phone }}
- <img src="../../static/images/repairsImg/phone.png" />
- </view>
- </view>
- <view class="box">
- <view class="box_key">报修区域:</view>
- <view class="box_value">{{ detailInfo.area }}</view>
- </view>
- <view class="box">
- <view class="box_key">详细地址:</view>
- <view class="box_value">{{ detailInfo.address }}</view>
- </view>
- <view class="box">
- <view class="box_key">报修物品:</view>
- <view class="box_value">{{ detailInfo.goods }}</view>
- </view>
- <view class="box">
- <view class="box_key">故障描述:</view>
- <view class="box_value">{{ detailInfo.description }}</view>
- </view>
- <view class="box_img">
- <view class="img_key">上传图片:</view>
- <img class="img_value" mode="aspectFill" :src="detailInfo.img[0]" @click="handleLookImgs(detailInfo.img)" />
- </view>
- <view class="box top" v-if="detailInfo.workerName">
- <view class="box_key">维修师傅:</view>
- <view class="box_value">{{ detailInfo.workerName }}</view>
- </view>
- <view class="box" v-if="detailInfo.workerPhone">
- <view class="box_key">师傅电话:</view>
- <view class="box_value phone" @click="handleCallPhone(detailInfo.workerPhone)">
- {{ detailInfo.workerPhone }}
- <img src="../../static/images/repairsImg/phone.png" />
- </view>
- </view>
- <view class="box" v-if="detailInfo.money">
- <view class="box_key">维修费用:</view>
- <view class="box_value2 phone" @click="checkFeeDetail">
- {{ detailInfo.money }}元
- <img src="../../static/images/repairsImg/eye.png" />
- </view>
- </view>
- <view class="title top">报修跟踪</view>
- <!-- 步骤条区域 -->
- <!-- activeIcon="checkmark-circle-fill" -->
- <uv-steps activeColor="#6FB6B8" direction="column" current="3">
- <uv-steps-item :customStyle="customStyle" v-for="item in stepsList" :key="item.id">
- <template v-slot:title>
- <view class="steps_title" :class="{ active: item.type }">{{ item.title }}</view>
- </template>
- <template v-slot:desc>
- <view class="steps_desc" v-for="(element, index) in item.desc" :key="index">{{ element }}</view>
- </template>
- </uv-steps-item>
- </uv-steps>
- <view class="gap"></view>
- <!-- 维修费用弹窗 -->
- <uni-popup :is-mask-click="false" ref="popup_fee">
- <view class="pop_fee">
- <view class="fee_title">
- 维修费用
- <text @click="$refs.popup_fee.close()">×</text>
- </view>
- <view class="fee_box">
- 耗材:
- <text>螺丝刀</text>
- </view>
- <view class="fee_box">
- 耗材单价:
- <text>1元</text>
- </view>
- <view class="fee_box">
- 耗材数量:
- <text>2</text>
- </view>
- <view class="fee_box">
- 耗材费用:
- <text>2元</text>
- </view>
- </view>
- </uni-popup>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- detailInfo: {},
- customStyle: {
- marginBottom: '5px'
- },
- stepsList: [
- {
- id: 1,
- title: '提交订单',
- type: true,
- desc: ['2023-07-05 08:25:25']
- },
- {
- id: 2,
- title: '已接单',
- type: true,
- desc: ['2023-07-05 08:25:25']
- },
- {
- id: 3,
- title: '待确认',
- type: true,
- desc: ['2023-07-05 08:25:25', '张发财转后勤:太贵了', '系统管理员改价:耗材为螺丝刀,价格50元', '系统管理员改价:耗材为螺丝刀,价格50元']
- },
- {
- id: 4,
- title: '待确认',
- type: false,
- desc: ['2023-07-05 08:25:25']
- },
- {
- id: 5,
- title: '已完成',
- type: false,
- desc: ['2023-07-05 08:25:25']
- }
- ]
- }
- },
- onLoad(options) {
- this.detailInfo = JSON.parse(decodeURIComponent(options.detailInfo))
- console.log(this.detailInfo)
- },
- methods: {
- // 查看维修费用回调
- checkFeeDetail() {
- this.$refs.popup_fee.open('center')
- },
- // 点击电话号码回调
- handleCallPhone(phone) {
- uni.makePhoneCall({
- phoneNumber: phone
- })
- },
- // 点击图片回调
- handleLookImgs(img) {
- // console.log(img)
- uni.previewImage({
- urls: img
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .container {
- padding: 0 30rpx;
- height: 100vh;
- overflow-y: auto;
- .title {
- height: 90rpx;
- line-height: 90rpx;
- font-size: 32rpx;
- font-weight: bold;
- }
- .top {
- margin-top: 20rpx;
- }
- .box {
- display: flex;
- height: 60rpx;
- font-size: 28rpx;
- .box_key {
- color: #808080;
- }
- .box_value {
- display: flex;
- img {
- margin-top: 5rpx;
- margin-left: 10rpx;
- width: 28rpx;
- height: 28rpx;
- }
- }
- .box_value2 {
- display: flex;
- img {
- margin-top: -2rpx;
- margin-left: 14rpx;
- width: 46rpx;
- height: 46rpx;
- }
- }
- .phone {
- color: #6fb6b8;
- }
- }
- .box_time {
- display: flex;
- height: 60rpx;
- .time_msg {
- font-size: 28rpx;
- color: #808080;
- text {
- color: #000000;
- }
- }
- .time_type {
- margin-left: 123rpx;
- margin-top: -5rpx;
- font-size: 32rpx;
- color: #ff5733;
- }
- .color_type {
- color: #1e7dfb;
- }
- .color_type2 {
- color: #6fb6b8;
- }
- }
- .box_img {
- display: flex;
- align-items: center;
- height: 120rpx;
- color: #808080;
- font-size: 28rpx;
- .img_key {
- }
- .img_value {
- width: 120rpx;
- height: 120rpx;
- border-radius: 14rpx;
- background-color: salmon;
- }
- }
- .steps_title {
- color: #969799;
- font-size: 28rpx;
- }
- .active {
- color: #6fb6b8;
- }
- .steps_desc {
- line-height: 45rpx;
- font-size: 24rpx;
- }
- .gap {
- height: 20rpx;
- }
- .pop_fee {
- padding-bottom: 50rpx;
- border-radius: 19rpx;
- background-color: #fff;
- .fee_title {
- display: flex;
- justify-content: space-between;
- align-items: center;
- box-sizing: border-box;
- padding: 0 31rpx 0 42rpx;
- width: 690rpx;
- height: 110rpx;
- font-size: 32rpx;
- font-weight: bold;
- border-radius: 19rpx 19rpx 0 0;
- border-bottom: 1rpx solid #e6e6e6;
- text {
- font-size: 45rpx;
- font-weight: 400;
- color: #808080;
- }
- }
- .fee_box {
- display: flex;
- align-items: center;
- padding-left: 42rpx;
- height: 80rpx;
- font-size: 28rpx;
- color: #808080;
- text {
- color: #000000;
- }
- }
- }
- }
- </style>
|