Browse Source

新分支

28169 2 years ago
parent
commit
ee92040ccd

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_sixtyTwo.vue View File

1358
                               >* {{ advice[0].prescribing_number
1358
                               >* {{ advice[0].prescribing_number
1359
                               }}{{ advice[0].prescribing_number_unit }}</span
1359
                               }}{{ advice[0].prescribing_number_unit }}</span
1360
                             >
1360
                             >
1361
-                            <span v-if="advice[0].single_dose != 0"
1362
-                              >{{ advice[0].single_dose
1361
+                            <span v-if="advice[0].single_dose != 0"> 
1362
+                             <span v-if="advice[0].single_dose >0"> 单次用量 </span>{{ advice[0].single_dose
1363
                               }}{{ advice[0].single_dose_unit }}</span
1363
                               }}{{ advice[0].single_dose_unit }}</span
1364
                             >
1364
                             >
1365
                             <span>{{ advice[0].delivery_way }}</span>
1365
                             <span>{{ advice[0].delivery_way }}</span>

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

1241
                 &nbsp;&nbsp; {{ advice.prescribing_number
1241
                 &nbsp;&nbsp; {{ advice.prescribing_number
1242
                 }}{{ advice.prescribing_number_unit }}
1242
                 }}{{ advice.prescribing_number_unit }}
1243
               </span>
1243
               </span>
1244
-              <span v-if="advice.single_dose != 0"
1245
-                >{{ advice.single_dose }}{{ advice.single_dose_unit }}</span
1246
-              >
1244
+              <span v-if="advice.single_dose != 0"> 
1245
+               <span v-if="advice.single_dose >0">单次用量 </span>  
1246
+                {{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
1247
               <span v-if="advice.parent_id == 0">{{
1247
               <span v-if="advice.parent_id == 0">{{
1248
                 advice.delivery_way
1248
                 advice.delivery_way
1249
               }}</span>
1249
               }}</span>

+ 35 - 13
src/xt_pages/dialysis/template/DialysisPrintOrderTen.vue View File

1856
       }
1856
       }
1857
       return "";
1857
       return "";
1858
     },
1858
     },
1859
+    // getAge: function(val) {
1860
+    //   if (
1861
+    //     this.org_template_info.template_id == 2 ||
1862
+    //     this.org_template_info.template_id == 0
1863
+    //   ) {
1864
+    //     if (val.age == 0) {
1865
+    //       return jsGetAge(val.birth, "-");
1866
+    //     } else {
1867
+    //       return val.age;
1868
+    //     }
1869
+    //   } else {
1870
+    //     return jsGetAge(val.birth, "-");
1871
+    //   }
1872
+    // },
1859
     getAge: function(val) {
1873
     getAge: function(val) {
1860
-      if (
1861
-        this.org_template_info.template_id == 2 ||
1862
-        this.org_template_info.template_id == 0
1863
-      ) {
1864
-        if (val.age == 0) {
1865
-          return jsGetAge(val.birth, "-");
1866
-        } else {
1867
-          return val.age;
1868
-        }
1869
-      } else {
1870
-        return jsGetAge(val.birth, "-");
1871
-      }
1872
-    },
1874
+     
1875
+     if (val.id_card_no) {
1876
+       var thisLen = val.id_card_no.length
1877
+
1878
+       var birth = ''
1879
+       if (thisLen == 15) {
1880
+         birth = '19' + val.id_card_no.substr(6, 6)
1881
+       } else {
1882
+         birth = val.id_card_no.substr(6, 8)
1883
+       }
1884
+       var birthtwo =
1885
+         birth.substr(0, 4) +
1886
+         '-' +
1887
+         birth.substr(4, 2) +
1888
+         '-' +
1889
+         birth.substr(6, 2)
1890
+
1891
+       var age = jsGetAge(birthtwo, '-')
1892
+       return age
1893
+     }
1894
+   },
1873
     newAdviceGroupObject: function() {
1895
     newAdviceGroupObject: function() {
1874
       return Object.assign(
1896
       return Object.assign(
1875
         {},
1897
         {},

+ 12 - 5
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)}} </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>
308
                   </td>
308
                   </td>
309
                </tr>
309
                </tr>
310
             </template>
310
             </template>
1222
           this.dealerList = response.data.data.dealerList;
1222
           this.dealerList = response.data.data.dealerList;
1223
           var drugFlowList = response.data.data.drugFlowList;
1223
           var drugFlowList = response.data.data.drugFlowList;
1224
           var drugList = response.data.data.drugList
1224
           var drugList = response.data.data.drugList
1225
-        
1225
+         
1226
           this.tabList = drugList
1226
           this.tabList = drugList
1227
           var drugListOne = response.data.data.drugListFlow
1227
           var drugListOne = response.data.data.drugListFlow
1228
+          console.log("drugListOne----------",drugListOne)
1228
           //按批号分组
1229
           //按批号分组
1229
           var drugListTwo=  response.data.data.drugListOne
1230
           var drugListTwo=  response.data.data.drugListOne
1230
           console.log("drugListTwo9922wo",drugListTwo)
1231
           console.log("drugListTwo9922wo",drugListTwo)
1247
                        drugFlowList[i].childOne.push(drugListOne[j])
1248
                        drugFlowList[i].childOne.push(drugListOne[j])
1248
                    }
1249
                    }
1249
                 }
1250
                 }
1251
+                if(drugFlowList[i].drug_id == 1154){
1252
+                    console.log("drugflowlist------",drugFlowList[i].count)
1253
+                }
1250
               }
1254
               }
1251
             }
1255
             }
1252
           
1256
           
1311
                } 
1315
                } 
1312
             }
1316
             }
1313
           }
1317
           }
1318
+          console.log("list表格---------",list)
1314
           this.tableList = list;
1319
           this.tableList = list;
1315
         }
1320
         }
1316
         if(is_sys == 12){
1321
         if(is_sys == 12){
1821
       }
1826
       }
1822
       return max_str + min_str;
1827
       return max_str + min_str;
1823
     },
1828
     },
1824
-    getOutCountOne(batch_number,max_unit,min_unit,min_number){
1825
-     
1829
+    getOutCountOne(batch_number,max_unit,min_unit,min_number,drug_id){
1830
+      console.log("drug_id-----",drug_id)
1826
       var arr = []
1831
       var arr = []
1827
       var total = 0
1832
       var total = 0
1828
       var max_str = ""
1833
       var max_str = ""
1829
       var min_str = ""
1834
       var min_str = ""
1835
+      console.log("tablelost----",this.tabList)
1830
       for(let j=0;j<this.tabList.length;j++){
1836
       for(let j=0;j<this.tabList.length;j++){
1831
-        if(batch_number == this.tabList[j].batch_number){
1837
+      
1838
+        if(batch_number == this.tabList[j].batch_number && drug_id == this.tabList[j].drug_id){
1832
            arr.push(this.tabList[j])
1839
            arr.push(this.tabList[j])
1833
         }
1840
         }
1834
       }
1841
       }

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

915
           this.$message.error(response.data.msg);
915
           this.$message.error(response.data.msg);
916
           return false;
916
           return false;
917
         } else {
917
         } else {
918
+          this.recordInfo.recordData = []
918
           var manulist = response.data.data.manulist;
919
           var manulist = response.data.data.manulist;
919
           this.manufacturerList = manulist;
920
           this.manufacturerList = manulist;
920
           this.dealerList = response.data.data.dealerList;
921
           this.dealerList = response.data.data.dealerList;