Просмотр исходного кода

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

csx 3 лет назад
Родитель
Сommit
31e205c51c

+ 3 - 1
src/xt_pages/dialysis/template/DialysisPrintOrderFortyOne.vue Просмотреть файл

@@ -1420,7 +1420,7 @@ export default {
1420 1420
         for (let index = 0; index < this.monitors.length; index++) {
1421 1421
           const monitor = this.monitors[index]
1422 1422
           this.monitors[index].end = ''
1423
-          if (Object.keys(monitor).length > 0 && index > 1) {
1423
+          if (Object.keys(monitor).length > 0 && index >= 1) {
1424 1424
             if (this.dialysisOrder && monitor.operate_time == this.dialysisOrder.end_time) {
1425 1425
               if(this.org_id != 10233){
1426 1426
                 this.monitors[index].end = '【结束透析】回血100ml/min'
@@ -1438,6 +1438,8 @@ export default {
1438 1438
             }
1439 1439
           }
1440 1440
         }
1441
+        
1442
+        console.log('this.monitors',this.monitors)
1441 1443
 
1442 1444
         this.jilurow = this.monitors.length + 1
1443 1445
 

+ 2 - 2
src/xt_pages/stock/drugs/cancelDrugStockOrderEdit.vue Просмотреть файл

@@ -595,8 +595,8 @@
595 595
               response.data.data.list[i].count = response.data.data.list[i].count.toString()
596 596
               response.data.data.list[i].price = response.data.data.list[i].price.toString()
597 597
               response.data.data.list[i].retail_price = response.data.data.list[i].retail_price.toString()
598
-              response.data.data.list[i].product_date = this.getTime(response.data.data.list[i].product_date)
599
-              response.data.data.list[i].expiry_date = this.getTime(response.data.data.list[i].expiry_date)
598
+              response.data.data.list[i].product_date = this.getTime(response.data.data.list[i].product_date,'{y}-{m}-{d}')
599
+              response.data.data.list[i].expiry_date = this.getTime(response.data.data.list[i].expiry_date,'{y}-{m}-{d}')
600 600
               response.data.data.list[i].drug_name = response.data.data.list[i].drug.drug_name
601 601
               response.data.data.list[i].name =  response.data.data.list[i].drug.dose +''+response.data.data.list[i].drug.dose_unit+"*"+response.data.data.list[i].drug.min_number+response.data.data.list[i].drug.min_unit+"/"+response.data.data.list[i].drug.max_unit
602 602
 

+ 15 - 24
src/xt_pages/stock/drugs/components/drugOutDetail.vue Просмотреть файл

@@ -584,34 +584,25 @@ export default {
584 584
        const tHeader = ['序号','单据编号', '药品类型', '药品名称','规格型号','操作时间','制单人','出货价','数量','总价']
585 585
        const filterVal = ['index','warehouse_out_order_number', 'drugtype', 'drug_name','specification_name','time','user_name','price','count','total_price']
586 586
        for(let i=0;i<this.tableData.length;i++){
587
-         this.tableData[i].index = i+1
588
-   
589
-        this.tableData[i].drugtype = this.getTypeList(this.tableData[i].drugtype)
590
-        this.tableData[i].specification_name = this.tableData[i].dose + this.tableData[i].dose_unit +"*" + this.tableData[i].min_number + this.tableData[i].min_unit +  "/" + this.tableData[i].max_unit
591
-        this.tableData[i].time = this.getTime(this.tableData[i].ctime)
592
-        this.tableData[i].user_name = this.getAdminUser(this.tableData[i].creater)
593
-        if(this.org_id == 9671 || this.org_id == 9919){
594
-          this.tableData[i].total = (this.tableData[i].count * this.tableData[i].last_price)
595
-          this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].last_price)
596
-        }else{
597
-          this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
598
-          this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)
599
-        }
587
+         if(this.tableData[i].is_total == 0){
588
+            this.tableData[i].index = i+1
600 589
       
601
-       
602
-       }
603
-       let obj = {'index':'合计','total_price':0.00}
604
-       for(let i=0;i<this.tableData.length;i++){
605
-         obj.total_price += this.tableData[i].total
606
-       }
607
-       
608
-       this.tableData.push(obj)
609
-       for(let j=0;j<this.tableData.length;j++){
610
-          this.tableData[j].total_price = this.tableData[j].total_price.toFixed(2)
590
+            this.tableData[i].drugtype = this.getTypeList(this.tableData[i].drugtype)
591
+            this.tableData[i].specification_name = this.tableData[i].dose + this.tableData[i].dose_unit +"*" + this.tableData[i].min_number + this.tableData[i].min_unit +  "/" + this.tableData[i].max_unit
592
+            this.tableData[i].time = this.getTime(this.tableData[i].ctime)
593
+            this.tableData[i].user_name = this.getAdminUser(this.tableData[i].creater)
594
+            if(this.org_id == 9671 || this.org_id == 9919){
595
+              this.tableData[i].total = (this.tableData[i].count * this.tableData[i].last_price)
596
+              this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].last_price)
597
+            }else{
598
+              this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
599
+              this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)
600
+            }
601
+         }
611 602
        }
