|
@@ -166,8 +166,31 @@ function getDaglText(data) {
|
|
return def ? def.name : '';
|
|
return def ? def.name : '';
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
$(document).ready(() => {
|
|
$(document).ready(() => {
|
|
let detail, searchLedger, checkedChanges;
|
|
let detail, searchLedger, checkedChanges;
|
|
|
|
+ const checkOption = {
|
|
|
|
+ sibling: { enable: 0 },
|
|
|
|
+ empty_code: { enable: 0 },
|
|
|
|
+ calc: {
|
|
|
|
+ enable: 1,
|
|
|
|
+ fields: ['contract_qty', 'qc_qty'],
|
|
|
|
+ },
|
|
|
|
+ zero: { enable: 0 },
|
|
|
|
+ tp: {
|
|
|
|
+ enable: 1,
|
|
|
|
+ fields: [
|
|
|
|
+ {qty: 'contract_qty', tp: 'contract_tp'},
|
|
|
|
+ {qty: 'qc_qty', tp: 'qc_tp'},
|
|
|
|
+ ],
|
|
|
|
+ filter: function (node) {
|
|
|
|
+ return node.is_tp;
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ over: {
|
|
|
|
+ enable: 1, isTz: checkTzMeasureType(),
|
|
|
|
+ }
|
|
|
|
+ };
|
|
// 界面布局
|
|
// 界面布局
|
|
autoFlashHeight();
|
|
autoFlashHeight();
|
|
// 初始化 台账树结构 数据结构
|
|
// 初始化 台账树结构 数据结构
|
|
@@ -204,7 +227,7 @@ $(document).ready(() => {
|
|
if (node.end_contract_qty) {
|
|
if (node.end_contract_qty) {
|
|
node.end_correct_tp = ZhCalc.add(node.end_qc_tp, ZhCalc.mul(node.end_contract_qty, node.unit_price, tenderInfo.decimal.tp));
|
|
node.end_correct_tp = ZhCalc.add(node.end_qc_tp, ZhCalc.mul(node.end_contract_qty, node.unit_price, tenderInfo.decimal.tp));
|
|
} else {
|
|
} else {
|
|
- node.end_correct_tp = node.end_gather;
|
|
|
|
|
|
+ node.end_correct_tp = node.end_gather_tp;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
node.end_gather_percent = ZhCalc.mul(ZhCalc.div(node.end_gather_tp, node.end_final_tp), 100, 2);
|
|
node.end_gather_percent = ZhCalc.mul(ZhCalc.div(node.end_gather_tp, node.end_final_tp), 100, 2);
|
|
@@ -677,7 +700,7 @@ $(document).ready(() => {
|
|
selector: '#check-list',
|
|
selector: '#check-list',
|
|
relaSpread: slSpread,
|
|
relaSpread: slSpread,
|
|
storeKey: 'stage-check-' + window.location.pathname.split('/')[2] + '-' + window.location.pathname.split('/')[4],
|
|
storeKey: 'stage-check-' + window.location.pathname.split('/')[2] + '-' + window.location.pathname.split('/')[4],
|
|
- checkType: ledgerCheckType,
|
|
|
|
|
|
+ checkType: getCheckType(checkOption),
|
|
afterLocated: function () {
|
|
afterLocated: function () {
|
|
stagePosSpreadObj.loadCurPosData();
|
|
stagePosSpreadObj.loadCurPosData();
|
|
},
|
|
},
|
|
@@ -3716,28 +3739,7 @@ $(document).ready(() => {
|
|
ledgerPos: stagePos,
|
|
ledgerPos: stagePos,
|
|
checkList: checkList,
|
|
checkList: checkList,
|
|
decimal: tenderInfo.decimal,
|
|
decimal: tenderInfo.decimal,
|
|
- checkOption: {
|
|
|
|
- sibling: { enable: 0 },
|
|
|
|
- empty_code: { enable: 0 },
|
|
|
|
- calc: {
|
|
|
|
- enable: 1,
|
|
|
|
- fields: ['contract_qty', 'qc_qty'],
|
|
|
|
- },
|
|
|
|
- zero: { enable: 0 },
|
|
|
|
- tp: {
|
|
|
|
- enable: 1,
|
|
|
|
- fields: [
|
|
|
|
- {qty: 'contract_qty', tp: 'contract_tp'},
|
|
|
|
- {qty: 'qc_qty', tp: 'qc_tp'},
|
|
|
|
- ],
|
|
|
|
- filter: function (node) {
|
|
|
|
- return node.is_tp;
|
|
|
|
- }
|
|
|
|
- },
|
|
|
|
- over: {
|
|
|
|
- enable: 1, isTz: checkTzMeasureType(),
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ checkOption: checkOption,
|
|
};
|
|
};
|
|
if (!checkTzMeasureType()) {
|
|
if (!checkTzMeasureType()) {
|
|
stageCheckerSetting.checkOption.calc.fields.push('sgfh_qty', 'sjcl_qty', 'qtcl_qty', 'quantity');
|
|
stageCheckerSetting.checkOption.calc.fields.push('sgfh_qty', 'sjcl_qty', 'qtcl_qty', 'quantity');
|