From 8a3e8ed5475907604673caff76a80d3648baa32b Mon Sep 17 00:00:00 2001 From: summer Date: Fri, 4 Dec 2026 03:30:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=89=93=E5=8D=B0=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=9B=9E=E5=BD=92=E6=96=AD=E8=A8=80=E4=BB=A5=E5=8C=B9?= =?UTF-8?q?=E9=85=8D=E8=87=AA=E5=8A=A8=E6=89=93=E5=8D=B0=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 新账系统/test/material-cost.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/新账系统/test/material-cost.test.js b/新账系统/test/material-cost.test.js index ac108e6..d80b8f4 100644 --- a/新账系统/test/material-cost.test.js +++ b/新账系统/test/material-cost.test.js @@ -99,6 +99,6 @@ test('HTTP内部字段保存每克料价,客户公开接口与打印页隔离 const internal=await (await call('/api/orders/'+id)).json();assert.equal(internal.lines[0].costParts.material,182654);assert.deepEqual(internal.lines[0].costMaterial,{mode:'gram',rate:91327});assert.equal(internal.profit,37346); const publicResponse=await call('/api/orders/'+id+'/public');assert.equal(publicResponse.status,200);const customer=await publicResponse.json(),json=JSON.stringify(customer); for(const key of ['costMaterial','costParts','costLabor','payer','profit','costDue'])assert.ok(!json.includes('"'+key+'"')); - const printResponse=await call('/print/'+id);assert.equal(printResponse.status,200);const html=await printResponse.text();assert.match(html,/id="confirm-document-print"/);assert.equal(html.replace(/