Browse Source

修改单位

戴艳蓉 3 years ago
parent
commit
906a5156a2
2 changed files with 5 additions and 2 deletions
  1. 0 0
      dist/static/js/0.js
  2. 5 2
      src/views/InvoiceSales/invoiceApply/addview.vue

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/0.js


+ 5 - 2
src/views/InvoiceSales/invoiceApply/addview.vue

@@ -1394,6 +1394,9 @@ export default {
           if (v1.total_fee === 0) {
             isok = false;
           }
+          if (v1.unit === "") {
+            isok = false;
+          }
           let str = v1.remark.replace(/\s*/g, "");
           if (str === "") {
             remark = false;
@@ -1403,12 +1406,12 @@ export default {
             remark: str,
             total_fee: v1.total_fee,
             num: v1.good_num,
-            unit:v1.unit
+            unit: v1.unit,
           };
           model.good.push(item);
         });
         if (!isok) {
-          this.$message.error("商品数量/商品总额不能为0!");
+          this.$message.error("商品数量/商品总额不能为0,商品单位不能为空!");
           return;
         }
         if (!remark) {

Some files were not shown because too many files changed in this diff