|
@@ -1770,12 +1770,46 @@ export class HushijiandanComponent implements OnInit {
|
1770
|
1770
|
// 手术安排信息-即将开始
|
1771
|
1771
|
surgeryBegin(e, item){
|
1772
|
1772
|
e.stopPropagation();
|
1773
|
|
- this.surgeryModal = true;
|
1774
|
|
- if(item.docAssistantInfos){
|
1775
|
|
- item.docAssistantInfos = item.docAssistantInfos.split('|').map(v => v.split(',')[0]).join(' / ');
|
1776
|
|
- }
|
1777
|
|
- this.surgeryItem = item;
|
1778
|
|
- this.surgeryInfo = `提示:您即将给以下工作人员发送短信/微信提醒,请确认以下信息`
|
|
1773
|
+ let maskFlag = this.message.loading("正在加载中..", {
|
|
1774
|
+ nzDuration: 0,
|
|
1775
|
+ }).messageId;
|
|
1776
|
+ let postData = {
|
|
1777
|
+ idx: 0,
|
|
1778
|
+ sum: 9999,
|
|
1779
|
+ transportMessage: {
|
|
1780
|
+ hosId: this.currentHospital.id,
|
|
1781
|
+ code: 'surgery_begin',
|
|
1782
|
+ },
|
|
1783
|
+ };
|
|
1784
|
+ this.mainService
|
|
1785
|
+ .getFetchDataList("simple/data", "transportMessage", postData)
|
|
1786
|
+ .subscribe((result:any) => {
|
|
1787
|
+ this.message.remove(maskFlag);
|
|
1788
|
+ if (result.status == 200) {
|
|
1789
|
+ result.list = result.list || [];
|
|
1790
|
+ if(result.list.length){
|
|
1791
|
+ let resultObj:any = {};
|
|
1792
|
+ result.list.forEach(v => {
|
|
1793
|
+ resultObj[v.role] = v;
|
|
1794
|
+ })
|
|
1795
|
+ item.doctorNameFlag = resultObj.doctor.phoneFlag == 1 || resultObj.doctor.wechatFlag == 1;
|
|
1796
|
+ item.docAssistantInfosFlag = resultObj.docAssistant.phoneFlag == 1 || resultObj.docAssistant.wechatFlag == 1;
|
|
1797
|
+ item.anesthetistNameFlag = resultObj.anesthetist.phoneFlag == 1 || resultObj.anesthetist.wechatFlag == 1;
|
|
1798
|
+ item.patientNameFlag = resultObj.patient.phoneFlag == 1 || resultObj.patient.wechatFlag == 1;
|
|
1799
|
+
|
|
1800
|
+ if(item.docAssistantInfosFlag && item.docAssistantInfos){
|
|
1801
|
+ item.docAssistantInfos = item.docAssistantInfos.split('|').map(v => v.split(',')[0]).join(' / ');
|
|
1802
|
+ }
|
|
1803
|
+ this.surgeryModal = true;
|
|
1804
|
+ this.surgeryItem = item;
|
|
1805
|
+ this.surgeryInfo = `提示:您即将给以下工作人员发送短信/微信提醒,请确认以下信息`;
|
|
1806
|
+ }else{
|
|
1807
|
+ this.showPromptModal("【手术即将开始通知】未配置", false, "失败");
|
|
1808
|
+ }
|
|
1809
|
+ }else{
|
|
1810
|
+ this.showPromptModal("接口获取数据", false, "失败");
|
|
1811
|
+ }
|
|
1812
|
+ });
|
1779
|
1813
|
}
|
1780
|
1814
|
// -----------------
|
1781
|
1815
|
|