WXL
2024-07-04 a46f2000f85c91b0e118a0af1bc6022a16feadcb
src/views/patient/patient/outpatient.vue
@@ -154,6 +154,7 @@
          </el-col>
          <!-- <el-col :span="1.5"> </el-col> -->
        </el-row>
        <el-table
          v-loading="loading"
          :data="userList"
@@ -630,7 +631,6 @@
      queryParams: {
        pageNum: 1,
        pageSize: 10,
      },
      // 表单校验
      rules: {
@@ -795,24 +795,19 @@
    //修改/新增患者
    submitForm() {
      if (this.amendtag) {
        alterpatient(this.form)
          .then((response) => {
            console.log(response);
          })
          .then(() => {
            this.getList();
            this.$modal.msgSuccess("修改成功");
          });
        console.log(22);
        this.form.isoperation = 2;
      } else {
        addpatient(this.form)
          .then((response) => {
            console.log(response);
          })
          .then(() => {
            this.getList();
            this.$modal.msgSuccess("添加成功");
          });
        this.form.isoperation = 1;
      }
      alterpatient(this.form)
        .then((response) => {
          console.log(response);
        })
        .then(() => {
          this.getList();
          this.$modal.msgSuccess("保存成功");
        });
      this.reset();
      // this.idds = "";
      this.Labelchange = false;