previewAndConfirm(moduleList, orderVO)}
>
下一步
@@ -394,7 +408,7 @@ export default hocAuth(function Page(props: CommonComponent) {
type="primary"
block
size={"large"}
- onClick={generateShippingDocument}
+ onClick={() => generateShippingDocument(moduleList, orderVO)}
>
生成发货单据
diff --git a/packages/app-client/src/utils/classes/templates/PdfTemplate.ts b/packages/app-client/src/utils/classes/templates/PdfTemplate.ts
index 383ec51..c79a9ad 100644
--- a/packages/app-client/src/utils/classes/templates/PdfTemplate.ts
+++ b/packages/app-client/src/utils/classes/templates/PdfTemplate.ts
@@ -2,7 +2,6 @@ export class PdfTemplate {
private moduleList: any[];
constructor(moduleList: any[]) {
- console.log("moduleList",moduleList)
this.moduleList = moduleList;
}
@@ -577,7 +576,7 @@ export class PdfTemplate {
${config.data?.reduce(
- (acc: any, cur: any) => acc + cur.grossWeight,
+ (acc: any, cur: any) => acc + cur.netWeight,
0,
)}