Browse Source

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

28169 3 weeks ago
parent
commit
6a82ccb211

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

@@ -999,13 +999,32 @@ export default {
999 999
               this.records[recordIndex].advices.push(item);
1000 1000
             }
1001 1001
           }
1002
-          console.log(this.records, "this.records");
1002
+          
1003 1003
           // this.records.forEach(o => {
1004 1004
           //   console.log(o,'jj')
1005 1005
           //   this.blood_access_part_opera_name = this.bloodAccessParOperaName(
1006 1006
           //   o.assessment_before_dislysis.blood_access_part_opera_id)
1007 1007
           // })
1008
-
1008
+          // const advice = []
1009
+          if(this.records.length>0){
1010
+            console.log(this.records, "this.records");
1011
+            for(let x in this.records){
1012
+              
1013
+              if(this.records[x].his_advices.length>0){
1014
+                console.log(this.records, "this.records");
1015
+                const arr = this.records[x].his_advices
1016
+                for(let i in arr ){
1017
+                  if(arr[i].delivery_way == '口服' || 
1018
+                    arr[i].delivery_way == '中药口服' ||
1019
+                    arr[i].delivery_way == '舌下含服'
1020
+                  ){
1021
+                    arr.splice(i,1)
1022
+                  }
1023
+                }
1024
+              }
1025
+              // this.records[x].his_advices =advice
1026
+            }
1027
+          }
1009 1028
           this.operators = resp.data.medical_staffs;
1010 1029
           if (this.operators.length > 0) {
1011 1030
             var operatorsLen = this.operators.length;

+ 10 - 1
src/xt_pages/dialysis/template/DialysisPrintOrdereightytwo.vue View File

@@ -1162,7 +1162,16 @@ export default {
1162 1162
           this.assessmentafter = response.data.data.assessmentAfterDislysis
1163 1163
           console.log('上次透后体重', this.assessmentafter)
1164 1164
           var doctorAdevieInfo = response.data.data.advices
1165
-          var tableAdvice = doctorAdevieInfo
1165
+          console.log('var tableAdvice',tableAdvice);
1166
+          var tableAdvice = []
1167
+          for(let i in doctorAdevieInfo){
1168
+            if(doctorAdevieInfo[i].delivery_way != '口服' && 
1169
+            doctorAdevieInfo[i].delivery_way != '中药口服' &&
1170
+            doctorAdevieInfo[i].delivery_way != '舌下含服'){
1171
+              tableAdvice.push(doctorAdevieInfo[i]) 
1172
+            }
1173
+          }
1174
+          
1166 1175
           if (tableAdvice.length === 0) {
1167 1176
             var obj = { advice_name: '', start_time: '' }
1168 1177
             var obj1 = { advice_name: '', start_time: '' }

+ 32 - 1
src/xt_pages/eleFaPiao/settleDetail.vue View File

@@ -209,7 +209,7 @@
209 209
               红冲
210 210
             </el-button>
211 211
             <el-button size="mini" type="primary" v-if="scope.row.result.id > 0 && scope.row.result.is_red_washed == 0 && scope.row.result.fapiao_status == '2'"
212
-                       @click="yulan(scope.row)">
212
+                       @click="bwyulan(scope.row)">
213 213
               下载
214 214
             </el-button>
215 215
 <!--            <el-button size="mini" type="primary" v-if="scope.row.result.id > 0 && scope.row.result.fapiao_status > 0"-->
@@ -916,6 +916,37 @@ export default {
916 916
       // this.pdfSrc = row.result.pdf_url
917 917
       // console.log(this.pdfSrc)
918 918
 
919
+
920
+
921
+    },bwyulan(row){
922
+      var  id = row.result.id
923
+      let params = {
924
+        "id":id,
925
+        "admin_user_id":this.$store.getters.xt_user.user.id,
926
+      }
927
+      var that = this;
928
+      axios.get('http://127.0.0.1:9532/api/download',{params:params}).then(function(response) {
929
+        if (response.data.state == 0) {
930
+          that.$message.error(response.data.data.msg);
931
+          return false
932
+        } else {
933
+          if(response.data.data.failed_code == -10){
934
+            that.$confirm(response.data.data.msg, '错误信息', {
935
+              confirmButtonText: '确 定',
936
+              type: 'warning'
937
+            }).then(() => {
938
+
939
+            }).catch(() => {
940
+            })
941
+          }else{
942
+            that.$message.success(response.data.data.msg)
943
+            // that.getHisOrderList()
944
+          }
945
+        }
946
+      }).catch(function(error) {
947
+
948
+      })
949
+
919 950
     },hongchong(row){
920 951
       var  id = row.result.id
921 952