Browse Source

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

csx 4 years ago
parent
commit
34c6ebf2ee

+ 4 - 1
src/xt_pages/outpatientCharges/outpatientChargesManagement.vue View File

328
         addtions_charge: [],
328
         addtions_charge: [],
329
         treatVisible: false,
329
         treatVisible: false,
330
         orderObj:{
330
         orderObj:{
331
-          order_id:0
332
         },
331
         },
333
         paramsObj: {
332
         paramsObj: {
334
         },
333
         },
789
 
788
 
790
         } else if (index == 9){
789
         } else if (index == 9){
791
           this.statementVisible = true
790
           this.statementVisible = true
791
+          let obj = {
792
+            order_id:this.order.id
793
+          }
794
+          this.orderObj = obj
792
           // this.$refs.print.getInfo(this.order.id)
795
           // this.$refs.print.getInfo(this.order.id)
793
 
796
 
794
 
797
 

+ 15 - 7
src/xt_pages/outpatientCharges/statementPrint.vue View File

13
       </template>
13
       </template>
14
 
14
 
15
       <div class='dialysisPage' style="padding-top:40px;">
15
       <div class='dialysisPage' style="padding-top:40px;">
16
-        <printOne v-bind:childResponse="childResponse" :advicePrint="advicePrint" :ids="ids" :patient="patient" :hisPatient="hisPatient" :patient_id="patient_id" :record_date="record_date" :prescription_id="prescription_id" :info="info"></printOne>
16
+        <printOne :info="info"></printOne>
17
       </div>
17
       </div>
18
   </div>
18
   </div>
19
 </template>
19
 </template>
56
       patient_id:0,
56
       patient_id:0,
57
       prescription_id:0,
57
       prescription_id:0,
58
       ids:'',
58
       ids:'',
59
-      info:{}
59
+      info:null,
60
     };
60
     };
61
   },
61
   },
62
   methods:{
62
   methods:{
149
     searchAction(){
149
     searchAction(){
150
 
150
 
151
     },
151
     },
152
-    getInfo(order_id){
152
+    getInfo(order_id) {
153
+      if (this.$store.getters.xt_user.org_id == 4) {
154
+
153
         axios.get('http://127.0.0.1:9532/api/settle/query', {
155
         axios.get('http://127.0.0.1:9532/api/settle/query', {
154
           params: {
156
           params: {
155
-            order_id:order_id,
157
+            order_id: order_id,
156
           }
158
           }
157
         })
159
         })
158
           .then(function (response) {
160
           .then(function (response) {
160
               this.$message.error(response.data.msg)
162
               this.$message.error(response.data.msg)
161
               return false
163
               return false
162
             } else {
164
             } else {
165
+              console.log("logloglog")
166
+
167
+              console.log(response.data.data.info)
168
+
163
               this.info = response.data.data.info
169
               this.info = response.data.data.info
170
+              console.log(this.info)
164
 
171
 
165
               this.info['bed_cost_total'] = response.data.data.bedCostTotal
172
               this.info['bed_cost_total'] = response.data.data.bedCostTotal
166
               this.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal
173
               this.info['bed_cost_self_total'] = response.data.data.bedCostSelfTotal
199
               this.info['treat_cost_total'] = response.data.data.treatCostTotal
206
               this.info['treat_cost_total'] = response.data.data.treatCostTotal
200
               this.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal
207
               this.info['treat_cost_self_total'] = response.data.data.treatCostSelfTotal
201
               this.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal
208
               this.info['treat_cost_part_self_total'] = response.data.data.treatCostPartSelfTotal
209
+              console.log(this.info)
202
             }
210
             }
203
           })
211
           })
204
           .catch(function (error) {
212
           .catch(function (error) {
205
 
213
 
206
           });
214
           });
207
       }
215
       }
216
+    }
208
 
217
 
209
   },
218
   },
210
 
219
 
211
   created() {
220
   created() {
212
-
221
+    this.getInfo(this.paramsObj.order_id)
213
   },
222
   },
214
   watch:{
223
   watch:{
215
     paramsObj:{//深度监听,可监听到对象、数组的变化
224
     paramsObj:{//深度监听,可监听到对象、数组的变化
216
       handler(val, oldVal){
225
       handler(val, oldVal){
217
-        console.log("~~~~~")
218
-        console.log("~~~~~")
219
         this.paramsObj = val
226
         this.paramsObj = val
227
+        this.getInfo(this.paramsObj.order_id)
220
 
228
 
221
       },
229
       },
222
       deep:true
230
       deep:true

+ 8 - 3
src/xt_pages/outpatientCharges/statementTemplate/printOne.vue View File

230
 </template>
230
 </template>
231
 <script>
231
 <script>
232
   export default {
232
   export default {
233
-    props:{
234
-      info:Object
235
-    },
233
+    props: {
234
+      info: {
235
+        type: Object,
236
+        default: function () {
237
+          return {};
238
+        }
239
+      },
240
+    }
236
   }
241
   }
237
 
242
 
238
 
243