智慧农业后台管理页面
guoshilong
2022-08-24 66feb7ffc100fc5d00c4388c9f6bc3b8a768226d
src/views/task/task.vue
@@ -679,6 +679,14 @@
      });
    },
    rowUpdate(row, index, done, loading) {
      if(row.stockNum<0){
        this.$message({
          type: "warning",
          message: "农资量不能为负数!"
        });
        done();
        return
      }
      update(row).then(() => {
        this.onLoad(this.page);
        this.$message({