Преглед изворни кода

11月14日 库存扣减更新

XMLWAN пре 3 година
родитељ
комит
892cdc70cd

+ 3 - 2
src/xt_pages/stock/drugs/components/drugOutDetail.vue Прегледај датотеку

@@ -597,9 +597,10 @@ export default {
597 597
           this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
598 598
           this.tableData[i].total_price = (this.tableData[i].count * this.tableData[i].price)
599 599
         }
600
-      
601
-       
600
+    
602 601
        }
602
+       console.log("数据23323",this.tableData)
603
+       
603 604
        let obj = {'index':'合计','total_price':0.00}
604 605
        for(let i=0;i<this.tableData.length;i++){
605 606
          obj.total_price += this.tableData[i].total

+ 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

+ 22 - 23
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,15 +11,15 @@
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:100px" colspan="1">
15 15
               姓名:
16 16
             </td>
17
-             <td style="text-align:center;width:50px" colspan="1">
17
+             <td style="text-align:center;width:100px" 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:100px" colspan="1">
23 23
               性别:
24 24
             </td>
25 25
              <td style="text-align:center;width:50px" colspan="1">
@@ -28,7 +28,7 @@
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,19 +36,19 @@
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 42
              <td style="text-align:center;width:50px" 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:100px" colspan="1">
52 52
               职业: 
53 53
             </td>
54 54
              <td style="text-align:center;width:50px" colspan="1">
@@ -56,7 +56,7 @@
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:100px" colspan="1">
60 60
               电话:
61 61
             </td>
62 62
              <td style="text-align:center;width:50px" colspan="1">
@@ -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:300px" colspan="11">
74 74
             
75 75
               <span style="display:inline-block;margin-left:10px;">
76 76
                 {{patient.home_address}}
@@ -78,26 +78,26 @@
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:50px" colspan="1">
82 82
               入院时间:
83 83
             </td>
84
-            <td style="text-align:center;width:170px" colspan="2">
84
+            <td style="text-align:center;width:300px" colspan="1">
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:200px" colspan="1">
90 90
               出院时间:
91 91
             </td>
92
-            <td style="text-align:center;width:100px" colspan="2">
92
+            <td style="text-align:center;width:300px" colspan="1">
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
-            <td style="text-align:center;width:50px" colspan="1">
100
+            <td style="text-align:center;width:50px" colspan="2">
101 101
               <span style="display:inline-block;margin-left:10px;">
102 102
                {{getTimeDay(hosDetail.admission_time,hosDetail.discharge_time)}}
103 103
                
@@ -105,9 +105,8 @@
105 105
             </td>
106 106
             <td style="text-align:center;width:50px" colspan="2">
107 107
               转归:
108
-            
109 108
             </td>
110
-            <td style="text-align:center;width:50px" colspan="1">
109
+            <td style="text-align:center;width:50px" colspan="2">
111 110
               <span style="display:inline-block;margin-left:10px;">
112 111
                 <span v-if="patient.lapseto == 1">留治</span>
113 112
                 <span v-if="patient.lapseto == 2">转归</span>
@@ -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)