gm-printer 10.14.11-alpha.0 → 10.15.1-alpha.2
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/common/component.js +17 -7
- package/src/common/editor_add_field.js +1 -0
- package/src/common/editor_customize_config.js +13 -1
- package/src/common/editor_store.js +25 -0
- package/src/editor/context_menu.js +6 -1
- package/src/printer/store.js +9 -0
- package/src/printer/table_subtotal_tr.js +1 -3
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","/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","/Users/min/Documents/GMFE/gm-util/gm-printer/src/components/flex/index.js":"45","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/table_overallOrder_tr.js":"46","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/util.js":"47"},{"size":7813,"mtime":1648799098282,"results":"48","hashOfConfig":"49"},{"size":291,"mtime":1638935573926,"results":"50","hashOfConfig":"51"},{"size":523,"mtime":1638935549030,"results":"52","hashOfConfig":"51"},{"size":1139,"mtime":1644572548725,"results":"53","hashOfConfig":"54"},{"size":2293,"mtime":1638948548042,"results":"55","hashOfConfig":"51"},{"size":2292,"mtime":1638948522492,"results":"56","hashOfConfig":"51"},{"size":1078,"mtime":1638948543271,"results":"57","hashOfConfig":"51"},{"size":2067,"mtime":1648466228565,"results":"58","hashOfConfig":"49"},{"size":2991,"mtime":1638948535719,"results":"59","hashOfConfig":"51"},{"size":4379,"mtime":1638935458586,"results":"60","hashOfConfig":"51"},{"size":2428,"mtime":1648466380496,"results":"61","hashOfConfig":"49"},{"size":2955,"mtime":1647850650993,"results":"62","hashOfConfig":"54"},{"size":4170,"mtime":1648640206253,"results":"63","hashOfConfig":"49"},{"size":2833,"mtime":1638861837310,"results":"64","hashOfConfig":"51"},{"size":4212,"mtime":1638935746667,"results":"65","hashOfConfig":"51"},{"size":861,"mtime":1638931446915,"results":"66","hashOfConfig":"51"},{"size":178,"mtime":1638931439249,"results":"67","hashOfConfig":"51"},{"size":3272,"mtime":1648713847909,"results":"68","hashOfConfig":"49"},{"size":41535,"mtime":1657506863570,"results":"69","hashOfConfig":"70"},{"size":4898,"mtime":1639992402586,"results":"71","hashOfConfig":"51"},{"size":18730,"mtime":1657273006398,"results":"72","hashOfConfig":"70"},{"size":14908,"mtime":1652855804615,"results":"73","hashOfConfig":"49"},{"size":2165,"mtime":1638949854481,"results":"74","hashOfConfig":"51"},{"size":2165,"mtime":1638949840121,"results":"75","hashOfConfig":"51"},{"size":2223,"mtime":1638949823846,"results":"76","hashOfConfig":"51"},{"size":2356,"mtime":1650083974574,"results":"77","hashOfConfig":"49"},{"size":3367,"mtime":1638949855771,"results":"78","hashOfConfig":"51"},{"size":2305,"mtime":1638949843817,"results":"79","hashOfConfig":"51"},{"size":3294,"mtime":1638949855131,"results":"80","hashOfConfig":"51"},{"size":2850,"mtime":1638949842017,"results":"81","hashOfConfig":"51"},{"size":4157,"mtime":1638949853726,"results":"82","hashOfConfig":"51"},{"size":605,"mtime":1638949882777,"results":"83","hashOfConfig":"51"},{"size":1175,"mtime":1638949720500,"results":"84","hashOfConfig":"51"},{"size":18012,"mtime":1654600080184,"results":"85","hashOfConfig":"49"},{"size":332,"mtime":1644573509040,"results":"86","hashOfConfig":"54"},{"size":4080,"mtime":1648536160221,"results":"87","hashOfConfig":"49"},{"size":8842,"mtime":1646363892377,"results":"88","hashOfConfig":"54"},{"size":4317,"mtime":1646376602197,"results":"89","hashOfConfig":"54"},{"size":9440,"mtime":1644993553716,"results":"90","hashOfConfig":"54"},{"size":724,"mtime":1644808940649,"results":"91","hashOfConfig":"54"},{"size":1717,"mtime":1648466368772,"results":"92","hashOfConfig":"49"},{"size":5582,"mtime":1657266077415,"results":"93","hashOfConfig":"70"},{"size":10150,"mtime":1653986949852,"results":"94","hashOfConfig":"49"},{"size":9001,"mtime":1648713828033,"results":"95","hashOfConfig":"49"},{"size":3152,"mtime":1648713745966},{"size":1901,"mtime":1650082399244,"results":"96","hashOfConfig":"49"},{"size":600,"mtime":1657265851639,"results":"97","hashOfConfig":"70"},{"filePath":"98","messages":"99","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1h9xfdh",{"filePath":"100","messages":"101","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"jpc0be",{"filePath":"102","messages":"103","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"104","messages":"105","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1qaimc",{"filePath":"106","messages":"107","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":2,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"su5mnm",{"filePath":"136","messages":"137","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"138","messages":"139","errorCount":1,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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},{"filePath":"180","messages":"181","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"184","messages":"185","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","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",["190","191"],"/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",["192","193","194","195","196"],"/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",["197"],"/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",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/table_overallOrder_tr.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/util.js",[],{"ruleId":"198","severity":2,"message":"199","line":10,"column":29,"nodeType":"200","endLine":10,"endColumn":35},{"ruleId":"198","severity":2,"message":"201","line":145,"column":63,"nodeType":"200","endLine":145,"endColumn":71},{"ruleId":"202","severity":1,"message":"203","line":315,"column":13,"nodeType":"204","endLine":315,"endColumn":49},{"ruleId":"202","severity":1,"message":"203","line":333,"column":13,"nodeType":"204","endLine":333,"endColumn":56},{"ruleId":"202","severity":1,"message":"203","line":490,"column":15,"nodeType":"204","endLine":490,"endColumn":53},{"ruleId":"202","severity":1,"message":"203","line":539,"column":11,"nodeType":"204","endLine":539,"endColumn":53},{"ruleId":"205","severity":2,"message":"206","line":588,"column":22,"nodeType":"207","messageId":"208","endLine":588,"endColumn":31},{"ruleId":"205","severity":2,"message":"206","line":120,"column":14,"nodeType":"207","messageId":"208","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","/Users/min/Documents/GMFE/gm-util/gm-printer/src/components/flex/index.js":"45","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/table_overallOrder_tr.js":"46","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/util.js":"47","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_add_field.js":"48"},{"size":7813,"mtime":1648799098282,"results":"49","hashOfConfig":"50"},{"size":291,"mtime":1638935573926,"results":"51","hashOfConfig":"52"},{"size":523,"mtime":1638935549030,"results":"53","hashOfConfig":"52"},{"size":1139,"mtime":1644572548725,"results":"54","hashOfConfig":"55"},{"size":2293,"mtime":1638948548042,"results":"56","hashOfConfig":"52"},{"size":2292,"mtime":1638948522492,"results":"57","hashOfConfig":"52"},{"size":1078,"mtime":1638948543271,"results":"58","hashOfConfig":"52"},{"size":2067,"mtime":1648466228565,"results":"59","hashOfConfig":"50"},{"size":2991,"mtime":1638948535719,"results":"60","hashOfConfig":"52"},{"size":4379,"mtime":1638935458586,"results":"61","hashOfConfig":"52"},{"size":2428,"mtime":1648466380496,"results":"62","hashOfConfig":"50"},{"size":2955,"mtime":1647850650993,"results":"63","hashOfConfig":"55"},{"size":4170,"mtime":1648640206253,"results":"64","hashOfConfig":"50"},{"size":2833,"mtime":1638861837310,"results":"65","hashOfConfig":"52"},{"size":4212,"mtime":1638935746667,"results":"66","hashOfConfig":"52"},{"size":861,"mtime":1638931446915,"results":"67","hashOfConfig":"52"},{"size":178,"mtime":1638931439249,"results":"68","hashOfConfig":"52"},{"size":3272,"mtime":1648713847909,"results":"69","hashOfConfig":"50"},{"size":42205,"mtime":1658215209764,"results":"70","hashOfConfig":"71"},{"size":4898,"mtime":1639992402586,"results":"72","hashOfConfig":"52"},{"size":18730,"mtime":1657507507231,"results":"73","hashOfConfig":"71"},{"size":15155,"mtime":1657626470824,"results":"74","hashOfConfig":"71"},{"size":2165,"mtime":1638949854481,"results":"75","hashOfConfig":"52"},{"size":2165,"mtime":1638949840121,"results":"76","hashOfConfig":"52"},{"size":2223,"mtime":1638949823846,"results":"77","hashOfConfig":"52"},{"size":2356,"mtime":1650083974574,"results":"78","hashOfConfig":"50"},{"size":3367,"mtime":1638949855771,"results":"79","hashOfConfig":"52"},{"size":2305,"mtime":1638949843817,"results":"80","hashOfConfig":"52"},{"size":3294,"mtime":1638949855131,"results":"81","hashOfConfig":"52"},{"size":2850,"mtime":1638949842017,"results":"82","hashOfConfig":"52"},{"size":4157,"mtime":1638949853726,"results":"83","hashOfConfig":"52"},{"size":605,"mtime":1638949882777,"results":"84","hashOfConfig":"52"},{"size":1175,"mtime":1638949720500,"results":"85","hashOfConfig":"52"},{"size":18012,"mtime":1654600080184,"results":"86","hashOfConfig":"50"},{"size":332,"mtime":1644573509040,"results":"87","hashOfConfig":"55"},{"size":4080,"mtime":1648536160221,"results":"88","hashOfConfig":"50"},{"size":8842,"mtime":1646363892377,"results":"89","hashOfConfig":"55"},{"size":4317,"mtime":1646376602197,"results":"90","hashOfConfig":"55"},{"size":9440,"mtime":1644993553716,"results":"91","hashOfConfig":"55"},{"size":724,"mtime":1644808940649,"results":"92","hashOfConfig":"55"},{"size":1717,"mtime":1648466368772,"results":"93","hashOfConfig":"50"},{"size":5521,"mtime":1658214127088,"results":"94","hashOfConfig":"71"},{"size":10150,"mtime":1653986949852,"results":"95","hashOfConfig":"50"},{"size":9001,"mtime":1648713828033,"results":"96","hashOfConfig":"50"},{"size":3152,"mtime":1648713745966},{"size":1901,"mtime":1650082399244,"results":"97","hashOfConfig":"50"},{"size":600,"mtime":1657507507231,"results":"98","hashOfConfig":"71"},{"size":1945,"mtime":1657624830918,"results":"99","hashOfConfig":"71"},{"filePath":"100","messages":"101","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1h9xfdh",{"filePath":"102","messages":"103","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"jpc0be",{"filePath":"104","messages":"105","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"106","messages":"107","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1qaimc",{"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":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":2,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"130","messages":"131","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"132","messages":"133","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"134","messages":"135","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"136","messages":"137","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"su5mnm",{"filePath":"138","messages":"139","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"140","messages":"141","errorCount":1,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"176","messages":"177","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"180","messages":"181","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"182","messages":"183","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"184","messages":"185","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"186","messages":"187","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"188","messages":"189","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"190","messages":"191","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"192","messages":"193","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",["194","195"],"/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",["196","197","198","199","200"],"/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",["201"],"/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",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/table_overallOrder_tr.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/util.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_add_field.js",[],{"ruleId":"202","severity":2,"message":"203","line":10,"column":29,"nodeType":"204","endLine":10,"endColumn":35},{"ruleId":"202","severity":2,"message":"205","line":145,"column":63,"nodeType":"204","endLine":145,"endColumn":71},{"ruleId":"206","severity":1,"message":"207","line":315,"column":13,"nodeType":"208","endLine":315,"endColumn":49},{"ruleId":"206","severity":1,"message":"207","line":333,"column":13,"nodeType":"208","endLine":333,"endColumn":56},{"ruleId":"206","severity":1,"message":"207","line":490,"column":15,"nodeType":"208","endLine":490,"endColumn":53},{"ruleId":"206","severity":1,"message":"207","line":539,"column":11,"nodeType":"208","endLine":539,"endColumn":53},{"ruleId":"209","severity":2,"message":"210","line":588,"column":22,"nodeType":"211","messageId":"212","endLine":588,"endColumn":31},{"ruleId":"209","severity":2,"message":"210","line":120,"column":14,"nodeType":"211","messageId":"212","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
package/src/common/component.js
CHANGED
|
@@ -643,16 +643,26 @@ Gap.propTypes = {
|
|
|
643
643
|
height: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
644
644
|
}
|
|
645
645
|
|
|
646
|
-
const FieldBtn = ({ name, onClick }) => (
|
|
647
|
-
|
|
648
|
-
<
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
646
|
+
const FieldBtn = ({ name, remark, onClick }) => (
|
|
647
|
+
<>
|
|
648
|
+
<Flex alignCenter={!remark} style={{ width: '50%', margin: '3px 0' }}>
|
|
649
|
+
<span className='gm-printer-edit-plus-btn' onClick={onClick}>
|
|
650
|
+
+
|
|
651
|
+
</span>
|
|
652
|
+
<Flex column>
|
|
653
|
+
<span className='gm-padding-left-5'>{name}</span>
|
|
654
|
+
{remark && (
|
|
655
|
+
<span style={{ transform: 'scale(0.8) translateX(-20px)' }}>
|
|
656
|
+
{remark}
|
|
657
|
+
</span>
|
|
658
|
+
)}
|
|
659
|
+
</Flex>
|
|
660
|
+
</Flex>
|
|
661
|
+
</>
|
|
653
662
|
)
|
|
654
663
|
FieldBtn.propTypes = {
|
|
655
664
|
name: PropTypes.string,
|
|
665
|
+
remark: PropTypes.string,
|
|
656
666
|
onClick: PropTypes.func
|
|
657
667
|
}
|
|
658
668
|
|
|
@@ -12,10 +12,15 @@ class EditorCutomizedConfig extends React.Component {
|
|
|
12
12
|
editStore.handleChangeTableData(value)
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
+
handleMultiDigitDecimal = value => {
|
|
16
|
+
const { editStore } = this.props
|
|
17
|
+
editStore.setMultiDigitDecimal(value)
|
|
18
|
+
}
|
|
19
|
+
|
|
15
20
|
render() {
|
|
16
21
|
const {
|
|
17
22
|
editStore,
|
|
18
|
-
editStore: { isAutoFilling }
|
|
23
|
+
editStore: { isAutoFilling, isMultiDigitDecimal }
|
|
19
24
|
} = this.props
|
|
20
25
|
// 是table
|
|
21
26
|
if (editStore.computedRegionIsTable) {
|
|
@@ -28,6 +33,13 @@ class EditorCutomizedConfig extends React.Component {
|
|
|
28
33
|
<Flex className='gm-padding-top-5 gm-text-red' column>
|
|
29
34
|
{i18next.t('注意:填充仅支持单栏数据使用')}
|
|
30
35
|
</Flex>
|
|
36
|
+
<Flex alignCenter className='gm-padding-top-5'>
|
|
37
|
+
<div>{i18next.t('是否开启多位小数')}:</div>
|
|
38
|
+
<Switch
|
|
39
|
+
checked={isMultiDigitDecimal}
|
|
40
|
+
onChange={this.handleMultiDigitDecimal}
|
|
41
|
+
/>
|
|
42
|
+
</Flex>
|
|
31
43
|
</>
|
|
32
44
|
)
|
|
33
45
|
} else {
|
|
@@ -50,6 +50,10 @@ class EditorStore {
|
|
|
50
50
|
@observable
|
|
51
51
|
isAutoFilling = false
|
|
52
52
|
|
|
53
|
+
/** 是否开启多位小数,默认不开启,取两位 */
|
|
54
|
+
@observable
|
|
55
|
+
isMultiDigitDecimal = false
|
|
56
|
+
|
|
53
57
|
defaultTableDataKey = 'orders'
|
|
54
58
|
|
|
55
59
|
// 默认table的dataKey
|
|
@@ -62,6 +66,25 @@ class EditorStore {
|
|
|
62
66
|
this.isAutoFilling = bol
|
|
63
67
|
}
|
|
64
68
|
|
|
69
|
+
@action
|
|
70
|
+
setSubtotalFieldsCol(arr) {
|
|
71
|
+
// this.overallOrderShow = !this.overallOrderShow
|
|
72
|
+
// 重新计算每页合计的单元格
|
|
73
|
+
const table = this.config.contents[arr[2]]
|
|
74
|
+
const subtotalLength = table.subtotal.fields.length
|
|
75
|
+
table.subtotal.fields[subtotalLength - 1].colSpan += 1
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@action
|
|
79
|
+
setMultiDigitDecimal(bool) {
|
|
80
|
+
this.isMultiDigitDecimal = bool
|
|
81
|
+
set(this.config, {
|
|
82
|
+
specialControlConfig: {
|
|
83
|
+
multiDigitDecimal: bool
|
|
84
|
+
}
|
|
85
|
+
})
|
|
86
|
+
}
|
|
87
|
+
|
|
65
88
|
@observable
|
|
66
89
|
overallOrderShow = false
|
|
67
90
|
|
|
@@ -201,6 +224,7 @@ class EditorStore {
|
|
|
201
224
|
this.insertPanel = 'header'
|
|
202
225
|
this.mockData = data
|
|
203
226
|
this.isAutoFilling = false
|
|
227
|
+
this.isMultiDigitDecimal = false
|
|
204
228
|
}
|
|
205
229
|
|
|
206
230
|
@action
|
|
@@ -784,6 +808,7 @@ class EditorStore {
|
|
|
784
808
|
|
|
785
809
|
this.clearExtraTableData(dataKey)
|
|
786
810
|
this.setAutoFillingConfig(false)
|
|
811
|
+
this.setSubtotalFieldsCol(arr)
|
|
787
812
|
}
|
|
788
813
|
}
|
|
789
814
|
|
|
@@ -26,7 +26,7 @@ class ContextMenu extends React.Component {
|
|
|
26
26
|
const {
|
|
27
27
|
editStore,
|
|
28
28
|
editStore: {
|
|
29
|
-
config: { autoFillConfig }
|
|
29
|
+
config: { autoFillConfig, specialControlConfig }
|
|
30
30
|
}
|
|
31
31
|
} = this.props
|
|
32
32
|
|
|
@@ -36,6 +36,11 @@ class ContextMenu extends React.Component {
|
|
|
36
36
|
autoFillConfig?.dataKey
|
|
37
37
|
)
|
|
38
38
|
}
|
|
39
|
+
/** 初始化特殊控制的配置 */
|
|
40
|
+
if (specialControlConfig?.multiDigitDecimal) {
|
|
41
|
+
// 多位小数
|
|
42
|
+
editStore.setMultiDigitDecimal(specialControlConfig?.multiDigitDecimal)
|
|
43
|
+
}
|
|
39
44
|
}
|
|
40
45
|
|
|
41
46
|
/**
|
package/src/printer/store.js
CHANGED
|
@@ -48,6 +48,15 @@ class PrinterStore {
|
|
|
48
48
|
@observable
|
|
49
49
|
isAutoFilling = false
|
|
50
50
|
|
|
51
|
+
/** 是否开启多位小数,默认不开启,取两位 */
|
|
52
|
+
@observable
|
|
53
|
+
isMultiDigitDecimal = false
|
|
54
|
+
|
|
55
|
+
@action
|
|
56
|
+
setMultiDigitDecimal(bool) {
|
|
57
|
+
this.isMultiDigitDecimal = bool
|
|
58
|
+
}
|
|
59
|
+
|
|
51
60
|
@action
|
|
52
61
|
init(config, data) {
|
|
53
62
|
this.ready = false
|
|
@@ -70,8 +70,6 @@ const SubtotalTr = props => {
|
|
|
70
70
|
|
|
71
71
|
const getData = field => {
|
|
72
72
|
const data = printerStore.data.common
|
|
73
|
-
console.log('list, field', field, data, data[field])
|
|
74
|
-
|
|
75
73
|
return data?.[field] ?? ''
|
|
76
74
|
}
|
|
77
75
|
// 每页小计
|
|
@@ -119,7 +117,7 @@ const SubtotalTr = props => {
|
|
|
119
117
|
<div
|
|
120
118
|
style={{
|
|
121
119
|
fontWeight: 'bold',
|
|
122
|
-
|
|
120
|
+
justifyContent: flexStyle[subtotal.style?.textAlign], // flex布局中textAlign不生效,改使用justify-content
|
|
123
121
|
...subtotal.style
|
|
124
122
|
}}
|
|
125
123
|
className='gm-flex-page'
|