|
@@ -14,6 +14,7 @@ function transExpr(expr) {
|
|
}
|
|
}
|
|
|
|
|
|
$(document).ready(() => {
|
|
$(document).ready(() => {
|
|
|
|
+ let stdXmj, stdGcl, searchLedger;
|
|
autoFlashHeight();
|
|
autoFlashHeight();
|
|
// 初始化spread
|
|
// 初始化spread
|
|
const billsSpread = SpreadJsObj.createNewSpread($('#bills-spread')[0]);
|
|
const billsSpread = SpreadJsObj.createNewSpread($('#bills-spread')[0]);
|
|
@@ -23,24 +24,6 @@ $(document).ready(() => {
|
|
const posSheet = posSpread.getActiveSheet();
|
|
const posSheet = posSpread.getActiveSheet();
|
|
SpreadJsObj.initSheet(posSheet, posSpreadSetting);
|
|
SpreadJsObj.initSheet(posSheet, posSpreadSetting);
|
|
|
|
|
|
- $.subMenu({
|
|
|
|
- menu: '#sub-menu', miniMenu: '#sub-mini-menu', miniMenuList: '#mini-menu-list',
|
|
|
|
- toMenu: '#to-menu', toMiniMenu: '#to-mini-menu',
|
|
|
|
- key: 'menu.1.0.0',
|
|
|
|
- miniHint: '#sub-mini-hint', hintKey: 'menu.hint.1.0.1',
|
|
|
|
- callback: function (info) {
|
|
|
|
- if (info.mini) {
|
|
|
|
- $('.panel-title').addClass('fluid');
|
|
|
|
- $('#sub-menu').removeClass('panel-sidebar');
|
|
|
|
- } else {
|
|
|
|
- $('.panel-title').removeClass('fluid');
|
|
|
|
- $('#sub-menu').addClass('panel-sidebar');
|
|
|
|
- }
|
|
|
|
- autoFlashHeight();
|
|
|
|
- billsSpread.refresh();
|
|
|
|
- posSpread.refresh();
|
|
|
|
- }
|
|
|
|
- });
|
|
|
|
const posSearch = $.posSearch({selector: '#pos-search', searchSpread: posSpread});
|
|
const posSearch = $.posSearch({selector: '#pos-search', searchSpread: posSpread});
|
|
|
|
|
|
// 初始化 节点树结构
|
|
// 初始化 节点树结构
|
|
@@ -1332,7 +1315,6 @@ $(document).ready(() => {
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- let stdXmj, stdGcl, searchLedger;
|
|
|
|
const dealBills = new DealBills('#deal-bills-spread', {
|
|
const dealBills = new DealBills('#deal-bills-spread', {
|
|
cols: [
|
|
cols: [
|
|
{title: '清单编号', field: 'code', hAlign: 0, width: 120, formatter: '@', readOnly: true},
|
|
{title: '清单编号', field: 'code', hAlign: 0, width: 120, formatter: '@', readOnly: true},
|
|
@@ -1349,6 +1331,7 @@ $(document).ready(() => {
|
|
headerFont: '12px 微软雅黑',
|
|
headerFont: '12px 微软雅黑',
|
|
font: '12px 微软雅黑',
|
|
font: '12px 微软雅黑',
|
|
});
|
|
});
|
|
|
|
+
|
|
$.divResizer({
|
|
$.divResizer({
|
|
select: '#revise-right-spr',
|
|
select: '#revise-right-spr',
|
|
callback: function () {
|
|
callback: function () {
|
|
@@ -1362,8 +1345,47 @@ $(document).ready(() => {
|
|
if (stdGcl) {
|
|
if (stdGcl) {
|
|
stdGcl.spread.refresh();
|
|
stdGcl.spread.refresh();
|
|
}
|
|
}
|
|
|
|
+ if (dealBills) {
|
|
|
|
+ dealBills.spread.refresh();
|
|
|
|
+ }
|
|
|
|
+ if (searchLedger) {
|
|
|
|
+ searchLedger.spread.refresh();
|
|
|
|
+ }
|
|
}
|
|
}
|
|
});
|
|
});
|
|
|
|
+ $.subMenu({
|
|
|
|
+ menu: '#sub-menu', miniMenu: '#sub-mini-menu', miniMenuList: '#mini-menu-list',
|
|
|
|
+ toMenu: '#to-menu', toMiniMenu: '#to-mini-menu',
|
|
|
|
+ key: 'menu.1.0.0',
|
|
|
|
+ miniHint: '#sub-mini-hint', hintKey: 'menu.hint.1.0.1',
|
|
|
|
+ callback: function (info) {
|
|
|
|
+ if (info.mini) {
|
|
|
|
+ $('.panel-title').addClass('fluid');
|
|
|
|
+ $('#sub-menu').removeClass('panel-sidebar');
|
|
|
|
+ } else {
|
|
|
|
+ $('.panel-title').removeClass('fluid');
|
|
|
|
+ $('#sub-menu').addClass('panel-sidebar');
|
|
|
|
+ }
|
|
|
|
+ autoFlashHeight();
|
|
|
|
+ billsSpread.refresh();
|
|
|
|
+ if (posSpread) {
|
|
|
|
+ posSpread.refresh();
|
|
|
|
+ }
|
|
|
|
+ if (stdXmj) {
|
|
|
|
+ stdXmj.spread.refresh();
|
|
|
|
+ }
|
|
|
|
+ if (stdGcl) {
|
|
|
|
+ stdGcl.spread.refresh();
|
|
|
|
+ }
|
|
|
|
+ if (dealBills) {
|
|
|
|
+ dealBills.spread.refresh();
|
|
|
|
+ }
|
|
|
|
+ if (searchLedger) {
|
|
|
|
+ searchLedger.spread.refresh();
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
const showSideTools = function (show) {
|
|
const showSideTools = function (show) {
|
|
const left = $('#left-view'), right = $('#right-view'), parent = left.parent();
|
|
const left = $('#left-view'), right = $('#right-view'), parent = left.parent();
|
|
if (show) {
|
|
if (show) {
|