|
@@ -103,21 +103,6 @@ $(document).ready(() => {
|
|
|
|
|
|
const posSearch = $.posSearch({selector: '#pos-search', searchSpread: posSpread});
|
|
|
|
|
|
- const billsTag = $.billsTag({
|
|
|
- selector: '#bills-tag',
|
|
|
- relaSpread: billsSpread,
|
|
|
- updateUrl: window.location.pathname + '/tag',
|
|
|
- afterModify: function (nodes) {
|
|
|
- SpreadJsObj.repaintNodesRowHeader(billsSpread.getActiveSheet(), nodes);
|
|
|
- },
|
|
|
- afterLocated: function () {
|
|
|
- posSpreadObj.loadCurPosData();
|
|
|
- },
|
|
|
- afterShow: function () {
|
|
|
- billsSpread.refresh();
|
|
|
- if (posSpread) posSpread.refresh();
|
|
|
- },
|
|
|
- });
|
|
|
const errorList = $.cs_errorList({
|
|
|
tabSelector: '#error-list-tab',
|
|
|
selector: '#error-list',
|
|
@@ -184,6 +169,23 @@ $(document).ready(() => {
|
|
|
// 初始化 计量单元
|
|
|
const pos = new PosData({ id: 'id', ledgerId: 'lid' });
|
|
|
|
|
|
+ const billsTag = $.billsTag({
|
|
|
+ relaTree: billsTree,
|
|
|
+ selector: '#bills-tag',
|
|
|
+ relaSpread: billsSpread,
|
|
|
+ updateUrl: window.location.pathname + '/tag',
|
|
|
+ afterModify: function (nodes) {
|
|
|
+ SpreadJsObj.repaintNodesRowHeader(billsSpread.getActiveSheet(), nodes);
|
|
|
+ },
|
|
|
+ afterLocated: function () {
|
|
|
+ posSpreadObj.loadCurPosData();
|
|
|
+ },
|
|
|
+ afterShow: function () {
|
|
|
+ billsSpread.refresh();
|
|
|
+ if (posSpread) posSpread.refresh();
|
|
|
+ },
|
|
|
+ });
|
|
|
+
|
|
|
// 清单 相关方法&绑定spreadjs事件
|
|
|
const billsTreeSpreadObj = {
|
|
|
loadExprToInput(sheet) {
|