陈少旭 7 månader sedan
förälder
incheckning
c583cda731
1 ändrade filer med 19 tillägg och 4 borttagningar
  1. 19 4
      src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue

+ 19 - 4
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue Visa fil

@@ -176,7 +176,7 @@
176 176
                 </el-select>
177 177
 
178 178
 
179
-                <el-select v-if="org_id == 10721" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
179
+                <el-select v-if="org_id == 10721 || org_id == 0" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
180 180
                            @change="changevalue">
181 181
                   <el-option
182 182
                     v-for="(item,index) in register10721"
@@ -186,8 +186,16 @@
186 186
                   </el-option>
187 187
                 </el-select>
188 188
 
189
+                <el-select v-if="org_id == 10721 || org_id == 0" style="width:100%;" v-model="item.diagnose" placeholder="" multiple filterable  placeholder="诊断">
190
+                  <el-option
191
+                    v-for="(item,index) in diagnoses"
192
+                    :key="index"
193
+                    :label="item.class_name"
194
+                    :value="item.id">
195
+                  </el-option>
196
+                </el-select>
189 197
 
190
-                <el-select v-if="org_id == 10726 || org_id == 0 " style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
198
+                <el-select v-if="org_id == 10726" style="width:50%;" v-model="item.med_type" placeholder="医疗类型"
191 199
                            @change="changevalue">
192 200
                   <el-option
193 201
                     v-for="(item,index) in register10726"
@@ -2689,7 +2697,7 @@ export default {
2689 2697
           }
2690 2698
           for (let i = 0; i < this.prescriptions.length; i++) {
2691 2699
             for (let b = 0; b < this.prescriptions[i].project.length; b++) {
2692
-              if (this.prescriptions[i].project[b].total == 0 || this.prescriptions[i].project[b].total == '' || Number.isNaN(this.prescriptions[i].project[b].total)) {
2700
+              if (this.prescriptions[i].project[b].total == 0 || this.prescriptions[i].project[b].total == '' || Number.isNaN()) {
2693 2701
                 this.$message.error('项目处方总量不能为0')
2694 2702
                 return
2695 2703
               }
@@ -3385,13 +3393,20 @@ export default {
3385 3393
         advices: [],
3386 3394
         project: [],
3387 3395
         addition: [],
3396
+        diagnose:"",
3388 3397
         pre_time: preTime
3389 3398
 
3390 3399
       }
3391 3400
 
3392 3401
       if (this.org_id != 10206 && this.org_id != 0) {
3393 3402
         obj.med_type = 14
3394
-      } else {
3403
+        if (this.org_id == 10721){
3404
+          obj.med_type = 992102
3405
+        }
3406
+        if (obj.med_type == 992102){
3407
+          obj.diagnose = 2465
3408
+        }
3409
+       } else {
3395 3410
         obj.med_type = 12
3396 3411
       }
3397 3412