소스 검색

新分支

28169 11 달 전
부모
커밋
931da8b7d9

+ 1 - 1
.idea/shelf/Uncommitted_changes_before_Update_at_2023_4_26_15_16_[Changes]/AssessmentAfterDislysis.vue 파일 보기

601
             </el-form-item>
601
             </el-form-item>
602
        </el-col>
602
        </el-col>
603
        <el-col :span="8" v-if="isShow('累计血容量')">
603
        <el-col :span="8" v-if="isShow('累计血容量')">
604
-            <el-form-item label="累计血容量(L):"  label-width="150px" :prop="isName('累计血容量')" :rules="isCheckmust('累计血容量')">
604
+            <el-form-item label="透析血容量(L):"  label-width="150px" :prop="isName('透析血容量')" :rules="isCheckmust('透析血容量')">
605
               <el-input v-model="form.accumulated_blood_volume"></el-input>
605
               <el-input v-model="form.accumulated_blood_volume"></el-input>
606
             </el-form-item>
606
             </el-form-item>
607
         </el-col>
607
         </el-col>

+ 9 - 0
src/api/patient.js 파일 보기

1093
     method:"get",
1093
     method:"get",
1094
     params:params,
1094
     params:params,
1095
   })
1095
   })
1096
+}
1097
+
1098
+export function deleteSolution(id,params){
1099
+  
1100
+  return request({
1101
+    url:"/api/patient/deletesolution?id="+id,
1102
+    method:"Get",
1103
+    params:params,
1104
+  })
1096
 }
1105
 }

+ 1 - 1
src/api/stock.js 파일 보기

121
 }
121
 }
122
 
122
 
