gm-printer 10.15.6-beta.0 → 10.16.0-beta.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 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","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/editor_add_field.js":"48","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/counter.js":"49","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/common_context_menu.js":"50"},{"size":7813,"mtime":1648799098282,"results":"51","hashOfConfig":"52"},{"size":291,"mtime":1638935573926,"results":"53","hashOfConfig":"54"},{"size":523,"mtime":1638935549030,"results":"55","hashOfConfig":"54"},{"size":1139,"mtime":1644572548725,"results":"56","hashOfConfig":"57"},{"size":2293,"mtime":1638948548042,"results":"58","hashOfConfig":"54"},{"size":2292,"mtime":1638948522492,"results":"59","hashOfConfig":"54"},{"size":1078,"mtime":1638948543271,"results":"60","hashOfConfig":"54"},{"size":2067,"mtime":1648466228565,"results":"61","hashOfConfig":"52"},{"size":2991,"mtime":1638948535719,"results":"62","hashOfConfig":"54"},{"size":4379,"mtime":1638935458586,"results":"63","hashOfConfig":"54"},{"size":2428,"mtime":1648466380496,"results":"64","hashOfConfig":"52"},{"size":2955,"mtime":1647850650993,"results":"65","hashOfConfig":"57"},{"size":5165,"mtime":1664160957314,"results":"66","hashOfConfig":"67"},{"size":2833,"mtime":1638861837310,"results":"68","hashOfConfig":"54"},{"size":4212,"mtime":1638935746667,"results":"69","hashOfConfig":"54"},{"size":861,"mtime":1638931446915,"results":"70","hashOfConfig":"54"},{"size":178,"mtime":1638931439249,"results":"71","hashOfConfig":"54"},{"size":3272,"mtime":1648713847909,"results":"72","hashOfConfig":"52"},{"size":42217,"mtime":1670988134370,"results":"73","hashOfConfig":"67"},{"size":4898,"mtime":1639992402586,"results":"74","hashOfConfig":"54"},{"size":18730,"mtime":1657507507231,"results":"75","hashOfConfig":"67"},{"size":15155,"mtime":1657626470824,"results":"76","hashOfConfig":"67"},{"size":2165,"mtime":1638949854481,"results":"77","hashOfConfig":"54"},{"size":2165,"mtime":1638949840121,"results":"78","hashOfConfig":"54"},{"size":2223,"mtime":1638949823846,"results":"79","hashOfConfig":"54"},{"size":2356,"mtime":1650083974574,"results":"80","hashOfConfig":"52"},{"size":3367,"mtime":1638949855771,"results":"81","hashOfConfig":"54"},{"size":2305,"mtime":1638949843817,"results":"82","hashOfConfig":"54"},{"size":3294,"mtime":1638949855131,"results":"83","hashOfConfig":"54"},{"size":2850,"mtime":1638949842017,"results":"84","hashOfConfig":"54"},{"size":4157,"mtime":1638949853726,"results":"85","hashOfConfig":"54"},{"size":605,"mtime":1638949882777,"results":"86","hashOfConfig":"54"},{"size":1175,"mtime":1638949720500,"results":"87","hashOfConfig":"54"},{"size":18215,"mtime":1670988134370,"results":"88","hashOfConfig":"67"},{"size":332,"mtime":1644573509040,"results":"89","hashOfConfig":"57"},{"size":4080,"mtime":1648536160221,"results":"90","hashOfConfig":"52"},{"size":8842,"mtime":1646363892377,"results":"91","hashOfConfig":"57"},{"size":4317,"mtime":1646376602197,"results":"92","hashOfConfig":"57"},{"size":9440,"mtime":1644993553716,"results":"93","hashOfConfig":"57"},{"size":724,"mtime":1644808940649,"results":"94","hashOfConfig":"57"},{"size":1717,"mtime":1648466368772,"results":"95","hashOfConfig":"52"},{"size":5563,"mtime":1658392065200,"results":"96","hashOfConfig":"67"},{"size":11556,"mtime":1659499018321,"results":"97","hashOfConfig":"67"},{"size":9001,"mtime":1648713828033,"results":"98","hashOfConfig":"52"},{"size":3152,"mtime":1648713745966},{"size":1901,"mtime":1650082399244,"results":"99","hashOfConfig":"52"},{"size":600,"mtime":1657507507231,"results":"100","hashOfConfig":"67"},{"size":1945,"mtime":1657624830918,"results":"101","hashOfConfig":"67"},{"size":2009,"mtime":1659343100368,"results":"102","hashOfConfig":"67"},{"size":9861,"mtime":1659343100367,"results":"103","hashOfConfig":"67"},{"filePath":"104","messages":"105","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1h9xfdh",{"filePath":"106","messages":"107","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"jpc0be",{"filePath":"108","messages":"109","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"110","messages":"111","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1qaimc",{"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":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"su5mnm",{"filePath":"130","messages":"131","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"132","messages":"133","errorCount":2,"warningCount":0,"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":1,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"176","messages":"177","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"178","messages":"179","errorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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},{"filePath":"194","messages":"195","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"196","messages":"197","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"198","messages":"199","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"200","messages":"201","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",["202","203"],"/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",["204","205","206","207","208"],"/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",["209"],"/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",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/counter.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/common_context_menu.js",[],{"ruleId":"210","severity":2,"message":"211","line":10,"column":29,"nodeType":"212","endLine":10,"endColumn":35},{"ruleId":"210","severity":2,"message":"213","line":145,"column":63,"nodeType":"212","endLine":145,"endColumn":71},{"ruleId":"214","severity":1,"message":"215","line":315,"column":13,"nodeType":"216","endLine":315,"endColumn":49},{"ruleId":"214","severity":1,"message":"215","line":333,"column":13,"nodeType":"216","endLine":333,"endColumn":56},{"ruleId":"214","severity":1,"message":"215","line":490,"column":15,"nodeType":"216","endLine":490,"endColumn":53},{"ruleId":"214","severity":1,"message":"215","line":539,"column":11,"nodeType":"216","endLine":539,"endColumn":53},{"ruleId":"217","severity":2,"message":"218","line":588,"column":22,"nodeType":"219","messageId":"220","endLine":588,"endColumn":31},{"ruleId":"217","severity":2,"message":"218","line":120,"column":14,"nodeType":"219","messageId":"220","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","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/counter.js":"49","/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/common_context_menu.js":"50","/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/table_diy_overallOrder_tr.js":"51"},{"size":7813,"mtime":1648799098282,"results":"52","hashOfConfig":"53"},{"size":291,"mtime":1638935573926,"results":"54","hashOfConfig":"55"},{"size":523,"mtime":1638935549030,"results":"56","hashOfConfig":"55"},{"size":1139,"mtime":1644572548725,"results":"57","hashOfConfig":"58"},{"size":2293,"mtime":1638948548042,"results":"59","hashOfConfig":"55"},{"size":2292,"mtime":1638948522492,"results":"60","hashOfConfig":"55"},{"size":1078,"mtime":1638948543271,"results":"61","hashOfConfig":"55"},{"size":2067,"mtime":1648466228565,"results":"62","hashOfConfig":"53"},{"size":2991,"mtime":1638948535719,"results":"63","hashOfConfig":"55"},{"size":4379,"mtime":1638935458586,"results":"64","hashOfConfig":"55"},{"size":2428,"mtime":1648466380496,"results":"65","hashOfConfig":"53"},{"size":2955,"mtime":1647850650993,"results":"66","hashOfConfig":"58"},{"size":5660,"mtime":1695026529575,"results":"67","hashOfConfig":"68"},{"size":2833,"mtime":1638861837310,"results":"69","hashOfConfig":"55"},{"size":4212,"mtime":1638935746667,"results":"70","hashOfConfig":"55"},{"size":861,"mtime":1638931446915,"results":"71","hashOfConfig":"55"},{"size":178,"mtime":1638931439249,"results":"72","hashOfConfig":"55"},{"size":3272,"mtime":1648713847909,"results":"73","hashOfConfig":"53"},{"size":46636,"mtime":1695028084459,"results":"74","hashOfConfig":"68"},{"size":4898,"mtime":1639992402586,"results":"75","hashOfConfig":"55"},{"size":21854,"mtime":1695028069713,"results":"76","hashOfConfig":"68"},{"size":15155,"mtime":1657626470824,"results":"77","hashOfConfig":"78"},{"size":2165,"mtime":1638949854481,"results":"79","hashOfConfig":"55"},{"size":2165,"mtime":1638949840121,"results":"80","hashOfConfig":"55"},{"size":2223,"mtime":1638949823846,"results":"81","hashOfConfig":"55"},{"size":2356,"mtime":1650083974574,"results":"82","hashOfConfig":"53"},{"size":3367,"mtime":1638949855771,"results":"83","hashOfConfig":"55"},{"size":2305,"mtime":1638949843817,"results":"84","hashOfConfig":"55"},{"size":3294,"mtime":1638949855131,"results":"85","hashOfConfig":"55"},{"size":2850,"mtime":1638949842017,"results":"86","hashOfConfig":"55"},{"size":4157,"mtime":1638949853726,"results":"87","hashOfConfig":"55"},{"size":605,"mtime":1638949882777,"results":"88","hashOfConfig":"55"},{"size":1175,"mtime":1638949720500,"results":"89","hashOfConfig":"55"},{"size":18215,"mtime":1670988134370,"results":"90","hashOfConfig":"78"},{"size":332,"mtime":1644573509040,"results":"91","hashOfConfig":"58"},{"size":4080,"mtime":1648536160221,"results":"92","hashOfConfig":"53"},{"size":8842,"mtime":1646363892377,"results":"93","hashOfConfig":"58"},{"size":4317,"mtime":1646376602197,"results":"94","hashOfConfig":"58"},{"size":9440,"mtime":1644993553716,"results":"95","hashOfConfig":"58"},{"size":724,"mtime":1644808940649,"results":"96","hashOfConfig":"58"},{"size":1717,"mtime":1648466368772,"results":"97","hashOfConfig":"53"},{"size":5563,"mtime":1658392065200,"results":"98","hashOfConfig":"78"},{"size":10376,"mtime":1695025236432,"results":"99","hashOfConfig":"68"},{"size":9001,"mtime":1648713828033,"results":"100","hashOfConfig":"53"},{"size":3152,"mtime":1648713745966},{"size":1901,"mtime":1650082399244,"results":"101","hashOfConfig":"53"},{"size":600,"mtime":1657507507231,"results":"102","hashOfConfig":"78"},{"size":1945,"mtime":1657624830918,"results":"103","hashOfConfig":"78"},{"size":2009,"mtime":1659343100368,"results":"104","hashOfConfig":"78"},{"size":9861,"mtime":1659343100367,"results":"105","hashOfConfig":"78"},{"size":2513,"mtime":1695028123275,"results":"106","hashOfConfig":"68"},{"filePath":"107","messages":"108","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1h9xfdh",{"filePath":"109","messages":"110","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"jpc0be",{"filePath":"111","messages":"112","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"113","messages":"114","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1qaimc",{"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":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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},"yfiwrq",{"filePath":"133","messages":"134","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"135","messages":"136","errorCount":2,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"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":1,"warningCount":4,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"149","messages":"150","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"su5mnm",{"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":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"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},{"filePath":"167","messages":"168","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"169","messages":"170","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"171","messages":"172","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"173","messages":"174","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"175","messages":"176","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"177","messages":"178","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"179","messages":"180","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"181","messages":"182","errorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},{"filePath":"183","messages":"184","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"185","messages":"186","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"187","messages":"188","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"189","messages":"190","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"191","messages":"192","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"193","messages":"194","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"195","messages":"196","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"197","messages":"198","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"199","messages":"200","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"201","messages":"202","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"203","messages":"204","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"205","messages":"206","errorCount":1,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0,"source":null},"/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",["207","208"],"/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",["209","210","211","212","213"],"/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",["214"],"/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",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/counter.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/common/common_context_menu.js",[],"/Users/min/Documents/GMFE/gm-util/gm-printer/src/printer/table_diy_overallOrder_tr.js",["215"],{"ruleId":"216","severity":2,"message":"217","line":10,"column":29,"nodeType":"218","endLine":10,"endColumn":35},{"ruleId":"216","severity":2,"message":"219","line":145,"column":63,"nodeType":"218","endLine":145,"endColumn":71},{"ruleId":"220","severity":1,"message":"221","line":344,"column":13,"nodeType":"222","endLine":344,"endColumn":49},{"ruleId":"220","severity":1,"message":"221","line":362,"column":13,"nodeType":"222","endLine":362,"endColumn":56},{"ruleId":"220","severity":1,"message":"221","line":519,"column":15,"nodeType":"222","endLine":519,"endColumn":53},{"ruleId":"220","severity":1,"message":"221","line":568,"column":11,"nodeType":"222","endLine":568,"endColumn":53},{"ruleId":"223","severity":2,"message":"224","line":669,"column":22,"nodeType":"225","messageId":"226","endLine":669,"endColumn":31},{"ruleId":"223","severity":2,"message":"224","line":120,"column":14,"nodeType":"225","messageId":"226","endLine":120,"endColumn":23},{"ruleId":"227","severity":2,"message":"228","line":13,"column":5,"nodeType":"218","endLine":13,"endColumn":11},"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","no-unused-vars","'config' is assigned a value but never used."]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gm-printer",
3
- "version": "10.15.6-beta.0",
3
+ "version": "10.16.0-beta.0",
4
4
  "description": "diy printer",
5
5
  "main": "src/index.js",
6
6
  "scripts": {
@@ -112,4 +112,4 @@
112
112
  "dependencies": {
113
113
  "qrcode.react": "^0.9.2"
114
114
  }
115
- }
115
+ }
@@ -82,6 +82,11 @@ class EditorField extends React.Component {
82
82
  editStore.setOverallOrderStyle(value)
83
83
  }
84
84
 
85
+ handleDiyOverallOrderStyleChange = value => {
86
+ const { editStore } = this.props
87
+ editStore.setDiyOverallOrderStyle(value)
88
+ }
89
+
85
90
  renderBlocks() {
86
91
  const { editStore, showNewDate } = this.props
87
92
  const { type, text, style, link } = editStore.computedSelectedInfo
@@ -193,7 +198,8 @@ class EditorField extends React.Component {
193
198
  const {
194
199
  specialConfig,
195
200
  subtotal,
196
- overallOrder
201
+ overallOrder,
202
+ diyOverallOrder
197
203
  } = editStore.computedTableSpecialConfig
198
204
 
199
205
  // 小计样式,specialConfig可能是undefined
@@ -254,7 +260,30 @@ class EditorField extends React.Component {
254
260
  (editStore.computedTableSpecialConfig?.overallOrder &&
255
261
  get(overallOrder, 'isCustomCells')) ||
256
262
  false
263
+ // 自定义整单合计样式
264
+ const diyOverallOrderStyle =
265
+ (diyOverallOrder && diyOverallOrder?.fields[0].style) || {}
266
+
267
+ // 自定义整单合计是否大写
268
+ const diyOverallOrderNeedUpperCase =
269
+ (editStore.computedTableSpecialConfig?.diyOverallOrder &&
270
+ get(diyOverallOrder, 'needUpperCase')) ||
271
+ false
272
+ // 自定义整单合计大写的金额是否在前
273
+ const diyOverallOrderCaseBefore =
274
+ (editStore.computedTableSpecialConfig?.diyOverallOrder &&
275
+ get(diyOverallOrder, 'isUpperCaseBefore')) ||
276
+ false
277
+ // 自定义整单合计大写和小写的金额是否分开
278
+ const diyOverallOrderUpperLowerCaseSeparate =
279
+ (editStore.computedTableSpecialConfig?.diyOverallOrder &&
280
+ get(diyOverallOrder, 'isUpperLowerCaseSeparate')) ||
281
+ false
282
+ // 自定义整单合计内容
257
283
 
284
+ const diyOverallOrderValueField =
285
+ editStore.computedTableSpecialConfig?.diyOverallOrder?.fields?.[0]
286
+ .valueField
258
287
  return (
259
288
  <div>
260
289
  <Title title={i18next.t('编辑字段')} />
@@ -539,6 +568,64 @@ class EditorField extends React.Component {
539
568
  onChange={editStore.setOverallOrderFields}
540
569
  style={{ width: '65px', margin: '5px 0 5px 80px' }}
541
570
  />
571
+ {/* 自定义整单合计 */}
572
+ <Flex>
573
+ <Flex>{i18next.t('自定义整单合计')}:</Flex>
574
+ <div>
575
+ <Fonter
576
+ style={diyOverallOrderStyle}
577
+ onChange={this.handleOverallOrderStyleChange}
578
+ />
579
+ <Separator />
580
+ <TextAlign
581
+ style={overallOrderStyle}
582
+ onChange={this.handleOverallOrderStyleChange}
583
+ />
584
+ <EditorSubtotalCheck
585
+ subtotalCheckDisabled
586
+ subtotalChecked={diyOverallOrderNeedUpperCase}
587
+ subtotalCheckOnChange={editStore.setDiyOverallOrderUpperCase}
588
+ subtotalCheckText='显示大写金额'
589
+ marginLeft
590
+ />
591
+ <EditorSubtotalCheck
592
+ subtotalCheckDisabled={diyOverallOrderNeedUpperCase}
593
+ subtotalChecked={diyOverallOrderCaseBefore}
594
+ subtotalCheckOnChange={
595
+ editStore.setDiyOverallOrderUpperCaseBefore
596
+ }
597
+ subtotalCheckText='大写金额在前'
598
+ marginLeft
599
+ />
600
+ <EditorSubtotalCheck
601
+ subtotalCheckDisabled={diyOverallOrderNeedUpperCase}
602
+ subtotalChecked={diyOverallOrderUpperLowerCaseSeparate}
603
+ subtotalCheckOnChange={
604
+ editStore.setDiyOverallOrderUpperLowerCaseSeparate
605
+ }
606
+ subtotalCheckText='大、小写金额分左右两边展示'
607
+ marginLeft
608
+ />
609
+ <Flex>
610
+ <Flex alignCenter>文案修改:</Flex>
611
+ <Text
612
+ value={
613
+ diyOverallOrder && diyOverallOrder?.fields?.[0]
614
+ ? diyOverallOrder.fields[0].name
615
+ : ''
616
+ }
617
+ onChange={editStore.setDiyOverallOrderFields}
618
+ style={{ width: '100px', margin: '5px 0 5px 0px' }}
619
+ />
620
+ </Flex>
621
+ <Textarea
622
+ value={diyOverallOrderValueField}
623
+ placeholder={i18next.t('请输入要整单合计字段')}
624
+ onChange={value => editStore.setDiyOverallOrderValueField(value)}
625
+ />
626
+ <TipInfo text={i18next.t('不支持双栏和三栏模式')} />
627
+ </div>
628
+ </Flex>
542
629
  </div>
543
630
  )
544
631
  }
@@ -572,11 +659,17 @@ class EditorSubtotalCheck extends React.Component {
572
659
  subtotalCheckDisabled,
573
660
  subtotalChecked,
574
661
  subtotalCheckOnChange,
575
- subtotalCheckText
662
+ subtotalCheckText,
663
+ marginLeft
576
664
  } = this.props
577
665
 
578
666
  return (
579
- <Flex style={{ margin: '5px 0 5px 62px' }}>
667
+ <Flex
668
+ style={{
669
+ margin: '5px 0 5px 62px',
670
+ marginLeft: marginLeft ? '0' : '62px'
671
+ }}
672
+ >
580
673
  <Flex alignCenter>
581
674
  <input
582
675
  type='checkbox'
@@ -595,7 +688,8 @@ EditorSubtotalCheck.propTypes = {
595
688
  subtotalCheckDisabled: PropTypes.bool,
596
689
  subtotalChecked: PropTypes.bool,
597
690
  subtotalCheckOnChange: PropTypes.func,
598
- subtotalCheckText: PropTypes.string
691
+ subtotalCheckText: PropTypes.string,
692
+ marginLeft: PropTypes.string
599
693
  }
600
694
 
601
695
  export default EditorField
@@ -652,6 +652,38 @@ class EditorStore {
652
652
  this.config = toJS(this.config)
653
653
  }
654
654
 
655
+ @action
656
+ setDiyOverallOrderShow(name) {
657
+ const arr = name.split('.')
658
+ const table = this.config.contents[arr[2]]
659
+ this.overallOrderShow = !this.overallOrderShow
660
+ // const colSpanLength = getColSpanLength(table)
661
+ if (table.diyOverallOrder) {
662
+ set(table.diyOverallOrder, {
663
+ show: !table.diyOverallOrder.show
664
+ })
665
+ // table.overallOrder.fields[0].colSpan =
666
+ // colSpanLength - (table.overallOrder.fields?.[1]?.colSpan ?? 0)
667
+ } else {
668
+ // 兼容已经存在的配送单据,他们的配置存在后端的,没有overallOrder这个配置,给加上
669
+ set(table, {
670
+ diyOverallOrder: {
671
+ show: true,
672
+ fields: [
673
+ {
674
+ name: '自定义整单合计:',
675
+ valueField: '{{出库金额}}',
676
+ style: {
677
+ fontWeight: 'bold'
678
+ }
679
+ }
680
+ ]
681
+ }
682
+ })
683
+ }
684
+ this.config = toJS(this.config)
685
+ }
686
+
655
687
  @action
656
688
  setConfigTable(who, value) {
657
689
  if (!this.computedIsSelectTable) {
@@ -664,7 +696,12 @@ class EditorStore {
664
696
  @action
665
697
  changeTableDataKey(name, key) {
666
698
  const arr = name.split('.')
667
- const { dataKey, overallOrder, subtotal } = this.config.contents[arr[2]]
699
+ const {
700
+ dataKey,
701
+ overallOrder,
702
+ subtotal,
703
+ diyOverallOrder
704
+ } = this.config.contents[arr[2]]
668
705
  const keyArr = dataKey.split('_')
669
706
  let newDataKey
670
707
  // 当前有这个key则去掉
@@ -692,6 +729,8 @@ class EditorStore {
692
729
  if (overallOrder?.show) overallOrder.show = false
693
730
  // 每页合计不显示
694
731
  if (subtotal?.show) subtotal.show = false
732
+ // 自定义每页合计不显示
733
+ if (diyOverallOrder?.show) diyOverallOrder.show = false
695
734
  }
696
735
 
697
736
  @action
@@ -1440,6 +1479,121 @@ class EditorStore {
1440
1479
  }
1441
1480
  }
1442
1481
 
1482
+ // 自定义整单合计样式设置
1483
+ @action.bound
1484
+ setDiyOverallOrderStyle(value) {
1485
+ if (this.selectedRegion) {
1486
+ const flexStyle = {
1487
+ left: 'flex-start',
1488
+ center: 'center',
1489
+ right: 'flex-end'
1490
+ }
1491
+ const arr = this.selectedRegion.split('.')
1492
+ const diyOverallOrderConfigFields = this.config.contents[arr[2]]
1493
+ ?.diyOverallOrder.fields
1494
+ _.forEach(diyOverallOrderConfigFields, item => {
1495
+ const oldStyle = item.style || {}
1496
+ set(item, {
1497
+ style: {
1498
+ ...oldStyle,
1499
+ ...value,
1500
+ // 整单合计里使用的flex布局,textAlign不生效
1501
+ 'justify-content': flexStyle[value.textAlign]
1502
+ }
1503
+ })
1504
+ })
1505
+ }
1506
+ }
1507
+
1508
+ // 自定义整单合计设置大写金额
1509
+ @action.bound
1510
+ setDiyOverallOrderUpperCase() {
1511
+ if (this.selectedRegion) {
1512
+ this.overallOrderShow = !this.overallOrderShow
1513
+ const arr = this.selectedRegion.split('.')
1514
+ const diyOverallOrderConfig = this.config.contents[arr[2]]
1515
+ ?.diyOverallOrder
1516
+
1517
+ const oldNeedUpperCase = diyOverallOrderConfig?.needUpperCase
1518
+ this.config.contents[arr[2]]?.diyOverallOrder &&
1519
+ set(diyOverallOrderConfig, { needUpperCase: !oldNeedUpperCase })
1520
+ // 没有大写金额时,将大写在前和大小写分开的多选框设置为false
1521
+ if (
1522
+ this.config.contents[arr[2]]?.diyOverallOrder &&
1523
+ diyOverallOrderConfig.needUpperCase === false
1524
+ ) {
1525
+ diyOverallOrderConfig.isUpperCaseBefore &&
1526
+ set(diyOverallOrderConfig, { isUpperCaseBefore: false })
1527
+ diyOverallOrderConfig.isUpperLowerCaseSeparate &&
1528
+ set(diyOverallOrderConfig, { isUpperLowerCaseSeparate: false })
1529
+ }
1530
+ }
1531
+ }
1532
+
1533
+ // 自定义整单合计设置大写金额在前
1534
+ @action.bound
1535
+ setDiyOverallOrderUpperCaseBefore() {
1536
+ if (this.selectedRegion) {
1537
+ this.overallOrderShow = !this.overallOrderShow
1538
+ const arr = this.selectedRegion.split('.')
1539
+ const diyOverallOrderConfig = this.config.contents[arr[2]]
1540
+ ?.diyOverallOrder
1541
+
1542
+ const oldUpperCaseBefore = diyOverallOrderConfig?.isUpperCaseBefore
1543
+ this.config.contents[arr[2]]?.diyOverallOrder &&
1544
+ set(diyOverallOrderConfig, { isUpperCaseBefore: !oldUpperCaseBefore })
1545
+ }
1546
+ }
1547
+
1548
+ // 自定义整单合计设置大小写金额分开
1549
+ @action.bound
1550
+ setDiyOverallOrderUpperLowerCaseSeparate() {
1551
+ if (this.selectedRegion) {
1552
+ this.overallOrderShow = !this.overallOrderShow
1553
+ const arr = this.selectedRegion.split('.')
1554
+ const diyOverallOrderConfig = this.config.contents[arr[2]]
1555
+ ?.diyOverallOrder
1556
+
1557
+ const oldUpperLowerCaseSeparate =
1558
+ diyOverallOrderConfig.isUpperLowerCaseSeparate
1559
+ set(diyOverallOrderConfig, {
1560
+ isUpperLowerCaseSeparate: !oldUpperLowerCaseSeparate
1561
+ })
1562
+ }
1563
+ }
1564
+
1565
+ // 自定义整单合计 字段设置
1566
+ @action.bound
1567
+ setDiyOverallOrderValueField(value) {
1568
+ if (this.selectedRegion) {
1569
+ this.overallOrderShow = !this.overallOrderShow
1570
+ const arr = this.selectedRegion.split('.')
1571
+ const diyOverallOrderConfig = this.config.contents[arr[2]]
1572
+ ?.diyOverallOrder
1573
+
1574
+ const oldValueField = diyOverallOrderConfig.fields?.[0]
1575
+ set(oldValueField, {
1576
+ valueField: value
1577
+ })
1578
+ }
1579
+ }
1580
+
1581
+ // 整单合计自定义单元格文本输入
1582
+ @action.bound
1583
+ setDiyOverallOrderFields(value) {
1584
+ if (this.selectedRegion) {
1585
+ this.overallOrderShow = !this.overallOrderShow
1586
+ const arr = this.selectedRegion.split('.')
1587
+ const table = this.config.contents[arr[2]]
1588
+ const diyOverallOrderConfig = table?.diyOverallOrder
1589
+
1590
+ const oldValueField = diyOverallOrderConfig.fields?.[0]
1591
+ set(oldValueField, {
1592
+ name: value
1593
+ })
1594
+ }
1595
+ }
1596
+
1443
1597
  // 合计和每页合计设置交换位置
1444
1598
  @action.bound
1445
1599
  setSubtotalCommutationPlace() {
@@ -5,6 +5,7 @@ import CommonContextMenu from '../common/common_context_menu'
5
5
  import { inject, observer } from 'mobx-react'
6
6
  import _ from 'lodash'
7
7
  import { Printer } from '../printer'
8
+ import { isMultiTable } from '../util'
8
9
 
9
10
  const blockTypeList = [
10
11
  { value: '', text: i18next.t('插入文本') },
@@ -79,6 +80,11 @@ class ContextMenu extends React.Component {
79
80
  editStore.setOverallOrderShow(name)
80
81
  }
81
82
 
83
+ handleDiyOverallOrder = name => {
84
+ const { editStore } = this.props
85
+ editStore.setDiyOverallOrderShow(name)
86
+ }
87
+
82
88
  renderOrderActionBtn = name => {
83
89
  if (!this.hasSubtotalBtn(name)) {
84
90
  return null
@@ -96,7 +102,8 @@ class ContextMenu extends React.Component {
96
102
  const {
97
103
  dataKey,
98
104
  subtotal,
99
- overallOrder
105
+ overallOrder,
106
+ diyOverallOrder
100
107
  } = this.props.editStore.config.contents[arr[2]]
101
108
  const keyArr = dataKey.split('_')
102
109
 
@@ -105,6 +112,7 @@ class ContextMenu extends React.Component {
105
112
  const isCategoryActive = keyArr.includes('category')
106
113
  const isSubtotalActive = subtotal.show
107
114
  const isOverallOrder = overallOrder?.show
115
+ const isDiyOverallOrder = diyOverallOrder?.show
108
116
 
109
117
  return (
110
118
  <>
@@ -147,6 +155,14 @@ class ContextMenu extends React.Component {
147
155
  >
148
156
  {i18next.t('整单合计')}
149
157
  </div>
158
+ {!isMultiTable(dataKey) && (
159
+ <div
160
+ onClick={this.handleDiyOverallOrder.bind(this, name)}
161
+ className={isDiyOverallOrder ? 'active' : ''}
162
+ >
163
+ {i18next.t('自定义整单合计')}
164
+ </div>
165
+ )}
150
166
  </>
151
167
  )
152
168
  }
@@ -336,16 +336,6 @@ class Store extends EditorStore {
336
336
  textAlign: 'center'
337
337
  },
338
338
  text: i18next.t('{{列.货值}}')
339
- },
340
- {
341
- head: i18next.t('周转物数量更正'),
342
- headStyle: {
343
- textAlign: 'center'
344
- },
345
- style: {
346
- textAlign: 'center'
347
- },
348
- text: i18next.t('{{列.周转物数量更正}}')
349
339
  }
350
340
  ]
351
341
  break
@@ -17,6 +17,7 @@ import SpecialTr from './table_special_tr'
17
17
  import SubtotalTr from './table_subtotal_tr'
18
18
  import PageSummary from './page_summary'
19
19
  import OverallOrder from './table_overallOrder_tr'
20
+ import DiyOverallOrder from './table_diy_overallOrder_tr'
20
21
 
21
22
  @inject('printerStore')
22
23
  @observer
@@ -303,6 +304,12 @@ class Table extends React.Component {
303
304
  config={config}
304
305
  printerStore={printerStore}
305
306
  />
307
+ <DiyOverallOrder
308
+ range={range}
309
+ config={config}
310
+ printerStore={printerStore}
311
+ pageIndex={pageIndex}
312
+ />
306
313
  </tbody>
307
314
  </table>
308
315
  )
@@ -0,0 +1,83 @@
1
+ import React from 'react'
2
+ import PropTypes from 'prop-types'
3
+ import _ from 'lodash'
4
+ // import Big from 'big.js'
5
+ import { coverDigit2Uppercase, getDataKey } from '../util'
6
+ import { observer } from 'mobx-react'
7
+ import classNames from 'classnames'
8
+ import Big from 'big.js'
9
+
10
+ const DiyOverallOrder = props => {
11
+ const {
12
+ config: { diyOverallOrder, dataKey },
13
+ printerStore,
14
+ pageIndex
15
+ } = props
16
+ const tableData = printerStore.data._table[getDataKey(dataKey)] || []
17
+
18
+ // 计算合计
19
+ const sumData = field => {
20
+ return _.reduce(
21
+ tableData,
22
+ (a, b, i) => {
23
+ let result = a
24
+ const bRes = printerStore
25
+ .templateTable(field, dataKey, i, pageIndex)
26
+ .replace(/\(\)/g, '')
27
+ result = a.plus(+bRes || 0)
28
+ return result
29
+ },
30
+ Big(0)
31
+ ).toFixed(2)
32
+ }
33
+
34
+ return (
35
+ diyOverallOrder?.show &&
36
+ printerStore?.ready && (
37
+ <tr>
38
+ {_.map(diyOverallOrder.fields, (item, index) => {
39
+ return (
40
+ <td colSpan={item.colSpan ?? 99} key={index}>
41
+ <div style={{ ...item.style }} className='gm-flex-page'>
42
+ {item.name}
43
+ <div
44
+ className={classNames('gm-flex-page', {
45
+ 'gm-flex-justify-between-page':
46
+ diyOverallOrder?.isUpperLowerCaseSeparate,
47
+ 'gm-flex-grow-page':
48
+ diyOverallOrder?.isUpperLowerCaseSeparate
49
+ })}
50
+ >
51
+ <span
52
+ className={
53
+ diyOverallOrder?.isUpperCaseBefore
54
+ ? 'gm-printer-subtotal-isUpperCaseBefore-inter'
55
+ : ''
56
+ }
57
+ >
58
+ {sumData(item.valueField)}
59
+ </span>
60
+ {diyOverallOrder?.needUpperCase && (
61
+ <span>
62
+ {coverDigit2Uppercase(sumData(item.valueField))
63
+ ? coverDigit2Uppercase(sumData(item.valueField))
64
+ : ''}
65
+ </span>
66
+ )}
67
+ </div>
68
+ </div>
69
+ </td>
70
+ )
71
+ })}
72
+ </tr>
73
+ )
74
+ )
75
+ }
76
+ DiyOverallOrder.propTypes = {
77
+ config: PropTypes.object.isRequired,
78
+ range: PropTypes.object.isRequired,
79
+ printerStore: PropTypes.object,
80
+ pageIndex: PropTypes.number
81
+ }
82
+
83
+ export default observer(DiyOverallOrder)