Procházet zdrojové kódy

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

csx před 4 roky
rodič
revize
0769bdb843

+ 2 - 1
src/xt_pages/data/components/project.vue Zobrazit soubor

@@ -107,7 +107,7 @@ export default {
107 107
               {value:2,label:'否'}
108 108
             ],
109 109
             value: '',
110
-            limit:20,
110
+            limit:10,
111 111
             page:1,
112 112
             total:0,
113 113
             tableData: [],
@@ -177,6 +177,7 @@ export default {
177 177
                console.log('projectlist',projecList)
178 178
                this.tableData = projecList
179 179
                var total = response.data.data.total
180
+               console.log("total-----",total)
180 181
                this.total = total
181 182
              }
182 183
           })  

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderThirtyOne.vue Zobrazit soubor

@@ -589,8 +589,8 @@
589 589
             医生签名
590 590
             <span style="display: inline-block;width:100px;text-align: left;">
591 591
               &nbsp;
592
-              <span v-if="setAdminUserES(summary==null? 0 : (summary.modifier?summary.modifier:summary.creater)) == ''"> {{ getAdminUser(summary==null?0:(summary.modifier?summary.modifier:summary.creater)) }} </span>
593
-              <img style="height:30px;" :src="setAdminUserES(summary==null?0:(summary.modifier?summary.modifier:summary.creater))" alt="" srcset="" v-else />
592
+              <span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
593
+              <img style="height:30px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
594 594
               <!-- <span v-if="doctorForm.url === ''">{{ doctorForm.doctor }}</span>
595 595
               <span v-if="doctorForm.url !== ''">
596 596
                 <img class="es-img" style="height:30px;" :src="doctorForm.url" />

+ 10 - 10
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue Zobrazit soubor

@@ -342,7 +342,7 @@
342 342
               <tbody>
343 343
               <tr>
344 344
                 <td width="70">血管通路:</td>
345
-                <td width="600">
345
+                <td width="620">
346 346
                   <div>
347 347
                     <label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('自体内瘘') > -1 ? true : false" showValue="自体内瘘"></label-box>
348 348
                     &nbsp;
@@ -599,7 +599,7 @@
599 599
                 <td width='30'>A液:</td>
600 600
                 <td width="10">钙</td>
601 601
                 <td width="10">(</td>
602
-                <td width="200">
602
+                <td width="210">
603 603
                   <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('A液:钙(1.25mmol/L)钾(2.0mmol/L)') > -1 ? true : prescription.dialysate_formulation_name.indexOf('A液:钙(1.25mmol/L)钾(3.5mmol/L)') > -1 ? true : false" showValue="1.25mmol/L"></label-box>
604 604
                   &nbsp;
605 605
                   <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('A液:钙(1.5mmol/L)钾(2.0mmol/L)') > -1 ? true : prescription.dialysate_formulation_name.indexOf('A液:钙(1.5mmol/L)钾(3.5mmol/L)') > -1 ? true : false" showValue="1.5mmol/L"></label-box>
@@ -608,7 +608,7 @@
608 608
                 <td width="10">)</td>
609 609
                 <td width="10">钾</td>
