戴艳蓉 %!s(int64=3) %!d(string=hai) anos
pai
achega
906a5156a2
Modificáronse 2 ficheiros con 5 adicións e 2 borrados
  1. 0 0
      dist/static/js/0.js
  2. 5 2
      src/views/InvoiceSales/invoiceApply/addview.vue

A diferenza do arquivo foi suprimida porque é 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) {

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio