Browse Source

Merge branch '20230223_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20230223_pc_vue_new_branch

陈少旭 1 week ago
parent
commit
bc64b77fc0

File diff suppressed because it is too large
+ 657 - 1033
src/xt_pages/dialysis/batch_print/batch_print_order_eight.vue


+ 6 - 9
src/xt_pages/dialysis/batch_print/batch_print_order_eightythree.vue View File

56
                       </div>
56
                       </div>
57
                     </td>
57
                     </td>
58
                   </tr>
58
                   </tr>
59
-
60
                   <tr>
59
                   <tr>
61
                     <td colspan="3">
60
                     <td colspan="3">
62
                       <div style="line-height:30px;display: inline-block;">
61
                       <div style="line-height:30px;display: inline-block;">
63
-                        上机前病情:
64
-                        <label-box
65
-                          :isChecked="record.assessment_before_dislysis.symptom_before_dialysis == '' ? true : false"
66
-                          showValue="无特殊"></label-box>&nbsp;
67
-                        <label-box
68
-                          :isChecked="record.assessment_before_dislysis.symptom_before_dialysis != '' ? true : false"
69
-                          showValue="其他:"></label-box>
70
-                        <span>{{ record.assessment_before_dislysis.symptom_before_dialysis }}</span>
62
+                        上机前病情: <span>{{ record.assessment_before_dislysis.befor_symptoms }}</span>
71
                       </div>
63
                       </div>
64
+                    </td>
65
+                  </tr>
66
+                  <tr>
67
+                    <td colspan="3">
68
+                    
72
                       <div class="row" style="padding: 2px 0; line-height: 23px;display: inline-block;" >
69
                       <div class="row" style="padding: 2px 0; line-height: 23px;display: inline-block;" >
73
                         <div class="inline_block" style="flex: 0.8;">
70
                         <div class="inline_block" style="flex: 0.8;">
74
                           T:
71
                           T:

+ 14 - 0
src/xt_pages/dialysis/details/dialog/acceptsTreatmentDialog.vue View File

770
     if(this.lastTreat!=null){
770
     if(this.lastTreat!=null){
771
       if(this.receiveTreatmentAsses.condition ==1){
771
       if(this.receiveTreatmentAsses.condition ==1){
772
         this.receiveTreatmentAsses.admission_number = this.lastTreat.admission_number
772
         this.receiveTreatmentAsses.admission_number = this.lastTreat.admission_number
773
+        this.receiveTreatmentAsses.his_bed = this.lastTreat.his_bed
774
+        this.receiveTreatmentAsses.his_department = this.lastTreat.his_department
773
       }
775
       }
774
     
776
     
775
     }
777
     }
789
     // console.log("风险", this.precaution_arr);
791
     // console.log("风险", this.precaution_arr);
790
     this.intake_arr = getDataConfig("hemodialysis", "intake");
792
     this.intake_arr = getDataConfig("hemodialysis", "intake");
791
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
793
     this.nutrition_arr = getDataConfig("hemodialysis", "nutrition");
794
+
795
+    if(this.$store.getters.user.template_info.org_id == 10293){
796
+        this.receiveTreatmentAsses.way =1
797
+        this.receiveTreatmentAsses.consciousness =2
798
+        this.receiveTreatmentAsses.appetite =2
799
+        this.receiveTreatmentAsses.posture= 1
800
+        this.receiveTreatmentAsses.danger_level=2
801
+        this.receiveTreatmentAsses.precaution = 3
802
+        var arr = [3,4]
803
+        this.precautionTwo.push(...arr)
804
+        this.receiveTreatmentAsses.precaution = this.precautionTwo      
805
+  }
792
   },
806
   },
793
  
807
  
794
 };
808
 };

File diff suppressed because it is too large
+ 399 - 629
src/xt_pages/dialysis/template/DialysisPrintOrderEight.vue


File diff suppressed because it is too large
+ 874 - 870
src/xt_pages/dialysis/template/DialysisPrintOrderFiftySeven.vue


+ 18 - 25
src/xt_pages/dialysis/template/DialysisPrintOrderSeventeen.vue View File

1722
           }
1722
           }
1723
           this.patientInfo = response.data.data.patientInfo
1723
           this.patientInfo = response.data.data.patientInfo
1724
           // console.log("透析记录", this.patientInfo);
1724
           // console.log("透析记录", this.patientInfo);
1725
-
1726
           this.patientInfo.birth = uParseTime(
1725
           this.patientInfo.birth = uParseTime(
1727
             this.patientInfo.birthday,
1726
             this.patientInfo.birthday,
1728
             '{y}-{m}-{d}'
1727
             '{y}-{m}-{d}'
1785
           var tableAdvice = doctorAdevieInfo
1784
           var tableAdvice = doctorAdevieInfo
1786
           console.log('tableAdvice', tableAdvice)
1785
           console.log('tableAdvice', tableAdvice)
1787
           // console.log('医生', tableAdvice.length)
1786
           // console.log('医生', tableAdvice.length)
1788
-          if (tableAdvice.length === 0) {
1787
+          if (tableAdvice == null) {
1788
+            let tableAdvice1=[]
1789
             var obj = { advice_name: '', start_time: '' }
1789
             var obj = { advice_name: '', start_time: '' }
1790
             var obj1 = { advice_name: '', start_time: '' }
1790
             var obj1 = { advice_name: '', start_time: '' }
1791
             var obj2 = { advice_name: '', start_time: '' }
1791
             var obj2 = { advice_name: '', start_time: '' }
1793
             var obj4 = { advice_name: '', start_time: '' }
1793
             var obj4 = { advice_name: '', start_time: '' }
1794
             var obj5 = { advice_name: '', start_time: '' }
1794
             var obj5 = { advice_name: '', start_time: '' }
1795
             var obj6 = { advice_name: '', start_time: '' }
1795
             var obj6 = { advice_name: '', start_time: '' }
1796
-            tableAdvice.push(obj)
1797
-            tableAdvice.push(obj1)
1798
-            tableAdvice.push(obj2)
1799
-            tableAdvice.push(obj3)
1800
-            tableAdvice.push(obj4)
1801
-            tableAdvice.push(obj5)
1802
-            tableAdvice.push(obj6)
1803
-            this.tableAdvice = tableAdvice
1804
-          }
1805
-          if (tableAdvice.length === 1) {
1796
+            tableAdvice1.push(obj)
1797
+            tableAdvice1.push(obj1)
1798
+            tableAdvice1.push(obj2)
1799
+            tableAdvice1.push(obj3)
1800
+            tableAdvice1.push(obj4)
1801
+            tableAdvice1.push(obj5)
1802
+            tableAdvice1.push(obj6)
1803
+            this.tableAdvice = tableAdvice1
1804
+          }else if (tableAdvice.length === 1) {
1806
             var obj = { advice_name: '', start_time: '' }
1805
             var obj = { advice_name: '', start_time: '' }
1807
             var obj1 = { advice_name: '', start_time: '' }
1806
             var obj1 = { advice_name: '', start_time: '' }
1808
             var obj2 = { advice_name: '', start_time: '' }
1807
             var obj2 = { advice_name: '', start_time: '' }
1816
             tableAdvice.push(obj4)
1815
             tableAdvice.push(obj4)
1817
             tableAdvice.push(obj5)
1816
             tableAdvice.push(obj5)
1818
             this.tableAdvice = tableAdvice
1817
             this.tableAdvice = tableAdvice
1819
-          }
1820
-          if (tableAdvice.length === 2) {
1818
+          }else if (tableAdvice.length === 2) {
1821
             var obj = { advice_name: '', start_time: '' }
1819
             var obj = { advice_name: '', start_time: '' }
1822
             var obj1 = { advice_name: '', start_time: '' }
1820
             var obj1 = { advice_name: '', start_time: '' }
1823
             var obj2 = { advice_name: '', start_time: '' }
1821
             var obj2 = { advice_name: '', start_time: '' }
1829
             tableAdvice.push(obj3)
1827
             tableAdvice.push(obj3)
1830
             tableAdvice.push(obj4)
1828
             tableAdvice.push(obj4)
1831
             this.tableAdvice = tableAdvice
1829
             this.tableAdvice = tableAdvice
1832
-          }
1833
-          if (tableAdvice.length === 3) {
1830
+          }else if (tableAdvice.length === 3) {
1834
             // eslint-disable-next-line no-redeclare
1831
             // eslint-disable-next-line no-redeclare
1835
             var obj = { advice_name: '', start_time: '' }
1832
             var obj = { advice_name: '', start_time: '' }
1836
             // eslint-disable-next-line no-redeclare
1833
             // eslint-disable-next-line no-redeclare
1846
             tableAdvice.push(obj3)
1843
             tableAdvice.push(obj3)
1847
 
1844
 
1848
             this.tableAdvice = tableAdvice
1845
             this.tableAdvice = tableAdvice
1849
-          }
1850
-          if (tableAdvice.length === 4) {
1846
+          }else if (tableAdvice.length === 4) {
1851
             // eslint-disable-next-line no-redeclare
1847
             // eslint-disable-next-line no-redeclare
1852
             var obj = { advice_name: '', start_time: '' }
1848
             var obj = { advice_name: '', start_time: '' }
1853
             // eslint-disable-next-line no-redeclare
1849
             // eslint-disable-next-line no-redeclare
1859
             tableAdvice.push(obj1)
1855
             tableAdvice.push(obj1)
1860
             tableAdvice.push(obj2)
1856
             tableAdvice.push(obj2)
1861
             this.tableAdvice = tableAdvice
1857
             this.tableAdvice = tableAdvice
1862
-          }
1863
-          if (tableAdvice.length === 5) {
1858
+          }else if (tableAdvice.length === 5) {
1864
             // eslint-disable-next-line no-redeclare
1859
             // eslint-disable-next-line no-redeclare
1865
             var obj = { advice_name: '', start_time: '' }
1860
             var obj = { advice_name: '', start_time: '' }
1866
             // eslint-disable-next-line no-redeclare
1861
             // eslint-disable-next-line no-redeclare
1868
             tableAdvice.push(obj)
1863
             tableAdvice.push(obj)
1869
             tableAdvice.push(obj1)
1864
             tableAdvice.push(obj1)
1870
             this.tableAdvice = tableAdvice
1865
             this.tableAdvice = tableAdvice
1871
-          }
1872
-          if (tableAdvice.length === 6) {
1866
+          }else if (tableAdvice.length === 6) {
1873
             // eslint-disable-next-line no-redeclare
1867
             // eslint-disable-next-line no-redeclare
1874
             var obj = { advice_name: '', start_time: '' }
1868
             var obj = { advice_name: '', start_time: '' }
1875
             tableAdvice.push(obj)
1869
             tableAdvice.push(obj)
1876
             this.tableAdvice = tableAdvice
1870
             this.tableAdvice = tableAdvice
1877
-          }
1878
-          if (tableAdvice.length >= 7) {
1871
+          }else if (tableAdvice.length >= 7) {
1879
             this.tableAdvice = tableAdvice
1872
             this.tableAdvice = tableAdvice
1880
           }
1873
           }
1881
           var doctor = response.data.data.doctor
1874
           var doctor = response.data.data.doctor
1973
           var obj2 = arr2.join(',')
1966
           var obj2 = arr2.join(',')
1974
           console.log('obj2', obj2)
1967
           console.log('obj2', obj2)
1975
           receiverTreatmentAccess.precaution = obj2
1968
           receiverTreatmentAccess.precaution = obj2
1976
-          console.log('接诊评估', receiverTreatmentAccess)
1969
+          console.log('接诊评估2', receiverTreatmentAccess)
1977
           this.receiverTreatmentAccess = receiverTreatmentAccess
1970
           this.receiverTreatmentAccess = receiverTreatmentAccess
1978
           var dialysisway = response.data.data.dialysisway
1971
           var dialysisway = response.data.data.dialysisway
1979
           console.log('透析处方', dialysisway)
1972
           console.log('透析处方', dialysisway)

+ 17 - 3
src/xt_pages/dialysis/template/DialysisPrintOrdereightythree.vue View File

41
                 </div>
41
                 </div>
42
               </td>
42
               </td>
43
             </tr>
43
             </tr>
44
-
45
             <tr>
44
             <tr>
46
               <td colspan="3">
45
               <td colspan="3">
47
                 <div style="line-height:30px;display: inline-block;">
46
                 <div style="line-height:30px;display: inline-block;">
48
                   上机前病情:
47
                   上机前病情:
49
-                  <label-box :isChecked="predialysis.symptom_before_dialysis == '' ? true : false"
48
+                  <!-- <label-box :isChecked="predialysis.symptom_before_dialysis == '' ? true : false"
50
                     showValue="无特殊"></label-box>&nbsp;
49
                     showValue="无特殊"></label-box>&nbsp;
51
                   <label-box :isChecked="predialysis.symptom_before_dialysis != '' ? true : false"
50
                   <label-box :isChecked="predialysis.symptom_before_dialysis != '' ? true : false"
52
-                  showValue="其他:"></label-box>
51
+                  showValue="其他:"></label-box> -->
52
+                  <div class="inline_block" style="flex: 0.8;">
53
+                    <div class="under_line" style="width: 50px; text-align: center">
54
+                      {{
55
+                        predialysis.befor_symptoms
56
+                          ? predialysis.befor_symptoms
57
+                          : "/"
58
+                      }}
59
+                    </div>
60
+                  </div>
53
                 </div>
61
                 </div>
62
+              </td>
63
+            </tr>
64
+
65
+            <tr>
66
+              <td colspan="3">
67
+            
54
                 <div class="row" style="padding: 2px 0; line-height: 23px;display: inline-block;" >
68
                 <div class="row" style="padding: 2px 0; line-height: 23px;display: inline-block;" >
55
                   <div class="inline_block" style="flex: 0.8;">
69
                   <div class="inline_block" style="flex: 0.8;">
56
                     T:
70
                     T:

+ 1 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

119
 
119
 
120
             <el-button v-loading="loadingone" size="small"
120
             <el-button v-loading="loadingone" size="small"
121
                        @click="open(40)"
121
                        @click="open(40)"
122
-                       v-if="org_id == 10191 || org_id == 10318 || org_id == 10567  || org_id == 10375 || org_id == 10480 || org_id == 10721  || org_id == 10724"
122
+                       v-if="org_id == 10191 || org_id == 10318 || org_id == 10567  || org_id == 10375 || org_id == 10480 || org_id == 10721 || org_id == 10724"
123
                        type="primary">登陆
123
                        type="primary">登陆
124
             </el-button>
124
             </el-button>
125
 
125
 

+ 32 - 8
src/xt_pages/stock/drugs/components/drugOutDetail.vue View File

210
            {{getStorehouseName(scope.row.storehouse_id)}}
210
            {{getStorehouseName(scope.row.storehouse_id)}}
211
           </template>
211
           </template>
212
         </el-table-column>
212
         </el-table-column>
213
-        <el-table-column label="出价" align="center">
213
+        <el-table-column label="出价" align="center">
214
           <template slot-scope="scope">
214
           <template slot-scope="scope">
215
            <span v-if="org_id == 9919">{{scope.row.last_price}} </span>
215
            <span v-if="org_id == 9919">{{scope.row.last_price}} </span>
216
            <span v-else>
216
            <span v-else>
591
              if(this.org_id == 9919){
591
              if(this.org_id == 9919){
592
                order[i].total_price = order[i].count * order[i].last_price
592
                order[i].total_price = order[i].count * order[i].last_price
593
                total_price += order[i].count * order[i].last_price
593
                total_price += order[i].count * order[i].last_price
594
-             }else{
594
+             }else if(this.org_id == 0){
595
+                order[i].total_price = order[i].total_price
596
+             }else if(this.org_id == 10721){
597
+              order[i].total_price = order[i].total_price
598
+             } else{
595
                if(order[i].price > 0){
599
                if(order[i].price > 0){
596
                   order[i].total_price = 0
600
                   order[i].total_price = 0
597
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
601
                  if(order[i].count_unit == order[i].min_unit && order[i].max_unit!=order[i].min_unit){
601
                    if(order[i].is_sys == 0){
605
                    if(order[i].is_sys == 0){
602
                      order[i].total_price += order[i].count * order[i].price
606
                      order[i].total_price += order[i].count * order[i].price
603
                    }else{
607
                    }else{
604
-                    
608
+                     
605
                      order[i].total_price += order[i].count * order[i].price * order[i].min_number
609
                      order[i].total_price += order[i].count * order[i].price * order[i].min_number
606
                    }
610
                    }
607
                  }
611
                  }
752
     },
756
     },
753
 
757
 
754
      exportList(){
758
      exportList(){
755
-        
756
-        
759
+         
757
        
760
        
758
         for(let i=0;i<this.tablePrint.length;i++){
761
         for(let i=0;i<this.tablePrint.length;i++){
759
           this.tablePrint[i].index = i+1
762
           this.tablePrint[i].index = i+1
770
              this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
773
              this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
771
              this.tablePrint[i].total = this.getCountSenvenOne(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)/this.tablePrint[i].min_number
774
              this.tablePrint[i].total = this.getCountSenvenOne(this.tablePrint.drug_id,this.tablePrint[i].child,this.tablePrint[i].price)/this.tablePrint[i].min_number
772
             
775
             
773
-           }else{
776
+           }else if(this.org_id == 10721){
777
+            this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
778
+            this.tablePrint[i].count = this.getCount(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_unit,this.tablePrint[i].min_number)
779
+            this.tablePrint[i].total_price =  ((parseInt((this.getCountSix(this.tablePrint[i].drug_id,this.tablePrint[i].child))))*this.tablePrint[i].price).toFixed(2)
780
+            this.tablePrint[i].total = this.getTotalPriceTwo(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].min_price)
781
+           } else{
774
               this.tablePrint[i].count = this.getCount(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_unit,this.tablePrint[i].min_number)
782
               this.tablePrint[i].count = this.getCount(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_unit,this.tablePrint[i].min_number)
775
               this.tablePrint[i].total_price = this.getTotalPrice(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].min_price)
783
               this.tablePrint[i].total_price = this.getTotalPrice(this.tablePrint[i].child,this.tablePrint[i].max_unit,this.tablePrint[i].min_number,this.tablePrint[i].min_price)
776
               this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
784
               this.tablePrint[i].unit = this.tablePrint[i].dose + this.tablePrint[i].dose_unit + "*" + this.tablePrint[i].min_number +this.tablePrint[i].min_unit +"/"+this.tablePrint[i].max_unit
785
         
793
         
786
         console.log("wowowoowowowowo",this.tablePrint)
794
         console.log("wowowoowowowowo",this.tablePrint)
787
         
795
         
788
-       
796
+      
789
       
797
       
790
        import('@/vendor/Export2Excel').then(excel => {
798
        import('@/vendor/Export2Excel').then(excel => {
791
        const tHeader = ['序号','药品名称', '规格型号','生产厂商','进销商', '单位','数量','单价','总价','出库时间','备注']
799
        const tHeader = ['序号','药品名称', '规格型号','生产厂商','进销商', '单位','数量','单价','总价','出库时间','备注']
866
                 this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].last_price)
874
                 this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].last_price)
867
               }
875
               }
868
 
876
 
869
-            }else{
877
+            }else if(this.org_id == 10721){
878
+              this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
879
+              this.tableData[i].total_price = this.tableData[i].total_price
880
+            }else if(this.org_id == 0){
870
               this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
881
               this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
882
+              this.tableData[i].total_price = this.tableData[i].total_price
883
+            } else{
884
+              this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
885
+
871
               if(this.tableData[i].count_unit == this.tableData[i].min_unit && this.tableData[i].max_unit!=this.tableData[i].min_unit){
886
               if(this.tableData[i].count_unit == this.tableData[i].min_unit && this.tableData[i].max_unit!=this.tableData[i].min_unit){
872
                  this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)
887
                  this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)
873
               }
888
               }
1184
         }
1199
         }
1185
         return str + min_str
1200
         return str + min_str
1186
       },
1201
       },
1202
+      
1187
       getTotalPrice(arr,max_unit,min_number,min_price){
1203
       getTotalPrice(arr,max_unit,min_number,min_price){
1188
         console.log("arrwoowowow",arr)
1204
         console.log("arrwoowowow",arr)
1189
       
1205
       
1217
 
1233
 
1218
         return total*min_price
1234
         return total*min_price
1219
       },
1235
       },
1236
+      getTotalPriceTwo(arr,max_unit,min_number,min_price){
1237
+        var total = 0
1238
+        for(let j=0;j<arr.length;j++){
1239
+          total +=arr[j].count
1240
+        }
1241
+
1242
+        return total*min_price
1243
+      },
1220
       getCountSix(drug_id,val){
1244
       getCountSix(drug_id,val){
1221
 
1245
 
1222
         var count = 0
1246
         var count = 0

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

319
         var str = ""
319
         var str = ""
320
         var min_str = ""
320
         var min_str = ""
321
         for(let i=0;i<arr.length;i++){
321
         for(let i=0;i<arr.length;i++){
322
+          console.log("arr-----",arr)
322
           arr[i].total_count = 0
323
           arr[i].total_count = 0
323
           if(arr[i].count_unit == max_unit){
324
           if(arr[i].count_unit == max_unit){
324
             arr[i].total_count = parseInt(arr[i].count) * min_number
325
             arr[i].total_count = parseInt(arr[i].count) * min_number

+ 28 - 6
src/xt_pages/stock/drugs/drugStockFlow.vue View File

157
              <span > {{getDrugCount(scope.row.over_count,scope.row.BaseDrugLib.max_unit,scope.row.BaseDrugLib.min_unit,scope.row.BaseDrugLib.min_number)}}</span>
157
              <span > {{getDrugCount(scope.row.over_count,scope.row.BaseDrugLib.max_unit,scope.row.BaseDrugLib.min_unit,scope.row.BaseDrugLib.min_number)}}</span>
158
            </template>
158
            </template>
159
         </el-table-column>
159
         </el-table-column>
160
-        <el-table-column prop="remark" label="备注" align="center">
160
+        <el-table-column prop="drug_name" label="批号" align="center" v-if="this.$store.getters.xt_user.template_info.org_id == 10191">
161
            <template slot-scope="scope">
161
            <template slot-scope="scope">
162
-             <span > {{scope.row.remark}}</span>
162
+             <span>{{scope.row.batch_number}}</span>
163
            </template>
163
            </template>
164
         </el-table-column>
164
         </el-table-column>
165
-        <!-- <el-table-column prop="drug_name" label="批号" align="center">
165
+
166
+        <el-table-column prop="remark" label="药品追溯码" align="center">
166
            <template slot-scope="scope">
167
            <template slot-scope="scope">
167
-             <span>{{scope.row.batch_number}}</span>
168
+             <span> {{scope.row.drug_code }}</span>
168
            </template>
169
            </template>
169
-        </el-table-column> -->
170
+        </el-table-column>
171
+
172
+        <el-table-column prop="remark" label="备注" align="center">
173
+           <template slot-scope="scope">
174
+             <span > {{scope.row.remark}}</span>
175
+           </template>
176
+        </el-table-column>
177
+       
170
         <!-- <el-table-column prop="drug_name" label="生产商" align="center">
178
         <!-- <el-table-column prop="drug_name" label="生产商" align="center">
171
            <template slot-scope="scope">
179
            <template slot-scope="scope">
172
              {{getManufacturer(scope.row.manufacturer)}}
180
              {{getManufacturer(scope.row.manufacturer)}}
288
         drug:{},
296
         drug:{},
289
         houseList:[],
297
         houseList:[],
290
         patientList:[],
298
         patientList:[],
299
+        adviceMap:[]
291
       }
300
       }
292
     },
301
     },
293
     methods:{
302
     methods:{
543
             this.patientList = response.data.data.patientList
552
             this.patientList = response.data.data.patientList
544
 
553
 
545
             this.houseList = response.data.data.houseList
554
             this.houseList = response.data.data.houseList
555
+
556
+           
546
           }
557
           }
547
        })
558
        })
548
      },
559
      },
755
       getDrugFlowDetailByDrugId(params).then(response=>{
766
       getDrugFlowDetailByDrugId(params).then(response=>{
756
 
767
 
757
       })
768
       })
758
-    }
769
+    },
770
+    // getDrugCode(patient_id,advice_date){
771
+    //    console.log("patinet_id========",patient_id)
772
+    //    console.log("advice_datre====",advice_date)
773
+    //   var drug_code = ""
774
+    //   for(let i=0;i<this.adviceMap.length;i++){
775
+    //    if(patient_id == this.adviceMap[i].patient_id && advice_date == this.adviceMap[i].advice_date){
776
+    //        drug_code = this.adviceMap[i].drug_code
777
+    //    }
778
+    //   }
779
+    //   return drug_code
780
+    // }
759
     }
781
     }
760
   }
782
   }
761
 </script>
783
 </script>

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

304
                   <td style="border-right: none; border-inline-end:none;text-align: center">
304
                   <td style="border-right: none; border-inline-end:none;text-align: center">
305
                     <span v-if="is_sys==1 || is_sys == 5">{{getOutCountSix(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}}</span>
305
                     <span v-if="is_sys==1 || is_sys == 5">{{getOutCountSix(item.warehousing_detail_id,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}}</span>
306
                     <span v-if="is_sys == 12">{{getOutCountTen(item.count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
306
                     <span v-if="is_sys == 12">{{getOutCountTen(item.count,scope.row.max_unit,scope.row.min_unit,scope.row.min_number)}}</span>
307
-                    <span v-if="is_sys == 0"> {{getOutCountOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id)}} </span>
307
+                    <span v-if="is_sys == 0"> {{getOutCountOne(item.batch_number,scope.row.max_unit,scope.row.min_unit,scope.row.min_number,scope.row.drug_id,item.warehousing_detail_id)}} </span>
308
                   </td>
308
                   </td>
309
                </tr>
309
                </tr>
310
             </template>
310
             </template>
1453
           console.log("list999992332232323",list)
1453
           console.log("list999992332232323",list)
1454
           for(let i=0;i<list.length;i++){
1454
           for(let i=0;i<list.length;i++){
1455
             for(let j=0;j<list[i].childOne.length;j++){
1455
             for(let j=0;j<list[i].childOne.length;j++){
1456
-              console.log("hhhahhawiiw",this.getOutCountOne(list[i].childOne[j].batch_number,list[i].max_unit,list[i].min_unit,list[i].min_number,list[i].drug_id))
1457
-               list[i].childOne[j].over_count_total = this.getOutCountOne(list[i].childOne[j].batch_number,list[i].max_unit,list[i].min_unit,list[i].min_number,list[i].drug_id)
1456
+              console.log("hhhahhawiiw",this.getOutCountOne(list[i].childOne[j].batch_number,list[i].max_unit,list[i].min_unit,list[i].min_number,list[i].drug_id,list[i].warehouse_info_id))
1457
+               list[i].childOne[j].over_count_total = this.getOutCountOne(list[i].childOne[j].batch_number,list[i].max_unit,list[i].min_unit,list[i].min_number,list[i].drug_id,list[i].warehouse_info_id)
1458
             }
1458
             }
1459
           }
1459
           }
1460
 
1460
 
2037
       }
2037
       }
2038
       return max_str + min_str;
2038
       return max_str + min_str;
2039
     },
2039
     },