612 603
        const data = this.formatJson(filterVal, this.tableData)
613 604
        console.log("data",data)
614
-       
605
+     
615 606
        excel.export_json_to_excel({
616 607
            header: tHeader,
617 608
            data,

+ 5 - 4
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue Просмотреть файл

@@ -42,14 +42,14 @@
42 42
                 <span>{{item.count_unit}}</span>
43 43
               </td>
44 44
               <td style="line-height:50px">
45
-                  {{item.last_price}}
45
+                  {{item.price}}
46 46
               </td>
47 47
              <td  style="line-height:50px">
48
-                {{(item.count * item.last_price).toFixed(2)}}
48
+                {{(item.count * item.price).toFixed(2)}}
49 49
              </td>
50 50
              <td>{{item.batch_number}}</td>
51 51
              <td>{{(getTime(item.product_date))}}</td>
52
-             <td>{{(getTime(item.expiry_date))}}</td>
52
+             <td>{{(getTime(item.expire_date))}}</td>
53 53
             </tr>
54 54
              <tr>
55 55
                <td style="line-height:50px">合计</td>
@@ -319,6 +319,7 @@
319 319
             var warehousing = response.data.data.warehousing
320 320
             console.log("ware2232",warehousing)
321 321
             this.warehouseList = warehousing
322
+          
322 323
             for(let i=0;i<info.length;i++){
323 324
                info[i].child = []
324 325
               for(let j=0;j<warehousing.length;j++){
@@ -341,7 +342,7 @@
341 342
         var count = 0
342 343
         for(let i=0;i<this.warehouseList.length;i++){
343 344
           if(id == this.warehouseList[i].warehouse_out_id){
344
-             count +=this.warehouseList[i].count * this.warehouseList[i].last_price
345
+             count +=this.warehouseList[i].count * this.warehouseList[i].price
345 346
           }
346 347
         }
347 348
         return count

+ 11 - 2
src/xt_pages/stock/stockDamaged.vue Просмотреть файл

@@ -57,7 +57,7 @@
57 57
         </el-table-column>
58 58
         <el-table-column prop="date" label="总报损金额"  align="center">
59 59
           <template  slot-scope="scope">
60
-            {{scope.row.count}}
60
+            {{getAllDamageCount(scope.row.good_id,scope.row.buy_price)}}
61 61
             </template>    
62 62
         </el-table-column>
63 63
         <el-table-column prop="name" label="操作"  align="center">
@@ -645,7 +645,7 @@ export default {
645 645
        getReportStockList(params).then(response=>{
646 646
           if(response.data.state == 1){
647 647
             var list = response.data.data.list
648
-     
648
+            console.log("报损金额22222",list)
649 649
             this.total = response.data.data.total
650 650
             this.tableList = list
651 651
            var doctorlist = response.data.data.doctorlist
@@ -749,6 +749,15 @@ export default {
749 749
         }
750 750
         return count
751 751
       },
752
+      getAllDamageCount(good_id,price){
753
+        var count = 0
754
+        for(let i=0;i<this.damageList.length;i++){
755
+          if(good_id == this.damageList[i].good_id){
756
+             count = this.damageList[i].count
757
+          }
758
+        }
759
+        return (count * price).toFixed(2)
760
+      },
752 761
       changeReason(val){
753 762
         this.form.type = val
754 763
         this.toDamagedDetail(this.good_id)

+ 34 - 35
src/xt_pages/user/hospitalSummaryPrint.vue Просмотреть файл

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
 <div>
3
-  <div style="float:right">
3
+  <div style="float:right;margin-right:10px">
4 4
     <el-button type="primary" size="small" @click="printThisPage">打印</el-button> 
5 5
   </div>
6 6
   <div id="dialysis-print-box">
@@ -11,24 +11,24 @@
11 11
       <div>
12 12
         <table class="print-table" border="1" style="margin-top: 10px;">
13 13
           <tr>
14
-            <td style="text-align:center;width:50px" colspan="1">
14
+            <td style="text-align:center;width:200px" colspan="1">
15 15
               姓名:
16 16
             </td>
17
-             <td style="text-align:center;width:50px" colspan="1">
17
+             <td style="text-align:center;width:200px" colspan="1">
18 18
               <span style="display:inline-block;margin-left:10px;">
19 19
                {{patient.name}}
20 20
               </span>
21 21
             </td>
22
-            <td style="text-align:center;width:50px" colspan="1">
22
+            <td style="text-align:center;width:200px" colspan="1">
23 23
               性别:
24 24
             </td>
25
-             <td style="text-align:center;width:50px" colspan="1">
25
+             <td style="text-align:center;width:200px" colspan="1">
26 26
               <span style="display:inline-block;margin-left:10px;">
27 27
                 <span v-if="patient.gender == 1">男</span>
28 28
                 <span v-if="patient.gender == 2">女</span>
29 29
               </span>
30 30
             </td>
31
-            <td style="text-align:center;width:50px" colspan="1">
31
+            <td style="text-align:center;width:100px" colspan="1">
32 32
               年龄:
33 33
             </td>
34 34
             <td style="text-align:center;width:50px" colspan="1">
@@ -36,30 +36,30 @@
36 36
                  {{getNewAge(patient.id_card_no)}}
37 37
               </span>
38 38
             </td>
39
-            <td style="text-align:center;width:50px" colspan="1">
39
+            <td style="text-align:center;width:100px" colspan="1">
40 40
               婚姻:
41 41
             </td>
42
-             <td style="text-align:center;width:50px" colspan="1">
42
+             <td style="text-align:center;width:100px" colspan="1">
43 43
               <span style="display:inline-block;margin-left:10px;">
44
-                 <span v-if="patient.marital_status == 0">未婚</span>
45
-                 <span v-if="patient.marital_status == 1">婚</span>
46
-                 <span v-if="patient.marital_status == 2">婚</span>
44
+                 <span v-if="patient.marital_status == 0"></span>
45
+                 <span v-if="patient.marital_status == 1">婚</span>
46
+                 <span v-if="patient.marital_status == 2">婚</span>
47 47
                  <span v-if="patient.marital_status == 3">离异</span>
48 48
                  <span v-if="patient.marital_status == 4">丧偶</span>
49 49
               </span>
50 50
             </td>
51
-             <td style="text-align:center;width:50px" colspan="1">
51
+             <td style="text-align:center;width:200px" colspan="1">
52 52
               职业: 
53 53
             </td>
54
-             <td style="text-align:center;width:50px" colspan="1">
54
+             <td style="text-align:center;width:100px" colspan="1">
55 55
               <span style="display:inline-block;margin-left:10px;">
56 56
                {{getProfession(patient.profession)?getProfession(patient.profession):''}}
57 57
               </span>
58 58
             </td>
59
-             <td style="text-align:center;width:50px" colspan="1">
59
+             <td style="text-align:center;width:300px" colspan="1">
60 60
               电话:
61 61
             </td>
62
-             <td style="text-align:center;width:50px" colspan="1">
62
+             <td style="text-align:center;width:100px" colspan="1">
63 63
               <span style="display:inline-block;margin-left:10px;">
64 64
                 {{patient.phone}}
65 65
               </span>
@@ -67,10 +67,10 @@
67 67
           </tr>
68 68
 
69 69
           <tr>
70
-            <td style="text-align:center;" colspan="1">
70
+            <td style="text-align:center;width:100px" colspan="1">
71 71
               住址:
72 72
             </td>   
73
-            <td style="text-align:center;" colspan="11">
73
+            <td style="text-align:center;width:500px" colspan="12">
74 74
             
75 75
               <span style="display:inline-block;margin-left:10px;">
76 76
                 {{patient.home_address}}
@@ -78,23 +78,23 @@
78 78
             </td>   
79 79
           </tr>
80 80
           <tr>
81
-            <td style="text-align:center;width:170px" colspan="1">
81
+            <td style="text-align:center;width:300px" colspan="1">
82 82
               入院时间:
83 83
             </td>
84
-            <td style="text-align:center;width:170px" colspan="2">
84
+            <td style="text-align:center;width:200px" colspan="2">
85 85
               <span style="display:inline-block;margin-left:10px;">
86 86
                 {{getTime(hosDetail.admission_time)}}
87 87
               </span>
88 88
             </td>
89
-            <td style="text-align:center;width:100px" colspan="2">
89
+            <td style="text-align:center;width:250px" colspan="1">
90 90
               出院时间:
91 91
             </td>
92
-            <td style="text-align:center;width:100px" colspan="2">
92
+            <td style="text-align:center;width:250px" colspan="3">
93 93
               <span style="display:inline-block;margin-left:10px;">
94 94
                 {{getTime(hosDetail.discharge_time)}}
95 95
               </span>
96 96
             </td>
97
-            <td style="text-align:center;width:100px"  colspan="1">
97
+            <td style="text-align:center;width:100px"  colspan="2">
98 98
               住院天数:
99 99
             </td>
100 100
             <td style="text-align:center;width:50px" colspan="1">
@@ -103,9 +103,8 @@
103 103
                
104 104
               </span>
105 105
             </td>
106
-            <td style="text-align:center;width:50px" colspan="2">
106
+            <td style="text-align:center;width:50px" colspan="1">
107 107
               转归:
108
-            
109 108
             </td>
110 109
             <td style="text-align:center;width:50px" colspan="1">
111 110
               <span style="display:inline-block;margin-left:10px;">
@@ -119,10 +118,10 @@
119 118
             <td style="text-align:center;width:50px" colspan="1">
120 119
               检查号:
121 120
             </td>
122
-            <td style="text-align:center;width:50px" colspan="2">
121
+            <td style="text-align:center;width:50px" colspan="1">
123 122
               X线:
124 123
             </td>
125
-            <td style="text-align:center;width:50px" colspan="1">
124
+            <td style="text-align:center;width:50px" colspan="2">
126 125
               <span style="display:inline-block;margin-left:10px;">
127 126
                 {{hosDetail.xray}}
128 127
               </span>
@@ -143,10 +142,10 @@
143 142
                 {{hosDetail.nuclear_magnetic_resonance}}
144 143
               </span>
145 144
             </td>
146
-             <td style="text-align:center;width:50px" colspan="1">
145
+             <td style="text-align:center;width:100px" colspan="1">
147 146
               超声:
148 147
             </td>
149
-             <td style="text-align:center;width:50px" colspan="1">
148
+             <td style="text-align:center;width:100px" colspan="1">
150 149
               <span style="display:inline-block;margin-left:10px;">
151 150
                 {{hosDetail.ultrasound}}
152 151
               </span>
@@ -161,7 +160,7 @@
161 160
             </td>
162 161
           </tr>
163 162
           <tr>
164
-            <td style="text-align:center;" colspan="1">
163
+            <td style="text-align:center;width:300px" colspan="1">
165 164
               入院诊断:
166 165
               <span style="display:inline-block;margin-left:10px;">
167 166
                
@@ -174,7 +173,7 @@
174 173
             </td>   
175 174
           </tr>
176 175
           <tr>
177
-            <td style="text-align:center;width:170px" colspan="1">
176
+            <td style="text-align:center;width:300px" colspan="1">
178 177
               出院诊断:
179 178
             </td>
180 179
              <td style="text-align:center;width:170px" colspan="11">
@@ -186,7 +185,7 @@
186 185
             
187 186
           </tr>
188 187
            <tr>
189
-            <td style="text-align:center;width:170px" colspan="1">
188
+            <td style="text-align:center;width:300px" colspan="1">
190 189
               入院时病情:
191 190
             </td>
192 191
            <td style="text-align:center;width:170px" colspan="11">
@@ -199,7 +198,7 @@
199 198
           </tr>
200 199
         
201 200
           <tr>
202
-            <td style="text-align:center;width:170px" colspan="1">
201
+            <td style="text-align:center;width:300px" colspan="1">
203 202
               诊断经过:
204 203
            
205 204
             </td>
@@ -224,7 +223,7 @@
224 223
             
225 224
           </tr>
226 225
           <tr>
227
-            <td style="text-align:center;width:170px" colspan="1">
226
+            <td style="text-align:center;width:300px" colspan="1">
228 227
               出院医嘱:
229 228
             </td>
230 229
             <td style="text-align:center;width:170px" colspan="11">
@@ -383,7 +382,7 @@ export default {
383 382
       var name = ""
384 383
       for(let i=0;i<this.educationOptions.length;i++){
385 384
           if(id == this.educationOptions[i].id){
386
-              name = this.educationOptions[i].name
385
+           name = this.educationOptions[i].name
387 386
           }
388 387
       }
389 388
       return name
@@ -396,7 +395,7 @@ export default {
396 395
   },
397 396
  
398 397
   created() {
399
-    this.educationOptions = getDataConfig("patient", "education_types");
398
+    this.educationOptions = getDataConfig("patient", "profession_options");
400 399
     var xtuser = this.$store.getters.xt_user
401 400
     this.orgname = xtuser.org.org_name
402 401
     var id = this.$route.query.id

+ 7 - 2
src/xt_pages/workforce/next_remind_print.vue Просмотреть файл

@@ -14,7 +14,8 @@
14 14
         </el-col>
15 15
       </el-row>
16 16
     </div>
17
-    <div class="app-container" style="background-color: white;">
17
+    <div class="app-container" style="background-color: white;"  v-loading="loading"
18
+      element-loading-text="加载中">
18 19
       <div id="print_content">
19 20
         <div class="print_main_content">
20 21
           <div class="order_title_panl">
@@ -137,7 +138,8 @@
137 138
         now_time:0,
138 139
         zone:"",
139 140
         pre_status:0,
140
-        printObj:{}
141
+        printObj:{},
142
+        loading: false,
141 143
       }
142 144
     },
143 145
     components: {
@@ -156,6 +158,7 @@
156 158
       this.week_time  = this.$route.query.week_time
157 159
       this.zone = this.$route.query.zone
158 160
       this.pre_status = this.$route.query.prestatus
161
+      this.loading = true;
159 162
       const params = {
160 163
           week_type:this.week_type,
161 164
           week_time:this.week_time,
@@ -178,6 +181,7 @@
178 181
         var resp = rs.data
179 182
         console.log(resp)
180 183
         if (resp.state == 1) {
184
+        this.loading = false
181 185
          var scheduleData = resp.data.schedule
182 186
 
183 187
           if(this.pre_status == 0){
@@ -210,6 +214,7 @@
210 214
             var arr =   newList.sort(this.compare('sort'))
211 215
             console.log("打印",arr)
212 216
             this.scheduleData = arr
217
+           
213 218
           }
214 219
         } else {
215 220
           this.$message.error(resp.msg)