|
@@ -534,6 +534,7 @@
|
|
|
this.$api.regPatientCase(params).then(res => {
|
|
|
if (!res.data.code) {
|
|
|
that.form = res.data.data;
|
|
|
+ that.form.lyl = Math.round(that.form.lyl*100)
|
|
|
this.popupVisible = true;
|
|
|
|
|
|
} else {
|
|
@@ -545,8 +546,8 @@
|
|
|
let that = this;
|
|
|
this.$api.calc_mczsjl(this.form).then(res => {
|
|
|
if (res.data.code == 0) {
|
|
|
- this.$set(this.form, "mczsjl", res.data.data)
|
|
|
- this.mczsjl = res.data.data
|
|
|
+ this.mczsjl = Math.round(res.data.data*100)
|
|
|
+ this.$set(this.form, "mczsjl", this.mczsjl)
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -561,7 +562,8 @@
|
|
|
this.$api.getPatientCaseInfo({id:case_id}).then(res=>{
|
|
|
this.form = res.data.data
|
|
|
this.mczsjl = res.data.data.mczsjl
|
|
|
- this.form.lyl = this.form.lyl*100
|
|
|
+ this.form.lyl = Math.round(this.form.lyl*100)
|
|
|
+ console.log(this.form.lyl)
|
|
|
})
|
|
|
}else{
|
|
|
this.$api.getPatientDoingCase({
|
|
@@ -570,7 +572,7 @@
|
|
|
if (res.data.code == 0 && res.data.data.id) {
|
|
|
this.form = res.data.data
|
|
|
this.mczsjl = res.data.data.mczsjl
|
|
|
- this.form.lyl = this.form.lyl*100
|
|
|
+ this.form.lyl = Math.round(this.form.lyl*100)
|
|
|
}
|
|
|
})
|
|
|
}
|