File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ async function group(record, type) {
43
43
return result ;
44
44
}
45
45
async function get_Payment ( type ) {
46
- // const {DRG} =await import('./drg_group/'+type+'/Base.js');
47
46
const { Payment } = await import ( './drg_group/' + type + '/DATA/Payment.js' ) ;
48
47
return Payment ;
49
48
}
@@ -52,11 +51,9 @@ function click() {
52
51
let Payment = get_Payment ( select . value ) ;
53
52
result . then ( x => {
54
53
Payment . then ( y => {
55
- console . log ( y ) ;
56
54
div_record . innerHTML = 'record=' + JSON . stringify ( x . record ) ;
57
55
let payment = y [ x . drg ] ;
58
56
div_drg . innerHTML = x . drg + '-' + payment [ 'DRG名称' ] ;
59
- delete payment [ 'DRG名称' ] ;
60
57
buildTable ( div_pay , payment ) ;
61
58
buildList ( div_msg , x . messages ) ;
62
59
@@ -76,14 +73,14 @@ function buildTable(div,data) {
76
73
table . appendChild ( tbody ) ;
77
74
let tr ;
78
75
tr = document . createElement ( "tr" ) ;
79
- for ( let i of Object . keys ( data ) ) {
76
+ for ( let i of Object . keys ( data ) . slice ( 1 ) ) {
80
77
let th = document . createElement ( "th" ) ;
81
78
th . innerText = i ;
82
79
tr . appendChild ( th ) ;
83
80
}
84
81
thead . appendChild ( tr ) ;
85
82
tr = document . createElement ( "tr" ) ;
86
- for ( let i of Object . values ( data ) ) {
83
+ for ( let i of Object . values ( data ) . slice ( 1 ) ) {
87
84
let td = document . createElement ( "td" ) ;
88
85
td . innerText = i ;
89
86
tr . appendChild ( td ) ;
You can’t perform that action at this time.
0 commit comments