Browse Source

修改费用备注无法保存的问题

lichao 3 năm trước cách đây
mục cha
commit
b8146955dc
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/views/track/cabinet/AddOrUpdate.vue

+ 3 - 3
src/views/track/cabinet/AddOrUpdate.vue

@@ -1910,10 +1910,10 @@ export default {
           if (this.form.costOth > 0 && !this.form.costRemarks) {
             return this.$message.error("请输入花销备注");
           }
-          if (this.form.costomAmt02 > 0 && !this.form.costomStr02) {
-            return this.$message.error("请输入费用备注");
+          if (!this.form.costomAmt02) {
+            return this.$message.error("请输入其他费用");
           }
-          if (this.form.costomAmt01 > 0 && !this.form.costomStr01) {
+          if (!this.form.costomStr02 && !this.form.costomStr01) {
             return this.$message.error("请输入费用备注");
           }
           this.DList.map((e) => {