我的投诉 开发代码暂存

This commit is contained in:
wuxw 2020-02-29 02:15:57 +08:00
parent ded2b94e1b
commit e30897663d
5 changed files with 301 additions and 6 deletions

View File

@ -79,6 +79,18 @@
"navigationBarTitleText": "投诉单"
}
}
,{
"path" : "pages/auditComplaintOrder/auditComplaintOrder",
"style" : {
"navigationBarTitleText": "处理投诉单"
}
}
,{
"path" : "pages/auditComplaintHistoryOrder/auditComplaintHistoryOrder",
"style" : {
"navigationBarTitleText": "投诉审核历史单"
}
}
],
"globalStyle": {
"navigationBarTextStyle": "white",

View File

@ -0,0 +1,100 @@
<template>
<view>
<view class="padding margin-top">
<text>订单信息</text>
</view>
<view class="cu-list menu" >
<view class="cu-item">
<view class="content">
<text class="cuIcon-warn text-green"></text>
<text class="text-grey">投诉编码</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{auditHistoryOrder.complaintId}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-warn text-green"></text>
<text class="text-grey">房屋编码</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{auditHistoryOrder.floorNum}}号楼{{auditHistoryOrder.unitNum}}单元{{auditHistoryOrder.roomNum}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-warn text-green"></text>
<text class="text-grey">单类型</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{auditHistoryOrder.typeCdName}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-warn text-green"></text>
<text class="text-grey">投诉人</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{auditHistoryOrder.complaintName}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-warn text-green"></text>
<text class="text-grey">投诉电话</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{auditHistoryOrder.tel}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-warn text-green"></text>
<text class="text-grey">投诉时间</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{auditHistoryOrder.createTime}}</text>
</view>
</view>
<view class="cu-item">
<view class="content padding-tb-sm">
<view>
<text class="cuIcon-clothesfill text-blue margin-right-xs"></text>投诉内容</view>
<view class="text-gray text-sm">
<text class="cuIcon-infofill margin-right-xs"></text>{{auditHistoryOrder.context}}</view>
</view>
</view>
</view>
</view>
</template>
<script>
export default {
data() {
return {
complaintId:'',
auditHistoryOrder:{}
}
},
onLoad(options) {
let _complaintId = options.complaintId;
console.log('options',options);
this.complaintId = _complaintId;
this._loadComplaintHistoryOrder();
},
methods: {
_loadComplaintHistoryOrder:function(){
//
this.auditHistoryOrder = wx.getStorageSync("_auditComplaintHistory_"+this.complaintId);
},
}
}
</script>
<style>
</style>

View File

