|
|
@@ -53,7 +53,7 @@ const checkOption = {
|
|
|
};
|
|
|
|
|
|
$(document).ready(() => {
|
|
|
- let stdXmj, stdGcl, searchLedger;
|
|
|
+ let stdXmj, stdGcl, searchLedger, posDisplay;
|
|
|
let changeGclData = false;
|
|
|
autoFlashHeight();
|
|
|
billsSpreadSetting.cols.unshift({ title: '变更清单', colSpan: '1', rowSpan: '2', field: 'is_change', hAlign: 1, width: 60, cellType: 'checkbox', readOnly: 'readOnly.isChangeList', });
|
|
|
@@ -3754,7 +3754,7 @@ $(document).ready(() => {
|
|
|
makeGclGatherData();
|
|
|
console.log(billsTree);
|
|
|
}, null);
|
|
|
- $.divResizer({
|
|
|
+ const mainSpr = $.divResizer({
|
|
|
select: '#revise-resize',
|
|
|
callback: function () {
|
|
|
billsSpread.refresh();
|
|
|
@@ -3763,6 +3763,25 @@ $(document).ready(() => {
|
|
|
posSpread.refresh();
|
|
|
}
|
|
|
});
|
|
|
+ const changePosDisplay = function (show, init = false) {
|
|
|
+ $('#pos-show').html(show ? '<i class="fa fa-eye-slash"></i> 隐藏计量单元' : '<i class="fa fa-eye"></i> 显示计量单元');
|
|
|
+ if (!init) {
|
|
|
+ posDisplay = show;
|
|
|
+ setLocalCache(posShowCache, show ? 1 : 0);
|
|
|
+ }
|
|
|
+ mainSpr.showSprPart(show);
|
|
|
+ billsSpread.refresh();
|
|
|
+ posSpread.refresh();
|
|
|
+ };
|
|
|
+ const reloadPosDisplayCache = function () {
|
|
|
+ posDisplay = getLocalCache(posShowCache);
|
|
|
+ posDisplay = posDisplay ? parseInt(posDisplay) : 1;
|
|
|
+ changePosDisplay(posDisplay, true);
|
|
|
+ };
|
|
|
+ reloadPosDisplayCache();
|
|
|
+ $('#pos-show').click(function() {
|
|
|
+ changePosDisplay(!posDisplay);
|
|
|
+ });
|
|
|
|
|
|
function makeGclGatherData() {
|
|
|
if (changeGclData || !gclGatherData) {
|
|
|
@@ -5938,7 +5957,6 @@ $(document).ready(() => {
|
|
|
},
|
|
|
};
|
|
|
|
|
|
-
|
|
|
$('#batch-pos').on('show.bs.modal', function (e) {
|
|
|
makeBatchPosSjsHtml();
|
|
|
});
|