Procházet zdrojové kódy

Merge remote-tracking branch 'origin/20230223_pc_vue_new_branch' into 20230223_pc_vue_new_branch

yq1 před 3 týdny
rodič
revize
e43710c856

+ 1 - 1
src/api/fapiao.js Zobrazit soubor

11
 
11
 
12
 export function getFapiaoList(params){
12
 export function getFapiaoList(params){
13
   return request({
13
   return request({
14
-    url:"/api/gdfapiao/list",
14
+    url:"/api/fapiao/list",
15
     methods:"get",
15
     methods:"get",
16
     params:params
16
     params:params
17
   })
17
   })

+ 12 - 1
src/api/patient.js Zobrazit soubor

1624
     method:"get",
1624
     method:"get",
1625
     params:params
1625
     params:params
1626
   })
1626
   })
1627
-}
1627
+}
1628
+
1629
+
1630
+export function getPatientCountFlowById(params){
1631
+  
1632
+   return request({
1633
+    url:"/api/patient/getpatientcountflowbyid",
1634
+    method:"Get",
1635
+    params:params,
1636
+   })
1637
+}
1638
+

+ 220 - 29
src/xt_pages/charging/charging_collect.vue Zobrazit soubor

23
           <el-date-picker
23
           <el-date-picker
24
            @change="changeTime"
24
            @change="changeTime"
25
             v-model="value1"
25
             v-model="value1"
26
+            format="yyyy-MM-dd"
27
+            value-format="yyyy-MM-dd"
26
             type="daterange"
28
             type="daterange"
27
             range-separator="至"
29
             range-separator="至"
28
             start-placeholder="开始日期"
30
             start-placeholder="开始日期"
40
             </el-option>
42
             </el-option>
41
           </el-select>
43
           </el-select>
42
         </div>
44
         </div>
43
-        <div><el-button type="primary">查询</el-button></div>
45
+        <div><el-button type="primary" @click="getQuery">查询</el-button></div>
44
       </div>
46
       </div>
45
       <div style="margin:10px 0;">
47
       <div style="margin:10px 0;">
46
         <el-table border :data="tableData" style="width: 100%" :header-cell-style="{'text-align':'center'}" :cell-style="{'text-align':'center'}">
48
         <el-table border :data="tableData" style="width: 100%" :header-cell-style="{'text-align':'center'}" :cell-style="{'text-align':'center'}">
47
           <el-table-column prop="index" label="序号" width="">
49
           <el-table-column prop="index" label="序号" width="">
50
+             <template slot-scope="scope">
51
+                 {{ scope.$index+1 }}
52
+             </template>
48
           </el-table-column>
53
           </el-table-column>
49
           <el-table-column prop="name" label="患者姓名" width="">
54
           <el-table-column prop="name" label="患者姓名" width="">
55
+            <template slot-scope="scope">
56
+                 {{getPatientName(scope.row.patient_id)}}
57
+             </template>
50
           </el-table-column>
58
           </el-table-column>
51
           <el-table-column prop="HD" label="费用类别">
59
           <el-table-column prop="HD" label="费用类别">
60
+            <template slot-scope="scope">
61
+                <span v-if="scope.row.is_type ==1">充值</span>
62
+                <span v-if="scope.row.is_type ==2">扣费</span>
63
+             </template>
52
           </el-table-column>
64
           </el-table-column>
53
           <el-table-column prop="HDF" label="透析模式">
65
           <el-table-column prop="HDF" label="透析模式">
66
+            <template slot-scope="scope">
67
+              <span v-if="scope.row.mode_id ==1">HD</span>
68
+              <span v-if="scope.row.mode_id ==2">HDF</span>
69
+              <span v-if="scope.row.mode_id ==3">HD+HP</span>
70
+              <span v-if="scope.row.mode_id ==4">HDF</span>
71
+              <span v-if="scope.row.mode_id ==5">其他</span>
72
+            </template>
54
           </el-table-column>
73
           </el-table-column>
55
           <el-table-column prop="HD+HP" label="总次数">
74
           <el-table-column prop="HD+HP" label="总次数">
75
+             <template slot-scope="scope">
76
+                {{getModeCount(scope.row.patient_id,scope.row.mode_id,scope.row.is_type) }}
77
+             </template>
56
           </el-table-column>
