|
@@ -3988,37 +3988,7 @@ $(document).ready(() => {
|
|
|
});
|
|
|
|
|
|
$('#exportExcel').click(function () {
|
|
|
- const data = [];
|
|
|
- for (const node of stageTree.nodes) {
|
|
|
- data.push({
|
|
|
- code: node.code, b_code: node.b_code, name: node.name, unit: node.unit,
|
|
|
- unit_price: node.unit_price, quantity: node.quantity, total_price: node.total_price,
|
|
|
- contract_qty: node.contract_qty, contract_tp: node.contract_tp,
|
|
|
- qc_qty: node.qc_qty, qc_tp: node.qc_tp,
|
|
|
- gather_qty: node.gather_qty, gather_tp: node.gather_tp,
|
|
|
- end_contract_qty: node.end_contract_qty, end_contract_tp: node.end_contract_tp,
|
|
|
- end_qc_qty: node.end_qc_qty, end_qc_tp: node.end_qc_tp,
|
|
|
- end_gather_qty: node.end_gather_qty, end_gather_tp: node.end_gather_tp, end_gather_percent: node.end_gather_percent,
|
|
|
- deal_dgn_qty1: node.deal_dgn_qty1, deal_dgn_qty2: node.deal_dgn_qty2,
|
|
|
- c_dgn_qty1: node.c_dgn_qty1, c_dgn_qty2: node.c_dgn_qty2,
|
|
|
- final_dgn_price: node.final_dgn_price,
|
|
|
- postil: node.postil, drawing_code: node.drawing_code, memo: node.memo,
|
|
|
- });
|
|
|
- const posRange = stagePos.getLedgerPos(node.id);
|
|
|
- if (posRange && posRange.length > 0) {
|
|
|
- for (const [i, p] of posRange.entries()) {
|
|
|
- data.push({
|
|
|
- pos_code: (i + 1) + '', name: p.name,
|
|
|
- quantity: p.quantity,
|
|
|
- contract_qty: p.contract_qty, qc_qty: p.qc_qty, gather_qty: p.gather_qty,
|
|
|
- end_contract_qty: p.end_contract_qty, end_qc_qty: p.end_qc_qty, end_gather_qty: p.end_gather_qty,
|
|
|
- drawing_code: p.drawing_code, memo: p.memo
|
|
|
- });
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- SpreadExcelObj.exportSimpleXlsxSheet(exportExcelSetting, data, $('.sidebar-title').attr('data-original-title') + "计量台账.xlsx");
|
|
|
+ stageTreeSpreadObj.exportExcel($('.sidebar-title').attr('data-original-title') + "计量台账.xlsx", stageTree.children);
|
|
|
});
|
|
|
|
|
|
$('#cbr-check-all').click(function () {
|