智慧农业后台管理页面
guoshilong
2022-10-15 671f452c122259b42df2dca80c73d215a027affa
修复出入库表单清空后,限制输入的内容也被清空
1 files modified
17 ■■■■ changed files
src/views/stock/stockmanage.vue 17 ●●●● patch | view | raw | blame | history
src/views/stock/stockmanage.vue
@@ -124,7 +124,7 @@
          ref="formR"
          :option="option1"
          v-model="formR"
          @reset-change="emptytChange"
          @reset-change="emptyFormR"
          @submit="submitR"
        >
        </avue-form>
@@ -146,7 +146,7 @@
          ref="formC"
          :option="option2"
          v-model="formC"
          @reset-change="emptytChange"
          @reset-change="emptyFormC"
          @submit="submitC"
        >
        </avue-form>
@@ -169,7 +169,6 @@
          ref="formK"
          :option="option"
          v-model="formK"
          @reset-change="emptytChange"
          @submit="submitK"
        >
        </avue-form>
@@ -203,6 +202,7 @@
      form: {},
      formC: {},
      formR: {},
      formTemp:{},
      formK: {},
      farm:{},
      specsValue1: "",
@@ -356,6 +356,7 @@
            label: "备注",
            type: "textarea",
            prop: "remarks",
            maxlength:200,
            span: 23,
          },
        ]
@@ -752,7 +753,7 @@
          this.onLoad(this.page)
      }
    }
  },
  },
  methods: {
    //库存明细
    kc(item) {
@@ -890,6 +891,7 @@
        stockType1: 1,
        sid: row.id,
      };
      this.formTemp = this.formR
      this.gradeBoxVisible = true;
    }
    ,
@@ -911,6 +913,7 @@
        stockType1: 0,
        sid: row.id,
      };
      this.formTemp = this.formC
      this.gradeBoxVisible1 = true;
    }
    ,
@@ -998,6 +1001,12 @@
      done();
    }
    ,
    emptyFormR(){
      this.formR = this.formTemp
    },
    emptyFormC(){
      this.formC = this.formTemp
    },
//农事操作
    start(row) {
      this.$router.push({