戴艳蓉 il y a 3 ans
Parent
commit
906a5156a2
2 fichiers modifiés avec 5 ajouts et 2 suppressions
  1. 0 0
      dist/static/js/0.js
  2. 5 2
      src/views/InvoiceSales/invoiceApply/addview.vue

Fichier diff supprimé car celui-ci est trop grand
+ 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) {

Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff