From 0004cee5fbb846c71c682dfce66567f1e1a26da2 Mon Sep 17 00:00:00 2001 From: "XI_TENG\\xixi_" <971623072> Date: Fri, 14 Jun 2024 14:33:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E8=B4=A6=E5=8D=95=E6=B1=87=E6=80=BB?= =?UTF-8?q?=E5=92=8C=E6=89=80=E6=9C=89=E6=9F=A5=E8=AF=A2=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../mapper/scm/CwaccountvoucherMapper.xml | 12 +- .../jnpf/entity/CwaccountvoucherEntity.java | 2 + .../src/views/extend/cwaccount/form.vue | 57 +- .../src/views/extend/cwaccount/index.vue | 15 +- .../views/extend/cwpaymentreceipt/index.vue | 1012 +++++++++-------- .../src/views/extend/cwsettlement/index.vue | 33 +- .../views/extend/paymentapplication/index.vue | 1005 ++++++++-------- .../src/views/scm/finance/cwcost/index.vue | 15 +- .../purchaseCenter/deliveryOrder/index.vue | 12 +- .../purchaseCenter/deliveryVoucher/index.vue | 15 +- .../purchaseCenter/purchaseOrder/index.vue | 15 +- .../scm/purchaseCenter/receiptOrder/index.vue | 12 +- .../purchaseCenter/receiptVoucher/index.vue | 15 +- .../purchaseCenter/returnCargoOrder/index.vue | 12 +- .../scm/saleCenter/deliveryOrder/index.vue | 13 +- .../scm/saleCenter/deliveryVoucher/index.vue | 14 +- .../scm/saleCenter/receiptOrder/index.vue | 12 +- .../scm/saleCenter/receiptVoucher/index.vue | 15 +- .../scm/saleCenter/redeliveryOrder/index.vue | 11 +- .../scm/saleCenter/returnCargoOrder/index.vue | 13 +- .../views/scm/saleCenter/saleOrder/index.vue | 13 +- .../warehousinginspection/index.vue | 11 +- .../src/views/scm/workorder/index.vue | 16 +- 23 files changed, 1196 insertions(+), 1154 deletions(-) diff --git a/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/CwaccountvoucherMapper.xml b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/CwaccountvoucherMapper.xml index 3d5ec63d..c3f55d0b 100644 --- a/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/CwaccountvoucherMapper.xml +++ b/jnpf-java-boot/jnpf-admin/src/main/resources/mapper/scm/CwaccountvoucherMapper.xml @@ -164,7 +164,8 @@ IFNULL(j.price_rate,0) contractPrice, f.unit settlementUnit, k.name productName, - IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice + IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice, + c.business_order_id businessOrderId from jg_warehousing_storage_poundlist a LEFT JOIN jg_warehousing_storage b on a.warehousing_storage_id = b.id LEFT JOIN jg_voucher c on a.voucher_id = c.id @@ -208,7 +209,8 @@ IFNULL(j.price_rate,0) contractPrice, f.unit settlementUnit, k.name productName, - IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice + IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice, + c.business_order_id businessOrderId from jg_warehousing_storage_poundlist a LEFT JOIN jg_warehousing_storage b on a.warehousing_storage_id = b.id LEFT JOIN jg_voucher c on a.voucher_id = c.id @@ -295,7 +297,8 @@ IFNULL(j.price_rate,0) contractPrice, f.unit settlementUnit, k.name productName, - IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice + IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice, + c.business_order_id businessOrderId from jg_warehousing_outbound_poundlist a LEFT JOIN jg_warehousing_outbound b on a.warehousing_outbound_id = b.id LEFT JOIN jg_voucher c on a.voucher_id = c.id @@ -382,7 +385,8 @@ IFNULL(j.price_rate,0) contractPrice, f.unit settlementUnit, k.name productName, - IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice + IFNULL(ROUND(c.sale_amount / f.net_weight, 6),0) settlementPrice, + c.business_order_id businessOrderId from jg_warehousing_outbound_poundlist a LEFT JOIN jg_warehousing_outbound b on a.warehousing_outbound_id = b.id LEFT JOIN jg_voucher c on a.voucher_id = c.id diff --git a/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/entity/CwaccountvoucherEntity.java b/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/entity/CwaccountvoucherEntity.java index e4c08557..91ca9b4b 100644 --- a/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/entity/CwaccountvoucherEntity.java +++ b/jnpf-java-boot/jnpf-scm/jnpf-scm-entity/src/main/java/jnpf/entity/CwaccountvoucherEntity.java @@ -126,4 +126,6 @@ public class CwaccountvoucherEntity { private String departmentId; @TableField("ORGANIZE_JSON_ID") private String organizeJsonId; + @TableField(exist = false) + private String businessOrderId; } diff --git a/jnpf-java-boot/jnpf-web/src/views/extend/cwaccount/form.vue b/jnpf-java-boot/jnpf-web/src/views/extend/cwaccount/form.vue index 8baa7674..61071e7b 100644 --- a/jnpf-java-boot/jnpf-web/src/views/extend/cwaccount/form.vue +++ b/jnpf-java-boot/jnpf-web/src/views/extend/cwaccount/form.vue @@ -1801,7 +1801,8 @@ export default { settlementTotalNoOptions: [], remark: '', remarkOptions: [], - enabledmark: undefined + enabledmark: undefined, + businessOrderId: undefined }, cwaccountsummaryList: { productId: '', @@ -2956,8 +2957,12 @@ export default { }, sameReduce(arr) { let result = arr.reduce((acc, cur) => { + // let found = acc.find((item) => { + // return item.productId === cur.productId + // }) + debugger let found = acc.find((item) => { - return item.productId === cur.productId + return item.businessOrderId === cur.businessOrderId && item.productId === cur.productId }) if (found) { found.settlementSum = this.jnpf.floatAdd(Number(found.settlementSum), Number(cur.settlementSum)).toFixed(4); @@ -2971,7 +2976,7 @@ export default { found.otherExpenses = this.jnpf.floatSub(Number(found.otherExpenses), Number(cur.otherExpenses)).toFixed(2); } } else { - acc.push({ productId: cur.productId, productName: cur.productName, spec: cur.spec, rate: cur.rate, settlementSum: cur.settlementSum, settlementTotal: cur.settlementTotal, settlementUnit: cur.unit, settlementPrice: cur.settlementPrice, settlementSubtotal: cur.settlementSubtotal, settlementPriceNo: cur.settlementPriceNo, settlementSubtotalNo: cur.settlementSubtotalNo, otherType: cur.otherType, otherExpenses: cur.otherExpenses, settlementTotal: cur.settlementTotal, settlementTotalNo: cur.settlementTotalNo }) + acc.push({ productId: cur.productId, productName: cur.productName, spec: cur.spec, rate: cur.rate, settlementSum: cur.settlementSum, settlementTotal: cur.settlementTotal, settlementUnit: cur.unit, settlementPrice: cur.settlementPrice, settlementSubtotal: cur.settlementSubtotal, settlementPriceNo: cur.settlementPriceNo, settlementSubtotalNo: cur.settlementSubtotalNo, otherType: cur.otherType, otherExpenses: cur.otherExpenses, settlementTotal: cur.settlementTotal, settlementTotalNo: cur.settlementTotalNo, businessOrderId: cur.businessOrderId }) } return acc }, []) @@ -2986,32 +2991,32 @@ export default { }) return } - debugger - var data = JSON.parse(JSON.stringify(this.dataForm.cwaccountstorageList)) - var order = this.dataForm.cwaccountstorageList[0].orderCode - console.log(order); - var dataProduct = JSON.parse(JSON.stringify(this.dataForm.cwaccountvoucherList)) - var productid = this.dataForm.cwaccountvoucherList[0].productId + // var data = JSON.parse(JSON.stringify(this.dataForm.cwaccountstorageList)) + // var order = this.dataForm.cwaccountstorageList[0].orderCode + // console.log(order); + // var dataProduct = JSON.parse(JSON.stringify(this.dataForm.cwaccountvoucherList)) + // var productid = this.dataForm.cwaccountvoucherList[0].productId + // data.forEach(item => { + // dataProduct.forEach(item1 => { + // // const flag = this.dataForm.cwaccountstorageList.find(e => e.orderCode == order) + // // if (item.orderCode == order && item1.productId == productid) { + // if (item.orderCode == order) { + // this.dataForm.cwaccountsummaryList = this.sameReduce(this.dataForm.cwaccountvoucherList); + // } else { + // this.dataForm.cwaccountsummaryList = this.dataForm.cwaccountvoucherList; + // return + // } + // }) + // }) - data.forEach(item => { - dataProduct.forEach(item1 => { - debugger - // const flag = this.dataForm.cwaccountstorageList.find(e => e.orderCode == order) - if (item.orderCode == order && item1.productId == productid) { - this.dataForm.cwaccountsummaryList = this.sameReduce(this.dataForm.cwaccountvoucherList); - } else { - this.dataForm.cwaccountsummaryList = this.dataForm.cwaccountvoucherList; - return - } - }) + this.dataForm.cwaccountsummaryList = this.sameReduce(this.dataForm.cwaccountvoucherList); + this.dataForm.cwaccountsummaryList.forEach(item => { + item.settlementPrice = this.jnpf.floatDiv(item.settlementSubtotal, item.settlementSum); + item.settlementPriceNo = this.jnpf.floatDiv(item.settlementSubtotalNo, item.settlementSum); + console.log(item.settlementPriceNo + "111"); }) - // this.dataForm.cwaccountsummaryList = this.sameReduce(this.dataForm.cwaccountvoucherList); - // this.dataForm.cwaccountsummaryList.forEach(item => { - // item.settlementPrice = this.jnpf.floatDiv(item.settlementSubtotal, item.settlementSum); - // item.settlementPriceNo = this.jnpf.floatDiv(item.settlementSubtotalNo, item.settlementSum); - // console.log(item.settlementPriceNo + "111"); - // }) + // console.log(this.dataForm.cwaccountsummaryList + "111"); /* let item = { productId: undefined, diff --git a/jnpf-java-boot/jnpf-web/src/views/extend/cwaccount/index.vue b/jnpf-java-boot/jnpf-web/src/views/extend/cwaccount/index.vue index 06bf070c..802fe93c 100644 --- a/jnpf-java-boot/jnpf-web/src/views/extend/cwaccount/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/extend/cwaccount/index.vue @@ -3,6 +3,13 @@
+ + + + + + @@ -28,13 +35,7 @@ - - - - - - + 查询 diff --git a/jnpf-java-boot/jnpf-web/src/views/extend/cwpaymentreceipt/index.vue b/jnpf-java-boot/jnpf-web/src/views/extend/cwpaymentreceipt/index.vue index 7211a995..1987b6ff 100644 --- a/jnpf-java-boot/jnpf-web/src/views/extend/cwpaymentreceipt/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/extend/cwpaymentreceipt/index.vue @@ -3,6 +3,13 @@
+ + + + + + @@ -10,17 +17,12 @@ - + - - - - - - + @@ -37,7 +39,8 @@ 查询 重置 - + 展开 @@ -52,7 +55,8 @@
- 导出 + 导出
@@ -61,12 +65,13 @@ @click="openSuperQuery()" /> - +
- + - +
- - - + -
{{item.fullName}} +
{{item.fullName}}
- - + +
diff --git a/jnpf-java-boot/jnpf-web/src/views/extend/cwsettlement/index.vue b/jnpf-java-boot/jnpf-web/src/views/extend/cwsettlement/index.vue index 1616df09..08e2372a 100644 --- a/jnpf-java-boot/jnpf-web/src/views/extend/cwsettlement/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/extend/cwsettlement/index.vue @@ -3,6 +3,13 @@
+ + + + + + @@ -21,13 +28,7 @@ - - - - - - + 查询 @@ -86,13 +87,19 @@ diff --git a/jnpf-java-boot/jnpf-web/src/views/extend/paymentapplication/index.vue b/jnpf-java-boot/jnpf-web/src/views/extend/paymentapplication/index.vue index efd487c0..253844fa 100644 --- a/jnpf-java-boot/jnpf-web/src/views/extend/paymentapplication/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/extend/paymentapplication/index.vue @@ -3,6 +3,13 @@
+ + + + + + @@ -18,13 +25,6 @@ - - - - - - 查询 @@ -36,7 +36,8 @@
- 新增 + 新增
@@ -45,11 +46,13 @@ @click="openSuperQuery()" /> - +
- + - +
- - - + -
{{item.fullName}} +
{{item.fullName}}
- + - - + +
diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/finance/cwcost/index.vue b/jnpf-java-boot/jnpf-web/src/views/scm/finance/cwcost/index.vue index fc29351f..87a94bd2 100644 --- a/jnpf-java-boot/jnpf-web/src/views/scm/finance/cwcost/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/scm/finance/cwcost/index.vue @@ -3,6 +3,13 @@
+ + + + + + @@ -14,13 +21,7 @@ " clearable multiple /> - - - - - - + + + + + + @@ -15,12 +21,6 @@ --> - - - - - 查询 diff --git a/jnpf-java-boot/jnpf-web/src/views/scm/purchaseCenter/deliveryVoucher/index.vue b/jnpf-java-boot/jnpf-web/src/views/scm/purchaseCenter/deliveryVoucher/index.vue index ceeae4e1..e1e6347d 100644 --- a/jnpf-java-boot/jnpf-web/src/views/scm/purchaseCenter/deliveryVoucher/index.vue +++ b/jnpf-java-boot/jnpf-web/src/views/scm/purchaseCenter/deliveryVoucher/index.vue @@ -3,6 +3,13 @@
+ + + + + + @@ -15,13 +22,7 @@ - - - - - - +