|
@@ -671,20 +671,25 @@
|
671
|
671
|
ids.push(this.selectDrug[index].id);
|
672
|
672
|
idMap[this.selectDrug[index].id] = this.selectDrug[index].id;
|
673
|
673
|
}
|
674
|
|
- console.log('ids222222222',ids)
|
|
674
|
+
|
675
|
675
|
var idss = ids.join(',')
|
676
|
676
|
let params = {
|
677
|
677
|
ids:idss,
|
678
|
678
|
admin_user_id:this.$store.getters.xt_user.user.id
|
679
|
679
|
}
|
680
|
|
- console.log("params2222")
|
|
680
|
+
|
681
|
681
|
var that = this
|
682
|
682
|
axios.get('http://127.0.0.1:9532/sz/api/drug/get',{ params: params }).then(function(response) {
|
683
|
683
|
if (response.data.state == 0) {
|
684
|
684
|
that.$message.error(response.data.msg)
|
685
|
685
|
return false
|
686
|
686
|
} else {
|
687
|
|
- that.$message({ message: '备案成功', type: 'success' })
|
|
687
|
+ if(response.data.msg != ""){
|
|
688
|
+ that.$message.success(response.data.msg)
|
|
689
|
+ }
|
|
690
|
+ if(response.data.msg == ""){
|
|
691
|
+ that.$message.success("备案成功")
|
|
692
|
+ }
|
688
|
693
|
that.getList()
|
689
|
694
|
}
|
690
|
695
|
}).catch(function(error) {
|