龚焕茏
2024-08-24 d7be550e1d8f63b67d953abed24ac2f435fcf77f
feat:报备
1个文件已修改
11 ■■■■■ 已修改文件
src/views/system/report/index.vue 11 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/report/index.vue
@@ -412,6 +412,7 @@
    },
    // 表单重置
    reset() {
      this.daterangeCreateTime = [];
      this.form = {
        id: null,
        unitId: null,
@@ -423,9 +424,9 @@
        reportContent: null,
        reportMaterials: null,
        deleted: null,
        errorType: null
        errorType: null,
      };
      this.resetForm("form");
      // this.resetForm("form");
    },
    /** 搜索按钮操作 */
    handleQuery() {
@@ -450,14 +451,14 @@
    /** 新增按钮操作 */
    handleAdd() {
      this.reset();
      this.addOrImport = 'add'
      this.addOrImport = 'add';
      this.open = true;
      this.title = "添加报备";
    },
    /** 导入按钮操作 */
    handleImport() {
      this.reset();
      this.addOrImport = 'import'
      this.addOrImport = 'import';
      this.open = true;
      this.title = "导入报备";
    },
@@ -473,6 +474,7 @@
        this.daterangeCreateTime = [response.data.beginCreateTime, response.data.endCreateTime]
        this.form = response.data;
        this.form.errorType = this.form.errorType.split(',');
        this.addOrImport = 'add';
        this.open = true;
        this.title = "修改报备";
      });
@@ -500,6 +502,7 @@
    },
    /** 提交按钮 */
    submitForm() {
      this.form.pointId = this.form.pointId ? this.form.pointId : this.form.serialNumber;
      this.$refs["form"].validate(valid => {
        if (valid) {
          this.form.beginCreateTime = this.daterangeCreateTime[0]