|
@@ -17,7 +17,7 @@ const stageIm = (function () {
|
|
|
GCL: 'gcl',
|
|
|
TZ: 'tz'
|
|
|
};
|
|
|
- let tender, stage, imType, decimal, filter, details, changes, importChanges, detailsAtt, ImData, pre, orgImData;
|
|
|
+ let tenderInfo, stage, imType, decimal, filter, details, changes, importChanges, detailsAtt, ImData, pre, orgImData;
|
|
|
let up_field = 'unit_price';
|
|
|
const gsTreeSetting = {
|
|
|
id: 'ledger_id',
|
|
@@ -59,8 +59,8 @@ const stageIm = (function () {
|
|
|
};
|
|
|
const gsPos = new StagePosData(gsPosSetting);
|
|
|
|
|
|
- function init (t, s, i, d, f) {
|
|
|
- tender = t;
|
|
|
+ function init (ti, s, i, d, f) {
|
|
|
+ tenderInfo = ti;
|
|
|
stage = s;
|
|
|
imType = i;
|
|
|
decimal = d;
|
|
@@ -956,7 +956,7 @@ const stageIm = (function () {
|
|
|
}
|
|
|
|
|
|
function _sortImData() {
|
|
|
- const st = (['fj', 'sz'].indexOf(tender.s_type) > 0 && [imType.zl.value, imType.bw.value].indexOf(stage.im_type) >= 0)
|
|
|
+ const st = (['fj', 'sz'].indexOf(tenderInfo.s_type) > 0 && [imType.zl.value, imType.bw.value].indexOf(stage.im_type) >= 0)
|
|
|
? SortType.TZ
|
|
|
: (stage.im_type !== imType.tz.value && stage.im_type !== imType.bb.value ? SortType.GCL : SortType.TZ);
|
|
|
if (st === SortType.GCL) {
|