Browse Source

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 1 year ago
parent
commit
f10b3f673e

+ 2 - 1
src/xt_pages/dialysis/schedualPatient.vue View File

220
             var filtedSchedules = []
220
             var filtedSchedules = []
221
             for (let s_i = 0; s_i < originSchedules.length; s_i++) {
221
             for (let s_i = 0; s_i < originSchedules.length; s_i++) {
222
               const schedule = originSchedules[s_i]
222
               const schedule = originSchedules[s_i]
223
+              console.log("schedule.patient",schedule.patient)
223
               if(schedule.patient!=null){
224
               if(schedule.patient!=null){
224
-                if (schedule.patient.name.indexOf(search_keyword) != -1) {
225
+                if ((schedule.patient.name.indexOf(search_keyword) != -1) || (schedule.patient.first_letter.indexOf(search_keyword) != -1)) {
225
                 filtedSchedules.push(schedule)
226
                 filtedSchedules.push(schedule)
226
                 // break
227
                 // break
227
                }
228
                }

+ 38 - 35
src/xt_pages/outpatientDoctorStation/components/deskPrescription.vue View File

737
   },
737
   },
738
   methods: {
738
   methods: {
739
     getzuobiao(){
739
     getzuobiao(){
740
+
740
       if(this.org_id == 10206){
741
       if(this.org_id == 10206){
741
         var that = this
742
         var that = this
742
         axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystockgood', {
743
         axios.get("http://127.0.0.1:9532" + '/nmg/coordinate/querystockgood', {
3305
        }
3306
        }
3306
       }
3307
       }
3307
 
3308
 
3308
-      // if(this.org_id == 10206){
3309
-      //   if (row.zuobiao_stock_num <= 0) {
3310
-      //     if (selection) {
3311
-      //       selection.forEach(row => {
3312
-      //         if (row.zuobiao_stock_num <= 0) {
3313
-      //           this.$refs.multipleTable.toggleRowSelection(row)
3314
-      //         }
3315
-      //       })
3316
-      //     } else {
3317
-      //       this.$refs.multipleTable.clearSelection()
3318
-      //     }
3319
-      //     this.$message.error(row.drug_name + '库存不足')
3320
-      //     return
3321
-      //   }
3322
-      // }
3309
+      if(this.org_id == 10206){
3310
+        if (row.zuobiao_stock_num <= 0) {
3311
+          if (selection) {
3312
+            selection.forEach(row => {
3313
+              if (row.zuobiao_stock_num <= 0) {
3314
+                this.$refs.multipleTable.toggleRowSelection(row)
3315
+              }
3316
+            })
3317
+          } else {
3318
+            this.$refs.multipleTable.clearSelection()
3319
+          }
3320
+          this.$message.error(row.drug_name + '库存不足')
3321
+          return
3322
+        }
3323
+      }
3323
 
3324
 
3324
 
3325
 
3325
 
3326
 
3633
         }
3634
         }
3634
        }
3635
        }
3635
 
3636
 
3636
-      // if ( this.org_id == 10206) {
3637
-      //   if (row.type == 3) {
3638
-      //     if (selection) {
3639
-      //       selection.forEach(row => {
3640
-      //         if (row.zuobiao_stock_num <= 0) {
3641
-      //           this.$refs.tables.toggleRowSelection(row)
3642
-      //         }
3643
-      //       })
3644
-      //     } else {
3645
-      //       this.$refs.tables.clearSelection()
3646
-      //     }
3647
-      //     this.$message.error(row.project_name + '库存不足')
3648
-      //     return
3649
-      //   }
3650
-      // }
3637
+      if ( this.org_id == 10206) {
3638
+        if (row.type == 3) {
3639
+          if (selection) {
3640
+            selection.forEach(row => {
3641
+              if (row.zuobiao_stock_num <= 0) {
3642
+                this.$refs.tables.toggleRowSelection(row)
3643
+              }
3644
+            })
3645
+          } else {
3646
+            this.$refs.tables.clearSelection()
3647
+          }
3648
+          this.$message.error(row.project_name + '库存不足')
3649
+          return
3650
+        }
3651
+      }
3651
       this.teamList = selection
3652
       this.teamList = selection
3652
     },
3653
     },