78
           </el-table-column>
57
           <el-table-column prop="address" label="操作" width="300">
79
           <el-table-column prop="address" label="操作" width="300">
58
             <template slot-scope="scope">
80
             <template slot-scope="scope">
59
-              <el-button type="primary" @click="mingx_click(scope.row)" >详情</el-button>
81
+              <el-button type="primary" @click="mingx_click(scope.row.patient_id,scope.row.mode_id,scope.row.is_type)" >详情</el-button>
60
             </template>
82
             </template>
61
           </el-table-column>
83
           </el-table-column>
62
         </el-table>
84
         </el-table>
66
           @size-change="handleSizeChange"
88
           @size-change="handleSizeChange"
67
           @current-change="handleCurrentChange"
89
           @current-change="handleCurrentChange"
68
           :current-page="currentPage"
90
           :current-page="currentPage"
69
-          :page-sizes="[100, 200, 300, 400]"
70
-          :page-size="100"
91
+          :page-sizes="[10, 20, 30, 40,100]"
92
+          :page-size="10"
71
           layout="total, sizes, prev, pager, next, jumper"
93
           layout="total, sizes, prev, pager, next, jumper"
72
-          :total="400">
94
+          :total="total">
73
         </el-pagination>
95
         </el-pagination>
74
       </div>
96
       </div>
75
     </div>
97
     </div>
84
           <div> 
106
           <div> 
85
             <el-autocomplete
107
             <el-autocomplete
86
               class="inline-input"
108
               class="inline-input"
87
-              v-model="state1"
109
+               v-model.trim="smart_keyword"
88
               :fetch-suggestions="querySearch"
110
               :fetch-suggestions="querySearch"
89
               placeholder="请输入内容"
111
               placeholder="请输入内容"
90
               @select="handleSelect"
112
               @select="handleSelect"
91
-            ></el-autocomplete>
113
+              
114
+            >
115
+           <i class="el-icon-search el-input__icon" slot="suffix"></i>
116
+          <template slot-scope="{ item }">
117
+            <div class="name">{{ item.name }}</div>
118
+          </template>
119
+          </el-autocomplete>
92
           </div>
120
           </div>
93
           <div>
121
           <div>
94
             日期查询:
122
             日期查询:
95
             <el-date-picker
123
             <el-date-picker
124
+              @change="changeTimeOne"
125
+               format="yyyy-MM-dd"
126
+              value-format="yyyy-MM-dd"
96
               v-model="value1"
127
               v-model="value1"
97
               type="daterange"
128
               type="daterange"
98
               range-separator="至"
129
               range-separator="至"
103
           </div>
134
           </div>
104
           <div>
135
           <div>
105
             费用类型:
136
             费用类型:
106
-            <el-select v-model="value" placeholder="请选择" style="width: 100px;">
137
+            <el-select v-model="is_type" placeholder="请选择" style="width: 100px;">
107
               <el-option
138
               <el-option
108
                 v-for="item in options"
139
                 v-for="item in options"
109
                 :key="item.value"
140
                 :key="item.value"
114
           </div>
145
           </div>
115
           <div>
146
           <div>
116
             透析模式:
147
             透析模式:
117
-            <el-select v-model="value" placeholder="请选择" style="width: 100px;">
148
+            <el-select v-model="mode_id" placeholder="请选择" style="width: 100px;">
118
               <el-option
149
               <el-option
119
-                v-for="item in options"
120
-                :key="item.value"
121
-                :label="item.label"
122
-                :value="item.value">
150
+                v-for="item in mode_options"
151
+                :key="item.mode_id"
152
+                :label="item.mode_name"
153
+                :value="item.mode_id">
123
               </el-option>
154
               </el-option>
124
             </el-select>
155
             </el-select>
125
           </div>
156
           </div>
126
-          <div><el-button type="primary">查询</el-button></div>
157
+          <div><el-button type="primary" @click="queryCount">查询</el-button></div>
127
         </div>
158
         </div>
128
         <div style="margin: 10px 0;">
159
         <div style="margin: 10px 0;">
129
-          <el-table border :data="tableData" style="width: 100%" :header-cell-style="{'text-align':'center'}" :cell-style="{'text-align':'center'}">
160
+          <el-table border :data="tableList" style="width: 100%" :header-cell-style="{'text-align':'center'}" :cell-style="{'text-align':'center'}">
130
             <el-table-column prop="index" label="序号" width="">
161
             <el-table-column prop="index" label="序号" width="">
162
+               <template slot-scope="scope">
163
+                   {{ scope.$index+1 }}
164
+               </template>
131
             </el-table-column>
165
             </el-table-column>
132
             <el-table-column prop="name" label="患者姓名" width="">
166
             <el-table-column prop="name" label="患者姓名" width="">
167
+              <template slot-scope="scope">
168
+                 {{getPatientName(scope.row.patient_id)}}
169
+             </template>
133
             </el-table-column>
170
             </el-table-column>
134
             <el-table-column prop="HD" label="费用发生时间">
171
             <el-table-column prop="HD" label="费用发生时间">
172
+               <template slot-scope="scope">
173
+                  {{ getTime(scope.row.record_date) }}
174
+               </template>
135
             </el-table-column>
175
             </el-table-column>
136
             <el-table-column prop="HD" label="费用类别">
176
             <el-table-column prop="HD" label="费用类别">
177
+              <template slot-scope="scope">
178
+                 <span v-if="scope.row.is_type==1">充值</span>
179
+                 <span v-if="scope.row.is_type==2">扣费</span>
180
+              </template>
137
             </el-table-column>
181
             </el-table-column>
138
             <el-table-column prop="HDF" label="透析类型">
182
             <el-table-column prop="HDF" label="透析类型">
183
+              <template slot-scope="scope">
184
+                 <span v-if="scope.row.mode_id==1">HD</span>
185
+                 <span v-if="scope.row.mode_id==2">HDF</span>
186
+                 <span v-if="scope.row.mode_id==3">HD+HP</span>
187
+                 <span v-if="scope.row.mode_id==4">HP</span>
188
+                 <span v-if="scope.row.mode_id==5">其他</span>
189
+              </template>
139
             </el-table-column>
190
             </el-table-column>
140
             <el-table-column prop="HD+HP" label="费用次数">
191
             <el-table-column prop="HD+HP" label="费用次数">
192
+              <template slot-scope="scope">
193
+                 {{ scope.row.count }}
194
+              </template>
141
             </el-table-column>
195
             </el-table-column>
142
             <el-table-column prop="address" label="创建人">
196
             <el-table-column prop="address" label="创建人">
197
+              <template slot-scope="scope">
198
+                {{ getAdminUser(scope.row.creater) }}
199
+              </template>
143
             </el-table-column>
200
             </el-table-column>
144
             <el-table-column prop="address" label="备注">
201
             <el-table-column prop="address" label="备注">
202
+              <template slot-scope="scope">
203
+                 {{ scope.row.remark }}
204
+              </template>
145
             </el-table-column>
205
             </el-table-column>
146
           </el-table>
206
           </el-table>
147
         </div>
207
         </div>
150
   </div>
210
   </div>
151
 </template>
211
 </template>
152
 <script>
212
 <script>
