浏览代码

518合并代码

XMLWAN 2 年前
父节点
当前提交
f1c880ae2a

+ 1 - 1
src/lang/zh.js 查看文件

@@ -143,7 +143,7 @@ export default {
143 143
     goodReturnQuery: '退货单',
144 144
     addPurchaseOrder: '新增采购订单',
145 145
     workforce_template: '排班模板设置',
146
-    statistics: '统计分析',
146
+    statistics: '明细汇总统计',
147 147
     statisticalConfig: '统计配置',
148 148
     basicInformationAnalysis: '基本信息统计',
149 149
     patientControlAnalysis: '患者质控达标统计',

+ 6 - 5
src/xt_pages/data/basicConfig.vue 查看文件

@@ -151,7 +151,7 @@ export default {
151 151
             if(response.data.data.is_prescription_advice == 1){
152 152
                this.is_open_prescription_xt_his = true
153 153
             }else{
154
-              this.is_open_advice_xt_his = false
154
+              this.is_open_prescription_xt_his = false
155 155
             }
156 156
 
157 157
           } else {
@@ -359,16 +359,17 @@ export default {
359 359
       })
360 360
     },
361 361
     changeFuncSeven(){
362
-      var is_open_prescription_xt_his = 2
363
-      if(this.is_open_advice_xt_his == false){
362
+      var is_open_prescription_xt_his = 0
363
+      if(this.is_open_prescription_xt_his == false){
364 364
         is_open_prescription_xt_his = 2
365 365
       }
366
-      if(this.is_open_advice_xt_his == true){
367
-        is_open_prescription_xt_his = 2
366
+      if(this.is_open_prescription_xt_his == true){
367
+        is_open_prescription_xt_his = 1
368 368
       }
369 369
       var params = {
370 370
         is_open_prescription_xt_his:is_open_prescription_xt_his,
371 371
       }
372
+      console.log("param22332323232",params)
372 373
       changePrescriptionConfig(params).then(response=>{
373 374
           if(response.data.state == 1){
374 375
             var msg =  response.data.data.msg

+ 2 - 6
src/xt_pages/outpatientTool/components/detailStatistics.vue 查看文件

@@ -324,17 +324,13 @@ export default {
324 324
      })
325 325
     },
326 326
     getAllPice(){
327
-    //  console.log("表哥233323232323223",this.tableData)
328 327
       var total_price = 0
329 328
       for(let i=0;i<this.tableData.length;i++){
330
-        if(this.tableData[i].index =="合计"){
331
-          total_price = this.tableData[i].total_price
332
-        }
329
+        total_price += this.tableData[i].pric * this.tableData[i].cnt
333 330
       }
334
-      return total_price
331
+      return total_price.toFixed(2)
335 332
     },
336 333
     getActPay(){
337
-      // console.log("list2332323232323232",this.list)
338 334
       var act_pay = 0
339 335
       for(let i=0;i<this.list.length;i++){
340 336
         for(let j=0;j<this.list[i].orders.length;j++){

+ 1 - 1
src/xt_pages/statistics/index.vue 查看文件

@@ -126,7 +126,7 @@ export default {
126 126
     return {
127 127
       crumbs: [
128 128
         { path: false, name: "质控管理" },
129
-        { path: false, name: "统计分析" }
129
+        { path: false, name: "明细汇总统计" }
130 130
       ],
131 131
       pageLoad: true,
132 132
       patientCount: 0,