2040
-    getOutCountOne(batch_number,max_unit,min_unit,min_number,drug_id){
2041
-    
2040
+    getOutCountOne(batch_number,max_unit,min_unit,min_number,drug_id,warehousing_detail_id){
2041
+      
2042
+      console.log("warehousing_detail_id",warehousing_detail_id)
2043
+      console.log("tabList-----------------",this.tabList)
2042
       var arr = []
2044
       var arr = []
2043
       var total = 0
2045
       var total = 0
2044
       var max_str = ""
2046
       var max_str = ""
2046
     
2048
     
2047
       for(let j=0;j<this.tabList.length;j++){
2049
       for(let j=0;j<this.tabList.length;j++){
2048
       
2050
       
2049
-        if(batch_number == this.tabList[j].batch_number && drug_id == this.tabList[j].drug_id){
2051
+        if(batch_number == this.tabList[j].batch_number && drug_id == this.tabList[j].drug_id && warehousing_detail_id == this.tabList[j].warehousing_detail_id){
2050
            arr.push(this.tabList[j])
2052
            arr.push(this.tabList[j])
2051
         }
2053
         }
2052
       }
2054
       }

+ 1 - 1
src/xt_pages/stock/query/purchaseNewStockQuery.vue View File

1226
         })
1226
         })