3653
     getlist() {
3654
     getlist() {
3733
                   console.log( this.zuobiao_project[i].lsqty)
3734
                   console.log( this.zuobiao_project[i].lsqty)
3734
                   console.log( this.tabProject[b].zuobiao_stock_num)
3735
                   console.log( this.tabProject[b].zuobiao_stock_num)
3735
                   this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
3736
                   this.tabProject[b].zuobiao_stock_num = this.zuobiao_project[i].lsqty
3737
+                  this.tabProject[b].price = this.zuobiao_project[i].price
3738
+
3736
                 }
3739
                 }
3737
               }
3740
               }
3738
             }
3741
             }
3830
                   this.$message.error(project[i].good_info.good_name + '库存不足')
3833
                   this.$message.error(project[i].good_info.good_name + '库存不足')
3831
                 }
3834
                 }
3832
 
3835
 
3833
-                // if (project[i].good_info.zuobiao_stock_num <= 0 && this.org_id == 10206) {
3834
-                //   num++
3835
-                //   this.$refs.tabProjectTeam.toggleRowSelection(row)
3836
-                //   this.$message.error(project[i].good_info.good_name + '库存不足')
3837
-                // }
3836
+                if (project[i].good_info.zuobiao_stock_num <= 0 && this.org_id == 10206) {
3837
+                  num++
3838
+                  this.$refs.tabProjectTeam.toggleRowSelection(row)
3839
+                  this.$message.error(project[i].good_info.good_name + '库存不足')
3840
+                }
3838
 
3841
 
3839
                 if (num > 0) {
3842
                 if (num > 0) {
3840
                   this.$refs.tabProjectTeam.clearSelection()
3843
                   this.$refs.tabProjectTeam.clearSelection()

+ 7 - 0
src/xt_pages/outpatientDoctorStation/components/prescriptionTable.vue View File

120
             </template>
120
             </template>
121
           </el-table-column>
121
           </el-table-column>
122
 
122
 
123
+
124
+          <el-table-column align="center" prop="drug_way_count" width="100" label="给药途径次数" >
125
+            <template slot-scope="scope">
126
+              <el-input :disabled="prescription.is_medicine_status"  v-model="scope.row.drug_way_count" :title="scope.row.drug_way_count" placeholder=""></el-input>
127
+            </template>
128
+          </el-table-column>
129
+
123
             <el-table-column align="center" prop="remark" width="50" label="备注">
130
             <el-table-column align="center" prop="remark" width="50" label="备注">
124
                 <template slot-scope="scope">
131
                 <template slot-scope="scope">
125
                     <el-input :disabled="prescription.is_medicine_status"  v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>
132
                     <el-input :disabled="prescription.is_medicine_status"  v-model="scope.row.remark" :title="scope.row.remark" placeholder=""></el-input>

File diff suppressed because it is too large
+ 604 - 542
src/xt_pages/outpatientDoctorStation/doctorDesk.vue


+ 1 - 1
src/xt_pages/sign/index.vue View File

287
         if (response.data.data.patientlist != null) {
287
         if (response.data.data.patientlist != null) {
288
           var patientlist = response.data.data.patientlist
288
           var patientlist = response.data.data.patientlist
289
           this.weigh_list.id = patientlist.id
289
           this.weigh_list.id = patientlist.id
290
-          this.weigh_list.dry_weight = patientlist.dry_weight
290
+          this.weigh_list.dry_weight = patientlist.dry_weight?response.data.data.dryWeight.dry_weight:0
291
           if (this.weigh_list.dry_weight === 0) {
291
           if (this.weigh_list.dry_weight === 0) {
292
             this.weigh_list.dry_weight = ''
292
             this.weigh_list.dry_weight = ''
293
           }
293
           }

+ 1 - 1
src/xt_pages/stock/drugs/drugStockOutOrder.vue View File

354
             <template slot-scope="scope">
354
             <template slot-scope="scope">
355
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
355
                <tr style="background: none" v-for="(item,index) in scope.row.child" :key="index">
356
                   <td style="border-right: none; border-inline-end: none;text-align: center">
356
                   <td style="border-right: none; border-inline-end: none;text-align: center">
357
-                    <span v-if="org_id!=0 && org_id!=0">
357
+                    <span v-if="org_id!=0 && org_id!=10480">
358
                       <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
358
                       <span v-if="is_sys == 1 || is_sys == 5 || is_sys == 12">{{getTotalPrice(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}} </span>
359
                     <span v-if="is_sys == 0">
359
                     <span v-if="is_sys == 0">
360
                       <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span> 
360
                       <span v-if="scope.row.child.length == 1">{{item.retail_price}}</span>