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

test: 不刷新

上级 978e82d8
......@@ -903,7 +903,9 @@
this.getLever(0,1)
dosageAll().then((res)=>{
this.doseAll = res.data
this.doseAll.push({dosageName: "其他",id: -1})
if (!this.doseAll) {
this.doseAll.push({dosageName: "其他",id: -1})
}
})
getDeparts().then((res)=>{
this.allDeparts = res.data
......@@ -915,7 +917,16 @@
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: {
//eidt状态
......@@ -1007,17 +1018,6 @@
...originRules
};
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);
},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册