提交 f6ba38b0 编写于 作者: 张平's avatar 张平

Merge branch 'dev-fix-20201203' into 'release'

Dev fix 20201203 修复由服务类商品引起的快速录入事件的bug

Dev fix 20201203 修复由服务类商品引起的快速录入事件的bug

See merge request !234
...@@ -979,12 +979,12 @@ ...@@ -979,12 +979,12 @@
//快速录入 //快速录入
fastInput(type){ fastInput(type){
///medications/query/{approvalnumber} ///medications/query/{approvalnumber}
if(this.formData.barCode == ''){ if(this.formData1.barCode == ''){
this.$refs.formData.validateField("barCode") this.$refs.formData1.validateField("barCode")
return; return;
} }
// this.GET("store/medications/query/"+this.formData.approvalNumber).then(res => { // this.GET("store/medications/query/"+this.formData.approvalNumber).then(res => {
this.GET(`store/medications/query/barcode/${this.formData.barCode}`).then(res => { this.GET(`store/medications/query/barcode/${this.formData1.barCode}`).then(res => {
console.log(res) console.log(res)
if(res.code != '000000'){ if(res.code != '000000'){
return this.$message({ return this.$message({
...@@ -999,8 +999,8 @@ ...@@ -999,8 +999,8 @@
}); });
} }
const {imageList,medicationInfo} = res.data const {imageList,medicationInfo} = res.data
this.formData.medicationId = medicationInfo.id; this.formData1.medicationId = medicationInfo.id;
this.formData.approvalNumber = medicationInfo.approvalNumber; this.formData1.approvalNumber = medicationInfo.approvalNumber;
const {medicCommonName, const {medicCommonName,
medicGoodsName, medicGoodsName,
dosageId, dosageId,
...@@ -1040,9 +1040,9 @@ ...@@ -1040,9 +1040,9 @@
if(categoryIdLevel4 != -1){ if(categoryIdLevel4 != -1){
this.getLever(categoryIdLevel4,5,1) this.getLever(categoryIdLevel4,5,1)
} }
this.formData = Object.assign(this.formData,fastParm) this.formData1 = Object.assign(this.formData1,fastParm)
this.formData.otc1 = this.formData.otc ? '1' : '0' this.formData1.otc1 = this.formData1.otc ? '1' : '0'
this.fileIntrList = this.getImges(imageList,2) this.fileIntrList = this.getImges(imageList,2)
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册