Browse Source

新分支

28169 10 months ago
parent
commit
30ec28df8e

+ 17 - 2
src/xt_pages/dialysis/details/index.vue View File

2372
           })
2372
           })
2373
 
2373
 
2374
           // console.log("newArrwowowowowoowwowo",newArr)
2374
           // console.log("newArrwowowowowoowwowo",newArr)
2375
+          if(this.tableData!=null){
2376
+            for(let i=0;i<this.tableData.length;i++){
2377
+              this.$refs.tab.setCurrentRow(this.tableData[i])
2378
+            }
2379
+          } 
2380
+         
2375
           this.tableData = newArr
2381
           this.tableData = newArr
2376
           this.getData()
2382
           this.getData()
2377
 
2383
 
2723
         }
2729
         }
2724
 
2730
 
2725
         this.tableData1 = newArr
2731
         this.tableData1 = newArr
2732
+        if(this.tableData1!=null){
2733
+           for(let i=0;i<this.tableData1.length;i++){
2734
+            this.$refs.tab1.setCurrentRow(this.tableData1[i])
2735
+           }
2736
+        }
2726
         const name = this.$route.query.patient_name
2737
         const name = this.$route.query.patient_name
2727
         this.tableData1.map((item, index) => {
2738
         this.tableData1.map((item, index) => {
2728
           if (name == item.patient.name) {
2739
           if (name == item.patient.name) {
3266
         // this.end_time = moment().month(months).endOf('month').format('YYYY-MM-DD')
3277
         // this.end_time = moment().month(months).endOf('month').format('YYYY-MM-DD')
3267
         // console.log('rrrrr',this.start_time,this.end_time);
3278
         // console.log('rrrrr',this.start_time,this.end_time);
3268
         // this.end_time =   moment(oldValue).format('YYYY-MM-DD')
3279
         // this.end_time =   moment(oldValue).format('YYYY-MM-DD')
3269
-      }
3270
-    }
3280
+     
3281
+      },
3282
+      
3283
+    },
3284
+   
3285
+
3271
   }
3286
   }
3272
 }
3287
 }
3273
 </script>
3288
 </script>

+ 28 - 28
src/xt_pages/dialysis/newDoctorAdvice.vue View File

40
        </el-autocomplete>
40
        </el-autocomplete>
41
        <el-button type="primary" @click="toSeach">搜索</el-button>
41
        <el-button type="primary" @click="toSeach">搜索</el-button>
42
 
42
 
43
-       
43
+
44
       </div>
44
       </div>
45
       <div class="filter-container">
45
       <div class="filter-container">
46
       <el-input style="width:200px" placeholder="请输入药品名称" v-model="keyword"></el-input>
46
       <el-input style="width:200px" placeholder="请输入药品名称" v-model="keyword"></el-input>
47
        <el-button type="primary" @click="toSeachOne">搜索</el-button>
47
        <el-button type="primary" @click="toSeachOne">搜索</el-button>
48
 
48
 
49
-       
49
+
50
       </div>
50
       </div>
51
       <div class="cell clearfix">
51
       <div class="cell clearfix">
52
         <label class="title">
52
         <label class="title">
189
 
189
 
190
         <el-button type="primary" size="small" @click="toStaticTwo">耗材统计</el-button>
190
         <el-button type="primary" size="small" @click="toStaticTwo">耗材统计</el-button>
191
 
191
 
192
-        
192
+
193
       </div>
193
       </div>
194
 
194
 
195
 
195
 
308
             <span v-else>
308
             <span v-else>
309
 
309
 
310
             </span>
310
             </span>
311
-           
311
+
312
           </template>
312
           </template>
313
         </el-table-column>
313
         </el-table-column>
314
         <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
314
         <el-table-column prop="date" label="开嘱医生" align="center" min-width="26px">
1002
           for(let i=0;i<this.partitionArr.length;i++){
1002
           for(let i=0;i<this.partitionArr.length;i++){
1003
            this.zoneIdList.push(this.partitionArr[i].id)
1003
            this.zoneIdList.push(this.partitionArr[i].id)
1004
           }
1004
           }
