Bläddra i källkod

11月14日 库存扣减更新

XMLWAN 3 år sedan
förälder
incheckning
892cdc70cd

+ 3 - 2
src/xt_pages/stock/drugs/components/drugOutDetail.vue Visa fil

597
           this.tableData[i].total = (this.tableData[i].count * this.tableData[i].price)
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)
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
        let obj = {'index':'合计','total_price':0.00}
604
        let obj = {'index':'合计','total_price':0.00}
604
        for(let i=0;i<this.tableData.length;i++){
605
        for(let i=0;i<this.tableData.length;i++){
605
          obj.total_price += this.tableData[i].total
606
          obj.total_price += this.tableData[i].total

+ 5 - 4
src/xt_pages/stock/drugs/drugStockOutOrderDetailPrint.vue Visa fil

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

+ 22 - 23
src/xt_pages/user/hospitalSummaryPrint.vue Visa fil

1
 <template>
1
 <template>
2
 <div>
2
 <div>
3
-  <div style="float:right">
3
+  <div style="float:right;margin-right:10px">
4
     <el-button type="primary" size="small" @click="printThisPage">打印</el-button> 
4
     <el-button type="primary" size="small" @click="printThisPage">打印</el-button> 
5
   </div>
5
   </div>
6
   <div id="dialysis-print-box">
6
   <div id="dialysis-print-box">
11
       <div>
11
       <div>
12
         <table class="print-table" border="1" style="margin-top: 10px;">
12
         <table class="print-table" border="1" style="margin-top: 10px;">
13
           <tr>
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
             </td>
16
             </td>
17
-             <td style="text-align:center;width:50px" colspan="1">
17
+             <td style="text-align:center;width:100px" colspan="1">
18
               <span style="display:inline-block;margin-left:10px;">
18
               <span style="display:inline-block;margin-left:10px;">
19
                {{patient.name}}
19
                {{patient.name}}
20
               </span>
20
               </span>
21
             </td>
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
             </td>
24
             </td>
25
              <td style="text-align:center;width:50px" colspan="1">
25
              <td style="text-align:center;width:50px" colspan="1">
28
                 <span v-if="patient.gender == 2">女</span>
28
                 <span v-if="patient.gender == 2">女</span>
29
               </span>
29
               </span>
30
             </td>
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
             </td>
33
             </td>
34
             <td style="text-align:center;width:50px" colspan="1">
34
             <td style="text-align:center;width:50px" colspan="1">
36
                  {{getNewAge(patient.id_card_no)}}
36
                  {{getNewAge(patient.id_card_no)}}
37
               </span>
37
               </span>
38
             </td>
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
             </td>
41
             </td>
42
              <td style="text-align:center;width:50px" colspan="1">
42
              <td style="text-align:center;width:50px" colspan="1">
43
               <span style="display:inline-block;margin-left:10px;">
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
                  <span v-if="patient.marital_status == 3">离异</span>
47
                  <span v-if="patient.marital_status == 3">离异</span>
48
                  <span v-if="patient.marital_status == 4">丧偶</span>
48
                  <span v-if="patient.marital_status == 4">丧偶</span>
49
               </span>
49
               </span>
50
             </td>
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
             </td>
53
             </td>
54
              <td style="text-align:center;width:50px" colspan="1">
54
              <td style="text-align:center;width:50px" colspan="1">
56
                {{getProfession(patient.profession)?getProfession(patient.profession):''}}
56
                {{getProfession(patient.profession)?getProfession(patient.profession):''}}
57
               </span>
57
               </span>
58
             </td>
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
             </td>
61
             </td>
62
              <td style="text-align:center;width:50px" colspan="1">
62
              <td style="text-align:center;width:50px" colspan="1">
67
           </tr>
67
           </tr>
68
 
68
 
69
           <tr>
69
           <tr>
70
-            <td style="text-align:center;" colspan="1">
70
+            <td style="text-align:center;width:100px" colspan="1">
71
               住址:
71
               住址:
72
             </td>   
72
             </td>   
73
-            <td style="text-align:center;" colspan="11">
73
+            <td style="text-align:center;width:300px" colspan="11">
74
             
74
             
75
               <span style="display:inline-block;margin-left:10px;">
75
               <span style="display:inline-block;margin-left:10px;">
76
                 {{patient.home_address}}
76
                 {{patient.home_address}}
78
             </td>   
78
             </td>   
79
           </tr>
79
           </tr>
80
           <tr>
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
             </td>
83
             </td>
84
-            <td style="text-align:center;width:170px" colspan="2">
84
+            <td style="text-align:center;width:300px" colspan="1">
85
               <span style="display:inline-block;margin-left:10px;">
85
               <span style="display:inline-block;margin-left:10px;">
86
                 {{getTime(hosDetail.admission_time)}}
86
                 {{getTime(hosDetail.admission_time)}}
87
               </span>
87
               </span>
88
             </td>
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
             </td>
91
             </td>
92
-            <td style="text-align:center;width:100px" colspan="2">
92
+            <td style="text-align:center;width:300px" colspan="1">
93
               <span style="display:inline-block;margin-left:10px;">
93
               <span style="display:inline-block;margin-left:10px;">
94
                 {{getTime(hosDetail.discharge_time)}}
94
                 {{getTime(hosDetail.discharge_time)}}
95
               </span>
95
               </span>
96
             </td>
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
             </td>
99
             </td>
100
-            <td style="text-align:center;width:50px" colspan="1">
100
+            <td style="text-align:center;width:50px" colspan="2">
101
               <span style="display:inline-block;margin-left:10px;">
101
               <span style="display:inline-block;margin-left:10px;">
102
                {{getTimeDay(hosDetail.admission_time,hosDetail.discharge_time)}}
102
                {{getTimeDay(hosDetail.admission_time,hosDetail.discharge_time)}}
103
                
103
                
105
             </td>
105
             </td>
106
             <td style="text-align:center;width:50px" colspan="2">
106
             <td style="text-align:center;width:50px" colspan="2">
107
               转归:
107
               转归:
108
-            
109
             </td>
108
             </td>
110
-            <td style="text-align:center;width:50px" colspan="1">
109
+            <td style="text-align:center;width:50px" colspan="2">
111
               <span style="display:inline-block;margin-left:10px;">
110
               <span style="display:inline-block;margin-left:10px;">
112
                 <span v-if="patient.lapseto == 1">留治</span>
111
                 <span v-if="patient.lapseto == 1">留治</span>
113
                 <span v-if="patient.lapseto == 2">转归</span>
112
                 <span v-if="patient.lapseto == 2">转归</span>
383
       var name = ""
382
       var name = ""
384
       for(let i=0;i<this.educationOptions.length;i++){
383
       for(let i=0;i<this.educationOptions.length;i++){
385
           if(id == this.educationOptions[i].id){
384
           if(id == this.educationOptions[i].id){
386
-              name = this.educationOptions[i].name
385
+           name = this.educationOptions[i].name
387
           }
386
           }
388
       }
387
       }
389
       return name
388
       return name
396
   },
395
   },
397
  
396
  
398
   created() {
397
   created() {
399
-    this.educationOptions = getDataConfig("patient", "education_types");
398
+    this.educationOptions = getDataConfig("patient", "profession_options");
400
     var xtuser = this.$store.getters.xt_user
399
     var xtuser = this.$store.getters.xt_user
401
     this.orgname = xtuser.org.org_name
400
     this.orgname = xtuser.org.org_name
402
     var id = this.$route.query.id
401
     var id = this.$route.query.id

+ 7 - 2
src/xt_pages/workforce/next_remind_print.vue Visa fil

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