|
|
@@ -28,7 +28,7 @@
|
|
|
<p>联系电话:{{ shippingForm.order_vo.customer_phone }}</p>
|
|
|
<p>地址:{{ shippingForm.order_vo.province_city_area_address }}</p>
|
|
|
<p>客户备注:{{ shippingForm.order_vo.remark }}</p>
|
|
|
- <p v-if="send_type.value !== 'EXPRESS_DELIVERY'">
|
|
|
+ <p v-if="send_type !== 'EXPRESS_DELIVERY'">
|
|
|
<span v-if="shippingForm.order_vo.send_type !== 'SELF_PICKUP'">运单号:{{
|
|
|
shippingForm.kdn_order_code }}</span>
|
|
|
<span v-else>自提单号:{{ shippingForm.self_pickup_num }}</span>
|
|
|
@@ -108,7 +108,7 @@
|
|
|
</template> -->
|
|
|
</el-dialog>
|
|
|
<div class="flex justify-center pt-2 pb-2 mt-4 w-full fixed bottom-0 bg-white left-0 z-50 dark:bg-[#0e1726]"
|
|
|
- v-if="send_type.value !== 'EXPRESS_DELIVERY'">
|
|
|
+ v-if="send_type !== 'EXPRESS_DELIVERY'">
|
|
|
<el-button type="primary" size="large" @click="scanCode">扫码出库</el-button>
|
|
|
<el-button type="primary" size="large"
|
|
|
v-if="shippingForm.kdn_order_code == '' || shippingForm.kdn_order_code == undefined"
|
|
|
@@ -340,6 +340,7 @@ const handleClose = (done: () => void) => {
|
|
|
done()
|
|
|
}
|
|
|
onMounted(() => {
|
|
|
+ console.log(send_type);
|
|
|
init()
|
|
|
getInforList()
|
|
|
});
|
|
|
@@ -440,6 +441,15 @@ const getOrderNumber = () => {
|
|
|
};
|
|
|
|
|
|
const ship = () => {
|
|
|
+ if (send_type.value !== 'EXPRESS_DELIVERY') {
|
|
|
+
|
|
|
+ } else {
|
|
|
+ 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('请输入物品总体积!')
|
|
|
+ }
|
|
|
//发货详细地址
|
|
|
params.value.receiver.province_city_area_address =
|
|
|
params.value.receiver.province_name +
|
|
|
@@ -510,6 +520,7 @@ const init = async () => {
|
|
|
if (res.data.total_volume !== undefined) {
|
|
|
params.value.total_volume = Number(res.data.total_volume)
|
|
|
}
|
|
|
+
|
|
|
params.value.declared_value = Number(res.data.order_vo.real_price)
|
|
|
res.data.appointment_type = 0
|
|
|
/* 发货人地址 */
|