153
-import {getPatientMapList,getPatientCountFlowList} from "@/api/patient"
213
+import {getPatientMapList,getPatientCountFlowList,getPatientCountFlowById} from "@/api/patient"
214
+import {uParseTime } from "@/utils/tools";
154
   export default{
215
   export default{
155
     data(){
216
     data(){
156
       return{
217
       return{
170
         page:1,
231
         page:1,
171
         is_type:0,
232
         is_type:0,
172
         total:0,
233
         total:0,
234
+        patientList:[],
235
+        userList:[],
236
+        flowList:[],
237
+        start_time:"",
238
+        end_time:"",
239
+        tableList:[],
240
+        patient:{},
241
+        mode_id:0,
242
+        mode_options:[
243
+        {mode_id:0,mode_name:"全部"},
244
+        {mode_id:1,mode_name:"HD"},
245
+        {mode_id:2,mode_name:"HDF"},
246
+        {mode_id:3,mode_name:"HD+HP"},
247
+        {mode_id:4,mode_name:"HP"},
248
+        {mode_id:5,mode_name:"其他"}
249
+        ],
173
       }
250
       }
174
     },
251
     },
175
     methods:{
252
     methods:{
253
+      getTime(val) {
254
+         if(val < 0){
255
+           return ""
256
+         }
257
+         if(val == ""){
258
+          return ""
259
+         }else {
260
+          return uParseTime(val, '{y}-{m}-{d}')
261
+         }
262
+      },
263
+      querySearch(queryString, cb){
264
+        let key = ''
265
+        if (queryString != undefined) {
266
+          key = queryString
267
+        }
268
+        let searchArray = []
269
+         var  params = {
270
+          keyword:key
271
+         }
272
+        getPatientMapList(params).then(response => {
273
+          if (response.data.state == 1) {
274
+            searchArray = response.data.data.patient
275
+           
276
+            cb(searchArray)
277
+          } else {
278
+            this.$message.error(response.data.msg)
279
+            cb([])
280
+          }
281
+        })
282
+        return searchArray
283
+      },
176
       handleSelect(val){
284
       handleSelect(val){
177
         this.smart_keyword = val.name;
285
         this.smart_keyword = val.name;
178
         this.patient_id = val.id
286
         this.patient_id = val.id
202
        this.end_time = val[1]
310
        this.end_time = val[1]
203
        this.getlist()
311
        this.getlist()
204
      },
312
      },
205
-      mingx_click(){
206
-        this.collect_show = true
207
-      },
208
-      querySearch(){
209
-
210
-      },
211
-      handleSelect(){
212
-
313
+     changeTimeOne(){
314
+      this.start_time = val[0]
315
+      this.end_time = val[1]
316
+     },
317
+      mingx_click(patient_id,mode_id,is_type){
318
+          var params = {
319
+           patient_id:patient_id,
320
+           mode_id:mode_id,
321
+           is_type:is_type,
322
+           start_time:this.start_time,
323
+           end_time:this.end_time,
324
+          }
325
+          getPatientCountFlowById(params).then(response=>{
326
+            if(response.data.state == 1){
327
+              this.collect_show = true
328
+              var tableList =  response.data.data.list
329
+              this.tableList = []
330
+              this.tableList = tableList
331
+              this.patient = response.data.data.patient
332
+              this.userList = []
333
+              this.userList = response.data.data.userList
334
+            }
335
+        })
336
+       
213
       },
337
       },
214
-      handleSizeChange(){
215
-
338
+      handleSizeChange(limit){
339
+        this.limit = limit;
340
+        this.getlist();
216
       },
341
       },
217
-      handleCurrentChange(){
218
-
342
+      handleCurrentChange(page){
343
+        this.page = page;
344
+        this.getlist();
219
       },
345
       },
220
       getlist(){
346
       getlist(){
221
         var params = {
347
         var params = {
229
         getPatientCountFlowList(params).then(response=>{
355
         getPatientCountFlowList(params).then(response=>{
230
           if(response.data.state == 1){
356
           if(response.data.state == 1){
231
              var list = response.data.data.list
357
              var list = response.data.data.list
358
+             console.log("list==============",list)
232
              this.tableData =[]
359
              this.tableData =[]
233
              this.tableData = list
360
              this.tableData = list
234
              var total = response.data.data.total
361
              var total = response.data.data.total
235
-
236
              this.total = total
362
              this.total = total
363
+             var patientList = response.data.data.patient
364
+             console.log("patient=============",patientList)
365
+             this.patientList = []
366
+             this.patientList = patientList
367
+             var userList = response.data.data.userList
368
+             this.userList = userList
369
+             this.flowList = response.data.data.flowList
370
+          }
371
+        })
372
+      },
373
+      getPatientName(id){
374
+        var name = ""
375
+        for(let i=0;i<this.patientList.length;i++){
376
+          if(id == this.patientList[i].id){
377
+            name = this.patientList[i].name
378
+          }
379
+        }
380
+        return name
381
+     },
382
+     getModeCount(patient_id,mode_id,is_type){
383
+        var count = 0 
384
+        var newArr= []
385
+        for(let i=0;i<this.flowList.length;i++){
386
+           if(patient_id == this.flowList[i].patient_id && mode_id == this.flowList[i].mode_id && is_type == this.flowList[i].is_type){
387
+               newArr.push(this.flowList[i])
388
+           }
389
+        }
390
+
391
+        for(let i=0;i<newArr.length;i++){
392
+            count+=newArr[i].count
393
+        }
394
+        if(count>0){
395
+          return count
396
+        }else{
397
+          return ""
398
+        }
399
+     },
400
+     queryCount(){
401
+       this.getlist()
402
+     },
403
+     getAdminUser(creater){
404
+        var user_name = ""
405
+        for(let i=0;i<this.userList.length;i++){
406
+           if(creater == this.userList[i].id){
407
+              user_name = this.userList[i].name
408
+           }
409
+        }
410
+        return user_name
411
+      },
412
+      getQuery(){
413
+        var params = {
414
+           patient_id:this.patient_id,
415
+           mode_id:this.mode_id,
416
+           is_type:this.is_type,
417
+           start_time:this.start_time,
418
+           end_time:this.end_time,
237
           }
419
           }
420
+          getPatientCountFlowById(params).then(response=>{
421
+            if(response.data.state == 1){
422
+              var tableList =  response.data.data.list
423
+              this.tableList = []
424
+              this.tableList = tableList
425
+              this.patient = response.data.data.patient
426
+              this.userList = []
427
+              this.userList = response.data.data.userList
428
+            }
238
         })
429
         })
239
       }
430
       }
240
     },
431
     },

+ 4 - 1
src/xt_pages/charging/charging_cz.vue Zobrazit soubor

152
 <script>
152
 <script>
153
   import {getPatientMapList,savePatentCount,getPatientCountList,deletePatientCount,checkPatientCount,toReturnCheck } from "@/api/patient"
153
   import {getPatientMapList,savePatentCount,getPatientCountList,deletePatientCount,checkPatientCount,toReturnCheck } from "@/api/patient"
154
   import BreadCrumb from "@/xt_pages/components/bread-crumb";
154
   import BreadCrumb from "@/xt_pages/components/bread-crumb";
155
+import { start } from "nprogress";
155
   export default{
156
   export default{
156
     components: { BreadCrumb },
157
     components: { BreadCrumb },
157
     data(){
158
     data(){
179
         limit:10,
180
         limit:10,
180
         page:1,
181
         page:1,
181
         total:0,
182
         total:0,
182
-        userList:[]
183
+        userList:[],
184
+        start_time:"",
185
+        end_time:"",
183
       }
186
       }
184
     },
187
     },
185
     methods:{
188
     methods:{

+ 2 - 2
src/xt_pages/dialysis/batch_print/batch_print_order_twentyEight.vue Zobrazit soubor

1400
                     <td width="60" style="line-height: 20px">
1400
                     <td width="60" style="line-height: 20px">
1401
                       电导度<br />mS/cm
1401
                       电导度<br />mS/cm
1402
                     </td>
1402
                     </td>
1403
-                    <td width="60" style="line-height:20px" v-if="org_id == 10015">置换液流量<br />L/h</td>
1403
+                    <td width="60" style="line-height:20px" v-if="org_id == 10015">置换液流量<br />ml/min</td>
1404
                     <td width="" style="line-height: 20px">病情变化及处理</td>
1404
                     <td width="" style="line-height: 20px">病情变化及处理</td>
1405
                   </tr>
1405
                   </tr>
1406
 
1406
 
1491
                         monitor.conductivity ? monitor.conductivity : ""
1491
                         monitor.conductivity ? monitor.conductivity : ""
1492
                       }}
1492
                       }}
1493
                     </td>
1493
                     </td>
1494
-                    <td>
1494
+                    <td v-if="org_id == 10015">
1495
                      &nbsp;{{ monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : "" }}
1495
                      &nbsp;{{ monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : "" }}
1496
                     </td>
1496
                     </td>
1497
                     <td>
1497
                     <td>

+ 29 - 0
src/xt_pages/dialysis/details/dialog/adviceDialog/AddGroupAdvice.vue Zobrazit soubor

1749
           }
1749
           }
