123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- <template>
- <view>
-
- <view class="wrapper">
-
- <view>
- <view class="suggestHead">
- <text>投诉号</text>
- <text class="suggestHeadDetail">{{complaint.id}}</text>
- </view>
- <view class="suggestHead">
- <text>投诉人UID</text>
- <text class="suggestHeadDetailID">{{complaint.fromUid}}</text>
- </view>
- <view class="suggestHead">
- <text>处理人UID</text>
- <text class="suggestHeadDetailID">{{complaint.processorUid}}</text>
- </view>
- <view class="suggestHead">
- <text>投诉日期</text>
- <text class="suggestHeadDetail">{{complaint.fistDatetime}}</text>
- </view>
- </view>
-
- <view>
- <view class="suggestTitle">
- <text>投诉标题</text>
- <text class="suggestTitleDetail">{{complaint.complaintTitle}}</text>
- </view>
- <view class="suggestContent">
- <text>投诉内容</text>
- <text class="suggestContentDetail">{{complaint.complaintDetail}}</text>
- </view>
- </view>
-
- <view>
- <view class="handleResult">
- <text>处理结果</text>
- <text class="handleResultDetail">{{complaint.result}}</text>
- </view>
- <view class="handleDate">
- <text>结案日期</text>
- <text class="DateDetail">{{complaint.closetime}}</text>
- </view>
- <view class="handleStatus">
- <text>状态</text>
- <text style="width: 50px;" class="handleStatusDetail">{{complaint.status}}</text>
-
- <text class="handleBtn" @click="toHandleSuggest">处理</text>
-
-
- </view>
-
-
- </view>
-
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- complaint: {}
- };
- },
- onLoad(opt){
- this.complaint = JSON.parse(opt.item);
-
- if(this.complaint.result==null){
- this.complaint.result=" ";
- }
- if(this.complaint.closetime==null){
- this.complaint.closetime = " ";
- }
- if(this.complaint.processorUid==null){
- this.complaint.processorUid = " ";
- }
- },
- methods:{
- toHandleSuggest(){
-
- if(this.complaint.status=="已处理"){
-
- uni.showModal({
- title: '',
- content: '该投诉已被处理'
- })
-
- }
-
- else{
- uni.request({
- url: 'http://localhost:8222/education/my-complaint/handlingComplaint',
- data: {
- "id": this.complaint.id
- },
- header: {
- token: uni.getStorageSync('token')
- },
- method: 'POST',
- success: res => {
- // this.isLoading = false
- console.log(res)
- this.complaint.status = "处理中"
- let complaint = JSON.stringify(this.complaint)
- uni.navigateTo({
- url: '/subpkg/complaintHandle/complaintHandle?item=' + complaint
- })
-
- }
- })
- }
-
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- page {
- height: 100%;
- background-color: #FFF2CC;
- padding: 20rpx;
- }
- .wrapper {
- // position: relative;
- height: 100%;
- background-color: #FFF2CC;
- padding: 20rpx;
- }
- /* 建议号、建议人、建议日期 */
- .suggestHead {
- display: flex;
- margin-top: 10rpx;
- padding: 10rpx;
- }
- .suggestHeadDetail,
- .suggestHeadDetailID {
- margin-left: 20rpx;
- font-weight: bold;
- }
- /* 建议人和处理人ID */
- .suggestHeadDetailID {
- color: #00B0F0;
- text-decoration: underline;
- }
- /* 建议标题 */
- .suggestTitle,
- .suggestContent {
- margin-top: 40rpx;
- display: flex;
- }
- /* 建议标题内容 */
- .suggestTitleDetail {
- display: block;
- width: 70%;
- height: 120rpx;
- margin-left: 20rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 3;
- }
- /* 建议内容 */
- .suggestContentDetail {
- display: block;
- width: 70%;
- height: 200rpx;
- margin-left: 20rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 5;
- }
- /* 处理结果 */
- .handleResult {
- margin-top: 60rpx;
- display: flex;
- }
- /* 处理结果详情 */
- .handleResultDetail {
- display: block;
- width: 70%;
- height: 80rpx;
- margin-left: 20rpx;
- overflow: hidden;
- text-overflow: ellipsis;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- }
- /* 结案日期、处理状态 */
- .handleDate,
- .handleStatus {
- display: flex;
- margin-top: 40rpx;
- }
- /* 结案日期详情、状态详情 */
- .DateDetail,
- .handleStatusDetail {
- margin-left: 20rpx;
- font-weight: bold;
- }
- /* 状态详情颜色 */
- .handleStatusDetail {
- color: red;
- }
- /* 开始处理按钮 */
- .handleStart {
- position: absolute;
- bottom: 160rpx;
- width: 200rpx;
- margin-left: auto;
- margin-right: auto;
- left: 0;
- right: 0;
- }
- .handleBtn {
- // padding: 10rpx 20rpx;
- width: 50px;
- padding-left: 15px;
- border-radius: 30rpx;
- background-color: #8FAADC;
- color: white;
- margin-left: 20px;
- }
- </style>
|