@ -0,0 +1,169 @@
<template>
<view>
<view class="padding margin-top">
<text>订单信息</text>
</view>
<view class="cu-list menu" >
<view class="cu-item">
<view class="content">
<text class="cuIcon-warn text-green"></text>
<text class="text-grey">投诉编码</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{auditOrder.complaintId}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-warn text-green"></text>
<text class="text-grey">房屋编码</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{auditOrder.floorNum}}号楼{{auditOrder.unitNum}}单元{{auditOrder.roomNum}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-warn text-green"></text>
<text class="text-grey">单类型</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{auditOrder.typeCdName}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-warn text-green"></text>
<text class="text-grey">投诉人</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{auditOrder.complaintName}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-warn text-green"></text>
<text class="text-grey">投诉电话</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{auditOrder.tel}}</text>
</view>
</view>
<view class="cu-item">
<view class="content">
<text class="cuIcon-warn text-green"></text>
<text class="text-grey">投诉时间</text>
</view>
<view class="action">
<text class="text-grey text-sm">{{auditOrder.createTime}}</text>
</view>
</view>
<view class="cu-item">
<view class="content padding-tb-sm">
<view>
<text class="cuIcon-clothesfill text-blue margin-right-xs"></text>投诉内容</view>
<view class="text-gray text-sm">
<text class="cuIcon-infofill margin-right-xs"></text>{{auditOrder.context}}</view>
</view>
</view>
</view>
<view class="padding margin-top">
<text>审核信息</text>
</view>
<form>
<view class="cu-form-group">
<view class="title">结果</view>
<picker @change="_changeResult" :value="stateIndex" :range="states">
<view class="picker">
{{stateIndex>-1?states[stateIndex]:'已处理'}}
</view>
</picker>
</view>
<view class="cu-form-group">
<textarea maxlength="-1" :disabled="modalName!=null" @input="textareaAInput" placeholder="多行文本输入框"></textarea>
</view>
</form>
<view class="padding flex flex-direction">
<button class="cu-btn bg-green margin-tb-sm lg" @tap="_auditOrder()">提交</button>
</view>
</view>
</template>
<script>
export default {
data() {
return {
complaintId:'',
auditOrder:{},
states: ['已处理', '无法处理'],
stateIndex:-1
}
},
onLoad(options) {
let _complaintId = options.complaintId;
this.complaintId = _complaintId;
console.log('_complaintId',_complaintId);
this._loadComplaintOrder();
},
methods: {
_loadComplaintOrder:function(){
this.auditOrder = uni.getStorageSync("_auditComplaint_"+this.complaintId);
//
/* let _that = this;
let _userInfo = this.java110Context.getUserInfo();
let storeId = _userInfo.storeId;
let _objData = {
page: 1,
row: 1,
storeId: storeId,
userId: _userInfo.userId,
complaintId:this.complaintId,
communityId:_that.java110Context.getCurrentCommunity().communityId
};
this.java110Context.request({
url: _that.java110Constant.url.listAuditComplaints,
header: _that.java110Context.getHeaders(),
method: "GET",
data: _objData, //
success: function(res) {
console.log("请求返回信息:", res);
if (res.statusCode != 200) {
uni.showToast({
icon:'none',
title:res.data
});
return;
}
let _data = res.data;
_that.auditOrder = _data.complaints[0];
},
fail: function(e) {
wx.showToast({
title: "服务器异常了",
icon: 'none',
duration: 2000
});
}
}); */
},
_changeResult:function(e){
this.stateIndex = e.detail.value;
console.log(e,this.stateIndex);
},
_auditOrder:function(){
}
}
}
</script>
<style>
</style>

View File

@ -15,7 +15,7 @@
<view class="margin-top" v-if="state=='10001'">
<view class="cu-list menu-avatar">
<view class="cu-item arrow" v-for="(item,index) in auditOrders" :key="index">
<view class="cu-item arrow" v-for="(item,index) in auditOrders" :key="index" @tap="_toAuditComplaintOrder(item)">
<view class="cu-avatar round lg" :style="'background-image:url('+orderImg+');'">
</view>
<view class="content">
@ -34,7 +34,7 @@
<view class="margin-top" v-if="state=='10002'">
<view class="cu-list menu-avatar">
<view class="cu-item arrow" v-for="(item,index) in orders" :key="index">
<view class="cu-item arrow" v-for="(item,index) in orders" :key="index" @tap="_toAuditComplaintHistoryOrder(item)">
<view class="cu-avatar round lg" :style="'background-image:url('+orderImg+');'">
</view>
<view class="content">
@ -89,7 +89,7 @@
row: 15,
storeId: storeId,
userId: _userInfo.userId,
communityId:_userInfo.communityId
communityId:_that.java110Context.getCurrentCommunity().communityId
};
@ -136,7 +136,7 @@
row: 15,
storeId: storeId,
userId: _userInfo.userId,
communityId:_userInfo.communityId
communityId:_that.java110Context.getCurrentCommunity().communityId
};
this.java110Context.request({
@ -169,6 +169,20 @@
});
}
});
},
_toAuditComplaintOrder:function(_item){
console.log('_item',_item);
wx.setStorageSync("_auditComplaint_"+_item.complaintId, _item);
uni.navigateTo({
url:"/pages/auditComplaintOrder/auditComplaintOrder?complaintId="+_item.complaintId
});
},
_toAuditComplaintHistoryOrder:function(_item){
console.log('_item',_item);
wx.setStorageSync("_auditComplaintHistory_"+_item.complaintId, _item);
uni.navigateTo({
url:"/pages/auditComplaintHistoryOrder/auditComplaintHistoryOrder?complaintId="+_item.complaintId
});
}
}
}

View File

@ -70,7 +70,7 @@
}, {
cuIcon: 'recordfill',
color: 'orange',
badge: 1,
badge: 0,
name: '我的维修',
pathUrl:'/notice/notice'
}, {
@ -82,7 +82,7 @@
}, {
cuIcon: 'noticefill',
color: 'olive',
badge: 22,
badge: 0,
name: '我的投诉',
pathUrl:'/complaintList/complaintList'
}, {