WXL
2024-07-04 1e78fbfb63e192c5284b19bba161ea12e80a7d92
src/views/patient/patient/PatientChart.vue
@@ -906,24 +906,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;