提交 0a714033 编写于 作者: minghao.wu's avatar minghao.wu

test: 不刷新

上级 978e82d8
...@@ -903,7 +903,9 @@ ...@@ -903,7 +903,9 @@
this.getLever(0,1) this.getLever(0,1)
dosageAll().then((res)=>{ dosageAll().then((res)=>{
this.doseAll = res.data this.doseAll = res.data
if (!this.doseAll) {
this.doseAll.push({dosageName: "其他",id: -1}) this.doseAll.push({dosageName: "其他",id: -1})
}
}) })
getDeparts().then((res)=>{ getDeparts().then((res)=>{
this.allDeparts = res.data this.allDeparts = res.data
...@@ -915,7 +917,16 @@ ...@@ -915,7 +917,16 @@
this.checkPackageIdList = res.data; this.checkPackageIdList = res.data;
}) })
} }
// 判空
if (this.formData.leastCount == null || this.formData.leastCount === '') {
this.formData.leastCount = 1;
}
if (this.formData.mostCount == null || this.formData.mostCount === '') {
this.formData.mostCount = -1;
}
if (this.formData.incrType == null || this.formData.incrType === '') {
this.formData.incrType = 2;
}
}, },
methods: { methods: {
//eidt状态 //eidt状态
...@@ -1007,17 +1018,6 @@ ...@@ -1007,17 +1018,6 @@
...originRules ...originRules
}; };
this.barAndGoodsFlag = this.formData1.medicalCategoryId ? true : false; this.barAndGoodsFlag = this.formData1.medicalCategoryId ? true : false;
// 判空
if (this.formData.leastCount == null || this.formData.leastCount === '') {
this.formData.leastCount = 1;
}
if (this.formData.mostCount == null || this.formData.mostCount === '') {
this.formData.mostCount = -1;
}
if (this.formData.incrType == null || this.formData.incrType === '') {
this.formData.incrType = 1;
}
} }
console.log(this.formData); console.log(this.formData);
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册