瀏覽代碼

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

lichao 3 年之前
父節點
當前提交
b8146955dc
共有 1 個文件被更改,包括 3 次插入3 次删除
  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) => {