1750
       }
1750
       }
1751
 
1751
 
1752
+      if( this.$store.getters.xt_user.org.id == 10745 ){
1753
+          var year = date.getFullYear()
1754
+          var month = date.getMonth() + 1
1755
+          var day = date.getDate()
1756
+
1757
+          var hours = date.getHours()
1758
+          var minites = date.getMinutes()
1759
+
1760
+          if (month < 10) {
1761
+            month = '0' + month
1762
+          }
1763
+          if (day < 10) {
1764
+            day = '0' + day
1765
+          }
1766
+          if (hours < 10) {
1767
+            hours = '0' + hours
1768
+          }
1769
+          if (minites < 10) {
1770
+            minites = '0' + minites
1771
+          }
1772
+          if (this.schedulePatient.schedule_type == 1) {
1773
+            this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
1774
+          } else if (this.schedulePatient.schedule_type == 2) {
1775
+            this.groupForm.start_time= year + '-' + month + '-' + day + ' ' + '11:30'
1776
+          } else if (this.schedulePatient.schedule_type == 3) {
1777
+           this.groupForm.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
1778
+          }
1779
+      }
1780
+
1752
       if(this.$store.getters.xt_user.org.id == 10579  || this.$store.getters.xt_user.org.id == 10585 || this.$store.getters.xt_user.org.id == 10587 || this.$store.getters.xt_user.org.id == 10597 || this.$store.getters.xt_user.org.id == 10551 || this.$store.getters.xt_user.org.id == 10679 || this.$store.getters.xt_user.org.id == 10693 ||  this.$store.getters.xt_user.org.id == 10694 || this.$store.getters.xt_user.org.id == 10702 || this.$store.getters.xt_user.org.id == 10495 || this.$store.getters.xt_user.org.id == 10742){
1781
       if(this.$store.getters.xt_user.org.id == 10579  || this.$store.getters.xt_user.org.id == 10585 || this.$store.getters.xt_user.org.id == 10587 || this.$store.getters.xt_user.org.id == 10597 || this.$store.getters.xt_user.org.id == 10551 || this.$store.getters.xt_user.org.id == 10679 || this.$store.getters.xt_user.org.id == 10693 ||  this.$store.getters.xt_user.org.id == 10694 || this.$store.getters.xt_user.org.id == 10702 || this.$store.getters.xt_user.org.id == 10495 || this.$store.getters.xt_user.org.id == 10742){
1753
         var date = new Date()
1782
         var date = new Date()
1754
           var year = date.getFullYear()
1783
           var year = date.getFullYear()

+ 8 - 0
src/xt_pages/dialysis/details/dialog/dialysisPrescriptionDialog.vue Zobrazit soubor

3290
               minites = '0' + minites
3290
               minites = '0' + minites
3291
             }
3291
             }
