|
@@ -782,12 +782,21 @@ export default {
|
|
|
"第" + (Number(i) + 1) + "行的单价不能为空或不能为0"
|
|
|
);
|
|
|
}
|
|
|
- if (this.data[i].taxRate == "") {
|
|
|
+
|
|
|
+ if (
|
|
|
+ this.data[i].taxRate == null ||
|
|
|
+ this.data[i].taxRate == undefined ||
|
|
|
+ this.data[i].taxRate === ""
|
|
|
+ ) {
|
|
|
return this.$message.error(
|
|
|
"第" + (Number(i) + 1) + "行的税率不能为空"
|
|
|
);
|
|
|
}
|
|
|
- if (this.data[i].coefficient == "") {
|
|
|
+ if (
|
|
|
+ this.data[i].coefficient == null ||
|
|
|
+ this.data[i].coefficient == undefined ||
|
|
|
+ this.data[i].coefficient === ""
|
|
|
+ ) {
|
|
|
return this.$message.error(
|
|
|
"第" + (Number(i) + 1) + "行的FOB系数不能为空"
|
|
|
);
|