剧本提示代码调整
This commit is contained in:
parent
e6ffe9d087
commit
3d0782952c
@ -1028,10 +1028,24 @@ function getTicketInfoById(ticket) {
|
||||
const ticketTypeMap = {'RAIL_TICKET':'路票', 'GREEN_LICENCE':'绿色许可证', 'RED_LICENCE':'红色许可证'};
|
||||
let info = '';
|
||||
if (ticket.type == 'GREEN_LICENCE') {
|
||||
info = ',编号为' + ticket.number + ',原因为' + ticket.reason + ',车次号为' + ticket.tripNumber +
|
||||
info = ',编号为' + ticket.number +
|
||||
'在' + ticket.reason + '的情况下,准许第' + ticket.tripNumber + '次列车由' + ticket.line + '线上发车。' +
|
||||
',站名印为' + ticket.stationSeal + ',签名为' + ticket.signature +
|
||||
',' + ticket.line + '线上发车' +
|
||||
',日期为' + ticket.year + '年' + ticket.moon + '月' + ticket.day + '日';
|
||||
} else if (ticket.type == 'RED_LICENCE') {
|
||||
info = ',编号为' + ticket.number +
|
||||
',现在一切电话中断,准许第' + ticket.licenseTripNumber + '次列车自' + ticket.licenseStation +
|
||||
'站至' + ticket.licenseNextStation + '站,本列车前于' + ticket.licenseHour + '时' + ticket.licenseMinute +
|
||||
'分发出的第' + ticket.licenseTripNumber2 + '次列车,邻站到达通知' + ticket.licenseReceived ? '已' : '未' + '收到' +
|
||||
'。 通知书:1.' + '第' + ticket.noticeTripNumber + '次列车到达你站后,准接你站发出的列车。' +
|
||||
'2.于' + ticket.noticeHour1 + '时' + ticket.noticeMinute1 + '分发出第' + ticket.noticeTripNumber1 + '次列车,并于' + ticket.noticeHour2 +
|
||||
'时' + ticket.noticeMinute2 + '分再发出第' + ticket.noticeTripNumber2 + '次列车。' +
|
||||
',站名印为' + ticket.stationSeal + ',签名为' + ticket.signature +
|
||||
',日期为' + ticket.year + '年' + ticket.moon + '月' + ticket.day + '日';
|
||||
} else if (ticket.type == 'RAIL_TICKET') {
|
||||
info = ',编号为' + ticket.number + ',车次为' + ticket.tripNumber + ',' + ticket.station + '到' + ticket.nextStation +
|
||||
',站名印为' + ticket.stationSeal + ',编号为' + ticket.no;
|
||||
// deputy: false
|
||||
}
|
||||
return '类型为' + ticketTypeMap[ticket.type] + info;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user