123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328 |
- <template>
- <view class="content">
- <view class="shopContent flex">
- <view class="shoplogo">
- <image class="logo" :src="reportDeatil.store.image" mode="scaleToFill"></image>
- </view>
- <view class="shopDetail">
- <view class="shopName clamp">
- {{reportDeatil.store.name}}
- </view>
- <view class="shopDetailText clamp2" v-if="reportDeatil.processor_uid==0">
- {{reportDeatil.store.detailed_address}}
- </view>
- <view class="shopDetailText" v-if="reportDeatil.processor_uid!=0">
- <view>
- 已安排:{{reportDeatil.processor_user.staff_name}}
- </view>
-
- {{detail.time}
- </view>
- </view>
- <view class="buttomShop" @click="payShopPhonw">
- 联系商家
- </view>
- </view>
- <view class="listBox">
- <view class="list">
- <view class="flex listItem">
- <view class="flex titleBox">
- <text class="title">当前车辆</text>
- </view>
- <view class="right flex">
- {{cartInfo.car_name}}
- </view>
- </view>
- <view class="flex listItem">
- <view class="flex titleBox">
- <text class="title">维修单号</text>
- </view>
- <view class="right flex">
- {{reportDeatil.order_id}}
- </view>
- </view>
- <view class="flex listItem">
- <view class="flex titleBox">
- <text class="title">维修地点</text>
- </view>
- <view class="right flex">
- {{reportDeatil.address}}
- </view>
- </view>
-
- {{reportDeatil.phone}
- <view class="flex listItem">
- <view class="flex titleBox">
- <text class="title">申报时间</text>
- </view>
- <view class="right flex">
- {{reportDeatil.add_time}}
- </view>
- </view>
- <view class="flex listItem">
- <view class="flex titleBox">
- <text class="title">故障简述</text>
- </view>
- <view class="right flex">
- {{reportDeatil.content}}
- </view>
- </view>
- <view class="listItem" v-if="imglist.length>0">
- <view class="flex titleBox">
- <text class="title">已传图片</text>
- </view>
- <view class="right flex imgList">
- <view v-if="" class="position-relative margin-r-20" v-for="(item,index) in imglist">
- <image class="upImg" :src="item" mode="scaleToFill"></image>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="base-buttom" @click="outBxiu">
- 撤销报修
- </view>
- <uni-popup ref="popup" type="dialog">
- <uni-popup-dialog mode="input" title="请输入修改手机号" @confirm="editPhone">
- </uni-popup-dialog>
- </uni-popup>
- </view>
- </template>
- <script>
- import {
- cancel_question
- } from '@/api/user.js';
- export default {
- props: {
- cartInfo: {
- type: Object,
- default: function() {
- return {}
- }
- },
- reportDeatil: {
- type: Object,
- default: function() {
- return {}
- }
- }
- },
- computed: {
- imglist() {
- return this.reportDeatil.images.split(',')
- }
- },
- data() {
- return {};
- },
- created() {
- // console.log('调用方法2');
- },
- methods: {
- // 撤销报修
- outBxiu() {
- uni.showModal({
- title: '提示',
- content: '是否撤销报修?',
- success: res => {
- if (res.confirm) {
- uni.showLoading({
- title: '提交中...',
- mask: true
- });
- cancel_question({
- id: this.reportDeatil.id
- }).then((e) => {
- uni.hideLoading()
- uni.showModal({
- title: '提示',
- content: '撤销成功',
- showCancel: false,
- success: res => {
- uni.navigateBack()
- },
- });
- }).catch((e) => {
- uni.hideLoading()
- })
- }
- },
- });
- },
-
- edit() {
- this.$refs.popup.open();
- },
- editPhone(e) {
- console.log(e, '修改手机号');
- },
- payShopPhonw() {
- uni.makePhoneCall({
- phoneNumber: this.reportDeatil.store.phone //仅为示例
- });
- }
- }
- }
- </script>
- <style lang="scss">
- .content{
- padding-bottom: 30rpx;
- }
- .base-buttom{
- margin-top: 30rpx;
- }
- .base-buttom {
- color: $color-red;
- border: 1px solid $color-red;
- background-color: $page-color-base;
- }
- .shopContent {
- background-color: #FFFFFF;
- border-radius: 20rpx;
- height: 160rpx;
- padding: 20rpx;
- margin: 0 $page-row-spacing;
- margin-bottom: 20rpx;
- .buttomShop {
- border-radius: 99rpx;
- border: 1px solid $color-green;
- color: $color-green;
- font-size: 24rpx;
- padding: 20rpx 50rpx;
- line-height: 1;
- flex-shrink: 0;
- }
- .shoplogo {
- flex-shrink: 0;
- background-color: $font-color-white;
- width: 120rpx;
- height: 120rpx;
- border-radius: 20rpx;
- .logo {
- height: 100%;
- width: 100%;
- border-radius: 20rpx;
- }
- }
- .shopDetail {
- padding-left: 30rpx;
- flex-grow: 1;
- .shopName {
- line-height: 1;
- margin-bottom: 15rpx;
- font-size: 28rpx;
- color: $font-base;
- }
- .shopDetailText {
- font-size: 22rpx;
- color: $font-color-light;
- }
- }
- }
- .listBox {
- margin: $page-row-spacing;
- margin-top: 30rpx;
- border-radius: 20rpx;
- overflow: hidden;
- background-color: #FFFFFF;
- }
- .list {
- .input {
- text-align: right;
- font-size: $font-base;
- color: $color-gray;
- width: 100%;
- }
- .listItem {
- padding: 35rpx 40rpx;
- border-bottom: 1px solid $page-color-light;
- .imgList {
- margin-top: 30rpx;
- justify-content: flex-start;
- .topExit {
- width: 30rpx;
- height: 30rpx;
- position: absolute;
- top: -10rpx;
- right: -10rpx;
- }
- }
- }
- .listIconImg {
- width: 36rpx;
- }
- .right {
- color: $font-color-light;
- font-size: $font-base;
- justify-content: flex-end;
- position: relative;
- padding-left: 10rpx;
- .img {
- width: 26rpx;
- }
- .upImg {
- width: 120rpx;
- height: 120rpx;
- border-radius: 20rpx;
- background-color: $font-color-disabled;
- }
- .textarea_text {
- background-color: $page-color-base;
- width: 100%;
- margin-top: 30rpx;
- border-radius: 20rpx;
- padding: 30rpx;
- }
- .maxShow {
- position: absolute;
- bottom: 10rpx;
- right: 20rpx;
- font-size: 24rpx;
- }
- }
- .titleBox {
- flex-shrink: 0;
- .title {
- color: $font-color-base;
- font-size: $font-base;
- }
- }
- }
- </style>
|