|
|
@@ -187,7 +187,7 @@ const orderTypeList: any = ref([])//初始化客户列表
|
|
|
const index = ref(-1);
|
|
|
const deliveryTypeList: any = ref([])
|
|
|
const params: any = ref({
|
|
|
- logistics_type: "",
|
|
|
+ logistics_type: "shunfeng",
|
|
|
logistics_code: "",
|
|
|
logistics_phone: "",
|
|
|
send_type: '',
|
|
|
@@ -450,9 +450,9 @@ const ship = () => {
|
|
|
if (params.value.logistics_type == '') return ElMessage.error('请选择快递公司!')
|
|
|
if (params.value.logistics_code == '') return ElMessage.error('请填写物流单号!')
|
|
|
if (params.value.logistics_phone == '') return ElMessage.error('请输入寄件人手机号后四位!')
|
|
|
- if (params.value.total_weigh == 0) return ElMessage.error('请输入物品总重量!')
|
|
|
- if (params.value.total_volume == 0) return ElMessage.error('请输入物品总体积!')
|
|
|
}
|
|
|
+ if (params.value.total_weigh == 0) return ElMessage.error('请输入物品总重量!')
|
|
|
+ if (params.value.total_volume == 0) return ElMessage.error('请输入物品总体积!')
|
|
|
//发货详细地址
|
|
|
params.value.receiver.province_city_area_address =
|
|
|
params.value.receiver.province_name +
|
|
|
@@ -526,9 +526,9 @@ const init = async () => {
|
|
|
})
|
|
|
barcodeValue.value = res.data.order_vo.sn;
|
|
|
//物品价格
|
|
|
- if (res.data.total_volume !== undefined && res.data.total_volume!==0) {
|
|
|
+ if (res.data.total_volume !== undefined && res.data.total_volume !== 0) {
|
|
|
params.value.total_volume = Number(res.data.total_volume)
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
|
|
|
params.value.total_volume = 0.01
|
|
|
}
|