123
 export function createGoodInfo(params) {
123
 export function createGoodInfo(params) {
124
-  console.log('prams', params)
124
+
125
   return request({
125
   return request({
126
     url: '/api/stock/good/info/create',
126
     url: '/api/stock/good/info/create',
127
     method: 'post',
127
     method: 'post',

+ 2 - 2
src/xt_pages/data/components/consumables.vue 파일 보기

1576
          }
1576
          }
1577
          console.log("hhhadhh233323232",this.goodInfo.goodInfoData)
1577
          console.log("hhhadhh233323232",this.goodInfo.goodInfoData)
1578
 
1578
 
1579
-         const tHeader = ['耗材名称','耗材种类','耗材类型','医保等级','规格型号','生产厂商','单位','零价','库存警戒','经销商','最新进价','医保编码','社保目录编码','批准文号','医保等级']
1580
-         const filterVal = ['good_name', 'good_kind_name','good_type_name','medical_insurance_level_name','specification_name','manufacturer_name','packing_unit','packing_price','stock_warn_count','dealer_name','buy_price','medical_insurance_number','social_security_directory_code','number','medical_insurance_level']
1579
+         const tHeader = ['耗材名称','耗材种类','耗材类型','医保等级','规格型号','生产厂商','单位','零价','库存警戒','经销商','最新进价','医保编码','社保目录编码','批准文号','医保等级',"注册编码"]
1580
+         const filterVal = ['good_name', 'good_kind_name','good_type_name','medical_insurance_level_name','specification_name','manufacturer_name','packing_unit','packing_price','stock_warn_count','dealer_name','buy_price','medical_insurance_number','social_security_directory_code','number','medical_insurance_level','register_number']
1581
 
1581
 
1582
          const data = this.formatJson(filterVal,this.goodInfo.goodInfoData)
1582
          const data = this.formatJson(filterVal,this.goodInfo.goodInfoData)
1583
 
1583
 

+ 20 - 3
src/xt_pages/data/components/drugs.vue 파일 보기

1533
 
1533
 
1534
 
1534
 
1535
          console.log("this.table",this.list)
1535
          console.log("this.table",this.list)
1536
-
1536
+         
1537
          for(let i=0;i<this.list.length;i++){
1537
          for(let i=0;i<this.list.length;i++){
1538
           for(let j=0;j<this.drugCategoryList.length;j++){
1538
           for(let j=0;j<this.drugCategoryList.length;j++){
1539
               if(this.list[i].drug_category == this.drugCategoryList[j].value){
1539
               if(this.list[i].drug_category == this.drugCategoryList[j].value){
1566
 
1566
 
1567
              }
1567
              }
1568
            }
1568
            }
1569
+           
1569
           this.list[i].specification_name = this.list[i].dose + this.list[i].dose_unit + this.list[i].min_number + this.list[i].min_unit + "/"+this.list[i].max_unit
1570
           this.list[i].specification_name = this.list[i].dose + this.list[i].dose_unit + this.list[i].min_number + this.list[i].min_unit + "/"+this.list[i].max_unit
1571
+
1572
+          if(this.list[i].is_special_diseases == 1 ){
1573
+             this.list[i].is_special_diseases_name ="是"
1574
+          }
1575
+
1576
+          if(this.list[i].is_special_diseases == 2 ||this.list[i].is_special_diseases == 0  ){
1577
+             this.list[i].is_special_diseases_name ="否"
1578
+          }
1579
+
1580
+          if(this.list[i].lmt_used_flag == 1 ){
1581
+             this.list[i].lmt_used_flag_name ="是"
1582
+          }
1583
+
1584
+          if(this.list[i].lmt_used_flag == 2 ||this.list[i].lmt_used_flag == 0  ){
1585
+             this.list[i].lmt_used_flag_name ="否"
1586
+          }
1570
          }
1587
          }
1571
 
1588
 
1572
-         const tHeader = ['药品名称','药品规格','剂量','剂量单位','拆零','拆零单位','包装单位','药品类型','库存警戒','产地','药品剂型','拆零零售价','包装零售价','进货价','药物分类','默认单次用量','默认单次用量单位','生产厂商','经销商','医保编码','社保目录编码','批准文号','医保等级']
1573
-         const filterVal = ['drug_name', 'specification_name','dose','dose_unit','min_number','min_unit','max_unit','drug_category_name','drug_stock_limit','drug_origin_place','drug_dosage_form_name','min_price','retail_price','last_price','drug_classify_name','drug_dose','drug_dose_unit_name','manufacturer_name','dealer_name','medical_insurance_number','social_security_directory_code','number','medical_insurance_level']
1589
+         const tHeader = ['药品名称','药品规格','剂量','剂量单位','拆零','拆零单位','包装单位','药品类型','库存警戒','产地','药品剂型','拆零零售价','包装零售价','进货价','药物分类','默认单次用量','默认单次用量单位','生产厂商','经销商','医保编码','社保目录编码','批准文号','医保等级','是否特病目录','限制性用药']
1590
+         const filterVal = ['drug_name', 'specification_name','dose','dose_unit','min_number','min_unit','max_unit','drug_category_name','drug_stock_limit','drug_origin_place','drug_dosage_form_name','min_price','retail_price','last_price','drug_classify_name','drug_dose','drug_dose_unit_name','manufacturer_name','dealer_name','medical_insurance_number','social_security_directory_code','number','medical_insurance_level','is_special_diseases_name','lmt_used_flag_name']
1574
 
1591
 
1575
          const data = this.formatJson(filterVal,this.list)
1592
          const data = this.formatJson(filterVal,this.list)
1576
 
1593
 

+ 2 - 7
src/xt_pages/dialysis/batch_print/batch_print_order_fiftynine.vue 파일 보기

916
                             record.assessment_before_dislysis.weight_before
916
                             record.assessment_before_dislysis.weight_before
917
                               ? parseFloat(
917
                               ? parseFloat(
918
                                   record.assessment_before_dislysis
918
                                   record.assessment_before_dislysis
919
-                                    .weight_before -
920
-                                    record.assessment_before_dislysis
921
-                                      .additional_weight
919
+                                    .weight_before
922
                                 ).toFixed(1)
920
                                 ).toFixed(1)
923
                               : "/"
921
                               : "/"
924
                           }}
922
                           }}
2047
                             record.assessment_after_dislysis &&
2045
                             record.assessment_after_dislysis &&
2048
                             record.assessment_after_dislysis.weight_after
2046
                             record.assessment_after_dislysis.weight_after
2049
                               ? parseFloat(
2047
                               ? parseFloat(
2050
-                                  record.assessment_after_dislysis
2051
-                                    .weight_after -
2052
-                                    record.assessment_before_dislysis
2053
-                                      .additional_weight
2048
+                                  record.assessment_after_dislysis.weight_after
2054
                                 ).toFixed(1)
2049
                                 ).toFixed(1)
2055
                               : "/"
2050
                               : "/"
2056
                           }}
2051
                           }}

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_six.vue 파일 보기

1005
                       style="padding: 2px 0; line-height: 23px; display: flex"
1005
                       style="padding: 2px 0; line-height: 23px; display: flex"
1006
                     >
1006
                     >
1007
                       <div class="inline_block" style="flex: 1"
1007
                       <div class="inline_block" style="flex: 1"
1008
-                        v-if="org_id!=10440 && org_id!=0  && org_id!=10469 && org_id!=10490 && org_id!=10478 && org_id!=10495 && org_id!=10510 && org_id!=10460 && org_id!=10585 && org_id!=10567 && org_id!=10624">
1008
+                        v-if="org_id!=10440 && org_id!=0  && org_id!=10469 && org_id!=10490 && org_id!=10478 && org_id!=10495 && org_id!=10510 && org_id!=10460 && org_id!=10585 && org_id!=10567 && org_id!=10624 && org_id!=10290">
1009
                         上次透后体重:
1009
                         上次透后体重:
1010
                         <div
1010
                         <div
1011
                           class="under_line"
1011
                           class="under_line"
1031
                       </div>
1031
                       </div>
1032
 
1032
 
1033
                       <div class="inline_block" style="flex: 1"
1033
                       <div class="inline_block" style="flex: 1"
1034
-                        v-if="(org_id==10440 ||  org_id ==0 || org_id==10469 || org_id==10490 || org_id==10478  || org_id==10495 || org_id == 10460 || org_id ==10624 || org_i==10624)&& org_id!=10510">
1034
+                        v-if="(org_id==10440 ||  org_id ==0 || org_id==10469 || org_id==10490 || org_id==10478  || org_id==10495 || org_id == 10460 || org_id ==10624 || org_id==10624 || org_id == 10290)&& org_id!=10510">
1035
                         上次透后体重:
1035
                         上次透后体重:
1036
                         <div
1036
                         <div
1037
                           class="under_line"
1037
                           class="under_line"

+ 1 - 0
src/xt_pages/dialysis/batch_print/batch_print_order_twelve.vue 파일 보기

