|
@@ -5,12 +5,13 @@
|
|
<view class="waybill_title">运单号:<span>{{item.waybillNo}}</span></view>
|
|
<view class="waybill_title">运单号:<span>{{item.waybillNo}}</span></view>
|
|
<span class="card_state" :style="{color:getState(item.status)}">{{orderStatus(item.status)}}</span>
|
|
<span class="card_state" :style="{color:getState(item.status)}">{{orderStatus(item.status)}}</span>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="title_ordermang"><span>订单号:</span>{{item.orderNo}}</view>
|
|
<view class="title_ordermang"><span>收货地址:</span>{{item.consigneeAddressDetails}}</view>
|
|
<view class="title_ordermang"><span>收货地址:</span>{{item.consigneeAddressDetails}}</view>
|
|
<view class="title_ordermang"><span>收货电话:</span>{{item.consigneeAddressPhone}}</view>
|
|
<view class="title_ordermang"><span>收货电话:</span>{{item.consigneeAddressPhone}}</view>
|
|
<view class="title_ordermang"><span>下单时间:</span>{{item.orderTime}}</view>
|
|
<view class="title_ordermang"><span>下单时间:</span>{{item.orderTime}}</view>
|
|
-
|
|
|
|
- <view style="display: flex;margin-top: 15rpx;" v-if="item.status == 1">
|
|
|
|
- <view class="btn_printil markd10" v-if="item.status == 1 || item.status == 2 || item.status == 3"
|
|
|
|
|
|
+ <view style="display: flex;margin-top: 15rpx;"
|
|
|
|
+ v-if="item.status == 1 || item.status == 2 || item.status == 3">
|
|
|
|
+ <!-- <view class="btn_printil markd10"
|
|
@click.stop="modifyOrder(item)">
|
|
@click.stop="modifyOrder(item)">
|
|
<u-button size="small" type="warning" text="修改运单"></u-button>
|
|
<u-button size="small" type="warning" text="修改运单"></u-button>
|
|
</view>
|
|
</view>
|
|
@@ -19,9 +20,12 @@
|
|
</view>
|
|
</view>
|
|
<view class="btn_printil markd10" @click.stop="sendOrders(item)">
|
|
<view class="btn_printil markd10" @click.stop="sendOrders(item)">
|
|
<u-button size="small" type="success" text="派单"></u-button>
|
|
<u-button size="small" type="success" text="派单"></u-button>
|
|
|
|
+ </view> -->
|
|
|
|
+ <view class="btn_printil markd10" @click.stop="toDeliver(item)">
|
|
|
|
+ <u-button size="small" type="success" text="去配送"></u-button>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view style="display: flex;" v-if="item.status == 2">
|
|
|
|
|
|
+ <view style="display: flex;" v-if="item.status == 4">
|
|
<view class="btn_printil markd10" @click.stop="rejection(item)">
|
|
<view class="btn_printil markd10" @click.stop="rejection(item)">
|
|
<u-button size="small" type="error" text="拒收"></u-button>
|
|
<u-button size="small" type="error" text="拒收"></u-button>
|
|
</view>
|
|
</view>
|
|
@@ -34,30 +38,39 @@
|
|
<view class="center_in title_sign">{{signRejection}}</view>
|
|
<view class="center_in title_sign">{{signRejection}}</view>
|
|
<view class="card_sign_for">
|
|
<view class="card_sign_for">
|
|
<view class="img_sign_rejection">运单号: {{orderNumber}}</view>
|
|
<view class="img_sign_rejection">运单号: {{orderNumber}}</view>
|
|
- <view v-if="!rejectionFlag">
|
|
|
|
- <u-radio-group v-model="value">
|
|
|
|
|
|
+ <view style="margin-bottom: 20rpx;" v-if="!rejectionFlag">
|
|
|
|
+ <u-radio-group v-model="modePayment">
|
|
<span style="font-size: 30rpx;margin: 0rpx 20rpx 15rpx 0rpx;">支付方式:</span>
|
|
<span style="font-size: 30rpx;margin: 0rpx 20rpx 15rpx 0rpx;">支付方式:</span>
|
|
<u-radio style="margin: 0rpx 20rpx 15rpx 0rpx;" v-for="(item, index) in radiolist" :key="index"
|
|
<u-radio style="margin: 0rpx 20rpx 15rpx 0rpx;" v-for="(item, index) in radiolist" :key="index"
|
|
:label="item.name" :name="item.value"></u-radio>
|
|
:label="item.name" :name="item.value"></u-radio>
|
|
</u-radio-group>
|
|
</u-radio-group>
|
|
</view>
|
|
</view>
|
|
- <view style="display: flex;">
|
|
|
|
- <view class="card_image_sign">
|
|
|
|
- <view class="img_sign_rejection center_in">{{signRejection}}图片</view>
|
|
|
|
- <u-upload :fileList="fileList1" name="1" multiple :maxCount="10" @afterRead="afterRead"
|
|
|
|
- @delete="deletePic"></u-upload>
|
|
|
|
- </view>
|
|
|
|
- <view class="card_image_sign">
|
|
|
|
- <view class="img_sign_rejection center_in" @click="goSignature('client')">客户签字</view>
|
|
|
|
- <u-image :showLoading="true" :src="imageData" width="200rpx" height="155rpx"
|
|
|
|
- @click="goSignature('client')"></u-image>
|
|
|
|
|
|
+ <view style="margin-bottom: 20rpx;" v-if="!rejectionFlag">
|
|
|
|
+ <u-radio-group v-model="statePayment">
|
|
|
|
+ <span style="font-size: 30rpx;margin: 0rpx 20rpx 15rpx 0rpx;">支付状态:</span>
|
|
|
|
+ <u-radio style="margin: 0rpx 20rpx 15rpx 0rpx;" v-for="(item, index) in stateList" :key="index"
|
|
|
|
+ :label="item.name" :name="item.value"></u-radio>
|
|
|
|
+ </u-radio-group>
|
|
|
|
+ <view v-if="statePayment == 2">
|
|
|
|
+ <u--input placeholder="请输入未结清备注" border="surround" v-model="remarksSettled"></u--input>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
+ <view class="card_image_sign">
|
|
|
|
+ <view class="img_sign_rejection">{{signRejection}}图片</view>
|
|
|
|
+ <u-upload :fileList="fileList1" name="1" multiple :maxCount="10" @afterRead="afterRead"
|
|
|
|
+ @delete="deletePic"></u-upload>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="card_image_sign">
|
|
|
|
+ <view class="img_sign_rejection" @click="goSignature('client')">客户签字</view>
|
|
|
|
+ <u-image :showLoading="true" :src="imageData" width="300rpx" height="155rpx"
|
|
|
|
+ @click="goSignature('client')" mode="scaleToFill"></u-image>
|
|
|
|
+ </view>
|
|
<view class="rejection_card" v-if="rejectionFlag">
|
|
<view class="rejection_card" v-if="rejectionFlag">
|
|
<view class="img_sign_rejection">拒收原因</view>
|
|
<view class="img_sign_rejection">拒收原因</view>
|
|
<u-textarea v-model="rejectionValue" placeholder="请输入拒收原因" autoHeight></u-textarea>
|
|
<u-textarea v-model="rejectionValue" placeholder="请输入拒收原因" autoHeight></u-textarea>
|
|
</view>
|
|
</view>
|
|
- <u-button size="small" type="primary" text="确定" @click="confirm()"></u-button>
|
|
|
|
|
|
+ <u-button style="margin-top: 30rpx;" size="small" type="primary" text="确定"
|
|
|
|
+ @click="confirm()"></u-button>
|
|
</view>
|
|
</view>
|
|
</u-popup>
|
|
</u-popup>
|
|
<u-popup :show="antiShow" mode="center" closeable :closeOnClickOverlay="false" round="6" @close="close">
|
|
<u-popup :show="antiShow" mode="center" closeable :closeOnClickOverlay="false" round="6" @close="close">
|
|
@@ -120,20 +133,30 @@
|
|
imageData: '',
|
|
imageData: '',
|
|
radiolist: [{
|
|
radiolist: [{
|
|
name: '现金',
|
|
name: '现金',
|
|
- value: 0,
|
|
|
|
|
|
+ value: 1,
|
|
}, {
|
|
}, {
|
|
name: '线上支付',
|
|
name: '线上支付',
|
|
- value: 1,
|
|
|
|
|
|
+ value: 2,
|
|
}, {
|
|
}, {
|
|
name: '银行卡',
|
|
name: '银行卡',
|
|
- value: 2,
|
|
|
|
|
|
+ value: 3,
|
|
}, {
|
|
}, {
|
|
name: '医保',
|
|
name: '医保',
|
|
- value: 3,
|
|
|
|
|
|
+ value: 4,
|
|
}, {
|
|
}, {
|
|
name: '其他',
|
|
name: '其他',
|
|
- value: 4,
|
|
|
|
- }]
|
|
|
|
|
|
+ value: 5,
|
|
|
|
+ }],
|
|
|
|
+ stateList: [{
|
|
|
|
+ name: '已结清',
|
|
|
|
+ value: 1,
|
|
|
|
+ }, {
|
|
|
|
+ name: '未结清',
|
|
|
|
+ value: 2,
|
|
|
|
+ }],
|
|
|
|
+ modePayment: null,
|
|
|
|
+ statePayment: null,
|
|
|
|
+ remarksSettled: '',
|
|
}
|
|
}
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
@@ -172,6 +195,14 @@
|
|
})
|
|
})
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ // 去配送
|
|
|
|
+ toDeliver(event) {
|
|
|
|
+ uni.setStorageSync('incubatorValue', event.coolerBox)
|
|
|
|
+ uni.setStorageSync('orderValue', JSON.stringify(event))
|
|
|
|
+ uni.navigateTo({
|
|
|
|
+ url: '/pages/order/dispatching'
|
|
|
|
+ });
|
|
|
|
+ },
|
|
// 拒收
|
|
// 拒收
|
|
rejection(value) {
|
|
rejection(value) {
|
|
this.orderNumber = value.waybillNo
|
|
this.orderNumber = value.waybillNo
|
|
@@ -191,23 +222,58 @@
|
|
let params = {
|
|
let params = {
|
|
waybillNo: this.orderNumber,
|
|
waybillNo: this.orderNumber,
|
|
receiptImg: this.imageUrl,
|
|
receiptImg: this.imageUrl,
|
|
- status: 3,
|
|
|
|
|
|
+ status: 5,
|
|
rejectionReason: this.rejectionValue,
|
|
rejectionReason: this.rejectionValue,
|
|
|
|
+ receiptsign: this.imageData,
|
|
|
|
+ paymentType: this.modePayment,
|
|
|
|
+ paymentStatus: this.statePayment,
|
|
|
|
+ paymentremark: this.remarksSettled,
|
|
}
|
|
}
|
|
|
|
+ let verify = false
|
|
if (this.rejectionFlag) {
|
|
if (this.rejectionFlag) {
|
|
- params.status = 4
|
|
|
|
|
|
+ params.status = 6
|
|
|
|
+ verify = this.verification(params)
|
|
} else {
|
|
} else {
|
|
- params.status = 3
|
|
|
|
|
|
+ params.status = 5
|
|
|
|
+ verify = this.verification(params)
|
|
|
|
+ }
|
|
|
|
+ if (verify) {
|
|
|
|
+ this.$api.post('/api/waybill/receipt', params).then(res => {
|
|
|
|
+ if (res.code == 200) {
|
|
|
|
+ this.signForShow = false
|
|
|
|
+ uni.$u.toast(res.msg)
|
|
|
|
+ this.$emit('operateSuccessfully')
|
|
|
|
+ } else {
|
|
|
|
+ uni.$u.toast(res.msg)
|
|
|
|
+ }
|
|
|
|
+ })
|
|
}
|
|
}
|
|
- this.$api.post('/api/waybill/receipt', params).then(res => {
|
|
|
|
- if (res.code == 200) {
|
|
|
|
- uni.$u.toast(res.msg)
|
|
|
|
- this.signForShow = false
|
|
|
|
- this.$emit('operateSuccessfully')
|
|
|
|
|
|
+ },
|
|
|
|
+ // 拒收签收验证
|
|
|
|
+ verification(params) {
|
|
|
|
+ let flag = false
|
|
|
|
+ if (this.rejectionFlag) {
|
|
|
|
+ if (params.receiptImg) {
|
|
|
|
+ flag = true
|
|
} else {
|
|
} else {
|
|
- uni.$u.toast(res.msg)
|
|
|
|
|
|
+ uni.$u.toast('请上传' + this.signRejection + '图片')
|
|
}
|
|
}
|
|
- })
|
|
|
|
|
|
+ } else {
|
|
|
|
+ if (params.paymentType) {
|
|
|
|
+ if (params.paymentStatus) {
|
|
|
|
+ if (params.receiptImg) {
|
|
|
|
+ flag = true
|
|
|
|
+ } else {
|
|
|
|
+ uni.$u.toast('请上传' + this.signRejection + '图片')
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ uni.$u.toast('请选择支付状态')
|
|
|
|
+ }
|
|
|
|
+ } else {
|
|
|
|
+ uni.$u.toast('请选择支付方式')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return flag
|
|
},
|
|
},
|
|
// 修改防拆标签
|
|
// 修改防拆标签
|
|
async modifiedTamper() {
|
|
async modifiedTamper() {
|
|
@@ -263,25 +329,25 @@
|
|
},
|
|
},
|
|
// 运单状态
|
|
// 运单状态
|
|
orderStatus(value) {
|
|
orderStatus(value) {
|
|
- if (value == 1) {
|
|
|
|
- return '已下单'
|
|
|
|
- } else if (value == 2) {
|
|
|
|
|
|
+ if (value == 3) {
|
|
|
|
+ return '待配送'
|
|
|
|
+ } else if (value == 4) {
|
|
return '配送中'
|
|
return '配送中'
|
|
- } else if (value == 3) {
|
|
|
|
|
|
+ } else if (value == 5) {
|
|
return '已送达'
|
|
return '已送达'
|
|
- } else if (value == 4) {
|
|
|
|
|
|
+ } else if (value == 6) {
|
|
return '已拒收'
|
|
return '已拒收'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
// 运单文字颜色
|
|
// 运单文字颜色
|
|
getState(value) {
|
|
getState(value) {
|
|
- if (value == 1) {
|
|
|
|
|
|
+ if (value == 3) {
|
|
return '#9ddd54'
|
|
return '#9ddd54'
|
|
- } else if (value == 2) {
|
|
|
|
|
|
+ } else if (value == 4) {
|
|
return '#4bc7fc'
|
|
return '#4bc7fc'
|
|
- } else if (value == 3) {
|
|
|
|
|
|
+ } else if (value == 5) {
|
|
return '#1cc723'
|
|
return '#1cc723'
|
|
- } else if (value == 4) {
|
|
|
|
|
|
+ } else if (value == 6) {
|
|
return '#fe880e'
|
|
return '#fe880e'
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -354,8 +420,13 @@
|
|
})
|
|
})
|
|
},
|
|
},
|
|
close() {
|
|
close() {
|
|
- console.log(22)
|
|
|
|
this.signForShow = false
|
|
this.signForShow = false
|
|
|
|
+ this.modePayment = null
|
|
|
|
+ this.statePayment = null
|
|
|
|
+ this.remarksSettled = ''
|
|
|
|
+ this.fileList1 = []
|
|
|
|
+ this.imageData = ''
|
|
|
|
+ this.rejectionValue = ''
|
|
this.antiShow = false
|
|
this.antiShow = false
|
|
},
|
|
},
|
|
}
|
|
}
|
|
@@ -447,7 +518,7 @@
|
|
|
|
|
|
.img_sign_rejection {
|
|
.img_sign_rejection {
|
|
font-size: 30rpx;
|
|
font-size: 30rpx;
|
|
- margin-bottom: 10rpx;
|
|
|
|
|
|
+ margin-bottom: 20rpx;
|
|
}
|
|
}
|
|
|
|
|
|
.card_dismantle {
|
|
.card_dismantle {
|