Your Name 1 年之前
父節點
當前提交
9444c24c32
共有 1 個文件被更改,包括 8 次插入6 次删除
  1. 8 6
      src/components/DiagCalc.vue

+ 8 - 6
src/components/DiagCalc.vue

@@ -357,9 +357,9 @@
         let params = this.form
         params.patient_id = this.patient_id
         let that = this
-        if(this.edit){
-          delete params["id"]
-        }
+        // if(this.edit){
+        //   delete params["id"]
+        // }
         this.$api.regPatientCase(params).then(res => {
           if (!res.data.code) {
             this.$router.push({
@@ -528,10 +528,11 @@
         let params = this.form
         params.patient_id = this.patient_id
         let that = this
-        if(this.edit){
-          delete params["id"]
-        }
+        // if(this.edit){
+        //   delete params["id"]
+        // }
         this.$api.regPatientCase(params).then(res => {
+          console.log(paarms,1111111111)
           if (!res.data.code) {
             that.form = res.data.data;
             that.form.lyl = Math.round(that.form.lyl*100)
@@ -564,6 +565,7 @@
             this.mczsjl = res.data.data.mczsjl
             this.form.lyl = Math.round(this.form.lyl*100)
             console.log(this.form.lyl)
+            console.log(this.form,11111111111)
           })
         }else{
           this.$api.getPatientDoingCase({