|
@@ -82,7 +82,7 @@
|
82
|
82
|
style="width:50%" placeholder=""></el-input>
|
83
|
83
|
<!-- <div> {{scope.row.prescribing_number_unit}}</div> -->
|
84
|
84
|
<el-select :disabled="scope.row.is_medicine == 1" v-model="scope.row.prescribing_number_unit" placeholder="请选择" style="width:50%;"
|
85
|
|
- @change="getPrescribingNumberUnit(scope.row)">
|
|
85
|
+ @change="getPrescribingNumberUnit(scope)">
|
86
|
86
|
<el-option :label="scope.row.drug.min_unit" :value="scope.row.drug.min_unit"></el-option>
|
87
|
87
|
<el-option :label="scope.row.drug.max_unit"
|
88
|
88
|
v-if="scope.row.drug.min_unit != scope.row.drug.max_unit"
|
|
@@ -372,8 +372,7 @@
|
372
|
372
|
})
|
373
|
373
|
|
374
|
374
|
}, deleteDrug: function(index, row) {
|
375
|
|
- console.log(row)
|
376
|
|
- if (row.is_medicine == 1){
|
|
375
|
+ if (row.hasOwnProperty('is_medicine')&&row.is_medicine == 1){
|
377
|
376
|
this.$message.error('该处方包含已发药的药品,无法删除')
|
378
|
377
|
return
|
379
|
378
|
}
|
|
@@ -526,11 +525,11 @@
|
526
|
525
|
|
527
|
526
|
},
|
528
|
527
|
getAllChangeTwo(scope) {
|
529
|
|
- console.log("战国阿道夫阿道夫阿道夫",scope)
|
530
|
|
- if (scope.row.is_medicine == 1){
|
531
|
|
- this.$message.error('该处方包含已发药的药品,无法修改')
|
532
|
|
- return
|
533
|
|
- }
|
|
528
|
+ // console.log("战国阿道夫阿道夫阿道夫",scope)
|
|
529
|
+ // if (scope.row.hasOwnProperty('is_medicine')&&scope.row.is_medicine == 1){
|
|
530
|
+ // this.$message.error('该处方包含已发药的药品,无法修改')
|
|
531
|
+ // return
|
|
532
|
+ // }
|
534
|
533
|
if(this.$store.getters.xt_user.org_id != 10206) {
|
535
|
534
|
console.log('yyyyyyyy',scope);
|
536
|
535
|
if (scope.row.drug.min_unit == scope.row.single_dose_unit) {
|
|
@@ -575,7 +574,7 @@
|
575
|
574
|
},
|
576
|
575
|
|
577
|
576
|
getPrescribingNumberUnit(scope) {
|
578
|
|
- if (scope.row.is_medicine == 1){
|
|
577
|
+ if (scope.row.hasOwnProperty('is_medicine')&&scope.row.is_medicine == 1){
|
579
|
578
|
this.$message.error('该处方包含已发药的药品,无法修改')
|
580
|
579
|
return
|
581
|
580
|
}
|
|
@@ -609,10 +608,10 @@
|
609
|
608
|
}
|
610
|
609
|
},
|
611
|
610
|
changePrescribingNumber(scope) {
|
612
|
|
- if (scope.row.is_medicine == 1){
|
613
|
|
- this.$message.error('该处方包含已发药的药品,无法修改')
|
614
|
|
- return
|
615
|
|
- }
|
|
611
|
+ // if (scope.row.hasOwnProperty('is_medicine')&&scope.row.is_medicine == 1){
|
|
612
|
+ // this.$message.error('该处方包含已发药的药品,无法修改')
|
|
613
|
+ // return
|
|
614
|
+ // }
|
616
|
615
|
// var max_number = 0
|
617
|
616
|
// if(scope.row.prescribing_number_unit == scope.row.drug.max_unit){
|
618
|
617
|
// max_number = parseInt(scope.row.prescribing_number) * scope.row.drug.min_number
|