|
@@ -3,26 +3,28 @@
|
|
<view class="row1 flex flex-space-between">
|
|
<view class="row1 flex flex-space-between">
|
|
<view>被投诉人</view>
|
|
<view>被投诉人</view>
|
|
<view class='flex'>
|
|
<view class='flex'>
|
|
- <image :src="dataDetails.cargoOwnerPortrait" mode="widthFix" style="width: 40rpx;height: 40rpx;" class="img_css"> </image>
|
|
|
|
|
|
+ <image :src="dataDetails.cargoOwnerPortrait" mode="widthFix" style="width: 40rpx;height: 40rpx;"
|
|
|
|
+ class="img_css"> </image>
|
|
<view>{{dataDetails.cargoOwnerName?dataDetails.cargoOwnerName:dataDetails.cargoOwner}}</view>
|
|
<view>{{dataDetails.cargoOwnerName?dataDetails.cargoOwnerName:dataDetails.cargoOwner}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <u-line class="line"></u-line>
|
|
|
|
|
|
+ <u-line class="line" color="#E6E6E6"></u-line>
|
|
<view class="row1 flex flex-space-between">
|
|
<view class="row1 flex flex-space-between">
|
|
<view>关联订单(选填)</view>
|
|
<view>关联订单(选填)</view>
|
|
<view style='align-items: center;' class='flex'>
|
|
<view style='align-items: center;' class='flex'>
|
|
<view @click='selectorder'>{{dataDetails.orderNo?dataDetails.orderNo:'选择订单'}}></view>
|
|
<view @click='selectorder'>{{dataDetails.orderNo?dataDetails.orderNo:'选择订单'}}></view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <u-line class="line"></u-line>
|
|
|
|
|
|
+ <u-line class="line" color="#E6E6E6"></u-line>
|
|
<view class="row2">
|
|
<view class="row2">
|
|
<view class="title">投诉信息</view>
|
|
<view class="title">投诉信息</view>
|
|
- <u--textarea v-model="value1" placeholder="输入要反馈的内容,10-300字" count maxlength='300'></u--textarea>
|
|
|
|
|
|
+ <u--textarea v-model="value1" placeholder="输入要反馈的内容,10-300字" maxlength='300' border="none">
|
|
|
|
+ </u--textarea>
|
|
<u-upload class="uview-upload" :fileList="fileList1" @afterRead="afterRead($event)" @delete="deletePic"
|
|
<u-upload class="uview-upload" :fileList="fileList1" @afterRead="afterRead($event)" @delete="deletePic"
|
|
name="1" multiple :maxCount="9"></u-upload>
|
|
name="1" multiple :maxCount="9"></u-upload>
|
|
</view>
|
|
</view>
|
|
<view class="row3" @click="$u.throttle(submit, 1000)">提交</view>
|
|
<view class="row3" @click="$u.throttle(submit, 1000)">提交</view>
|
|
- <u-picker :show="isShow" ref="uPicker" :columns="orderList" keyName="orderNo" @confirm="confirmorder"
|
|
|
|
|
|
+ <u-picker :show="isShow" ref="uPicker" :columns="orderList" keyName="orderNo" @confirm="confirmorder"
|
|
:closeOnClickOverlay='true' @close='isShow=false' @cancel='isShow=false'>
|
|
:closeOnClickOverlay='true' @close='isShow=false' @cancel='isShow=false'>
|
|
</u-picker>
|
|
</u-picker>
|
|
<u-toast ref="uToast"></u-toast>
|
|
<u-toast ref="uToast"></u-toast>
|
|
@@ -42,69 +44,69 @@
|
|
value1: '',
|
|
value1: '',
|
|
fileList1: [],
|
|
fileList1: [],
|
|
dataDetails: {},
|
|
dataDetails: {},
|
|
- orderList:[],
|
|
|
|
- isShow:false,
|
|
|
|
- type:0
|
|
|
|
|
|
+ orderList: [],
|
|
|
|
+ isShow: false,
|
|
|
|
+ type: 0
|
|
};
|
|
};
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
this.get_camera_permission()
|
|
this.get_camera_permission()
|
|
this.dataDetails = JSON.parse(options.val)
|
|
this.dataDetails = JSON.parse(options.val)
|
|
- this.type=options.type
|
|
|
|
|
|
+ this.type = options.type
|
|
console.log(this.dataDetails)
|
|
console.log(this.dataDetails)
|
|
this.imgList = []
|
|
this.imgList = []
|
|
},
|
|
},
|
|
- onShow(){
|
|
|
|
|
|
+ onShow() {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '加载中'
|
|
title: '加载中'
|
|
})
|
|
})
|
|
- var commonId=''
|
|
|
|
- if(this.type==1){
|
|
|
|
- commonId=this.dataDetails.cargoCommonId
|
|
|
|
- }else{
|
|
|
|
- commonId=this.dataDetails.commonId
|
|
|
|
|
|
+ var commonId = ''
|
|
|
|
+ if (this.type == 1) {
|
|
|
|
+ commonId = this.dataDetails.cargoCommonId
|
|
|
|
+ } else {
|
|
|
|
+ commonId = this.dataDetails.commonId
|
|
}
|
|
}
|
|
- this.$request.baseRequest('get', '/orderInfo/getAssociatedOrder',{
|
|
|
|
- cargoCommonId: commonId,
|
|
|
|
- commonId:this.userInfo.id
|
|
|
|
- }).then(res => {
|
|
|
|
- let that = this
|
|
|
|
- uni.hideLoading()
|
|
|
|
- this.orderList=[res.data]
|
|
|
|
- // console.log(this.orderList)
|
|
|
|
- })
|
|
|
|
- .catch(res => {
|
|
|
|
- uni.$u.toast(res.message);
|
|
|
|
- });
|
|
|
|
|
|
+ this.$request.baseRequest('get', '/orderInfo/getAssociatedOrder', {
|
|
|
|
+ cargoCommonId: commonId,
|
|
|
|
+ commonId: this.userInfo.id
|
|
|
|
+ }).then(res => {
|
|
|
|
+ let that = this
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ this.orderList = [res.data]
|
|
|
|
+ // console.log(this.orderList)
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ uni.$u.toast(res.message);
|
|
|
|
+ });
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
...mapState(['hasLogin', 'userInfo', 'firstAuthentication'])
|
|
...mapState(['hasLogin', 'userInfo', 'firstAuthentication'])
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
- confirmorder(e){
|
|
|
|
|
|
+ confirmorder(e) {
|
|
console.log(e)
|
|
console.log(e)
|
|
- this.dataDetails.orderId=e.value[0].id
|
|
|
|
- this.dataDetails.orderNo=e.value[0].orderNo
|
|
|
|
- this.isShow=false
|
|
|
|
|
|
+ this.dataDetails.orderId = e.value[0].id
|
|
|
|
+ this.dataDetails.orderNo = e.value[0].orderNo
|
|
|
|
+ this.isShow = false
|
|
},
|
|
},
|
|
- selectorder(){
|
|
|
|
- this.isShow=true
|
|
|
|
|
|
+ selectorder() {
|
|
|
|
+ this.isShow = true
|
|
},
|
|
},
|
|
async get_camera_permission() {
|
|
async get_camera_permission() {
|
|
- var photol=await permision.requestAndroidPermission("android.permission.CAMERA")
|
|
|
|
- if(photol == false){
|
|
|
|
|
|
+ var photol = await permision.requestAndroidPermission("android.permission.CAMERA")
|
|
|
|
+ if (photol == false) {
|
|
uni.showModal({
|
|
uni.showModal({
|
|
title: '提示',
|
|
title: '提示',
|
|
content: '您已经关闭相册权限,去设置',
|
|
content: '您已经关闭相册权限,去设置',
|
|
- success: function (res) {
|
|
|
|
|
|
+ success: function(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
permision.gotoAppPermissionSetting()
|
|
permision.gotoAppPermissionSetting()
|
|
- // plus.runtime.openURL("app-settings:");
|
|
|
|
|
|
+ // plus.runtime.openURL("app-settings:");
|
|
} else if (res.cancel) {
|
|
} else if (res.cancel) {
|
|
console.log('用户点击取消');
|
|
console.log('用户点击取消');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- });
|
|
|
|
|
|
+ });
|
|
}
|
|
}
|
|
},
|
|
},
|
|
submit() {
|
|
submit() {
|
|
@@ -113,21 +115,21 @@
|
|
})
|
|
})
|
|
console.log()
|
|
console.log()
|
|
this.$request.baseRequest('post', '/feedbackReport/api/addInfo', {
|
|
this.$request.baseRequest('post', '/feedbackReport/api/addInfo', {
|
|
- initiator:this.firstAuthentication.driverName,
|
|
|
|
- initiatorNumber:this.firstAuthentication.driverPhone,
|
|
|
|
|
|
+ initiator: this.firstAuthentication.driverName,
|
|
|
|
+ initiatorNumber: this.firstAuthentication.driverPhone,
|
|
commonId: this.firstAuthentication.commonId,
|
|
commonId: this.firstAuthentication.commonId,
|
|
passive: this.dataDetails.cargoOwnerName,
|
|
passive: this.dataDetails.cargoOwnerName,
|
|
passiveNumber: this.dataDetails.cargoOwnerPhone,
|
|
passiveNumber: this.dataDetails.cargoOwnerPhone,
|
|
- passiveCommonId:this.dataDetails.commonId,
|
|
|
|
- orderId:this.dataDetails.orderId,
|
|
|
|
- orderNo:this.dataDetails.orderNo,
|
|
|
|
|
|
+ passiveCommonId: this.dataDetails.commonId,
|
|
|
|
+ orderId: this.dataDetails.orderId,
|
|
|
|
+ orderNo: this.dataDetails.orderNo,
|
|
content: this.value1,
|
|
content: this.value1,
|
|
url: this.imgList.toString(),
|
|
url: this.imgList.toString(),
|
|
flag: 1,
|
|
flag: 1,
|
|
- objectFlag:2
|
|
|
|
|
|
+ objectFlag: 2
|
|
}).then(res => {
|
|
}).then(res => {
|
|
let that = this
|
|
let that = this
|
|
- this.type=0
|
|
|
|
|
|
+ this.type = 0
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
this.$refs.uToast.show({
|
|
this.$refs.uToast.show({
|
|
type: 'success',
|
|
type: 'success',
|
|
@@ -200,6 +202,7 @@
|
|
.row1,
|
|
.row1,
|
|
.row2 {
|
|
.row2 {
|
|
padding: 40rpx;
|
|
padding: 40rpx;
|
|
|
|
+ font-size: 28rpx;
|
|
}
|
|
}
|
|
|
|
|
|
.title {
|
|
.title {
|
|
@@ -211,8 +214,9 @@
|
|
background: #2772FB;
|
|
background: #2772FB;
|
|
text-align: center;
|
|
text-align: center;
|
|
color: white;
|
|
color: white;
|
|
- padding: 20rpx;
|
|
|
|
|
|
+ padding: 25rpx;
|
|
margin: auto;
|
|
margin: auto;
|
|
|
|
+ font-size: 36rpx;
|
|
border-radius: 10rpx;
|
|
border-radius: 10rpx;
|
|
}
|
|
}
|
|
</style>
|
|
</style>
|