|
|
@@ -293,7 +293,7 @@ const toSearch = async () => {
|
|
|
};
|
|
|
//扫描序列号
|
|
|
const toSnCode = async () => {
|
|
|
- if(!sku.value) return ElMessage.error('请先扫描sku!')
|
|
|
+ if (!sku.value) return ElMessage.error('请先扫描sku!')
|
|
|
try {
|
|
|
const res: any = await orderApi.getsnCode(
|
|
|
"out",
|
|
|
@@ -368,6 +368,7 @@ const scanCode = () => {
|
|
|
};
|
|
|
|
|
|
const getOrderNumber = () => {
|
|
|
+
|
|
|
//发货详细地址
|
|
|
params.value.receiver.province_city_area_address =
|
|
|
params.value.receiver.province_name +
|
|
|
@@ -480,7 +481,9 @@ const init = async () => {
|
|
|
el.product_vo.weight * el.num
|
|
|
);
|
|
|
el.orderNum = el.num
|
|
|
- el.num = 0
|
|
|
+ if (res.data.kdn_order_code == undefined || res.data.kdn_order_code == '') {
|
|
|
+ el.num = 0
|
|
|
+ }
|
|
|
Object.keys(response.data).map(item => {
|
|
|
if (el.id == item) {
|
|
|
el.sn_code_list = response.data[item]
|