|
@@ -22,8 +22,8 @@
|
22
|
22
|
type="primary"
|
23
|
23
|
@click="printOrderOne"
|
24
|
24
|
icon="el-icon-printer"
|
25
|
|
- >打印上机单</el-button
|
26
|
|
- >
|
|
25
|
+ >打印上机单</el-button>
|
|
26
|
+
|
27
|
27
|
<el-button
|
28
|
28
|
size="small"
|
29
|
29
|
type="primary"
|
|
@@ -214,7 +214,7 @@
|
214
|
214
|
</el-tab-pane>
|
215
|
215
|
</el-tabs>
|
216
|
216
|
|
217
|
|
-
|
|
217
|
+
|
218
|
218
|
|
219
|
219
|
<el-dialog
|
220
|
220
|
:visible.sync="startVisibility"
|
|
@@ -237,8 +237,7 @@
|
237
|
237
|
<div v-for="(main_collection,index) in printList" :key="index">
|
238
|
238
|
<div class="signPrint" style="font-size:16px;">
|
239
|
239
|
<div style="margin-left:50px;">姓名:
|
240
|
|
- <span v-if="type ==1 && printObj.name == 1">{{main_collection.patient.name}} </span>
|
241
|
|
- <span v-if="type ==2 && printObj.name == 1">{{main_collection.patient}} </span>
|
|
240
|
+ <span>{{main_collection.patient.name}} </span>
|
242
|
241
|
({{ main_collection.patient.dialysis_no }},{{ main_collection.patient.age }}岁)
|
243
|
242
|
</div>
|
244
|
243
|
<div class="printCell">
|
|
@@ -248,12 +247,12 @@
|
248
|
247
|
<span style="width:auto;" v-if="main_collection.schedule_type == 2">下午</span>
|
249
|
248
|
<span style="width:auto;" v-if="main_collection.schedule_type == 3">晚上</span>
|
250
|
249
|
</span>
|
251
|
|
- <span> </span>
|
|
250
|
+ <span>{{ printDate }}</span>
|
252
|
251
|
</div>
|
253
|
252
|
<div class="printCell">
|
254
|
253
|
<span>干体重:{{main_collection.assessmentbefor.dry_weight}}Kg</span>
|
255
|
254
|
<span>抗凝剂:{{ main_collection.dialysissolution.anticoagulant ? anticoagulants_confit[main_collection.dialysissolution.anticoagulant].name : ''}}</span>
|
256
|
|
-
|
|
255
|
+
|
257
|
256
|
</div>
|
258
|
257
|
<div class="printCell">
|
259
|
258
|
<span>净重值:{{ main_collection.assessmentbefor.weight_before - main_collection.assessmentbefor.additional_weight }}Kg</span>
|
|
@@ -290,7 +289,7 @@
|
290
|
289
|
</span>
|
291
|
290
|
</div>
|
292
|
291
|
<div class="printCell">
|
293
|
|
- <span>体重增加:{{ (main_collection.assessmentbefor.weight_before - main_collection.lastafterweight.weight_after).toFixed(2) }}Kg</span>
|
|
292
|
+ <span>体重增加:{{ (main_collection.assessmentbefor.weight_before - assessmentAfterDislysis.weight_after).toFixed(2) }}Kg</span>
|
294
|
293
|
维持:{{main_collection.dialysissolution.anticoagulant_weichi}}
|
295
|
294
|
<span v-if="main_collection.dialysissolution.anticoagulant == 1">
|
296
|
295
|
mg/h
|
|
@@ -371,7 +370,6 @@
|
371
|
370
|
|
372
|
371
|
<span slot="footer" class="dialog-footer">
|
373
|
372
|
<el-button @click="startVisibility = false">取 消</el-button>
|
374
|
|
- <el-button type="primary" @click="startVisibility = false">确 定</el-button>
|
375
|
373
|
</span>
|
376
|
374
|
</el-dialog>
|
377
|
375
|
|
|
@@ -858,9 +856,12 @@ export default {
|
858
|
856
|
startVisibility:false,
|
859
|
857
|
printList:[],
|
860
|
858
|
anticoagulants_confit:null,
|
|
859
|
+ printDate:'',
|
|
860
|
+ assessmentAfterDislysis:{},
|
861
|
861
|
}
|
862
|
862
|
},
|
863
|
863
|
created() {
|
|
864
|
+ this.printDate = moment().format("YYYY-MM-DD HH:mm:ss")
|
864
|
865
|
if(this.$route.query.showView){
|
865
|
866
|
this.showView = this.$route.query.showView
|
866
|
867
|
}
|
|
@@ -903,7 +904,7 @@ export default {
|
903
|
904
|
};
|
904
|
905
|
this.websocketSend(this.initData)
|
905
|
906
|
this.getInitData()
|
906
|
|
- this.getInitPrintData()
|
|
907
|
+
|
907
|
908
|
this.anticoagulants_confit = this.$store.getters.anticoagulants_confit
|
908
|
909
|
},
|
909
|
910
|
beforeMount() {
|
|
@@ -1173,11 +1174,11 @@ export default {
|
1173
|
1174
|
}
|
1174
|
1175
|
|
1175
|
1176
|
var solution = resp.data.solution // 透析方案
|
1176
|
|
-
|
|
1177
|
+
|
1177
|
1178
|
var receiver_treatment_access = resp.data.receiver_treatment_access // 接诊评估
|
1178
|
1179
|
|
1179
|
1180
|
var predialysis_evaluation = resp.data.predialysis_evaluation // 透前评估
|
1180
|
|
-
|
|
1181
|
+
|
1181
|
1182
|
if (predialysis_evaluation != null) {
|
1182
|
1183
|
if (predialysis_evaluation.blood_access_part_id == -2) {
|
1183
|
1184
|
predialysis_evaluation.blood_access_part_id = 0
|
|
@@ -1230,7 +1231,7 @@ export default {
|
1230
|
1231
|
var system_prescribe = resp.data.system_prescribe
|
1231
|
1232
|
|
1232
|
1233
|
var lastAssessment = resp.data.lastAssessment
|
1233
|
|
-
|
|
1234
|
+
|
1234
|
1235
|
this.$refs.nav.setLastRecord(
|
1235
|
1236
|
lastPredialysisEvaluation,
|
1236
|
1237
|
lastMonitorRecord,
|
|
@@ -1320,12 +1321,12 @@ export default {
|
1320
|
1321
|
this.device_numbers = resp.data.device_numbers
|
1321
|
1322
|
|
1322
|
1323
|
var his_doctor_advices = resp.data.his_advices
|
1323
|
|
-
|
|
1324
|
+
|
1324
|
1325
|
this.his_doctor_advices = his_doctor_advices
|
1325
|
1326
|
this.his_is_open = resp.data.is_open_config.is_open
|
1326
|
1327
|
|
1327
|
1328
|
this.is_advice_open = resp.data.is_advice_open.is_advice_open
|
1328
|
|
-
|
|
1329
|
+
|
1329
|
1330
|
var stockType = resp.data.stockType
|
1330
|
1331
|
this.stockType = stockType
|
1331
|
1332
|
|
|
@@ -1336,7 +1337,7 @@ export default {
|
1336
|
1337
|
}else{
|
1337
|
1338
|
this.preparestock = []
|
1338
|
1339
|
}
|
1339
|
|
-
|
|
1340
|
+
|
1340
|
1341
|
for (let i = 0; i < this.doctor_advices.length; i++){
|
1341
|
1342
|
this.doctor_advices[i]['origin'] = 1
|
1342
|
1343
|
}
|
|
@@ -1400,7 +1401,8 @@ export default {
|
1400
|
1401
|
)
|
1401
|
1402
|
},
|
1402
|
1403
|
printOrderOne(){
|
1403
|
|
- this.startVisibility = true
|
|
1404
|
+ this.getInitPrintData()
|
|
1405
|
+
|
1404
|
1406
|
},
|
1405
|
1407
|
// 日期
|
1406
|
1408
|
handleScheduleDateChange: function(index) {
|
|
@@ -1524,7 +1526,7 @@ export default {
|
1524
|
1526
|
// }
|
1525
|
1527
|
// }
|
1526
|
1528
|
|
1527
|
|
-
|
|
1529
|
+
|
1528
|
1530
|
this.zone_schedules = this.processedDialysisSchedules(schedules, this.zone_options)
|
1529
|
1531
|
const patientArr = JSON.parse(JSON.stringify(this.zone_schedules))
|
1530
|
1532
|
if (this.activeName == 'first') {
|
|
@@ -1552,7 +1554,7 @@ export default {
|
1552
|
1554
|
})
|
1553
|
1555
|
this.tableData = newArr
|
1554
|
1556
|
this.getData()
|
1555
|
|
-
|
|
1557
|
+
|
1556
|
1558
|
} else {
|
1557
|
1559
|
this.$message.error(resp.msg)
|
1558
|
1560
|
}
|
|
@@ -1725,13 +1727,13 @@ export default {
|
1725
|
1727
|
for (let j = 0; j < patientArr[i].schedules.length; j++) {
|
1726
|
1728
|
if (patientArr[i].schedules.length > 0 && patientArr[i].schedules[j].dialysis_order == null) {
|
1727
|
1729
|
// 删除元素后改变i的值
|
1728
|
|
-
|
|
1730
|
+
|
1729
|
1731
|
patientArr[i].schedules.splice(j--, 1)
|
1730
|
1732
|
}
|
1731
|
1733
|
}
|
1732
|
1734
|
}
|
1733
|
1735
|
let arr1 = []
|
1734
|
|
-
|
|
1736
|
+
|
1735
|
1737
|
// let patientArr =
|
1736
|
1738
|
if (this.patientStateVal == 0) {
|
1737
|
1739
|
arr1 = patientArr
|
|
@@ -1746,7 +1748,7 @@ export default {
|
1746
|
1748
|
}
|
1747
|
1749
|
}
|
1748
|
1750
|
}
|
1749
|
|
-
|
|
1751
|
+
|
1750
|
1752
|
arr1 = arr
|
1751
|
1753
|
} else if (this.patientStateVal == 2) {
|
1752
|
1754
|
let arr = []
|
|
@@ -1759,7 +1761,7 @@ export default {
|
1759
|
1761
|
}
|
1760
|
1762
|
}
|
1761
|
1763
|
}
|
1762
|
|
-
|
|
1764
|
+
|
1763
|
1765
|
arr1 = arr
|
1764
|
1766
|
} else if (this.patientStateVal == 3) {
|
1765
|
1767
|
let arr = []
|
|
@@ -1785,7 +1787,7 @@ export default {
|
1785
|
1787
|
}
|
1786
|
1788
|
}
|
1787
|
1789
|
}
|
1788
|
|
-
|
|
1790
|
+
|
1789
|
1791
|
arr1 = arr
|
1790
|
1792
|
}
|
1791
|
1793
|
|
|
@@ -1809,7 +1811,7 @@ export default {
|
1809
|
1811
|
arr = JSON.parse(JSON.stringify(arr1))
|
1810
|
1812
|
for (let i = 0; i < arr.length; i++) {
|
1811
|
1813
|
for (let j = 0; j < arr[i].schedules.length; j++) {
|
1812
|
|
-
|
|
1814
|
+
|
1813
|
1815
|
if(arr[i].schedules[j].doctor_advice.length == 0){
|
1814
|
1816
|
arr[i].schedules.splice(j--, 1)
|
1815
|
1817
|
}
|
|
@@ -1918,7 +1920,7 @@ export default {
|
1918
|
1920
|
}
|
1919
|
1921
|
},
|
1920
|
1922
|
websocketMess() {
|
1921
|
|
-
|
|
1923
|
+
|
1922
|
1924
|
this.websocket.onmessage = e => {
|
1923
|
1925
|
let res = JSON.parse(e.data);
|
1924
|
1926
|
// let res = re.data;
|
|
@@ -1967,7 +1969,7 @@ export default {
|
1967
|
1969
|
calledArr.push(item)
|
1968
|
1970
|
}
|
1969
|
1971
|
})
|
1970
|
|
-
|
|
1972
|
+
|
1971
|
1973
|
this.waitingCalled = waitingCalledArr
|
1972
|
1974
|
this.called = calledArr
|
1973
|
1975
|
}else if(res.channel == 'allQueueList'){
|
|
@@ -2024,7 +2026,7 @@ export default {
|
2024
|
2026
|
let org_id = parseInt(sessionStorage.getItem("org_id"));
|
2025
|
2027
|
let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
|
2026
|
2028
|
axios.get('/api/index/callpatient?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id).then(res => {
|
2027
|
|
-
|
|
2029
|
+
|
2028
|
2030
|
// let patientArr = res.data.queue_list.data
|
2029
|
2031
|
// this.patientArr = patientArr
|
2030
|
2032
|
// this.$emit('child-event',this.patientArr)
|
|
@@ -2086,7 +2088,7 @@ export default {
|
2086
|
2088
|
}else {
|
2087
|
2089
|
schedule_type = 2
|
2088
|
2090
|
}
|
2089
|
|
-
|
|
2091
|
+
|
2090
|
2092
|
let org_id = parseInt(sessionStorage.getItem("org_id"));
|
2091
|
2093
|
let admin_user_id = parseInt(sessionStorage.getItem("admin_user_id"));
|
2092
|
2094
|
axios.get('/api/index/nextcall?org_id=' + org_id + '&patient_id=' + this.patient_id + '&admin_user_id=' + admin_user_id + '&schedule_type=' + schedule_type).then(res => {
|
|
@@ -2150,7 +2152,7 @@ export default {
|
2150
|
2152
|
documentTitle: ' ',
|
2151
|
2153
|
style: style1,
|
2152
|
2154
|
scanStyles: false
|
2153
|
|
- })
|
|
2155
|
+ })
|
2154
|
2156
|
},
|
2155
|
2157
|
getInitPrintData(){
|
2156
|
2158
|
var params = {
|
|
@@ -2160,8 +2162,11 @@ export default {
|
2160
|
2162
|
getInitPrintData(params).then(response=>{
|
2161
|
2163
|
if(response.data.state == 1){
|
2162
|
2164
|
var list = response.data.data.list
|
|
2165
|
+ var assessmentAfterDislysis = response.data.data.assessmentAfterDislysis
|
2163
|
2166
|
console.log("list2332322332",list)
|
2164
|
2167
|
this.printList = list
|
|
2168
|
+ this.assessmentAfterDislysis = assessmentAfterDislysis
|
|
2169
|
+ this.startVisibility = true
|
2165
|
2170
|
}
|
2166
|
2171
|
})
|
2167
|
2172
|
}
|