|
|
@@ -114,6 +114,21 @@ function cellNumberMessage(data){
|
|
|
dispenseListClear(data);
|
|
|
currentListClear(data);
|
|
|
pastListClear(data);
|
|
|
+ //生成语音
|
|
|
+ $.ajax({
|
|
|
+ type: "GET",
|
|
|
+ url: 'http://webhis.thyy.cn:8706/voice/textToSpeech?text='+"请"+data.name+"到四号窗口取药",
|
|
|
+ contentType: "application/json;charset=UTF-8",
|
|
|
+ dataType: "json",
|
|
|
+ headers: {'Accept': 'application/json', 'Authorization': 'Bearer ' + localStorage.getItem("token")},
|
|
|
+ success: function (res) {
|
|
|
+ if (res.code == 200) {
|
|
|
+ //播放后台生成的叫号语音
|
|
|
+ var mp3 = new Audio(res.data);
|
|
|
+ mp3.play();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
} else if (data.type == 'FY') {//来自发药处理后的消息
|
|
|
//将该用户叫号列表清除
|
|
|
if(rightPerson != '' && rightPerson != null && rightPerson.patient_id == data.patient_id){
|