|
|
@@ -265,7 +265,8 @@
|
|
|
zssjt0Flag:false,
|
|
|
cxsjt1Flag:false,
|
|
|
cxsjt2Flag:false,
|
|
|
- cxsjt3Flag:false
|
|
|
+ cxsjt3Flag:false,
|
|
|
+ edit:this.$route.query.edit
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
@@ -339,6 +340,9 @@
|
|
|
let params = this.form
|
|
|
params.patient_id = this.patient_id
|
|
|
let that = this
|
|
|
+ if(this.edit){
|
|
|
+ delete params["id"]
|
|
|
+ }
|
|
|
this.$api.regPatientCase(params).then(res => {
|
|
|
if (!res.data.code) {
|
|
|
this.$router.push({
|
|
|
@@ -507,6 +511,9 @@
|
|
|
let params = this.form
|
|
|
params.patient_id = this.patient_id
|
|
|
let that = this
|
|
|
+ if(this.edit){
|
|
|
+ delete params["id"]
|
|
|
+ }
|
|
|
this.$api.regPatientCase(params).then(res => {
|
|
|
if (!res.data.code) {
|
|
|
that.form = res.data.data;
|