爱果儿装饰爱果儿 · 方案库 192 5858 0147
爱果儿装饰 · 报价工具 v4

工程方案 报价工具

已自动保存
爱果儿装饰 · 工装报价 · 闭口合同零增项

2101项历史工序 · 14大材料分类 · 6种业态模板 · 一键生成客户报价页

1
项目信息
未填
▼
3
选择项目模板
▼

勾选业态后自动载入对应标准工序,所有项目均可编辑增删

4
报价明细
0项
▼
5
报价汇总
未算
▼
项目小计 ¥0.00
预备金 ¥0.00
设计费 (可选) ¥0.00
管理费及风险承担 ¥0.00
税费 ¥0.00
报价总计 ¥0.00
一口价(可改)
进场款
40%
¥0
木工进度款
50%
¥0
验收尾款
10%
¥0
'; var blob = new Blob(['\ufeff' + html], {type: 'application/vnd.ms-excel'}); var link = document.createElement('a'); link.href = URL.createObjectURL(blob); link.download = '\u7231\u679c\u513f\u88c5\u9970\u62a5\u4ef7\u5355_' + (document.getElementById('clientName').value || '\u9879\u76ee') + '.xls'; link.click(); } /* ===== Save / Load ===== */ function saveProject() { var data = collectProjectData(); var blob = new Blob([JSON.stringify(data, null, 2)], {type: 'application/json'}); var link = document.createElement('a'); link.href = URL.createObjectURL(blob); link.download = '\u7231\u679c\u513f\u62a5\u4ef7_' + (data.clientName || '\u9879\u76ee') + '_' + new Date().toISOString().slice(0,10) + '.json'; link.click(); saveRecentProject(data); showSaveIndicator(); } function loadProject(event) { var file = event.target.files[0]; if (!file) return; var reader = new FileReader(); reader.onload = function(e) { try { var data = JSON.parse(e.target.result); applyProjectData(data); saveRecentProject(data); } catch(err) { alert('\u52a0\u8f7d\u5931\u8d25\uff1a' + err.message); } }; reader.readAsText(file); } /* ===== NEW: Export Client Page (anti-screenshot) ===== */ function exportClientPage() { var clientName = document.getElementById('clientName').value || '\u5ba2\u6237'; var projectAddr = document.getElementById('projectAddr').value || ''; var totalArea = document.getElementById('totalArea').value || ''; var wallArea = document.getElementById('wallArea') ? document.getElementById('wallArea').value : ''; var ceilingArea = document.getElementById('ceilingArea') ? document.getElementById('ceilingArea').value : ''; var contactPerson = document.getElementById('contactPerson').value || ''; var contactPhone = document.getElementById('contactPhone').value || ''; var projectNote = document.getElementById('projectNote').value || ''; var projectType = document.getElementById('projectType') ? document.getElementById('projectType').value : ''; var quoteNo = document.getElementById('quoteNo') ? document.getElementById('quoteNo').value : ''; var quoteDate = document.getElementById('quoteDate') ? document.getElementById('quoteDate').value : ''; var quoteValidDays = document.getElementById('quoteValidDays') ? document.getElementById('quoteValidDays').value : '30'; var dateStr = quoteDate ? quoteDate : new Date().toLocaleDateString('zh-CN'); var faNo = quoteNo || ('FA-' + (Math.floor(Math.random()*9000)+1000)); // Calculate totals var subtotal = 0; var cats = {}; quoteItems.forEach(function(item) { var qty = parseFloat(item.qty) || 0; var lineTotal; if (templateType === 'simple') { var price = item.customPrice !== null ? (parseFloat(item.customPrice) || 0) : (item.price || 0); lineTotal = price * qty; } else { lineTotal = ((parseFloat(item.labor) || 0) + (parseFloat(item.mainMat) || 0) + (parseFloat(item.auxMat) || 0)) * qty; } subtotal += lineTotal; if (!cats[item.cat]) cats[item.cat] = 0; cats[item.cat] += lineTotal; }); var reservePct = parseFloat(document.getElementById('sumReservePct').value) || 0; var designPct = parseFloat(document.getElementById('sumDesignPct').value) || 0; var managePct = parseFloat(document.getElementById('sumManagePct').value) || 0; var taxRate = parseFloat(document.getElementById('sumTaxRate').value) || 0; var reserve = subtotal * reservePct / 100; var afterReserve = subtotal + reserve; var design = afterReserve * designPct / 100; var afterDesign = afterReserve + design; var manage = afterDesign * managePct / 100; var afterManage = afterDesign + manage; var tax = afterManage * taxRate; var total = afterManage + tax; var lump = parseFloat(document.getElementById('sumLumpSum').value) || total; var itemCount = quoteItems.length; var maxCat = Math.max.apply(null, Object.values(cats).concat([1])); // Watermark text var wmText = clientName + ' | ' + (contactPhone || '\u672a\u77e5') + ' | ' + dateStr; // Build quote table rows var tableRows = ''; var num = 0; var groupedCats = {}; quoteItems.forEach(function(item) { if (!groupedCats[item.cat]) groupedCats[item.cat] = []; groupedCats[item.cat].push(item); }); Object.entries(groupedCats).forEach(function(pair) { var cat = pair[0], items = pair[1]; tableRows += '' + esc(cat) + ''; items.forEach(function(item) { num++; var itemPrice, lineTotal; var qty = parseFloat(item.qty) || 0; if (templateType === 'simple') { itemPrice = item.customPrice !== null ? item.customPrice : item.price; lineTotal = (parseFloat(itemPrice) || 0) * qty; } else { itemPrice = (parseFloat(item.labor) || 0) + (parseFloat(item.mainMat) || 0) + (parseFloat(item.auxMat) || 0); lineTotal = itemPrice * qty; } tableRows += '' + '' + num + '' + '' + esc(item.name) + '
' + esc(item.content) + '
' + (item.notes ? '
\u26a0 ' + esc(item.notes) + '
' : '') + '' + '' + esc(item.unit) + '' + '' + (item.qty || '') + '' + '' + (itemPrice || '') + '' + '' + lineTotal.toFixed(2) + '' + '' + esc(item.material) + '' + ''; }); }); // Zone chart rows var zoneRows = ''; Object.entries(cats).forEach(function(pair) { var cat = pair[0], amt = pair[1]; var pct = subtotal > 0 ? (amt / subtotal * 100) : 0; var barW = maxCat > 0 ? (amt / maxCat * 100) : 0; zoneRows += '
' + '' + esc(cat) + '' + '
' + pct.toFixed(1) + '%
' + '' + amt.toFixed(0) + '' + '
'; }); // Terms list var termsHtml = CONTRACT_TERMS.map(function(t, i) { return '
  • ' + esc(t) + '
  • '; }).join(''); // Payment cards var payHtml = ''; var payLabels = ['\u8fdb\u573a\u6b3e','\u6728\u5de5\u8fdb\u5ea6\u6b3e','\u9a8c\u6536\u5c3e\u6b3e']; var payPcts = [40, 50, 10]; payPcts.forEach(function(pct, i) { payHtml += '
    ' + (i+1) + '
    ' + '

    ' + payLabels[i] + '

    ' + (lump * pct / 100).toFixed(0) + '
    ' + '' + pct + '%
    '; }); // Build full standalone HTML var h = []; h.push(''); h.push(''); h.push(''); h.push(''); h.push(''); h.push(''); h.push('' + esc(clientName) + ' - \u7231\u679c\u513f\u88c5\u9970\u5de5\u7a0b\u62a5\u4ef7\u65b9\u6848'); h.push(''); h.push(''); h.push(''); // Navbar h.push(''); // Hero h.push('
    '); h.push('
    \u7231\u679c\u513f\u88c5\u9970 · \u6e5b\u6c5f\u5de5\u88c5 · \u95ed\u53e3\u5408\u540c\u96f6\u589e\u9879
    '); h.push('

    ' + esc(clientName) + ' \u5de5\u7a0b\u62a5\u4ef7\u65b9\u6848

    '); h.push('

    ' + esc(projectAddr) + (totalArea ? ' · ' + totalArea + '\u33a1' : '') + ' · ' + itemCount + '\u9879\u660e\u7ec6 · \u5305\u5de5\u5305\u6599\u843d\u5730\u4ef7

    '); h.push('
    '); h.push('
    ' + totalArea + '\u33a1
    \u573a\u5730\u9762\u79ef
    '); h.push('
    ' + itemCount + '\u9879
    \u5de5\u7a0b\u91cf\u660e\u7ec6
    '); h.push('
    ¥' + lump.toFixed(0) + '
    \u5305\u5de5\u5305\u6599\u4e00\u53e3\u4ef7
    '); h.push('
    ' + faNo + '
    \u65b9\u6848\u7f16\u53f7
    '); h.push('
    '); h.push('
    \u62e8\u6253\u7535\u8bdd 192 5858 0147\u91cf\u623f\u4e0e\u65b9\u6848\u62a5\u4ef7\u5747\u514d\u8d39 · \u6e5b\u6c5f\u5168\u57df\u542b\u53bf\u4e61\u9547\u540c\u4ef7
    '); h.push('
    '); // Section 01: Project info h.push('
    '); h.push('
    01

    \u5de5\u7a0b\u6982\u51b5

    '); h.push('
    '); h.push('
    \u5ba2\u6237\u540d\u79f0' + esc(clientName) + '
    '); h.push('
    \u9879\u76ee\u5730\u5740' + esc(projectAddr) + '
    '); h.push('
    \u573a\u5730\u9762\u79ef' + totalArea + ' \u33a1
    '); if (wallArea) h.push('
    \u5899\u9762\u9762\u79ef' + wallArea + ' \u33a1
    '); if (ceilingArea) h.push('
    \u5929\u82b1\u9762\u79ef' + ceilingArea + ' \u33a1
    '); if (projectType) h.push('
    \u9879\u76ee\u7c7b\u578b' + esc(projectType) + '
    '); h.push('
    \u8054\u7cfb\u4eba' + esc(contactPerson) + '
    '); h.push('
    \u8054\u7cfb\u7535\u8bdd' + esc(contactPhone) + '
    '); h.push('
    \u62a5\u4ef7\u65e5\u671f' + dateStr + '
    '); h.push('
    \u62a5\u4ef7\u7f16\u53f7' + esc(faNo) + '
    '); if (quoteValidDays) h.push('
    \u6709\u6548\u671f' + quoteValidDays + ' \u5929
    '); if (projectNote) h.push('
    \u9879\u76ee\u5907\u6ce8' + esc(projectNote) + '
    '); h.push('
    '); // Section 02: Quote table h.push('
    02

    \u5de5\u7a0b\u91cf\u6e05\u5355

    '); h.push('
    '); h.push(tableRows); h.push('
    #\u9879\u76ee\u540d\u79f0\u5355\u4f4d\u6570\u91cf\u5355\u4ef7(\u5143)\u5408\u4ef7(\u5143)\u6750\u6599\u578b\u53f7
    '); h.push('
    '); h.push('
    \u9879\u76ee\u5c0f\u8ba1¥' + subtotal.toFixed(2) + '
    '); h.push('
    \u9884\u5907\u91d1(' + reservePct + '%)¥' + reserve.toFixed(2) + '
    '); if (designPct > 0) h.push('
    \u8bbe\u8ba1\u8d39(' + designPct + '%)¥' + design.toFixed(2) + '
    '); h.push('
    \u7ba1\u7406\u8d39\u53ca\u98ce\u9669\u627f\u62c5(' + managePct + '%)¥' + manage.toFixed(2) + '
    '); if (taxRate > 0) h.push('
    \u7a0e\u8d39(' + (taxRate*100) + '%)¥' + tax.toFixed(2) + '
    '); h.push('
    \u5305\u5de5\u5305\u6599\u4e00\u53e3\u4ef7¥' + lump.toFixed(0) + '
    '); h.push('
    '); // Section 03: Zone chart if (Object.keys(cats).length > 0) { h.push('
    03

    \u9020\u4ef7\u6784\u6210

    '); h.push('
    ' + zoneRows + '
    '); } // Section 04: Payment h.push('
    ' + (Object.keys(cats).length > 0 ? '04' : '03') + '

    \u7ed3\u7b97\u65b9\u5f0f

    '); h.push('
    ' + payHtml + '
    '); h.push('

    \u95ed\u53e3\u5408\u540c\u96f6\u589e\u9879\uff0c\u5305\u5de5\u5305\u6599\u843d\u5730\u4ef7\u3002\u4ed8\u6b3e\u8282\u594f\uff1a\u8fdb\u573a\u524d40%\u2192\u6728\u5de5\u8fdb\u573a\u524d50%\u2192\u9a8c\u6536\u5c3e\u6b3e10%\u3002

    '); h.push('
    '); // Section 05: Warranty h.push('
    ' + (Object.keys(cats).length > 0 ? '05' : '04') + '

    \u670d\u52a1\u4fdd\u969c

    '); h.push('
    '); h.push('
    \u269b

    2\u5e74\u57fa\u7840\u8d28\u4fdd

    \u5168\u5de5\u7a0b\u57fa\u7840\u88c5\u4fee\u9879\u76ee2\u5e74\u8d28\u4fdd\uff0c\u514d\u8d39\u4e0a\u95e8\u5904\u7406

    '); h.push('
    \u26a1

    5\u5e74\u6c34\u7535\u8d28\u4fdd

    \u6c34\u7535\u5de5\u7a0b\u53ca\u9632\u6c34\u5de5\u7a0b5\u5e74\u8d28\u4fdd\uff0c\u514d\u8d39\u4e0a\u95e8\u5904\u7406

    '); h.push('
    \u23f1

    2\u5c0f\u65f6\u552e\u540e\u54cd\u5e94

    \u91cd\u5927\u95ee\u989824\u5c0f\u65f6\u5185\u5230\u573a\u5904\u7406\uff0c\u53bf\u57ce\u4e61\u9547\u540c\u4ef7

    '); h.push('
    '); // CTA band h.push('
    \u51c6\u5907\u5f00\u59cb\u4e86\uff1f\u62e8\u6253\u7535\u8bdd\u7ea6\u770b\u5de5\u5730\u3001\u91cf\u623f\u3001\u51fa\u65b9\u6848
    \u7acb\u5373\u54a8\u8be2 \u2192
    '); // Section 06: Terms h.push('
    ' + (Object.keys(cats).length > 0 ? '06' : '05') + '

    \u901a\u7528\u6761\u6b3e

    '); h.push('
      ' + termsHtml + '
    '); h.push('
    '); h.push('
    \n ← 更多「大空间方案库」方案与面积/造价数据\n 大空间方案库 · 315 个 500㎡ 以上项目 →\n
    \n
    '); // Footer h.push(''); // Watermark layer h.push('
    '); h.push('
    \u26d4 \u672c\u62a5\u4ef7\u53d7\u7248\u6743\u4fdd\u62a4 · \u7981\u6b62\u622a\u56fe\u5f55\u5c4f
    '); // Anti-screenshot script h.push(''); h.push('(function(){'); h.push('var WM="' + esc(wmText) + '";'); // Watermark generation h.push('var layer=document.getElementById("wmLayer");if(layer){for(var i=0;i<40;i++){var s=document.createElement("span");s.className="watermark-text";s.style.left=(Math.random()*100)+"%";s.style.top=(Math.random()*100)+"%";s.textContent=WM;layer.appendChild(s)}}'); // 1. Disable right-click h.push('document.addEventListener("contextmenu",function(e){e.preventDefault();return false});'); // 2. Disable select/drag h.push('document.addEventListener("selectstart",function(e){e.preventDefault();return false});'); h.push('document.addEventListener("dragstart",function(e){e.preventDefault();return false});'); // 3. PrintScreen detection h.push('document.addEventListener("keyup",function(e){if(e.key==="PrintScreen"||e.keyCode===44){try{navigator.clipboard.writeText("\\u8be5\\u62a5\\u4ef7\\u5185\\u5bb9\\u53d7\\u7231\\u679c\\u513f\\u88c5\\u9970\\u7248\\u6743\\u4fdd\\u62a4\\uff0c\\u7981\\u6b62\\u622a\\u56fe\\u4f20\\u64ad")}catch(err){}document.body.style.filter="blur(30px)";setTimeout(function(){document.body.style.filter="none"},2000);alert("\\u68c0\\u6d4b\\u5230\\u622a\\u56fe\\u64cd\\u4f5c\\uff01\\u8be5\\u9875\\u9762\\u5185\\u5bb9\\u53d7\\u7248\\u6743\\u4fdd\\u62a4\\uff0c\\u7981\\u6b62\\u622a\\u56fe\\u4f20\\u64ad\\u3002")}});'); // 4. Window blur h.push('window.addEventListener("blur",function(){document.body.style.filter="blur(30px)"});'); h.push('window.addEventListener("focus",function(){document.body.style.filter="none"});'); h.push('document.addEventListener("visibilitychange",function(){document.body.style.filter=document.hidden?"blur(30px)":"none"});'); // 5. Block dev tools h.push('document.addEventListener("keydown",function(e){var k=e.key.toUpperCase();if(e.key==="F12"||(e.ctrlKey&&e.shiftKey&&(k==="I"||k==="J"||k==="C"))||(e.ctrlKey&&(k==="U"||k==="S"||k==="P"))){e.preventDefault();return false}});'); // 6. Intercept screen recording h.push('if(navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia){navigator.mediaDevices.getDisplayMedia=function(){document.body.style.filter="blur(30px)";alert("\\u68c0\\u6d4b\\u5230\\u5f55\\u5c4f\\u64cd\\u4f5c\\uff01\\u8be5\\u9875\\u9762\\u5185\\u5bb9\\u53d7\\u7248\\u6743\\u4fdd\\u62a4\\uff0c\\u7981\\u6b62\\u5f55\\u5c4f\\u4f20\\u64ad\\u3002");return Promise.reject(new Error("\\u7981\\u6b62\\u5f55\\u5c4f"))}}'); // Navbar scroll h.push('window.addEventListener("scroll",function(){var n=document.querySelector(".navbar");if(n)n.classList.toggle("scrolled",window.scrollY>10)},{passive:true});'); h.push('})();'); h.push('<\/script>'); h.push(''); h.push(''); var fullHtml = h.join('\n'); var blob = new Blob([fullHtml], {type: 'text/html;charset=utf-8'}); var link = document.createElement('a'); link.href = URL.createObjectURL(blob); link.download = '\u7231\u679c\u513f\u62a5\u4ef7_' + clientName + '_' + new Date().toISOString().slice(0,10) + '.html'; link.click(); } /* ===== Utility ===== */ function esc(s) { if (!s) return ''; return String(s).replace(/&/g,'&').replace(//g,'>').replace(/"/g,'"').replace(/'/g,'''); }