|
@@ -7,6 +7,12 @@
|
|
<view>{{dataDetails.driverName}}</view>
|
|
<view>{{dataDetails.driverName}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="row1 flex flex-space-between">
|
|
|
|
+ <view>关联订单(选填)</view>
|
|
|
|
+ <view style='align-items: center;' class='flex'>
|
|
|
|
+ <view @click='selectorder'>{{dataDetails.orderNo}}></view>
|
|
|
|
+ </view>
|
|
|
|
+ </view>
|
|
<u-line class="line"></u-line>
|
|
<u-line class="line"></u-line>
|
|
<view class="row2">
|
|
<view class="row2">
|
|
<view class="title">投诉信息</view>
|
|
<view class="title">投诉信息</view>
|
|
@@ -15,6 +21,9 @@
|
|
name="1" multiple :maxCount="9"></u-upload>
|
|
name="1" multiple :maxCount="9"></u-upload>
|
|
</view>
|
|
</view>
|
|
<view class="row3" @click="submit">提交</view>
|
|
<view class="row3" @click="submit">提交</view>
|
|
|
|
+ <u-picker :show="isShow" ref="uPicker" keyName="label" :columns="orderList" @confirm="confirmorder"
|
|
|
|
+ :closeOnClickOverlay='true' @close='isShow=false' @cancel='isShow=false'>
|
|
|
|
+ </u-picker>
|
|
<u-toast ref="uToast"></u-toast>
|
|
<u-toast ref="uToast"></u-toast>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
@@ -24,14 +33,16 @@
|
|
mapState
|
|
mapState
|
|
} from 'vuex';
|
|
} from 'vuex';
|
|
import uploadImage from '@/components/ossutil/uploadFile.js';
|
|
import uploadImage from '@/components/ossutil/uploadFile.js';
|
|
- import permision from "@/js_sdk/wa-permission/permission.js"
|
|
|
|
|
|
+ import permision from "@/js_sdk/wa-permission/permission.js";
|
|
export default {
|
|
export default {
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
imgList: [],
|
|
imgList: [],
|
|
value1: '',
|
|
value1: '',
|
|
fileList1: [],
|
|
fileList1: [],
|
|
|
|
+ orderList:[],
|
|
dataDetails: {},
|
|
dataDetails: {},
|
|
|
|
+ isShow:false,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
@@ -39,9 +50,32 @@
|
|
},
|
|
},
|
|
onLoad(options) {
|
|
onLoad(options) {
|
|
this.dataDetails = JSON.parse(options.val)
|
|
this.dataDetails = JSON.parse(options.val)
|
|
|
|
+ console.log(11111,this.dataDetails)
|
|
this.imgList = []
|
|
this.imgList = []
|
|
},
|
|
},
|
|
|
|
+ onShow(){
|
|
|
|
+ uni.showLoading({
|
|
|
|
+ title: '加载中'
|
|
|
|
+ })
|
|
|
|
+ this.$request.baseRequest('get', '/orderInfo/getAssociatedOrder', {
|
|
|
|
+ commonId: this.dataDetails.id,
|
|
|
|
+ cargoCommonId:this.userInfo.id
|
|
|
|
+ }).then(res => {
|
|
|
|
+ let that = this
|
|
|
|
+ uni.hideLoading()
|
|
|
|
+ this.orderList=res.data
|
|
|
|
+ })
|
|
|
|
+ .catch(res => {
|
|
|
|
+ uni.$u.toast(res.message);
|
|
|
|
+ });
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
|
|
+ confirmorder(e){
|
|
|
|
+
|
|
|
|
+ },
|
|
|
|
+ selectorder(){
|
|
|
|
+ this.isShow=true
|
|
|
|
+ },
|
|
submit() {
|
|
submit() {
|
|
if (!this.value1) {
|
|
if (!this.value1) {
|
|
that.$refs.uToast.show({
|
|
that.$refs.uToast.show({
|
|
@@ -78,9 +112,9 @@
|
|
type: 'success',
|
|
type: 'success',
|
|
message: "反馈成功",
|
|
message: "反馈成功",
|
|
complete() {
|
|
complete() {
|
|
- uni.$u.route('/pages/order/driverDetail',{
|
|
|
|
- driver:JSON.stringify(that.dataDetails)
|
|
|
|
- });
|
|
|
|
|
|
+ uni.navigateBack({
|
|
|
|
+ delta:1
|
|
|
|
+ })
|
|
|
|
|
|
}
|
|
}
|
|
})
|
|
})
|