gm-printer 10.13.14 → 10.13.16-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintcache +1 -1
- package/package.json +1 -1
- package/src/editor_purchase/context_menu.js +0 -2
- package/src/editor_settle/context_menu.js +1 -0
- package/src/printer/do_print.js +4 -3
- package/src/printer/page.js +0 -1
- package/src/printer/printer.js +4 -2
- package/src/printer/table.js +6 -2
- package/src/printer/table_subtotal_tr.js +75 -49
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/Users/min/Documents/GMFE/gm-util/gm-printer/src/util.js":"1","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/get_css.js":"2","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/barcode.js":"3","/Users/min/Documents/GMFE/gm-util/gm-printer/src/index.js":"4","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockout/context_menu.js":"5","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockin/context_menu.js":"6","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_statement/context_menu.js":"7","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_settle/context_menu.js":"8","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_salemenus/context_menu.js":"9","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/editor_special_table.js":"10","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/context_menu.js":"11","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account/context_menu.js":"12","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor/context_menu.js":"13","/Users/min/Documents/GMFE/gm-util/gm-printer/src/config.js":"14","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_store.js":"15","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_shadow_dom.js":"16","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/get_editor_css.js":"17","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_title.js":"18","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_store.js":"19","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_select.js":"20","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_edit_field.js":"21","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/component.js":"22","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockout/editor.js":"23","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockin/editor.js":"24","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_statement/editor.js":"25","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_settle/editor.js":"26","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_salemenus/editor.js":"27","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/editor.js":"28","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account_statement/editor.js":"29","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account/editor.js":"30","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor/editor.js":"31","/Users/min/Documents/GMFE/gm-util/gm-printer/src/components/tooltip/index.js":"32","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_special_field.js":"33","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/store.js":"34","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/index.js":"35","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/do_print.js":"36","/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/finance_printer.js":"37","/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/components/table_subtotal_tr.js":"38","/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/components/table.js":"39","/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/components/finance_batch_printer.js":"40","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/page.js":"41"},{"size":7272,"mtime":1648023082379,"results":"42","hashOfConfig":"43"},{"size":291,"mtime":1638935573926,"results":"44","hashOfConfig":"45"},{"size":523,"mtime":1638935549030,"results":"46","hashOfConfig":"45"},{"size":1139,"mtime":1644572548725,"results":"47","hashOfConfig":"43"},{"size":2293,"mtime":1638948548042,"results":"48","hashOfConfig":"45"},{"size":2292,"mtime":1638948522492,"results":"49","hashOfConfig":"45"},{"size":1078,"mtime":1638948543271,"results":"50","hashOfConfig":"45"},{"size":2040,"mtime":1638948515902,"results":"51","hashOfConfig":"45"},{"size":2991,"mtime":1638948535719,"results":"52","hashOfConfig":"45"},{"size":4379,"mtime":1638935458586,"results":"53","hashOfConfig":"45"},{"size":2521,"mtime":1638948507982,"results":"54","hashOfConfig":"45"},{"size":2955,"mtime":1647850650993,"results":"55","hashOfConfig":"43"},{"size":3732,"mtime":1639722598379,"results":"56","hashOfConfig":"45"},{"size":2833,"mtime":1638861837310,"results":"57","hashOfConfig":"45"},{"size":4212,"mtime":1638935746667,"results":"58","hashOfConfig":"45"},{"size":861,"mtime":1638931446915,"results":"59","hashOfConfig":"45"},{"size":178,"mtime":1638931439249,"results":"60","hashOfConfig":"45"},{"size":3272,"mtime":1638931374761,"results":"61","hashOfConfig":"45"},{"size":22984,"mtime":1639993458515,"results":"62","hashOfConfig":"45"},{"size":4898,"mtime":1639992402586,"results":"63","hashOfConfig":"45"},{"size":13268,"mtime":1638930638946,"results":"64","hashOfConfig":"45"},{"size":14787,"mtime":1638948621474,"results":"65","hashOfConfig":"45"},{"size":2165,"mtime":1638949854481,"results":"66","hashOfConfig":"45"},{"size":2165,"mtime":1638949840121,"results":"67","hashOfConfig":"45"},{"size":2223,"mtime":1638949823846,"results":"68","hashOfConfig":"45"},{"size":2226,"mtime":1638949842800,"results":"69","hashOfConfig":"45"},{"size":3367,"mtime":1638949855771,"results":"70","hashOfConfig":"45"},{"size":2305,"mtime":1638949843817,"results":"71","hashOfConfig":"45"},{"size":3294,"mtime":1638949855131,"results":"72","hashOfConfig":"45"},{"size":2850,"mtime":1638949842017,"results":"73","hashOfConfig":"45"},{"size":4157,"mtime":1638949853726,"results":"74","hashOfConfig":"45"},{"size":605,"mtime":1638949882777,"results":"75","hashOfConfig":"45"},{"size":1175,"mtime":1638949720500,"results":"76","hashOfConfig":"45"},{"size":14704,"mtime":1646809776688,"results":"77","hashOfConfig":"43"},{"size":332,"mtime":1644573509040,"results":"78","hashOfConfig":"43"},{"size":3936,"mtime":1644907222767,"results":"79","hashOfConfig":"43"},{"size":8842,"mtime":1646363892377,"results":"80","hashOfConfig":"43"},{"size":4317,"mtime":1646376602197,"results":"81","hashOfConfig":"43"},{"size":9440,"mtime":1644993553716,"results":"82","hashOfConfig":"43"},{"size":724,"mtime":1644808940649,"results":"83","hashOfConfig":"43"},{"size":1763,"mtime":1646363840977,"results":"84","hashOfConfig":"43"},{"filePath":"85","messages":"86","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1qaimc",{"filePath":"87","messages":"88","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"jpc0be",{"filePath":"89","messages":"90","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"91","messages":"92","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"93","messages":"94","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"95","messages":"96","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"97","messages":"98","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"99","messages":"100","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"101","messages":"102","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"103","messages":"104","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"105","messages":"106","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"107","messages":"108","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"109","messages":"110","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"111","messages":"112","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"113","messages":"114","errorCount":2,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"115","messages":"116","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"117","messages":"118","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"119","messages":"120","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"121","messages":"122","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"123","messages":"124","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"125","messages":"126","errorCount":1,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"127","messages":"128","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"129","messages":"130","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"131","messages":"132","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"133","messages":"134","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"135","messages":"136","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"137","messages":"138","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"139","messages":"140","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"141","messages":"142","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"143","messages":"144","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"145","messages":"146","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"147","messages":"148","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"149","messages":"150","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"151","messages":"152","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"153","messages":"154","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"155","messages":"156","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"157","messages":"158","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"159","messages":"160","errorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"161","messages":"162","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"163","messages":"164","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"165","messages":"166","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/min/Documents/GMFE/gm-util/gm-printer/src/util.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/get_css.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/barcode.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/index.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockout/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockin/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_statement/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_settle/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_salemenus/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/editor_special_table.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/config.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_store.js",["167","168"],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_shadow_dom.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/get_editor_css.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_title.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_store.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_select.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_edit_field.js",["169","170","171"],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/component.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockout/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockin/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_statement/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_settle/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_salemenus/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account_statement/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/components/tooltip/index.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_special_field.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/store.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/index.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/do_print.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/finance_printer.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/components/table_subtotal_tr.js",["172"],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/components/table.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/components/finance_batch_printer.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/page.js",[],{"ruleId":"173","severity":2,"message":"174","line":10,"column":29,"nodeType":"175","endLine":10,"endColumn":35},{"ruleId":"173","severity":2,"message":"176","line":145,"column":63,"nodeType":"175","endLine":145,"endColumn":71},{"ruleId":"177","severity":1,"message":"178","line":265,"column":13,"nodeType":"179","endLine":265,"endColumn":49},{"ruleId":"177","severity":1,"message":"178","line":283,"column":13,"nodeType":"179","endLine":283,"endColumn":56},{"ruleId":"180","severity":2,"message":"181","line":436,"column":22,"nodeType":"182","messageId":"183","endLine":436,"endColumn":31},{"ruleId":"180","severity":2,"message":"181","line":120,"column":14,"nodeType":"182","messageId":"183","endLine":120,"endColumn":23},"react/prop-types","'config' is missing in props validation","Identifier","'mockData' is missing in props validation","react/jsx-handler-names","Handler function for onChange prop key must begin with 'handle'","JSXAttribute","gmfe/i18n-check","t函数的key只能为字符串常量(Literal),请使用单引号或双引号包裹","MemberExpression","isVariable"]
|
|
1
|
+
[{"/Users/min/Documents/GMFE/gm-util/gm-printer/src/util.js":"1","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/get_css.js":"2","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/barcode.js":"3","/Users/min/Documents/GMFE/gm-util/gm-printer/src/index.js":"4","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockout/context_menu.js":"5","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockin/context_menu.js":"6","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_statement/context_menu.js":"7","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_settle/context_menu.js":"8","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_salemenus/context_menu.js":"9","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/editor_special_table.js":"10","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/context_menu.js":"11","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account/context_menu.js":"12","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor/context_menu.js":"13","/Users/min/Documents/GMFE/gm-util/gm-printer/src/config.js":"14","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_store.js":"15","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_shadow_dom.js":"16","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/get_editor_css.js":"17","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_title.js":"18","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_store.js":"19","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_select.js":"20","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_edit_field.js":"21","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/component.js":"22","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockout/editor.js":"23","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockin/editor.js":"24","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_statement/editor.js":"25","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_settle/editor.js":"26","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_salemenus/editor.js":"27","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/editor.js":"28","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account_statement/editor.js":"29","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account/editor.js":"30","/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor/editor.js":"31","/Users/min/Documents/GMFE/gm-util/gm-printer/src/components/tooltip/index.js":"32","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_special_field.js":"33","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/store.js":"34","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/index.js":"35","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/do_print.js":"36","/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/finance_printer.js":"37","/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/components/table_subtotal_tr.js":"38","/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/components/table.js":"39","/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/components/finance_batch_printer.js":"40","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/page.js":"41","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/table_subtotal_tr.js":"42","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/table.js":"43","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/printer.js":"44"},{"size":7272,"mtime":1648023082379,"results":"45","hashOfConfig":"46"},{"size":291,"mtime":1638935573926,"results":"47","hashOfConfig":"48"},{"size":523,"mtime":1638935549030,"results":"49","hashOfConfig":"48"},{"size":1139,"mtime":1644572548725,"results":"50","hashOfConfig":"46"},{"size":2293,"mtime":1638948548042,"results":"51","hashOfConfig":"48"},{"size":2292,"mtime":1638948522492,"results":"52","hashOfConfig":"48"},{"size":1078,"mtime":1638948543271,"results":"53","hashOfConfig":"48"},{"size":2067,"mtime":1648466228565,"results":"54","hashOfConfig":"55"},{"size":2991,"mtime":1638948535719,"results":"56","hashOfConfig":"48"},{"size":4379,"mtime":1638935458586,"results":"57","hashOfConfig":"48"},{"size":2428,"mtime":1648466380496,"results":"58","hashOfConfig":"55"},{"size":2955,"mtime":1647850650993,"results":"59","hashOfConfig":"46"},{"size":3949,"mtime":1648535839700,"results":"60","hashOfConfig":"55"},{"size":2833,"mtime":1638861837310,"results":"61","hashOfConfig":"48"},{"size":4212,"mtime":1638935746667,"results":"62","hashOfConfig":"48"},{"size":861,"mtime":1638931446915,"results":"63","hashOfConfig":"48"},{"size":178,"mtime":1638931439249,"results":"64","hashOfConfig":"48"},{"size":3272,"mtime":1638931374761,"results":"65","hashOfConfig":"48"},{"size":22984,"mtime":1639993458515,"results":"66","hashOfConfig":"48"},{"size":4898,"mtime":1639992402586,"results":"67","hashOfConfig":"48"},{"size":13268,"mtime":1638930638946,"results":"68","hashOfConfig":"48"},{"size":14787,"mtime":1638948621474,"results":"69","hashOfConfig":"48"},{"size":2165,"mtime":1638949854481,"results":"70","hashOfConfig":"48"},{"size":2165,"mtime":1638949840121,"results":"71","hashOfConfig":"48"},{"size":2223,"mtime":1638949823846,"results":"72","hashOfConfig":"48"},{"size":2226,"mtime":1638949842800,"results":"73","hashOfConfig":"48"},{"size":3367,"mtime":1638949855771,"results":"74","hashOfConfig":"48"},{"size":2305,"mtime":1638949843817,"results":"75","hashOfConfig":"48"},{"size":3294,"mtime":1638949855131,"results":"76","hashOfConfig":"48"},{"size":2850,"mtime":1638949842017,"results":"77","hashOfConfig":"48"},{"size":4157,"mtime":1638949853726,"results":"78","hashOfConfig":"48"},{"size":605,"mtime":1638949882777,"results":"79","hashOfConfig":"48"},{"size":1175,"mtime":1638949720500,"results":"80","hashOfConfig":"48"},{"size":14704,"mtime":1646809776688,"results":"81","hashOfConfig":"46"},{"size":332,"mtime":1644573509040,"results":"82","hashOfConfig":"46"},{"size":4080,"mtime":1648536160221,"results":"83","hashOfConfig":"55"},{"size":8842,"mtime":1646363892377,"results":"84","hashOfConfig":"46"},{"size":4317,"mtime":1646376602197,"results":"85","hashOfConfig":"46"},{"size":9440,"mtime":1644993553716,"results":"86","hashOfConfig":"46"},{"size":724,"mtime":1644808940649,"results":"87","hashOfConfig":"46"},{"size":1717,"mtime":1648466368772,"results":"88","hashOfConfig":"55"},{"size":5138,"mtime":1648535682369,"results":"89","hashOfConfig":"55"},{"size":9589,"mtime":1648535715854,"results":"90","hashOfConfig":"55"},{"size":8892,"mtime":1648535756564,"results":"91","hashOfConfig":"55"},{"filePath":"92","messages":"93","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1qaimc",{"filePath":"94","messages":"95","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"jpc0be",{"filePath":"96","messages":"97","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"98","messages":"99","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"100","messages":"101","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"102","messages":"103","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"104","messages":"105","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"106","messages":"107","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1h9xfdh",{"filePath":"108","messages":"109","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"112","messages":"113","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"114","messages":"115","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"118","messages":"119","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"120","messages":"121","errorCount":2,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"122","messages":"123","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"124","messages":"125","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"126","messages":"127","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"128","messages":"129","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"130","messages":"131","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"132","messages":"133","errorCount":1,"warningCount":2,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"134","messages":"135","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"136","messages":"137","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"138","messages":"139","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"142","messages":"143","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"144","messages":"145","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"146","messages":"147","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"148","messages":"149","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"150","messages":"151","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"152","messages":"153","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"154","messages":"155","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"156","messages":"157","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"158","messages":"159","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"160","messages":"161","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"162","messages":"163","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"164","messages":"165","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"166","messages":"167","errorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"168","messages":"169","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"170","messages":"171","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"172","messages":"173","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"174","messages":"175","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/min/Documents/GMFE/gm-util/gm-printer/src/util.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/get_css.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/barcode.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/index.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockout/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockin/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_statement/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_settle/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_salemenus/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/editor_special_table.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor/context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/config.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_store.js",["180","181"],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/hoc_with_shadow_dom.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/get_editor_css.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_title.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_store.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_select.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_edit_field.js",["182","183","184"],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/component.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockout/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_stockin/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_statement/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_settle/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_salemenus/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_purchase/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account_statement/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor_account/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/editor/editor.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/components/tooltip/index.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_special_field.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/store.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/index.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/do_print.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/finance_printer.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/components/table_subtotal_tr.js",["185"],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/components/table.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/finance_voucher/components/finance_batch_printer.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/page.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/table_subtotal_tr.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/table.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/printer.js",[],{"ruleId":"186","severity":2,"message":"187","line":10,"column":29,"nodeType":"188","endLine":10,"endColumn":35},{"ruleId":"186","severity":2,"message":"189","line":145,"column":63,"nodeType":"188","endLine":145,"endColumn":71},{"ruleId":"190","severity":1,"message":"191","line":265,"column":13,"nodeType":"192","endLine":265,"endColumn":49},{"ruleId":"190","severity":1,"message":"191","line":283,"column":13,"nodeType":"192","endLine":283,"endColumn":56},{"ruleId":"193","severity":2,"message":"194","line":436,"column":22,"nodeType":"195","messageId":"196","endLine":436,"endColumn":31},{"ruleId":"193","severity":2,"message":"194","line":120,"column":14,"nodeType":"195","messageId":"196","endLine":120,"endColumn":23},"react/prop-types","'config' is missing in props validation","Identifier","'mockData' is missing in props validation","react/jsx-handler-names","Handler function for onChange prop key must begin with 'handle'","JSXAttribute","gmfe/i18n-check","t函数的key只能为字符串常量(Literal),请使用单引号或双引号包裹","MemberExpression","isVariable"]
|
package/package.json
CHANGED
|
@@ -24,7 +24,6 @@ class ContextMenu extends React.Component {
|
|
|
24
24
|
const arr = name.split('.')
|
|
25
25
|
if (_.includes(arr, 'table')) {
|
|
26
26
|
const dataKey = this.props.editStore.config.contents[arr[2]].dataKey
|
|
27
|
-
console.log(!_.includes(noSubtotalList, dataKey), dataKey)
|
|
28
27
|
return !_.includes(noSubtotalList, dataKey)
|
|
29
28
|
}
|
|
30
29
|
}
|
|
@@ -67,7 +66,6 @@ class ContextMenu extends React.Component {
|
|
|
67
66
|
|
|
68
67
|
render() {
|
|
69
68
|
const { editStore, mockData } = this.props
|
|
70
|
-
console.log('purchase')
|
|
71
69
|
return (
|
|
72
70
|
<CommonContextMenu
|
|
73
71
|
renderTableAction={this.renderOrderActionBtn}
|
package/src/printer/do_print.js
CHANGED
|
@@ -53,12 +53,13 @@ function init({ isTest, isTipZoom = true } = {}) {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
function toDoPrint({ data, config }) {
|
|
56
|
+
function toDoPrint({ data, config }, isSomeSubtotalTr) {
|
|
57
57
|
return new window.Promise(resolve => {
|
|
58
58
|
const $app = $printer.contentWindow.document.getElementById('appContainer')
|
|
59
59
|
ReactDOM.unmountComponentAtNode($app)
|
|
60
60
|
ReactDOM.render(
|
|
61
61
|
<Printer
|
|
62
|
+
isSomeSubtotalTr={isSomeSubtotalTr} // 每页合计是否需要展示多个字段
|
|
62
63
|
config={config}
|
|
63
64
|
data={data}
|
|
64
65
|
onReady={() => {
|
|
@@ -112,10 +113,10 @@ function toDoPrintFinanceBatch(list, isPrint = true) {
|
|
|
112
113
|
})
|
|
113
114
|
}
|
|
114
115
|
|
|
115
|
-
function doPrint({ data, config }, isTest) {
|
|
116
|
+
function doPrint({ data, config }, isTest, isSomeSubtotalTr) {
|
|
116
117
|
init({ isTest })
|
|
117
118
|
|
|
118
|
-
return toDoPrint({ data, config })
|
|
119
|
+
return toDoPrint({ data, config }, isSomeSubtotalTr)
|
|
119
120
|
}
|
|
120
121
|
function doBatchPrint(
|
|
121
122
|
list,
|
package/src/printer/page.js
CHANGED
package/src/printer/printer.js
CHANGED
|
@@ -135,7 +135,7 @@ class Printer extends React.Component {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
renderPage() {
|
|
138
|
-
const { printerStore } = this.props
|
|
138
|
+
const { printerStore, isSomeSubtotalTr } = this.props
|
|
139
139
|
const { config } = printerStore
|
|
140
140
|
|
|
141
141
|
return (
|
|
@@ -161,6 +161,7 @@ class Printer extends React.Component {
|
|
|
161
161
|
}}
|
|
162
162
|
placeholder={`${i18next.t('区域')} ${panel.index}`}
|
|
163
163
|
pageIndex={i}
|
|
164
|
+
isSomeSubtotalTr={isSomeSubtotalTr}
|
|
164
165
|
/>
|
|
165
166
|
)
|
|
166
167
|
|
|
@@ -286,7 +287,8 @@ Printer.propTypes = {
|
|
|
286
287
|
selectedRegion: PropTypes.string,
|
|
287
288
|
data: PropTypes.object.isRequired,
|
|
288
289
|
config: PropTypes.object.isRequired,
|
|
289
|
-
onReady: PropTypes.func
|
|
290
|
+
onReady: PropTypes.func,
|
|
291
|
+
isSomeSubtotalTr: PropTypes.bool
|
|
290
292
|
}
|
|
291
293
|
|
|
292
294
|
Printer.defaultProps = {
|
package/src/printer/table.js
CHANGED
|
@@ -146,7 +146,8 @@ class Table extends React.Component {
|
|
|
146
146
|
name,
|
|
147
147
|
range,
|
|
148
148
|
pageIndex,
|
|
149
|
-
printerStore
|
|
149
|
+
printerStore,
|
|
150
|
+
isSomeSubtotalTr
|
|
150
151
|
} = this.props
|
|
151
152
|
|
|
152
153
|
// 数据
|
|
@@ -165,6 +166,7 @@ class Table extends React.Component {
|
|
|
165
166
|
range={range}
|
|
166
167
|
config={config}
|
|
167
168
|
printerStore={printerStore}
|
|
169
|
+
isSomeSubtotalTr={isSomeSubtotalTr}
|
|
168
170
|
/>
|
|
169
171
|
<PageSummary {...this.props} />
|
|
170
172
|
</>
|
|
@@ -179,6 +181,7 @@ class Table extends React.Component {
|
|
|
179
181
|
range={range}
|
|
180
182
|
config={config}
|
|
181
183
|
printerStore={printerStore}
|
|
184
|
+
isSomeSubtotalTr={isSomeSubtotalTr}
|
|
182
185
|
/>
|
|
183
186
|
</>
|
|
184
187
|
)
|
|
@@ -338,7 +341,8 @@ Table.propTypes = {
|
|
|
338
341
|
range: PropTypes.object.isRequired,
|
|
339
342
|
pageIndex: PropTypes.number.isRequired,
|
|
340
343
|
placeholder: PropTypes.string,
|
|
341
|
-
printerStore: PropTypes.object
|
|
344
|
+
printerStore: PropTypes.object,
|
|
345
|
+
isSomeSubtotalTr: PropTypes.bool
|
|
342
346
|
}
|
|
343
347
|
|
|
344
348
|
export default Table
|
|
@@ -7,8 +7,6 @@ import Big from 'big.js'
|
|
|
7
7
|
import { coverDigit2Uppercase, getDataKey } from '../util'
|
|
8
8
|
import { observer } from 'mobx-react'
|
|
9
9
|
import { get } from 'mobx'
|
|
10
|
-
import { Flex } from '../components'
|
|
11
|
-
|
|
12
10
|
/**
|
|
13
11
|
* 每页合计组件,分页计算后,根据range来统计每页合计数据
|
|
14
12
|
* @param props
|
|
@@ -35,7 +33,8 @@ const SubtotalTr = props => {
|
|
|
35
33
|
}
|
|
36
34
|
},
|
|
37
35
|
range,
|
|
38
|
-
printerStore
|
|
36
|
+
printerStore,
|
|
37
|
+
isSomeSubtotalTr
|
|
39
38
|
} = props
|
|
40
39
|
|
|
41
40
|
const tableData = printerStore.data._table[getDataKey(dataKey, arrange)] || []
|
|
@@ -73,64 +72,91 @@ const SubtotalTr = props => {
|
|
|
73
72
|
// 定义每页小记的左右两侧内容
|
|
74
73
|
let subtotalLeftContent
|
|
75
74
|
let subtotalRightContent
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
if (
|
|
85
|
-
|
|
86
|
-
subtotalRightContent = `${price}`
|
|
75
|
+
let subtotalStr = ''
|
|
76
|
+
// 结款单
|
|
77
|
+
if (isSomeSubtotalTr) {
|
|
78
|
+
for (const name in sum) {
|
|
79
|
+
const price = sum[name]
|
|
80
|
+
const priceUpperCase = get(subtotal, 'needUpperCase') // needUpperCase在初始模板中undefined,所以必须用这个方法
|
|
81
|
+
? '大写:' + coverDigit2Uppercase(price)
|
|
82
|
+
: ''
|
|
83
|
+
if (displayName) {
|
|
84
|
+
subtotalStr += `${name} ${price} ${priceUpperCase} `
|
|
87
85
|
} else {
|
|
88
|
-
|
|
89
|
-
subtotalRightContent = `${name} ${priceUpperCase}`
|
|
86
|
+
subtotalStr += `${price} ${priceUpperCase} `
|
|
90
87
|
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
return (
|
|
91
|
+
<tr>
|
|
92
|
+
<td
|
|
93
|
+
colSpan={99}
|
|
94
|
+
style={{ fontWeight: 'bold', ...style }}
|
|
95
|
+
dangerouslySetInnerHTML={{
|
|
96
|
+
__html: `${i18next.t('每页合计')}:${subtotalStr}`
|
|
97
|
+
}}
|
|
98
|
+
/>
|
|
99
|
+
</tr>
|
|
100
|
+
)
|
|
101
|
+
} else {
|
|
102
|
+
for (const name in sum) {
|
|
103
|
+
const price = sum[name]
|
|
104
|
+
const priceUpperCase = get(subtotal, 'needUpperCase') // needUpperCase在初始模板中undefined,所以必须用这个方法
|
|
105
|
+
? '大写:' + coverDigit2Uppercase(price)
|
|
106
|
+
: ''
|
|
107
|
+
if (displayName) {
|
|
108
|
+
// 大写金额是否在前
|
|
109
|
+
if (isUpperCaseBefore) {
|
|
110
|
+
subtotalLeftContent = `${name}${priceUpperCase}`
|
|
111
|
+
subtotalRightContent = `${price}`
|
|
112
|
+
} else {
|
|
113
|
+
subtotalLeftContent = `${price}`
|
|
114
|
+
subtotalRightContent = `${name} ${priceUpperCase}`
|
|
115
|
+
}
|
|
95
116
|
} else {
|
|
96
|
-
|
|
97
|
-
|
|
117
|
+
if (isUpperCaseBefore) {
|
|
118
|
+
subtotalLeftContent = `${priceUpperCase}`
|
|
119
|
+
subtotalRightContent = `${price}`
|
|
120
|
+
} else {
|
|
121
|
+
subtotalLeftContent = `${price}`
|
|
122
|
+
subtotalRightContent = `${priceUpperCase}`
|
|
123
|
+
}
|
|
98
124
|
}
|
|
99
125
|
}
|
|
100
|
-
}
|
|
101
126
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
>
|
|
111
|
-
{/* 大写金额和小写金额分开在表格的两侧,通过控制类名实现,添加类名后,覆盖原来的居中、靠右靠左 */}
|
|
112
|
-
<div
|
|
113
|
-
className={
|
|
114
|
-
isUpperLowerCaseSeparate
|
|
115
|
-
? 'gm-printer-subtotal-UpperLowerCaseSeparate-outer'
|
|
116
|
-
: ''
|
|
117
|
-
}
|
|
127
|
+
return (
|
|
128
|
+
<tr>
|
|
129
|
+
<td
|
|
130
|
+
colSpan={99}
|
|
131
|
+
style={{ fontWeight: 'bold', ...style }}
|
|
132
|
+
// dangerouslySetInnerHTML={{
|
|
133
|
+
// __html: `${i18next.t('每页合计')}:${subtotalStr}`
|
|
134
|
+
// }}flex-grow: 1
|
|
118
135
|
>
|
|
119
|
-
{
|
|
120
|
-
<
|
|
136
|
+
{/* 大写金额和小写金额分开在表格的两侧,通过控制类名实现,添加类名后,覆盖原来的居中、靠右靠左 */}
|
|
137
|
+
<div
|
|
121
138
|
className={
|
|
122
139
|
isUpperLowerCaseSeparate
|
|
123
|
-
? 'gm-printer-subtotal-UpperLowerCaseSeparate-
|
|
140
|
+
? 'gm-printer-subtotal-UpperLowerCaseSeparate-outer'
|
|
124
141
|
: ''
|
|
125
142
|
}
|
|
126
143
|
>
|
|
127
|
-
|
|
128
|
-
<span
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
144
|
+
{i18next.t('每页合计')}:
|
|
145
|
+
<span
|
|
146
|
+
className={
|
|
147
|
+
isUpperLowerCaseSeparate
|
|
148
|
+
? 'gm-printer-subtotal-UpperLowerCaseSeparate-inter'
|
|
149
|
+
: ''
|
|
150
|
+
}
|
|
151
|
+
>
|
|
152
|
+
<span> {subtotalLeftContent} </span>
|
|
153
|
+
<span> {subtotalRightContent} </span>
|
|
154
|
+
</span>
|
|
155
|
+
</div>
|
|
156
|
+
</td>
|
|
157
|
+
</tr>
|
|
158
|
+
)
|
|
159
|
+
}
|
|
134
160
|
} else {
|
|
135
161
|
return null
|
|
136
162
|
}
|