|
@@ -7,10 +7,11 @@
|
|
|
<view>{{dataDetails.driverName}}</view>
|
|
|
</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}}></view>
|
|
|
+ <view @click='selectorder'>{{dataDetails.orderNo?dataDetails.orderNo:'选择订单'}}></view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<u-line class="line"></u-line>
|
|
@@ -21,7 +22,7 @@
|
|
|
name="1" multiple :maxCount="9"></u-upload>
|
|
|
</view>
|
|
|
<view class="row3" @click="submit">提交</view>
|
|
|
- <u-picker :show="isShow" ref="uPicker" keyName="label" :columns="orderList" @confirm="confirmorder"
|
|
|
+ <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>
|
|
@@ -50,28 +51,32 @@
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
this.dataDetails = JSON.parse(options.val)
|
|
|
- console.log(11111,this.dataDetails)
|
|
|
+ console.log(this.dataDetails)
|
|
|
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);
|
|
|
- });
|
|
|
+ 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);
|
|
|
+ });
|
|
|
},
|
|
|
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
|
|
@@ -101,6 +106,8 @@
|
|
|
passive: this.dataDetails.driverName,
|
|
|
passiveNumber: this.dataDetails.driverPhone,
|
|
|
passiveCommonId:this.dataDetails.commonId,
|
|
|
+ orderId:this.dataDetails.orderId,
|
|
|
+ orderNo:this.dataDetails.orderNo,
|
|
|
content: this.value1,
|
|
|
url: this.imgList.toString(),
|
|
|
flag: 1,
|