214
                       <span style="width:50px;display: inline-block;">{{
214
                       <span style="width:50px;display: inline-block;">{{
215
                         record.prescription.anticoagulant_zongliang &&
215
                         record.prescription.anticoagulant_zongliang &&
216
                         (record.prescription.anticoagulant == 6 ||
216
                         (record.prescription.anticoagulant == 6 ||
217
+                        record.prescription.anticoagulant == 3 ||
217
                           record.prescription.anticoagulant == 7)
218
                           record.prescription.anticoagulant == 7)
218
                           ? record.prescription.anticoagulant_zongliang
219
                           ? record.prescription.anticoagulant_zongliang
219
                           : ""
220
                           : ""

+ 2 - 2
src/xt_pages/dialysis/details/assessmentAfter.vue 파일 보기

325
           <span class="content" >{{ this.record.pip_coagulation}}</span>
325
           <span class="content" >{{ this.record.pip_coagulation}}</span>
326
         </li>
326
         </li>
327
        <li v-if="isShow('累计血容量')">
327
        <li v-if="isShow('累计血容量')">
328
-          <label>累计血容量: </label>
329
-          <span class="content" >{{ this.record.accumulated_blood_volume}}</span>
328
+          <label>透析血容量: </label>
329
+          <span class="content" >{{ this.record.accumulated_blood_volume}}L</span>
330
         </li>
330
         </li>
331
 
331
 
332
         <li v-if="isShow('输液量')">
332
         <li v-if="isShow('输液量')">

+ 2 - 2
src/xt_pages/dialysis/details/index.vue 파일 보기

449
 
449
 
450
                 </div>
450
                 </div>
451
                 <div class="printCell" style="display:flex;">
451
                 <div class="printCell" style="display:flex;">
452
-                  <span style="display: block;width: 45%;">处方脱水量:{{ main_collection.prescription.target_ultrafiltration }}
452
+                  <span style="display: block;width: 45%;">目标脱水量:{{ main_collection.prescription.target_ultrafiltration }}
453
                     <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10138 || $store.getters.xt_user.org.id == 10460">ml</span>
453
                     <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10138 || $store.getters.xt_user.org.id == 10460">ml</span>
454
                     <span v-else>L</span>
454
                     <span v-else>L</span>
455
                   </span>
455
                   </span>
528
                   </span>
528
                   </span>
529
                 </div>
529
                 </div>
530
                 <div class="printCell" style="display:flex;"  v-if="org_id==10598 || org_id == 0">
530
                 <div class="printCell" style="display:flex;"  v-if="org_id==10598 || org_id == 0">
531
-                  <span style="display: block;width: 45%;">目标脱水量:{{main_collection.prescription.prescription_water}}
531
+                  <span style="display: block;width: 45%;">处方脱水量:{{main_collection.prescription.prescription_water}}
532
                     <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10460">ml</span>
532
                     <span v-if="$store.getters.xt_user.org.id == 10278 || $store.getters.xt_user.org.id == 10460">ml</span>
533
                      <span v-else>L</span>
533
                      <span v-else>L</span>
534
                   </span> 
534
                   </span> 

+ 2 - 8
src/xt_pages/dialysis/template/DialysisPrintOrderFiftyNine.vue 파일 보기

852
                         {{
852
                         {{
853
                           predialysis.weight_before
853
                           predialysis.weight_before
854
                             ? parseFloat(
854
                             ? parseFloat(
855
-                                predialysis.weight_before -
856
-                                  predialysis.additional_weight
855
+                                predialysis.weight_before
857
                               ).toFixed(1)
856
                               ).toFixed(1)
858
                             : "/"
857
                             : "/"
859
                         }}
858
                         }}
1924
                         style="width: 70px; text-align: center"
1923
                         style="width: 70px; text-align: center"
1925
                       >
1924
                       >
1926
                         {{
1925
                         {{
1927
-                          afterdialysis.weight_after
1928
-                            ? parseFloat(
1929
-                                afterdialysis.weight_after -
1930
-                                  afterdialysis.additional_weight
1931
-                              ).toFixed(1)
1932
-                            : "/"
1926
+                          afterdialysis.weight_after? parseFloat(afterdialysis.weight_after).toFixed(1): "/"
1933
                         }}
1927
                         }}
1934
                       </div>
1928
                       </div>
1935
                       kg
1929
                       kg

+ 8 - 3
src/xt_pages/dialysis/template/DialysisPrintOrderSix.vue 파일 보기

2538
               </div>
2538
               </div>
2539
              
2539
              
2540
             </div>
2540
             </div>
2541
-            <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10460">
2541
+            <div class="inline_block" style="margin-left: 10px" v-if="org_id!=10460&&org_id!=10624">
2542
               诊断:
2542
               诊断:
2543
               <div
2543
               <div
2544
                 class="under_line"
2544
                 class="under_line"
2914
                         class="under_line"
2914
                         class="under_line"
2915
                         style="width: 70px; text-align: center"
2915
                         style="width: 70px; text-align: center"
2916
                       >
2916
                       >
2917
-                        {{
2917
+                        <span v-if="org_id!=10598">{{
2918
                           afterdialysis.weight_loss
2918
                           afterdialysis.weight_loss
2919
                             ? afterdialysis.weight_loss
2919
                             ? afterdialysis.weight_loss
2920
                             : "/"
2920
                             : "/"
2921
-                        }}
2921
+                           }}
2922
+                         </span>
2923
+                         <span v-if="org_id ==10598"> 
2924
+                          {{(predialysis.weight_before - afterdialysis.weight_after).toFixed(2)}}
2925
+                         </span>
2926
+                      
2922
                       </div>
2927
                       </div>
2923
                       kg
2928
                       kg
2924
                     </div>
2929
                     </div>

+ 14 - 0
src/xt_pages/dialysis/template/DialysisPrintOrderSixty.vue 파일 보기

1962
                       ml
1962
                       ml
1963
                     </div>
1963
                     </div>
1964
                   </div>
1964
                   </div>
1965
+                  <div class="row" style="padding: 2px 0; line-height: 23px; display: flex">
1966
+                    透析血容量:
1967
+                      <div
1968
+                        class="under_line"
1969
+                        style="width: 70px; text-align: center"
1970
+                      >
1971
+                        {{
1972
+                          afterdialysis.accumulated_blood_volume
1973
+                            ? afterdialysis.accumulated_blood_volume
1974
+                            : "/"
1975
+                        }}
1976
+                        L
1977
+                   </div>
1978
+                  </div>
1965
                   <div
1979
                   <div
1966
                     class="row"
1980
                     class="row"
1967
                     style="padding: 2px 0; line-height: 23px; display: flex"
1981
                     style="padding: 2px 0; line-height: 23px; display: flex"

+ 32 - 32
src/xt_pages/outpatientDoctorStation/doctorDesk.vue 파일 보기

1996
                 if (prescription.pre_time == 0) {
1996
                 if (prescription.pre_time == 0) {
1997
                   if (this.schedule.schedule_type == 1) {
1997
                   if (this.schedule.schedule_type == 1) {
1998
                     if (this.org_id == 10028) {
1998
                     if (this.org_id == 10028) {
1999
-                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
1999
+                      preTime = this.record_date + ' ' + '6:30'
2000
                     } else if(this.org_id == 10206  || this.org_id == 0){
2000
                     } else if(this.org_id == 10206  || this.org_id == 0){
2001
                       preTime = this.record_date + ' ' + '6:00'
2001
                       preTime = this.record_date + ' ' + '6:00'
2002
                     } else {
2002
                     } else {
2003
-                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2003
+                      preTime = this.record_date + ' ' + '7:00'
2004
 
2004
 
2005
                     }
2005
                     }
2006
                   } else if (this.schedule.schedule_type == 2) {
2006
                   } else if (this.schedule.schedule_type == 2) {
2007
                      if(this.org_id == 10206  || this.org_id == 0 ){
2007
                      if(this.org_id == 10206  || this.org_id == 0 ){
2008
                       preTime = this.record_date + ' ' + '10:30'
2008
                       preTime = this.record_date + ' ' + '10:30'
2009
                     }else{
2009
                     }else{
2010
-                     preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2010
+                     preTime = this.record_date + ' ' + '11:00'
2011
                    }
2011
                    }
2012
                   } else if (this.schedule.schedule_type == 3) {
2012
                   } else if (this.schedule.schedule_type == 3) {
2013
-                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2013
+                    preTime = this.record_date + ' ' + '17:00'
2014
                   }
2014
                   }
2015
                   // preTime = nowTime
2015
                   // preTime = nowTime
2016
                 } else {
2016
                 } else {
2165
                 if (this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2165
                 if (this.$store.getters.xt_user.org.id != 9919 && this.$store.getters.xt_user.org.id != 10485 && this.$store.getters.xt_user.org.id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2166
                   if (this.schedule.schedule_type == 1) {
2166
                   if (this.schedule.schedule_type == 1) {
2167
                     if (this.org_id == 10028) {
2167
                     if (this.org_id == 10028) {
2168
-                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
2168
+                      preTime = this.record_date + ' ' + '6:30'
2169
                     } else if(this.org_id == 10206  || this.org_id == 0) {
2169
                     } else if(this.org_id == 10206  || this.org_id == 0) {
2170
                       preTime = this.record_date+ ' ' + '6:00'
2170
                       preTime = this.record_date+ ' ' + '6:00'
2171
                     } else {
2171
                     } else {
2172
-                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2172
+                      preTime = this.record_date + ' ' + '7:00'
2173
 
2173
 
2174
                     }
2174
                     }
2175
                     // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2175
                     // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2177
                     if(this.org_id == 10206  || this.org_id == 0){
2177
                     if(this.org_id == 10206  || this.org_id == 0){
2178
                       preTime = this.record_date + ' ' + '6:00'
2178
                       preTime = this.record_date + ' ' + '6:00'
2179
                     }else {
2179
                     }else {
2180
-                      preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2180
+                      preTime = this.record_date + ' ' + '11:00'
2181
                     }
2181
                     }
2182
                   } else if (this.schedule.schedule_type == 3) {
2182
                   } else if (this.schedule.schedule_type == 3) {
2183
-                    preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2183
+                    preTime = this.record_date + ' ' + '17:00'
2184
                   }
2184
                   }
2185
                 }
2185
                 }
2186
 
2186
 
2501
                       if (prescription.pre_time == 0) {
2501
                       if (prescription.pre_time == 0) {
2502
                         if (this.schedule.schedule_type == 1) {
2502
                         if (this.schedule.schedule_type == 1) {
2503
                           if (this.org_id == 10028) {
2503
                           if (this.org_id == 10028) {
2504
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
2504
+                            preTime = this.record_date + ' ' + '6:30'
2505
                           } else if(this.org_id == 10206 || this.org_id == 0){
2505
                           } else if(this.org_id == 10206 || this.org_id == 0){
2506
                             preTime = this.record_date + ' ' + '6:00'
2506
                             preTime = this.record_date + ' ' + '6:00'
2507
                           } else {
2507
                           } else {
2508
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2508
+                            preTime = this.record_date + ' ' + '7:00'
2509
 
2509
 
2510
                           }
2510
                           }
2511
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2511
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2513
                           if(this.org_id == 10206  || this.org_id == 0){
2513
                           if(this.org_id == 10206  || this.org_id == 0){
2514
                             preTime = this.record_date + ' ' + '10:30'
2514
                             preTime = this.record_date + ' ' + '10:30'
2515
                           }else{
2515
                           }else{
2516
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2516
+                            preTime = this.record_date + ' ' + '11:00'
2517
                           }
2517
                           }
2518
                         } else if (this.schedule.schedule_type == 3) {
2518
                         } else if (this.schedule.schedule_type == 3) {
2519
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2519
+                          preTime = this.record_date + ' ' + '17:00'
2520
                         }
2520
                         }
2521
                       } else {
2521
                       } else {
2522
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2522
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
2672
                       if ( this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2672
                       if ( this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
2673
                         if (this.schedule.schedule_type == 1) {
2673
                         if (this.schedule.schedule_type == 1) {
2674
                           if (this.org_id == 10028) {
2674
                           if (this.org_id == 10028) {
2675
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
2675
+                            preTime = this.record_date + ' ' + '6:30'
2676
                           } else if(this.org_id == 10206  || this.org_id == 0){
2676
                           } else if(this.org_id == 10206  || this.org_id == 0){
2677
                             preTime = this.record_date + ' ' + '6:00'
2677
                             preTime = this.record_date + ' ' + '6:00'
2678
                           } else {
2678
                           } else {
2679
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2679
+                            preTime = this.record_date + ' ' + '7:00'
2680
 
2680
 
2681
                           }
2681
                           }
2682
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2682
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
2685
                             preTime =this.record_date + ' ' + '10:30'
2685
                             preTime =this.record_date + ' ' + '10:30'
2686
                           }else{
2686
                           }else{
2687
 
2687
 
2688
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
2688
+                            preTime = this.record_date + ' ' + '11:00'
2689
 
2689
 
2690
                           }
2690
                           }
2691
                         } else if (this.schedule.schedule_type == 3) {
2691
                         } else if (this.schedule.schedule_type == 3) {
2692
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
2692
+                          preTime = this.record_date + ' ' + '17:00'
2693
                         }
2693
                         }
2694
                       }
2694
                       }
2695
 
2695
 
4226
                       if (prescription.pre_time == 0) {
4226
                       if (prescription.pre_time == 0) {
4227
                         if (this.schedule.schedule_type == 1) {
4227
                         if (this.schedule.schedule_type == 1) {
4228
                           if (this.org_id == 10028) {
4228
                           if (this.org_id == 10028) {
4229
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4229
+                            preTime = this.record_date + ' ' + '6:30'
4230
                           } else if(this.org_id == 10206 || this.org_id == 0){
4230
                           } else if(this.org_id == 10206 || this.org_id == 0){
4231
 
4231
 
4232
                             preTime = this.record_date + ' ' + '6:00'
4232
                             preTime = this.record_date + ' ' + '6:00'
4233
 
4233
 
4234
                           } else {
4234
                           } else {
4235
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4235
+                            preTime = this.record_date + ' ' + '7:00'
4236
 
4236
 
4237
                           }
4237
                           }
4238
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4238
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4241
                             preTime = this.record_date + ' ' + '10:30'
4241
                             preTime = this.record_date + ' ' + '10:30'
4242
 
4242
 
4243
                           }else {
4243
                           }else {
4244
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4244
+                            preTime = this.record_date + ' ' + '11:00'
4245
                           }
4245
                           }
4246
                         } else if (this.schedule.schedule_type == 3) {
4246
                         } else if (this.schedule.schedule_type == 3) {
4247
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4247
+                          preTime = this.record_date + ' ' + '17:00'
4248
                         }
4248
                         }
4249
                       } else {
4249
                       } else {
4250
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4250
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4399
                       if (this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4399
                       if (this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
4400
                         if (this.schedule.schedule_type == 1) {
4400
                         if (this.schedule.schedule_type == 1) {
4401
                           if (this.org_id == 10028) {
4401
                           if (this.org_id == 10028) {
4402
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4402
+                            preTime = this.record_date + ' ' + '6:30'
4403
                           } else if(this.org_id == 10206  || this.org_id == 0){
4403
                           } else if(this.org_id == 10206  || this.org_id == 0){
4404
                             preTime = this.record_date+ ' ' + '6:00'
4404
                             preTime = this.record_date+ ' ' + '6:00'
4405
                           } else {
4405
                           } else {
4406
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4406
+                            preTime = this.record_date + ' ' + '7:00'
4407
                           }
4407
                           }
4408
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4408
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4409
                         } else if (this.schedule.schedule_type == 2) {
4409
                         } else if (this.schedule.schedule_type == 2) {
4410
                           if(this.org_id == 10206  || this.org_id == 0){
4410
                           if(this.org_id == 10206  || this.org_id == 0){
4411
                             preTime = this.record_date + ' ' + '10:30'
4411
                             preTime = this.record_date + ' ' + '10:30'
4412
                           }else{
4412
                           }else{
4413
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4413
+                            preTime = this.record_date + ' ' + '11:00'
4414
                           }
4414
                           }
4415
                         } else if (this.schedule.schedule_type == 3) {
4415
                         } else if (this.schedule.schedule_type == 3) {
4416
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4416
+                          preTime = this.record_date + ' ' + '17:00'
4417
                         }
4417
                         }
4418
                       }
4418
                       }
4419
 
4419
 
4912
                         // preTime = nowTime
4912
                         // preTime = nowTime
4913
                         if (this.schedule.schedule_type == 1) {
4913
                         if (this.schedule.schedule_type == 1) {
4914
                           if (this.org_id == 10028) {
4914
                           if (this.org_id == 10028) {
4915
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
4915
+                            preTime = this.record_date + ' ' + '6:30'
4916
                           } else if(this.org_id == 10206 || this.org_id == 0){
4916
                           } else if(this.org_id == 10206 || this.org_id == 0){
4917
                             preTime = this.record_date + ' ' + '6:00'
4917
                             preTime = this.record_date + ' ' + '6:00'
4918
                           } else {
4918
                           } else {
4919
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4919
+                            preTime = this.record_date + ' ' + '7:00'
4920
                           }
4920
                           }
4921
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4921
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
4922
                         } else if (this.schedule.schedule_type == 2) {
4922
                         } else if (this.schedule.schedule_type == 2) {
4923
                           if(this.org_id == 10206  || this.org_id == 0){
4923
                           if(this.org_id == 10206  || this.org_id == 0){
4924
                             preTime =this.record_date + ' ' + '10:30'
4924
                             preTime =this.record_date + ' ' + '10:30'
4925
                           }else{
4925
                           }else{
4926
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
4926
+                            preTime = this.record_date + ' ' + '11:00'
4927
 
4927
 
4928
                           }
4928
                           }
4929
                         } else if (this.schedule.schedule_type == 3) {
4929
                         } else if (this.schedule.schedule_type == 3) {
4930
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
4930
+                          preTime = this.record_date + ' ' + '17:00'
4931
                         }
4931
                         }
4932
                       } else {
4932
                       } else {
4933
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
4933
                         preTime = this.getTime(prescription.pre_time, '{y}-{m}-{d} {h}:{i}')
5083
                       if ( this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
5083
                       if ( this.org_id != 9919 && this.org_id != 10485 && this.org_id != 10191 && this.$store.getters.xt_user.org.id != 10375) {
5084
                         if (this.schedule.schedule_type == 1) {
5084
                         if (this.schedule.schedule_type == 1) {
5085
                           if (this.org_id == 10028) {
5085
                           if (this.org_id == 10028) {
5086
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '6:30'
5086
+                            preTime = this.record_date + ' ' + '6:30'
5087
                           } else if(this.org_id == 10206 ||  this.org_id == 0){
5087
                           } else if(this.org_id == 10206 ||  this.org_id == 0){
5088
                             preTime = this.record_date + ' ' + '6:00'
5088
                             preTime = this.record_date + ' ' + '6:00'
5089
                           } else {
5089
                           } else {
5090
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
5090
+                            preTime = this.record_date + ' ' + '7:00'
5091
                           }
5091
                           }
5092
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
5092
                           // preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '7:00'
5093
                         } else if (this.schedule.schedule_type == 2) {
5093
                         } else if (this.schedule.schedule_type == 2) {
5095
                             preTime = this.record_date + ' ' + '10:30'
5095
                             preTime = this.record_date + ' ' + '10:30'
5096
 
5096
 
5097
                           }else{
5097
                           }else{
5098
-                            preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '11:00'
5098
+                            preTime = this.record_date + ' ' + '11:00'
5099
                           }
5099
                           }
5100
                         } else if (this.schedule.schedule_type == 3) {
5100
                         } else if (this.schedule.schedule_type == 3) {
5101
-                          preTime = nowYear + '-' + (nowMonth < 10 ? '0' + nowMonth : nowMonth) + '-' + (nowDay < 10 ? '0' + nowDay : nowDay) + ' ' + '17:00'
5101
+                          preTime = this.record_date + ' ' + '17:00'
5102
                         }
5102
                         }
5103
                       }
5103
                       }
5104
 
5104
 

+ 1 - 1
src/xt_pages/stock/stockFlow.vue 파일 보기

52
         <span>
52
         <span>
53
           <el-button type="primary" size="small" @click="toExprot">导出</el-button>
53
           <el-button type="primary" size="small" @click="toExprot">导出</el-button>
54
 
54
 
55
-          <!-- <el-button type="primary" size="small" @click="toTongBu">同步</el-button> -->
55
+          <el-button type="primary" size="small" @click="toTongBu">同步</el-button>
56
         </span>
56
         </span>
57
        
57
        
58
       </div>
58
       </div>

+ 1 - 1
src/xt_pages/user/courseOfDisease.vue 파일 보기

851
       // nowMonth = nowDate.getMonth() + 1
851
       // nowMonth = nowDate.getMonth() + 1
852
       // nowDay = nowDate.getDate()
852
       // nowDay = nowDate.getDate()
853
       // this.start_time = nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' +(nowDay < 10 ? '0' + nowDay : nowDay)
853
       // this.start_time = nowYear +'-' +(nowMonth < 10 ? '0' + nowMonth : nowMonth) +'-' +(nowDay < 10 ? '0' + nowDay : nowDay)
854
-      this.start_time = moment().month(moment().month() - 1).startOf('month').format('YYYY-MM-DD');
854
+      this.start_time = moment().month(moment().month() - 6).startOf('month').format('YYYY-MM-DD');
855
       console.log("start_time",this.start_time)
855
       console.log("start_time",this.start_time)
856
       this.end_time = moment().endOf('month').format('YYYY-MM-DD');
856
       this.end_time = moment().endOf('month').format('YYYY-MM-DD');
857
       console.log("end_time",this.end_time)
857
       console.log("end_time",this.end_time)

+ 36 - 1
src/xt_pages/user/dialysisSolution.vue 파일 보기

124
               </el-button>
124
               </el-button>
125
             </el-tooltip>
125
             </el-tooltip>
126
 
126
 
127
+            <el-tooltip
128
+                class="item"
129
+                effect="dark"
130
+                content="删除"
131
+                placement="top"
132
+              >
133
+                <el-button
134
+                  size="small"
135
+                  type="danger"
136
+                  icon="el-icon-delete"
137
+                  @click="deleteSolution(scope.$index, scope.row)"
138
+                   删除
139
+                ></el-button>
140
+               </el-tooltip>
141
+
127
           </template>
142
           </template>
128
         </el-table-column>
143
         </el-table-column>
129
       </el-table>
144
       </el-table>
954
     editDialysisSolutionDetail,
969
     editDialysisSolutionDetail,
955
     editPatientDialysisSolution,
970
     editPatientDialysisSolution,
956
     findePatientDialysisLongSolutions,
971
     findePatientDialysisLongSolutions,
957
-    getDialysisSolutionDetailList
972
+    getDialysisSolutionDetailList,
973
+    deleteSolution
958
   } from '@/api/patient'
974
   } from '@/api/patient'
959
 
975
 
960
   import { getSystemPrescription } from '@/api/config'
976
   import { getSystemPrescription } from '@/api/config'
2688
           }
2704
           }
2689
         }
2705
         }
2690
         return name
2706
         return name
2707
+      },
2708
+      deleteSolution(index,row){
2709
+          this.$confirm('确认删除吗?', '删除', {
2710
+            confirmButtonText: '确 定',
2711
+            cancelButtonText: '取 消',
2712
+            type: 'warning'
2713
+         }).then(() => {
2714
+          deleteSolution(row.id).then(response => {
2715
+              if (response.data.state == 1) {
2716
+                  var msg = response.data.data.msg
2717
+                  this.$message.success("删除成功")
2718
+                  this.FindePatientDialysisLongSolutions()
2719
+              } else {
2720
+                  this.$message.error("药品已经出库不能删除")
2721
+              }
2722
+            })
2723
+          })
2724
+          .catch(() => {
2725
+          }) 
2691
       }
2726
       }
2692
     },
2727
     },
2693
     created() {
2728
     created() {