|
@@ -384,13 +384,13 @@ export default {
|
|
|
post_name: v.value0, //快递公司
|
|
|
post_code: v.value7, //快递编号
|
|
|
};
|
|
|
- if (v.value0 === "") {
|
|
|
+ if (v.value0 === "" || v.value7 === "") {
|
|
|
isEdit = true;
|
|
|
}
|
|
|
list.push(item);
|
|
|
});
|
|
|
if (isEdit) {
|
|
|
- this.$message.error("部分订单未匹配到快递公司。物流编号为空!");
|
|
|
+ this.$message.error("部分订单未匹配到快递公司,物流编号为空!");
|
|
|
this.loading = false;
|
|
|
return;
|
|
|
}
|
|
@@ -399,10 +399,14 @@ export default {
|
|
|
};
|
|
|
console.log(model);
|
|
|
const { code, data, msg } = await asyncRequest.updateOrder(model);
|
|
|
- this.loading = false;
|
|
|
+ this.loading = false;
|
|
|
if (code === 0) {
|
|
|
- this.showModelThis = false;
|
|
|
- this.$emit("refresh");
|
|
|
+ this.$notify.success({
|
|
|
+ title: `批量提交成功!`,
|
|
|
+ message: "",
|
|
|
+ });
|
|
|
+ this.showModelThis = false;
|
|
|
+ this.$emit("refresh");
|
|
|
} else if (code === 1005 || code === 1006) {
|
|
|
this.show_p(data, msg);
|
|
|
} else if (code >= 100 && code <= 104) {
|
|
@@ -411,9 +415,6 @@ export default {
|
|
|
this.$message.warning(msg);
|
|
|
}
|
|
|
// 批量导入物流信息
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
},
|
|
|
checkItem(sitem) {
|