1227
        }
1227
        }
1228
 
1228
 
1229
-       if(this.org_id == 10697 || this.org_id == 0){
1229
+       if(this.org_id == 10697 || this.org_id == 0 || this.org_id == 10375){
1230
         
1230
         
1231
         for(let i=0;i<this.tableList.length;i++){
1231
         for(let i=0;i<this.tableList.length;i++){
1232
           this.tableList[i].index = i+1
1232
           this.tableList[i].index = i+1

+ 14 - 3
src/xt_pages/stock/stockFlow.vue View File

116
         </el-table-column>
116
         </el-table-column>
117
    
117
    
118
 
118
 
119
-       <!-- <el-table-column label="批次" align="center">
119
+       <el-table-column label="批次" align="center" v-if="this.$store.getters.xt_user.template_info.org_id == 10191">
120
          <template slot-scope="scope">
120
          <template slot-scope="scope">
121
            <span>{{scope.row.number}}</span>
121
            <span>{{scope.row.number}}</span>
122
          </template>
122
          </template>
123
-       </el-table-column> -->
123
+       </el-table-column>
124
 
124
 
125
     
125
     
126
         <el-table-column prop="drug_name" label="单价"  align="center">
126
         <el-table-column prop="drug_name" label="单价"  align="center">
154
              <span > {{scope.row.over_count}}</span>
154
              <span > {{scope.row.over_count}}</span>
155
            </template>
155
            </template>
156
         </el-table-column>
156
         </el-table-column>
157
+
158
+        <el-table-column prop="drug_name" label="耗材追溯码" align="center">
159
+           <template slot-scope="scope">
160
+             <span > {{scope.row.good_code}}</span>
161
+           </template>
162
+        </el-table-column>
163
+
157
         <el-table-column prop="remark" label="备注" align="center">
164
         <el-table-column prop="remark" label="备注" align="center">
158
            <template slot-scope="scope">
165
            <template slot-scope="scope">
159
              <span > {{scope.row.remark}}</span>
166
              <span > {{scope.row.remark}}</span>
264
         cancelCountList:[],
271
         cancelCountList:[],
265
         good:{},
272
         good:{},
266
         houseList:[],
273
         houseList:[],
267
-        patientList:[]
274
+        patientList:[],
275
+        hisPrescription:[]
276
+
268
       }
277
       }
269
     },
278
     },
270
     methods:{
279
     methods:{
474
            this.houseList = response.data.data.houseList
483
            this.houseList = response.data.data.houseList
475
            this.patientList = response.data.data.patients
484
            this.patientList = response.data.data.patients
476
 
485
 
486
+
487
+
477
           
488
           
478
           }
489
           }
479
        })
490
        })