File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ const div_drg = document.createElement('div');
28
28
div_drg . classList . add ( 'red' ) ;
29
29
const div_pay = document . createElement ( 'div' ) ;
30
30
const div_msg = document . createElement ( 'div' ) ;
31
- div_result . appendChild ( div_record ) ;
32
31
div_result . appendChild ( document . createElement ( 'br' ) ) ;
32
+ div_result . appendChild ( div_record ) ;
33
+ div_result . appendChild ( div_msg ) ;
33
34
div_result . appendChild ( div_drg ) ;
34
35
div_result . appendChild ( div_pay ) ;
35
- div_result . appendChild ( div_msg ) ;
36
36
div_grouper . appendChild ( div_input ) ;
37
37
div_grouper . appendChild ( div_result ) ;
38
38
document . body . appendChild ( div_grouper ) ;
@@ -52,11 +52,10 @@ function click() {
52
52
result . then ( x => {
53
53
Payment . then ( y => {
54
54
div_record . innerHTML = 'record=' + JSON . stringify ( x . record ) ;
55
+ buildList ( div_msg , x . messages ) ;
55
56
let payment = y [ x . drg ] ;
56
57
div_drg . innerHTML = x . drg + '-' + payment [ 'DRG名称' ] ;
57
- buildTable ( div_pay , payment ) ;
58
- buildList ( div_msg , x . messages ) ;
59
-
58
+ buildTable ( div_pay , payment ) ;
60
59
} )
61
60
} ) ;
62
61
}
You can’t perform that action at this time.
0 commit comments