|
@@ -121,6 +121,10 @@
|
121
|
121
|
</view>
|
122
|
122
|
<view class="page_item_conts" v-if="item.taskType.associationType.value == 'patientTransport'">
|
123
|
123
|
<view>
|
|
124
|
+ 预约时间 : {{ item.yyjdTime | yyTimeFilter
|
|
125
|
+ }}<text v-if="item.reservationNumber">({{ item.reservationNumber }})</text>
|
|
126
|
+ </view>
|
|
127
|
+ <view>
|
124
|
128
|
床号 : {{ item.patient ? item.patient.patientName : "-" }}({{
|
125
|
129
|
item.patient ? item.patient.bedNum : "-"
|
126
|
130
|
}})
|
|
@@ -341,15 +345,20 @@
|
341
|
345
|
// 自定义管道 yyTime
|
342
|
346
|
yyTimeFilter: function(data) {
|
343
|
347
|
if (data) {
|
344
|
|
- let arr = data.split(/[-:\s]/);
|
345
|
|
- const nDate = new Date(
|
346
|
|
- arr[0] - 0,
|
347
|
|
- arr[1] - 1,
|
348
|
|
- arr[2] - 0,
|
349
|
|
- arr[3] - 0,
|
350
|
|
- arr[4] - 0,
|
351
|
|
- 0
|
352
|
|
- );
|
|
348
|
+ let nDate = null;
|
|
349
|
+ if(typeof data == 'string'){
|
|
350
|
+ let arr = data.split(/[-:\s]/);
|
|
351
|
+ nDate = new Date(
|
|
352
|
+ arr[0] - 0,
|
|
353
|
+ arr[1] - 1,
|
|
354
|
+ arr[2] - 0,
|
|
355
|
+ arr[3] - 0,
|
|
356
|
+ arr[4] - 0,
|
|
357
|
+ 0
|
|
358
|
+ );
|
|
359
|
+ }else if(typeof data == 'number'){
|
|
360
|
+ nDate = new Date(data);
|
|
361
|
+ }
|
353
|
362
|
const month = (nDate.getMonth() + 1).toString().padStart(2, 0);
|
354
|
363
|
const date = nDate.getDate().toString().padStart(2, 0);
|
355
|
364
|
const hour = nDate.getHours().toString().padStart(2, 0);
|