|
@@ -22,7 +22,7 @@
|
|
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>
|
|
@@ -35,16 +35,16 @@
|
|
} from 'vuex';
|
|
} from 'vuex';
|
|
import permision from "@/js_sdk/wa-permission/permission.js"
|
|
import permision from "@/js_sdk/wa-permission/permission.js"
|
|
import uploadImage from '@/components/ossutil/uploadFile.js';
|
|
import uploadImage from '@/components/ossutil/uploadFile.js';
|
|
-
|
|
|
|
|
|
+
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
imgList: [],
|
|
imgList: [],
|
|
value1: '',
|
|
value1: '',
|
|
fileList1: [],
|
|
fileList1: [],
|
|
- orderList:[],
|
|
|
|
|
|
+ orderList: [],
|
|
dataDetails: {},
|
|
dataDetails: {},
|
|
- isShow:false,
|
|
|
|
|
|
+ isShow: false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -56,52 +56,51 @@
|
|
console.log(this.dataDetails)
|
|
console.log(this.dataDetails)
|
|
this.imgList = []
|
|
this.imgList = []
|
|
},
|
|
},
|
|
- onShow(){
|
|
|
|
|
|
+ onShow() {
|
|
uni.showLoading({
|
|
uni.showLoading({
|
|
title: '加载中'
|
|
title: '加载中'
|
|
})
|
|
})
|
|
- this.$request.baseRequest('get', '/orderInfo/getAssociatedOrder',{
|
|
|
|
- commonId: this.dataDetails.commonId,
|
|
|
|
- cargoCommonId: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', {
|
|
|
|
+ commonId: this.dataDetails.commonId,
|
|
|
|
+ cargoCommonId: this.userInfo.id
|
|
|
|
+ }).then(res => {
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ this.orderList = [res.data]
|
|
|
|
+ // console.log(this.orderList)
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ uni.$u.toast(res.message);
|
|
|
|
+ });
|
|
},
|
|
},
|
|
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() {
|
|
- var that=this
|
|
|
|
|
|
+ var that = this
|
|
if (!this.value1) {
|
|
if (!this.value1) {
|
|
that.$refs.uToast.show({
|
|
that.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
@@ -109,7 +108,7 @@
|
|
})
|
|
})
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (this.value1.length<10||this.value1.length>300) {
|
|
|
|
|
|
+ if (this.value1.length < 10 || this.value1.length > 300) {
|
|
that.$refs.uToast.show({
|
|
that.$refs.uToast.show({
|
|
type: 'error',
|
|
type: 'error',
|
|
message: "举报信息输入错误!",
|
|
message: "举报信息输入错误!",
|
|
@@ -120,18 +119,18 @@
|
|
title: '加载中'
|
|
title: '加载中'
|
|
})
|
|
})
|
|
this.$request.baseRequest('post', '/feedbackReport/api/addInfo', {
|
|
this.$request.baseRequest('post', '/feedbackReport/api/addInfo', {
|
|
- initiator:this.dataDetails.cargoOwner,
|
|
|
|
- initiatorNumber:this.dataDetails.cargoOwnerPhone,
|
|
|
|
|
|
+ initiator: uni.getStorageSync("firstAuthentication").name,
|
|
|
|
+ initiatorNumber: uni.getStorageSync("firstAuthentication").phone,
|
|
commonId: this.userInfo.id,
|
|
commonId: this.userInfo.id,
|
|
passive: this.dataDetails.driverName,
|
|
passive: this.dataDetails.driverName,
|
|
passiveNumber: this.dataDetails.driverPhone,
|
|
passiveNumber: this.dataDetails.driverPhone,
|
|
- orderId:this.dataDetails.orderId,
|
|
|
|
- orderNo:this.dataDetails.orderNo,
|
|
|
|
- passiveCommonId:this.dataDetails.commonId,
|
|
|
|
|
|
+ orderId: this.dataDetails.orderId,
|
|
|
|
+ orderNo: this.dataDetails.orderNo,
|
|
|
|
+ passiveCommonId: this.dataDetails.commonId,
|
|
content: this.value1,
|
|
content: this.value1,
|
|
url: this.imgList.toString(),
|
|
url: this.imgList.toString(),
|
|
flag: 2,
|
|
flag: 2,
|
|
- objectFlag:1,
|
|
|
|
|
|
+ objectFlag: 1,
|
|
}).then(res => {
|
|
}).then(res => {
|
|
let that = this
|
|
let that = this
|
|
uni.hideLoading()
|
|
uni.hideLoading()
|
|
@@ -139,10 +138,10 @@
|
|
type: 'success',
|
|
type: 'success',
|
|
message: "举报成功",
|
|
message: "举报成功",
|
|
complete() {
|
|
complete() {
|
|
- uni.$u.route('/pages/order/driverDetail',{
|
|
|
|
- driver:JSON.stringify(that.dataDetails)
|
|
|
|
|
|
+ uni.$u.route('/pages/order/driverDetail', {
|
|
|
|
+ driver: JSON.stringify(that.dataDetails)
|
|
});
|
|
});
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
})
|
|
})
|
|
})
|
|
})
|