3292
             this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
3292
             this.start_time = year + '-' + month + '-' + day + ' ' + hours + ':' + minites
3293
+           }else if(this.$store.getters.xt_user.org.id == 10745){
3294
+              if (schedual.schedule_type == 1) {
3295
+              this.start_time = year + '-' + month + '-' + day + ' ' + '6:30'
3296
+            } else if (schedual.schedule_type == 2) {
3297
+              this.start_time = year + '-' + month + '-' + day + ' ' + '11:30'
3298
+            } else if (schedual.schedule_type == 3) {
3299
+              this.start_time = year + '-' + month + '-' + day + ' ' + '15:00'
3300
+            }
3293
            } else {
3301
            } else {
3294
             if (schedual.schedule_type == 1) {
3302
             if (schedual.schedule_type == 1) {
3295
               this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'
3303
               this.start_time = year + '-' + month + '-' + day + ' ' + '07:00'

+ 2 - 2
src/xt_pages/dialysis/template/DialysisPrintOrderTwentyEight.vue Zobrazit soubor

879
               <td width="60" style="line-height:20px">血流量<br />ml/min</td>
879
               <td width="60" style="line-height:20px">血流量<br />ml/min</td>
880
               <td width="60" style="line-height:20px">电导度<br />mS/cm</td>
880
               <td width="60" style="line-height:20px">电导度<br />mS/cm</td>
881
 
881
 
882
-              <td width="60" style="line-height:20px" v-if="org_id == 10015">置换液流量<br />L/h</td>
882
+              <td width="60" style="line-height:20px" v-if="org_id == 10015">置换液流量<br />ml/min</td>
883
               <!-- <td width="60">钠浓度<br/>mmol/L</td>
883
               <!-- <td width="60">钠浓度<br/>mmol/L</td>
884
           <td width="80">透析液温度<br/>℃</td>
884
           <td width="80">透析液温度<br/>℃</td>
885
           <td width="60">置换率<br/>ml/min</td> -->
885
           <td width="60">置换率<br/>ml/min</td> -->
936
               <td>
936
               <td>
937
                 &nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}
937
                 &nbsp;{{ monitor.conductivity ? monitor.conductivity : "" }}
938
               </td>
938
               </td>
939
-              <td>
939
+              <td v-if="org_id == 10015">
940
                 &nbsp;{{ monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : "" }}
940
                 &nbsp;{{ monitor.displacement_flow_quantity ? monitor.displacement_flow_quantity : "" }}
941
               </td>
941
               </td>
942
               <!-- <td>&nbsp;{{monitor.sodium_concentration}}</td>
942
               <!-- <td>&nbsp;{{monitor.sodium_concentration}}</td>

+ 112 - 1
src/xt_pages/eleFaPiao/fapiao.vue Zobrazit soubor

101
         </el-table-column>
101
         </el-table-column>
102
 
102
 
103
 
103
 
104
+        <el-table-column
105
+          align="center"
106
+          width="100"
107
+          prop="name"
108
+          label="结算时间"
109
+        >
110
+          <template slot-scope="scope">
111
+            {{scope.row.orders[0].setl_time}}
112
+          </template>
113
+        </el-table-column>
114
+
115
+
104
         <el-table-column align="center" width="90" prop="name" label="开票员">
116
         <el-table-column align="center" width="90" prop="name" label="开票员">
105
           <template slot-scope="scope">
117
           <template slot-scope="scope">
106
             {{scope.row.creator}}
118
             {{scope.row.creator}}
125
           </template>
137
           </template>
126
         </el-table-column>
138
         </el-table-column>
127
 
139
 
128
-        <el-table-column align="center" prop="name" label="操作">
140
+        <el-table-column align="center" prop="name" label="操作" v-if="this.$store.getters.xt_user.org_id != 10318 &&  this.$store.getters.xt_user.org_id != 0">
129
           <template slot-scope="scope">
141
           <template slot-scope="scope">
130
 
142
 
131
             <el-button v-if="scope.row.id > 0 && scope.row.is_red_washed == 0" size="mini" type="primary"
143
             <el-button v-if="scope.row.id > 0 && scope.row.is_red_washed == 0" size="mini" type="primary"
141
 <!--            </el-button>-->
153
 <!--            </el-button>-->
142
           </template>
154
           </template>
143
         </el-table-column>
155
         </el-table-column>
156
+
157
+
158
+        <el-table-column align="center" prop="name" label="操作" v-if="this.$store.getters.xt_user.org_id == 10318 ||  this.$store.getters.xt_user.org_id == 0">
159
+          <template slot-scope="scope">
160
+
161
+            <el-button v-if="scope.row.id > 0 && scope.row.is_red_washed == 0 && scope.row.fapiao_status == '2'" size="mini" type="primary"
162
+                       @click="BWhongchong(scope.row)" v-loading="red_loading" >
163
+              红冲
164
+            </el-button>
165
+            <el-button size="mini" type="primary" v-if="scope.row.id > 0 && scope.row.is_red_washed == 0 && scope.row.fapiao_status == '2'"
166
+                       @click="bwyulan(scope.row)">
167
+              下载
168
+            </el-button>
169
+
170
+<!--            <el-button v-if="scope.row.id > 0 && scope.row.is_red_washed == 0" size="mini" type="primary"-->
171
+<!--                       @click="hongchong(scope.row)">-->
172
+<!--              红冲-->
173
+<!--            </el-button>-->
174
+<!--            <el-button size="mini" type="primary" v-if="scope.row.id > 0 && scope.row.is_red_washed == 0"-->
175
+<!--                       @click="yulan(scope.row)">-->
176
+<!--              下载-->
177
+<!--            </el-button>-->
178
+            <!--            <el-button size="mini" type="primary" @click="download(scope.row)"  v-if="scope.row.id > 0 && scope.row.is_red_washed == 0">-->
179
+            <!--              下载-->
180
+            <!--            </el-button>-->
181
+          </template>
182
+        </el-table-column>
183
+
144
       </el-table>
184
       </el-table>
145
       <el-pagination
185
       <el-pagination
146
         @size-change="handleSizeChange"
186
         @size-change="handleSizeChange"
189
   },
229
   },