610 610
                 <td width="10">(</td>
611
-                <td width="200">
611
+                <td width="210">
612 612
                   <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('A液:钙(1.25mmol/L)钾(2.0mmol/L)') > -1 ? true : prescription.dialysate_formulation_name.indexOf('A液:钙(1.5mmol/L)钾(2.0mmol/L)') > -1 ? true : false" showValue="2.0mmol/L"></label-box>
613 613
                   &nbsp;
614 614
                   <label-box :isChecked="prescription.dialysate_formulation_name.indexOf('A液:钙(1.25mmol/L)钾(3.5mmol/L)') > -1 ? true : prescription.dialysate_formulation_name.indexOf('A液:钙(1.5mmol/L)钾(3.5mmol/L)') > -1 ? true : false" showValue="3.5mmol/L"></label-box>
@@ -776,7 +776,7 @@
776 776
             透析监测
777 777
           </td>
778 778
 
779
-          <td width="100">时间</td>
779
+          <td width="60">时间</td>
780 780
           <td width="40" style="line-height:20px">T<br />℃</td>
781 781
           <td width="80" style="line-height:20px">Bp<br />mmHg</td>
782 782
           <td width="40" style="line-height:20px">P<br />次/分</td>
@@ -795,7 +795,7 @@
795 795
         </tr>
796 796
 
797 797
         <tr v-for="monitor in monitors" :key="monitor.id">
798
-          <td style="height:30px;">
798
+          <td style="height:20px;">
799 799
             &nbsp;
800 800
             <!-- <template>
801 801
               <span v-if="monitor.monitoring_date">
@@ -862,17 +862,17 @@
862 862
           <td :rowspan="doctor_advices.length + 1" width="30" class="title-box">
863 863
             医嘱内容
864 864
           </td>
865
-          <td style="font-size: 16px" width="10%">时间</td>
865
+          <td style="font-size: 16px" width="8%">时间</td>
866 866
           <td style="font-size: 16px" colspan="2">医嘱内容</td>
867 867
           <td style="font-size: 16px" width="10%">医生签名</td>
868 868
           <td style="font-size: 16px" width="10%">执行人签名</td>
869 869
           <td style="font-size: 16px" width="10%">核对人签名</td>
870
-          <td style="font-size: 16px" width="10%">时间</td>
870
+          <td style="font-size: 16px" width="8%">时间</td>
871 871
         </tr>
872 872
         <!-- <template v-for="group in doctor_advices" > -->
873 873
 
874 874
         <tr v-for="(advice, advice_index) in doctor_advices" :key="advice_index">
875
-          <td height="35px">
875
+          <td height="30px">
876 876
               <span v-if="advice.start_time">
877 877
                 {{ getTime(advice.start_time, "{h}:{i}") }}
878 878
               </span>
@@ -2013,8 +2013,8 @@ export default {
2013 2013
             if (this.org_template_info.org_id == 9535) {
2014 2014
               this.isShowZero = true
2015 2015
             }
2016
-            if (this.monitors.length < 13) {
2017
-              var nl = 13 - this.monitors.length
2016
+            if (this.monitors.length < 9) {
2017
+              var nl = 9 - this.monitors.length
2018 2018
               for (let index = 0; index < nl; index++) {
2019 2019
                 this.monitors.push([])
2020 2020
               }

+ 1 - 0
src/xt_pages/medicalScheduling/index.vue Zobrazit soubor

@@ -7,6 +7,7 @@
7 7
                 <el-button type="primary" @click="DeleteStaffSchedule">清除</el-button>
8 8
                 <el-button type="primary" @click="copyStaffSchedule">复制</el-button>
9 9
                 <el-button type="primary" icon="el-icon-printer" @click="toPrint">打印</el-button>
10
+                <el-button type="primary" icon="el-icon-printer" @click="toPrint">导出</el-button>
10 11
             </div>
11 12
         </div>
12 13
         <div class="app-container">

+ 39 - 3
src/xt_pages/stock/drugs/query.vue Zobrazit soubor

@@ -11,6 +11,14 @@
11 11
       >设置
12 12
       </el-button
13 13
       >
14
+     <!-- <el-button
15
+        size="small"
16
+        class="filter-item"
17
+        type="primary"
18
+        icon="el-icon-search"
19
+        @click="exportStock"
20
+      >导出
21
+      </el-button> -->
14 22
     </div>
15 23
     <div class="app-container ">
16 24
       <div class="cell clearfix">
@@ -167,7 +175,8 @@
167 175
         WarehouseInfo: {
168 176
           loading: false,
169 177
           warehouseInfoDate: []
170
-        }
178
+        },
179
+        tableData:[]
171 180
       }
172 181
     },
173 182
     methods: {
@@ -234,12 +243,17 @@
234 243
           } else {
235 244
             this.WarehouseInfo.loading = false
236 245
             this.total = response.data.data.total
246
+            var arr = []
237 247
             for (let i = 0; i < response.data.data.list.length; i++) {
238
-
239 248
               this.WarehouseInfo.warehouseInfoDate.push(
240 249
                 response.data.data.list[i]
241 250
               )
251
+              arr.push(response.data.data.list[i])
242 252
             }
253
+            console.log("数据源头",arr)
254
+            // for(let i=0;i<arr.length;i++){
255
+            //    arr[i].stockInCount = 
256
+            // }
243 257
             this.handleSpanTempArr()
244 258
           }
245 259
         })
@@ -325,7 +339,29 @@
325 339
         this.GetAllDrugStockQueryList()
326 340
       }, setting: function() {
327 341
         this.$refs.dialog.show()
328
-      }
342
+      },
343
+      //  exportStock(){
344
+      //    import('@/vendor/Export2Excel').then(excel => {
345
+      //    const tHeader = ['药品名称', '规格名称', '入库数量','入库退货','实际入库','出库数量','出库退货','实际出库','剩余库存']
346
+      //    const filterVal = ['index', 'dialysis_no', 'name','drug_name','drug_spec','Total','Count','margin','margin']
347
+      //   //  for(let i=0;i<this.tableData.length;i++){
348
+      //   //     this.tableData[i].margin = (this.tableData[i].Total?this.tableData[i].Total:0) - this.tableData[i].Count
349
+      //   //  }
350
+        
351
+      //    const data = this.formatJson(filterVal, this.tableData)
352
+      
353
+      //    excel.export_json_to_excel({
354
+      //      header: tHeader,
355
+      //      data,
356
+      //      filename: '自备药查询'
357
+      //    })
358
+      //     this.downloadLoading = false
359
+      //   })
360
+      //  },
361
+      //  formatJson(filterVal, jsonData) {
362
+      //   return jsonData.map(v => filterVal.map(j => v[j]));
363
+      // },
364
+
329 365
     }
330 366
   }
331 367
 </script>