1005
-         
1005
+
1006
           // this.partitionArr.unshift({ id: 0, name: "全部" });
1006
           // this.partitionArr.unshift({ id: 0, name: "全部" });
1007
           var dics  =  response.data.data.dics
1007
           var dics  =  response.data.data.dics
1008
           var obj = {id:0,name:"全部"}
1008
           var obj = {id:0,name:"全部"}
1027
         if(name == '全部'){
1027
         if(name == '全部'){
1028
           name = ""
1028
           name = ""
1029
         }
1029
         }
1030
-       
1030
+
1031
         var nameOne = ""
1031
         var nameOne = ""
1032
          for(let i=0;i<this.excutList.length;i++){
1032
          for(let i=0;i<this.excutList.length;i++){
1033
             if(this.execution_frequency == this.excutList[i].id){
1033
             if(this.execution_frequency == this.excutList[i].id){
1043
 
1043
 
1044
          var schedule_type = this.listQuery.schedul_type
1044
          var schedule_type = this.listQuery.schedul_type
1045
          var partition_type = this.listQuery.partition_type
1045
          var partition_type = this.listQuery.partition_type
1046
-       
1046
+
1047
         getNewSchedualDoctors({date: newTime,patient_type: 0,advice_type: 2,delivery_way:name,schedule_type:schedule_type,partition_type:partition_type,patient_id:this.patient_id,excution_way:this.excution_way,cost_type:this.costType,execution_frequency:nameOne,keyword:this.keyword}).then(rs => {
1047
         getNewSchedualDoctors({date: newTime,patient_type: 0,advice_type: 2,delivery_way:name,schedule_type:schedule_type,partition_type:partition_type,patient_id:this.patient_id,excution_way:this.excution_way,cost_type:this.costType,execution_frequency:nameOne,keyword:this.keyword}).then(rs => {
1048
         var resp = rs.data
1048
         var resp = rs.data
1049
         if (resp.state == 1) {
1049
         if (resp.state == 1) {
1113
            if(this.is_sort == 0){
1113
            if(this.is_sort == 0){
1114
               newList = schedules
1114
               newList = schedules
1115
            }
1115
            }
1116
-          
1116
+
1117
            if(this.is_sort == 0 ||  this.is_sort == 1){
1117
            if(this.is_sort == 0 ||  this.is_sort == 1){
1118
               schedules.map(item => {
1118
               schedules.map(item => {
1119
                   item.is_sort = item.device_number.sort
1119
                   item.is_sort = item.device_number.sort
1561
 
1561
 
1562
         if (row.prescribing_number) {
1562
         if (row.prescribing_number) {
1563
           tempPrescribingNumberDesc = row.prescribing_number + '' + row.prescribing_number_unit
1563
           tempPrescribingNumberDesc = row.prescribing_number + '' + row.prescribing_number_unit
1564
-         
1564
+
1565
         }
1565
         }
1566
 
1566
 
1567
         if (row.single_dose) {
1567
         if (row.single_dose) {
1568
           if (this.template_id != 6) {
1568
           if (this.template_id != 6) {
1569
             tempSingleDoseDesc =' 单次用量 ' + '  ' + row.single_dose + '' + row.single_dose_unit
1569
             tempSingleDoseDesc =' 单次用量 ' + '  ' + row.single_dose + '' + row.single_dose_unit
1570
-           
1570
+
1571
           } else {
1571
           } else {
1572
             tempSingleDoseDesc = row.single_dose  + row.single_dose_unit
1572
             tempSingleDoseDesc = row.single_dose  + row.single_dose_unit
1573
-            
1573
+
1574
           }
1574
           }
1575
         }
1575
         }
1576
 
1576
 
1577
         if (row.advice_desc) {
1577
         if (row.advice_desc) {
1578
-           tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')' 
1579
-         
1580
-          
1578
+           tempDrugSpecDesc = '(' + row.advice_desc + row.drug_spec_unit + ')'
1579
+
1580
+
1581
         }
1581
         }
1582
 
1582
 
1583
         if (isChild == 1) {
1583
         if (isChild == 1) {
1592
         } else {
1592
         } else {
1593
           // 是子药
1593
           // 是子药
1594
           return (row.advice_name +tempDrugSpecDesc +' ' + tempPrescribingNumberDesc + tempSingleDoseDesc)
1594
           return (row.advice_name +tempDrugSpecDesc +' ' + tempPrescribingNumberDesc + tempSingleDoseDesc)
1595
-         
1595
+
1596
         }
1596
         }
1597
     },
1597
     },
1598
     handleSelectionChange(val){
1598
     handleSelectionChange(val){
1599
-     
1599
+
1600
       this.selecting_schs = val;
1600
       this.selecting_schs = val;
1601
       this.is_status = 1
1601
       this.is_status = 1
1602
     },
1602
     },
1622
         return searchArray
1622
         return searchArray
1623
       },
1623
       },
1624
      handleSelect(val) {
1624
      handleSelect(val) {
1625
-      
1625
+
1626
        this.patient_id = val.id
1626
        this.patient_id = val.id
1627
        this.listQuery.keyword = val.name
1627
        this.listQuery.keyword = val.name
1628
        this.requestSchedualDoctors(this.time)
1628
        this.requestSchedualDoctors(this.time)
1827
             str = this.partion_type.join(",")
1827
             str = this.partion_type.join(",")
1828
          }
1828
          }
1829
          this.partion_str = ""
1829
          this.partion_str = ""
1830
-         this.partion_str = str  
1830
+         this.partion_str = str
1831
          this.tableList = []
1831
          this.tableList = []
1832
           var params = {
1832
           var params = {
1833
             schedule_type:this.schedule_type,
1833
             schedule_type:this.schedule_type,
1857
 
1857
 
1858
              if(config.is_open!=1){
1858
              if(config.is_open!=1){
1859
                if(doctorList!=null && doctorList.length > 0){
1859
                if(doctorList!=null && doctorList.length > 0){
1860
-                let dataInfo = {}
1860
+                  let dataInfo = {}
1861
                   doctorList.forEach((item, index) => {
1861
                   doctorList.forEach((item, index) => {
1862
                   let { advice_name } = item
1862
                   let { advice_name } = item
1863
                   if (!dataInfo[advice_name]) {
1863
                   if (!dataInfo[advice_name]) {
1959
                 this.tableList = hisarr
1959
                 this.tableList = hisarr
1960
               }
1960
               }
1961
 
1961
 
1962
-             
1962
+
1963
              }
1963
              }
1964
           }
1964
           }
1965
         })
1965
         })
1974
             str = this.partion_type.join(",")
1974
             str = this.partion_type.join(",")
1975
          }
1975
          }
1976
          this.partion_str = ""
1976
          this.partion_str = ""
1977
-         this.partion_str = str  
1977
+         this.partion_str = str
1978
          this.tableList = []
1978
          this.tableList = []
1979
           var params = {
1979
           var params = {
1980
             schedule_type:this.schedule_type,
1980
             schedule_type:this.schedule_type,
2095
             str = this.partion_type.join(",")
2095
             str = this.partion_type.join(",")
2096
          }
2096
          }
2097
          this.partion_str = ""
2097
          this.partion_str = ""
2098
-         this.partion_str = str  
2098
+         this.partion_str = str
2099
          this.tableList = []
2099
          this.tableList = []
2100
           var params = {
2100
           var params = {
2101
             schedule_type:this.schedule_type,
2101
             schedule_type:this.schedule_type,
2113
                  }
2113
                  }
2114
                }
2114
                }
2115
              }
2115
              }
2116
-             
2116
+
2117
              let dataInfo = {}
2117
              let dataInfo = {}
2118
               newArr.forEach((item, index) => {
2118
               newArr.forEach((item, index) => {
2119
               let { project_id } = item
2119
               let { project_id } = item
2128
               }
2128
               }
2129
             })
2129
             })
2130
             let arr = Object.values(dataInfo)
2130
             let arr = Object.values(dataInfo)
2131
-            
2131
+
2132
             if(arr!=null && arr.length >0){
2132
             if(arr!=null && arr.length >0){
2133
               for(let i =0;i<arr.length;i++){
2133
               for(let i =0;i<arr.length;i++){
2134
                 for(let j=0;j<newArr.length;j++){
2134
                 for(let j=0;j<newArr.length;j++){
2135
                    if(arr[i].project_id == newArr[j].project_id){
2135
                    if(arr[i].project_id == newArr[j].project_id){
2136
                       arr[i].child.push(newArr[i])
2136
                       arr[i].child.push(newArr[i])
2137
                    }
2137
                    }
2138
-                } 
2138
+                }
2139
               }
2139
               }
2140
               for(let i =0;i<arr.length;i++){
2140
               for(let i =0;i<arr.length;i++){
2141
                 for(let j=0;j<arr[i].child.length;j++){
2141
                 for(let j=0;j<arr[i].child.length;j++){
2559
         const { columns, data } = param;
2559
         const { columns, data } = param;
2560
         const sums = [];
2560
         const sums = [];
2561
         columns.forEach((column, index) => {
2561
         columns.forEach((column, index) => {
2562
-        
2562
+
2563
           if (index === 0) {
2563
           if (index === 0) {
2564
             sums[index] = '总数';
2564
             sums[index] = '总数';
2565
             return;
2565
             return;
2566
           }
2566
           }
2567
           if(index > 2){
2567
           if(index > 2){
2568
             const values = data.map(item => item[column.property]);
2568
             const values = data.map(item => item[column.property]);
2569
-           
2569
+
2570
 
2570
 
2571
           }
2571
           }
2572
 
2572
 
2646
         }
2646
         }
2647
       })
2647
       })
2648
     },
2648
     },
2649
-   
2649
+
2650
 
2650
 
2651
   },
2651
   },
2652
   components: {
2652
   components: {

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

4775
            }
4775
            }
4776
         }
4776
         }
4777
 
4777
 
4778
-        if(this.org_id ==10515  || this.org_id == 10510 || this.org_id ==10567 || this.org_id == 10489 || this.org_id == 0 || this.org_id == 10644){
4778
+        //HIS客户显示临时医嘱的地方
4779
+        if(this.org_id == 10510 || this.org_id ==10567 || this.org_id == 10489|| this.org_id == 10644){
4779
           if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
4780
           if(response.data.data.doctorAdevieInfo!=null && response.data.data.doctorAdevieInfo.length>0){
4780
 
4781
 
4781
             for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){
4782
             for(let i=0;i<response.data.data.doctorAdevieInfo.length;i++){

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

184
         <el-table-column label="入库方式" align="center">
184
         <el-table-column label="入库方式" align="center">
185
           <template slot-scope="scope">
185
           <template slot-scope="scope">
186
             <span v-if="scope.row.is_sys == 13">调拨入库</span>
186
             <span v-if="scope.row.is_sys == 13">调拨入库</span>
187
-            <span v-else>手动入库</span>
187
+            <span v-else>
188
+              <span v-if="org_id !=10633"> 手动入库</span>
189
+              <span v-if="org_id ==10633"> 验货入库</span>
190
+            </span>
188
           </template>
191
           </template>
189
         </el-table-column>
192
         </el-table-column>
190
 
193
 

+ 4 - 1
src/xt_pages/stock/stockInOrder.vue View File

170
         <el-table-column label="入库方式" align="center">
170
         <el-table-column label="入库方式" align="center">
171
           <template slot-scope="scope">
171
           <template slot-scope="scope">
172
             <span v-if="scope.row.is_sys == 12">调拨入库</span>
172
             <span v-if="scope.row.is_sys == 12">调拨入库</span>
173
-            <span v-if="scope.row.is_sys == 0">手动入库</span>
173
+            <span v-if="scope.row.is_sys == 0">
174
+              <span v-if="org_id !=10633"> 手动入库</span>
175
+              <span v-if="org_id ==10633"> 验货入库</span>
176
+            </span>
174
           </template>
177
           </template>
175
         </el-table-column>
178
         </el-table-column>
176
 
179