智慧农业后台管理页面
guoshilong
2022-09-27 a2b823373db0235f2b42669596f69a126b722961
加工产品加工加工数量和产品数量不能为负数
1 files modified
8 ■■■■■ changed files
src/views/farmplant/process.vue 8 ●●●●● patch | view | raw | blame | history
src/views/farmplant/process.vue
@@ -813,6 +813,13 @@
            this.$refs.form.validate((vaild, done) => {
                if (vaild) {
                    this.formJG['farmId'] = this.$farmId
                  if(this.formJG.saleNum <0 || this.formJG.processNum<0){
                    this.$message({
                      type: "warning",
                      message: "加工数量和产品数量不能为负数!"
                    })
                    done()
                  }else {
                    submitProcessJG(this.formJG).then(() => {
                        this.onLoad(this.page)
                        this.$message({
@@ -829,6 +836,7 @@
                        done()
                    })
                }
                }
            })
        },
        //库存损耗表单提交