| | |
| | | :class="unfoldFlag ? 'max-9999' : 'max-300'"> |
| | | <view> |
| | | <view class="flex a-center j-between fs-23 lh-33 font-bold"> |
| | | <view>诉求号:{{ info.serialNumber }}</view> |
| | | <view>诉求号:{{ info.serialNumber || '-' }}</view> |
| | | <view class="color1">{{ ["正在办理", "延期办理", "超时办理", "已办结", "群众撤销", "上报待审核", "上级驳回"][info.status] }} |
| | | </view> |
| | | </view> |
| | |
| | | <view class="fs-27 lh-38 mt-10">{{ info.name }}</view> |
| | | </view> |
| | | <view class="flex-column a-center"> |
| | | <view class="fs-27 lh-38 font-bold">联系电话</view> |
| | | <view class="fs-27 lh-38 mt-10">{{ info.contactNumber }}</view> |
| | | <view class="flex a-center"> |
| | | <view> |
| | | <view class="fs-27 lh-38 font-bold">联系电话</view> |
| | | <view class="fs-27 lh-38 mt-10">{{ info.contactNumber }}</view> |
| | | </view> |
| | | <image @click.stop="callPhone(info.contactNumber)" src="../../static/tell.png" |
| | | class="w-58 h-58 shrink0 " /> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view v-else class="mt-33"> |
| | |
| | | <script> |
| | | import { |
| | | saveResult, |
| | | getComplaintDetail |
| | | getComplaintDetail, |
| | | saveAndComplete |
| | | } from './service' |
| | | import dayjs from '../../uni_modules/uview-ui/libs/util/dayjs' |
| | | import config from '@/config/index.js' |
| | |
| | | status: '', //处理状态 |
| | | againCklicFlag: true, |
| | | rulsFlag: false, |
| | | appealData: {}, //述求录入数据 |
| | | } |
| | | }, |
| | | onLoad(params) { |
| | | this.id = params.id |
| | | getComplaintDetail({ |
| | | id: params.id |
| | | }).then(res => { |
| | | this.info = res.data |
| | | }) |
| | | if (params.data) { |
| | | this.appealData = JSON.parse(params.data) |
| | | this.info = JSON.parse(params.data) |
| | | } |
| | | if (params.id) { |
| | | this.id = params.id |
| | | getComplaintDetail({ |
| | | id: params.id |
| | | }).then(res => { |
| | | this.info = res.data |
| | | }) |
| | | } |
| | | }, |
| | | filters: { |
| | | formatTime(val) { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | callPhone(phoneNumber) { |
| | | uni.makePhoneCall({ |
| | | phoneNumber |
| | | }); |
| | | }, |
| | | comfirm() { |
| | | this.appealData = {} |
| | | uni.navigateBack() |
| | | }, |
| | | submit() { |
| | | if (!this.status) { |
| | | this.rulsFlag = true |
| | |
| | | mask: true |
| | | }) |
| | | } |
| | | |
| | | saveResult({ |
| | | id: this.id, |
| | | let data = { |
| | | status: this.status == '已办结' ? 3 : 4, |
| | | completionDescription: this.completionDescription, |
| | | completionImages: this.completionImages.join(','), |
| | | completionOtherDescription: this.completionOtherDescription, |
| | | completionVideos: this.completionVideos.join(',') |
| | | } |
| | | |
| | | // 述求录入并办结 |
| | | if (Object.keys(this.appealData).length != 0) { |
| | | saveAndComplete({ |
| | | complaintCompletionDTO: data, |
| | | ...this.appealData |
| | | }).then(res => { |
| | | if (res.code == 200) { |
| | | uni.showToast({ |
| | | title: '提交成功', |
| | | icon: 'success', |
| | | mask: true |
| | | }) |
| | | setTimeout(() => { |
| | | uni.navigateBack({ |
| | | delta: 2, |
| | | success: () => { |
| | | this.$store.commit('SET_ISLIST', true) |
| | | } |
| | | }) |
| | | }, 1500) |
| | | } |
| | | }) |
| | | return |
| | | } |
| | | saveResult({ |
| | | id: this.id, |
| | | ...data |
| | | }).then(res => { |
| | | if (res.code == 200) { |
| | | uni.showToast({ |