戴艳蓉 hace 3 años
padre
commit
906a5156a2
Se han modificado 2 ficheros con 5 adiciones y 2 borrados
  1. 0 0
      dist/static/js/0.js
  2. 5 2
      src/views/InvoiceSales/invoiceApply/addview.vue

La diferencia del archivo ha sido suprimido porque es demasiado grande
+ 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) {

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio