|
@@ -8,6 +8,13 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<u-line class="line"></u-line>
|
|
|
+ <view class="row1 flex flex-space-between">
|
|
|
+ <view>关联订单(选填)</view>
|
|
|
+ <view style='align-items: center;' class='flex'>
|
|
|
+ <view @click='selectorder'>{{dataDetails.orderNo?dataDetails.orderNo:'选择订单'}}></view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <u-line class="line"></u-line>
|
|
|
<view class="row2">
|
|
|
<view class="title">投诉信息</view>
|
|
|
<u--textarea v-model="value1" placeholder="输入要反馈的内容,10-300字" count maxlength='300'></u--textarea>
|
|
@@ -15,6 +22,9 @@
|
|
|
name="1" multiple :maxCount="9"></u-upload>
|
|
|
</view>
|
|
|
<view class="row3" @click="submit">提交</view>
|
|
|
+ <u-picker :show="isShow" ref="uPicker" :columns="orderList" keyName="orderNo" @confirm="confirmorder"
|
|
|
+ :closeOnClickOverlay='true' @close='isShow=false' @cancel='isShow=false'>
|
|
|
+ </u-picker>
|
|
|
<u-toast ref="uToast"></u-toast>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -32,17 +42,54 @@
|
|
|
value1: '',
|
|
|
fileList1: [],
|
|
|
dataDetails: {},
|
|
|
+ orderList:[],
|
|
|
+ isShow:false,
|
|
|
+ type:0
|
|
|
};
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.get_camera_permission()
|
|
|
this.dataDetails = JSON.parse(options.val)
|
|
|
+ this.type=options.type
|
|
|
+ console.log(this.dataDetails)
|
|
|
this.imgList = []
|
|
|
},
|
|
|
+ onShow(){
|
|
|
+ uni.showLoading({
|
|
|
+ title: '加载中'
|
|
|
+ })
|
|
|
+ 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);
|
|
|
+ });
|
|
|
+ },
|
|
|
computed: {
|
|
|
...mapState(['hasLogin', 'userInfo', 'firstAuthentication'])
|
|
|
},
|
|
|
methods: {
|
|
|
+ confirmorder(e){
|
|
|
+ console.log(e)
|
|
|
+ this.dataDetails.orderId=e.value[0].id
|
|
|
+ this.dataDetails.orderNo=e.value[0].orderNo
|
|
|
+ this.isShow=false
|
|
|
+ },
|
|
|
+ selectorder(){
|
|
|
+ this.isShow=true
|
|
|
+ },
|
|
|
async get_camera_permission() {
|
|
|
var photol=await permision.requestAndroidPermission("android.permission.CAMERA")
|
|
|
if(photol == false){
|
|
@@ -64,6 +111,7 @@
|
|
|
uni.showLoading({
|
|
|
title: '加载中'
|
|
|
})
|
|
|
+ console.log()
|
|
|
this.$request.baseRequest('post', '/feedbackReport/api/addInfo', {
|
|
|
initiator:this.firstAuthentication.driverName,
|
|
|
initiatorNumber:this.firstAuthentication.driverPhone,
|
|
@@ -71,12 +119,15 @@
|
|
|
passive: this.dataDetails.cargoOwnerName,
|
|
|
passiveNumber: this.dataDetails.cargoOwnerPhone,
|
|
|
passiveCommonId:this.dataDetails.commonId,
|
|
|
+ orderId:this.dataDetails.orderId,
|
|
|
+ orderNo:this.dataDetails.orderNo,
|
|
|
content: this.value1,
|
|
|
url: this.imgList.toString(),
|
|
|
flag: 1,
|
|
|
objectFlag:2
|
|
|
}).then(res => {
|
|
|
let that = this
|
|
|
+ this.type=0
|
|
|
uni.hideLoading()
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'success',
|