190
   data() {
230
   data() {
191
     return {
231
     return {
232
+      red_loading:false,
233
+      search_input: '',
192
       staff:"",
234
       staff:"",
193
       admins:[],
235
       admins:[],
194
       orderObj: {},
236
       orderObj: {},
255
   },
297
   },
256
 
298
 
257
   methods: {
299
   methods: {
300
+    bwyulan(row){
301
+      var  id = row.id
302
+      let params = {
303
+        "id":id,
304
+        "admin_user_id":this.$store.getters.xt_user.user.id,
305
+      }
306
+      var that = this;
307
+      axios.get('http://127.0.0.1:9532/api/download',{params:params}).then(function(response) {
308
+        if (response.data.state == 0) {
309
+          that.$message.error(response.data.data.msg);
310
+          return false
311
+        } else {
312
+          if(response.data.data.failed_code == -10){
313
+            that.$confirm(response.data.data.msg, '错误信息', {
314
+              confirmButtonText: '确 定',
315
+              type: 'warning'
316
+            }).then(() => {
317
+
318
+            }).catch(() => {
319
+            })
320
+          }else{
321
+            that.$message.success(response.data.data.msg)
322
+          }
323
+        }
324
+      }).catch(function(error) {
325
+
326
+      })
327
+    },
328
+    BWhongchong(row){
329
+      var  id = row.id
330
+      this.red_loading = true
331
+      let params = {
332
+        "id":id,
333
+        "admin_user_id":this.$store.getters.xt_user.user.id,
334
+      }
335
+
336
+      var that = this;
337
+      axios.get('http://127.0.0.1:9532/api/bwfapiao/red',{params:params}).then(function(response) {
338
+        if (response.data.state == 0) {
339
+          that.red_loading = false
340
+
341
+          that.$message.error(response.data.data.msg);
342
+          return false
343
+        } else {
344
+          that.red_loading = false
345
+          if(response.data.data.failed_code == -10){
346
+            that.$confirm(response.data.data.msg, '错误信息', {
347
+              confirmButtonText: '确 定',
348
+              type: 'warning'
349
+            }).then(() => {
350
+
351
+            }).catch(() => {
352
+            })
353
+          }else{
354
+            that.$message.success(response.data.data.msg)
355
+            that.getHisOrderList()
356
+          }
357
+
358
+        }
359
+      }).catch(function(error) {
360
+      })
361
+
362
+
363
+    },
364
+    searchAction(){
365
+      this.getHisOrderList()
366
+
367
+
368
+    },
258
     getData(patient_id){
369
     getData(patient_id){
259
       this.patient_id = patient_id
370
       this.patient_id = patient_id
260
       this.getHisOrderList()
371
       this.getHisOrderList()

+ 2 - 2
src/xt_pages/hospitalStation/batchStatementTemplate/hospitalBatchPrint.vue Zobrazit soubor

108
         <td colspan="2" v-if="info.order.insutype == '392'">城乡居民大病医疗保险</td>
108
         <td colspan="2" v-if="info.order.insutype == '392'">城乡居民大病医疗保险</td>
109
         <td colspan="2" v-if="info.order.insutype == '510'">生育保险</td>
109
         <td colspan="2" v-if="info.order.insutype == '510'">生育保险</td>
110
         <td>入院第一诊断</td>
110
         <td>入院第一诊断</td>
111
-        <td colspan="3">{{info.diagnosis}}</td>
111
+        <td colspan="3">{{"慢性肾功能不全(血透治疗)"}}</td>
112
         <td>出院第一诊断</td>
112
         <td>出院第一诊断</td>
113
-        <td colspan="4">{{info.diagnosis}}</td>
113
+        <td colspan="4">{{"慢性肾功能不全(血透治疗)"}}</td>
114
 
114
 
115
 
115
 
116
       </tr>
116
       </tr>