diff --git a/SC-boot/linkage-scm/src/main/java/jnpf/invoices/controller/InvoicesController.java b/SC-boot/linkage-scm/src/main/java/jnpf/invoices/controller/InvoicesController.java index c1dc3bb1..88e11ff4 100644 --- a/SC-boot/linkage-scm/src/main/java/jnpf/invoices/controller/InvoicesController.java +++ b/SC-boot/linkage-scm/src/main/java/jnpf/invoices/controller/InvoicesController.java @@ -425,8 +425,8 @@ public class InvoicesController { //更新采购订单状态 PurchaseorderEntity purchaseorderEntity = purchaseorderService.getById(entity.getPurchaseorderId()); purchaseorderEntity.setStatus("1");//开票中 - purchaseorderEntity.setInvoiceAmount(entity.getInvoiceAmount()); - purchaseorderEntity.setInvoiceNum(entity.getInvoiceQuantity()); + purchaseorderEntity.setInvoiceAmount(subentity.getInvoiceAmount()); + purchaseorderEntity.setInvoiceNum(subentity.getInvoiceQuantity()); purchaseorderService.updateById(purchaseorderEntity); List jg_purchaseorder_item0List = purchaseorderitemService.GetPurchaseorder_item0List(entity.getPurchaseorderId()); for (Purchaseorder_item0Entity purchaseorder_item0Entity: jg_purchaseorder_item0List) { diff --git a/SC-boot/linkage-scm/src/main/java/jnpf/payment/controller/PaymentController.java b/SC-boot/linkage-scm/src/main/java/jnpf/payment/controller/PaymentController.java index ac6f604e..8a3c773c 100644 --- a/SC-boot/linkage-scm/src/main/java/jnpf/payment/controller/PaymentController.java +++ b/SC-boot/linkage-scm/src/main/java/jnpf/payment/controller/PaymentController.java @@ -206,14 +206,21 @@ public class PaymentController { UserInfo userInfo=userProvider.get(); paymentCrForm.setDocumentno(generaterSwapUtil.getBillNumber("payment", false)); PaymentEntity entity = JsonUtil.getJsonToBean(paymentCrForm, PaymentEntity.class); - entity.setId(mainId); - paymentService.save(entity); - List Payment_item0List = JsonUtil.getJsonToList(paymentCrForm.getPayment_item0List(),Payment_item0Entity.class); - for(Payment_item0Entity entitys : Payment_item0List){ - entitys.setId(RandomUtil.uuId()); - entitys.setPaymentId(entity.getId()); - payment_item0Service.save(entitys); - } + entity.setId(mainId); + paymentService.save(entity); + QueryWrapper paymentdocEntityWrapper = new QueryWrapper<>(); + paymentdocEntityWrapper.lambda().eq(PaymentdocEntity::getDocumentNo, entity.getPaymentno()); + List list = paymentdocService.list(paymentdocEntityWrapper); + for (PaymentdocEntity paymentdocEntity: list) { + paymentdocEntity.setDocStatus("3");//已付款 + paymentdocService.updateById(paymentdocEntity); + } + List Payment_item0List = JsonUtil.getJsonToList(paymentCrForm.getPayment_item0List(),Payment_item0Entity.class); + for(Payment_item0Entity entitys : Payment_item0List){ + entitys.setId(RandomUtil.uuId()); + entitys.setPaymentId(entity.getId()); + payment_item0Service.save(entitys); + } diff --git a/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/entity/PoundlistEntity.java b/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/entity/PoundlistEntity.java index cc1faf1c..2937460e 100644 --- a/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/entity/PoundlistEntity.java +++ b/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/entity/PoundlistEntity.java @@ -186,4 +186,24 @@ public class PoundlistEntity { @TableField("IS_EXPENSE") private String isExpense; + @TableField(exist = false) + private String materialName; + + @TableField(exist = false) + private String customerName; + + @TableField(exist = false) + private String salesName; + + @TableField(exist = false) + private String vehicleName; + + @TableField(exist = false) + private String businessName; + + @TableField(exist = false) + private String naturalName; + + @TableField(exist = false) + private String purchaseName; } diff --git a/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/mapper/PoundlistMapper.java b/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/mapper/PoundlistMapper.java index 122ca508..8b6b754d 100644 --- a/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/mapper/PoundlistMapper.java +++ b/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/mapper/PoundlistMapper.java @@ -1,8 +1,11 @@ package jnpf.poundlist.mapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import jnpf.poundlist.entity.PoundlistEntity; import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import org.apache.ibatis.annotations.Param; /** * @@ -14,4 +17,5 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper; */ public interface PoundlistMapper extends BaseMapper { + IPage queryByKeyword(@Param("page") Page page, @Param("keyword") String keyword); } diff --git a/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/model/poundlist/PoundlistListVO.java b/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/model/poundlist/PoundlistListVO.java index d1771c8f..8fe8530e 100644 --- a/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/model/poundlist/PoundlistListVO.java +++ b/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/model/poundlist/PoundlistListVO.java @@ -176,4 +176,10 @@ public class PoundlistListVO{ /** 采购单格 **/ @JsonProperty("supplierId") private String supplierId; + + @JsonProperty("vehicleName") + private String vehicleName; + + @JsonProperty("naturalName") + private String naturalName; } \ No newline at end of file diff --git a/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/service/impl/PoundlistServiceImpl.java b/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/service/impl/PoundlistServiceImpl.java index 780a65b9..22109a63 100644 --- a/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/service/impl/PoundlistServiceImpl.java +++ b/SC-boot/linkage-scm/src/main/java/jnpf/poundlist/service/impl/PoundlistServiceImpl.java @@ -18,10 +18,8 @@ import com.baomidou.mybatisplus.annotation.TableField; import java.util.stream.Collectors; - - - - +import jnpf.vehicle.entity.VehicleEntity; +import jnpf.vehicle.service.VehicleService; import org.springframework.stereotype.Service; import com.baomidou.mybatisplus.core.metadata.IPage; import org.springframework.beans.factory.annotation.Autowired; @@ -49,8 +47,10 @@ public class PoundlistServiceImpl extends ServiceImpl poundlistQueryWrapper=new QueryWrapper<>(); poundlistQueryWrapper.lambda().eq(PoundlistEntity::getIsExamine,"1"); -// poundlistQueryWrapper.lambda().eq(PoundlistEntity::getSalesStatus,"99"); boolean pcPermission = false; boolean appPermission = false; boolean isPc = ServletUtil.getHeader("jnpf-origin").equals("pc"); @@ -77,19 +76,11 @@ public class PoundlistServiceImpl extends ServiceImpl(); - } else { - poundlistQueryWrapper = (QueryWrapper)poundlistObj; - poundlistNum++; - } - - - } - } + /*if(!isPc){ + Page page=new Page<>(poundlistPagination.getCurrentPage(), poundlistPagination.getPageSize()); + IPage poundlistEntityIPage = poundlistMapper.queryByKeyword(page, poundlistPagination.getKeyword()); + return poundlistPagination.setData(poundlistEntityIPage.getRecords(),poundlistEntityIPage.getTotal()); + }*/ if(StringUtil.isNotEmpty(poundlistPagination.getPoundDate())){ poundlistNum++; List PoundDateList = poundlistPagination.getPoundDate(); @@ -105,7 +96,6 @@ public class PoundlistServiceImpl extends ServiceImpl0){ poundlistQueryWrapper.lambda().in(PoundlistEntity::getId, AllIdList); } diff --git a/SC-boot/linkage-scm/src/main/resources/PoundlistMapper.xml b/SC-boot/linkage-scm/src/main/resources/PoundlistMapper.xml deleted file mode 100644 index c6191a5c..00000000 --- a/SC-boot/linkage-scm/src/main/resources/PoundlistMapper.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/SC-boot/linkage-scm/src/main/resources/mapper/PoundlistMapper.xml b/SC-boot/linkage-scm/src/main/resources/mapper/PoundlistMapper.xml new file mode 100644 index 00000000..e5965619 --- /dev/null +++ b/SC-boot/linkage-scm/src/main/resources/mapper/PoundlistMapper.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + diff --git a/SC-web/src/views/scm/basicInformation/invoices/Detail.vue b/SC-web/src/views/scm/basicInformation/invoices/Detail.vue index 4483105a..834e4aba 100644 --- a/SC-web/src/views/scm/basicInformation/invoices/Detail.vue +++ b/SC-web/src/views/scm/basicInformation/invoices/Detail.vue @@ -1,298 +1,642 @@ diff --git a/SC-web/src/views/scm/basicInformation/invoices/Form.vue b/SC-web/src/views/scm/basicInformation/invoices/Form.vue index a5a69a24..39a142ac 100644 --- a/SC-web/src/views/scm/basicInformation/invoices/Form.vue +++ b/SC-web/src/views/scm/basicInformation/invoices/Form.vue @@ -155,12 +155,12 @@ - + diff --git a/SC-web/src/views/scm/basicInformation/paymentdoc/index.vue b/SC-web/src/views/scm/basicInformation/paymentdoc/index.vue index 415cf521..e9d1dfad 100644 --- a/SC-web/src/views/scm/basicInformation/paymentdoc/index.vue +++ b/SC-web/src/views/scm/basicInformation/paymentdoc/index.vue @@ -29,23 +29,24 @@ - - + + + - + - + - + @@ -56,7 +57,7 @@ - + @@ -83,7 +84,7 @@ 详情 付款 + @click="fukuanHandle(scope.row.id,scope.row.flowState, scope.row.docStatus)">付款 @@ -342,17 +343,27 @@ }) }).catch(() => {}); }, - fukuanHandle(id, flowState){ + fukuanHandle(id, flowState, docStatus){ if(flowState == 2){ - this.formVisible = true - this.$nextTick(() => { - request({ - url: '/api/paymentdoc/Paymentdoc/' + id, - method: 'get' - }).then(res => { - this.$refs.JNPFForm.init(res.data) - }) - }) + if(docStatus == 0){ + this.formVisible = true + this.$nextTick(() => { + request({ + url: '/api/paymentdoc/Paymentdoc/' + id, + method: 'get' + }).then(res => { + this.$refs.JNPFForm.init(res.data) + }) + }) + }else{ + this.$message({ + type: 'error', + message: '该订单已付款', + duration: 1000 + }); + return + } + }else{ this.$message({ type: 'error', diff --git a/SC-web/src/views/scm/basicInformation/poundlist/index.vue b/SC-web/src/views/scm/basicInformation/poundlist/index.vue index cee8c1c9..8b78d8c5 100644 --- a/SC-web/src/views/scm/basicInformation/poundlist/index.vue +++ b/SC-web/src/views/scm/basicInformation/poundlist/index.vue @@ -28,7 +28,7 @@ 生成采购 - 生成销售 + 生成销售
@@ -42,13 +42,12 @@ - - - - - - - + + + + + + - + diff --git a/SC-web/src/views/scm/basicInformation/reportforms/ExportBox.vue b/SC-web/src/views/scm/basicInformation/reportforms/ExportBox.vue new file mode 100644 index 00000000..e61a2182 --- /dev/null +++ b/SC-web/src/views/scm/basicInformation/reportforms/ExportBox.vue @@ -0,0 +1,68 @@ + + + + \ No newline at end of file diff --git a/SC-web/src/views/scm/basicInformation/reportforms/cashAdvanceBusiness.vue b/SC-web/src/views/scm/basicInformation/reportforms/cashAdvanceBusiness.vue new file mode 100644 index 00000000..635144b4 --- /dev/null +++ b/SC-web/src/views/scm/basicInformation/reportforms/cashAdvanceBusiness.vue @@ -0,0 +1,241 @@ + + + + \ No newline at end of file diff --git a/SC-web/src/views/scm/basicInformation/reportforms/contractExeAccount.vue b/SC-web/src/views/scm/basicInformation/reportforms/contractExeAccount.vue new file mode 100644 index 00000000..8de46701 --- /dev/null +++ b/SC-web/src/views/scm/basicInformation/reportforms/contractExeAccount.vue @@ -0,0 +1,253 @@ + + + + \ No newline at end of file diff --git a/SC-web/src/views/scm/basicInformation/reportforms/fundOccupationM.vue b/SC-web/src/views/scm/basicInformation/reportforms/fundOccupationM.vue new file mode 100644 index 00000000..ba92486b --- /dev/null +++ b/SC-web/src/views/scm/basicInformation/reportforms/fundOccupationM.vue @@ -0,0 +1,237 @@ + + + + \ No newline at end of file diff --git a/SC-web/src/views/scm/basicInformation/reportforms/purchaseSalesStatistics.vue b/SC-web/src/views/scm/basicInformation/reportforms/purchaseSalesStatistics.vue new file mode 100644 index 00000000..e6b45267 --- /dev/null +++ b/SC-web/src/views/scm/basicInformation/reportforms/purchaseSalesStatistics.vue @@ -0,0 +1,236 @@ + + + + \ No newline at end of file diff --git a/SC-web/src/views/scm/basicInformation/reportforms/receivables.vue b/SC-web/src/views/scm/basicInformation/reportforms/receivables.vue new file mode 100644 index 00000000..93e56f85 --- /dev/null +++ b/SC-web/src/views/scm/basicInformation/reportforms/receivables.vue @@ -0,0 +1,236 @@ + + + + \ No newline at end of file diff --git a/SC-web/src/views/scm/basicInformation/reportforms/tradeGrossProfit.vue b/SC-web/src/views/scm/basicInformation/reportforms/tradeGrossProfit.vue new file mode 100644 index 00000000..19d59d4c --- /dev/null +++ b/SC-web/src/views/scm/basicInformation/reportforms/tradeGrossProfit.vue @@ -0,0 +1,241 @@ + + + + \ No newline at end of file diff --git a/SC-web/src/views/scm/basicInformation/tradeupload/Detail.vue b/SC-web/src/views/scm/basicInformation/tradeupload/Detail.vue index e552740d..a4c9ed97 100644 --- a/SC-web/src/views/scm/basicInformation/tradeupload/Detail.vue +++ b/SC-web/src/views/scm/basicInformation/tradeupload/Detail.vue @@ -1,226 +1,762 @@ + diff --git a/SC-web/src/views/scm/basicInformation/tradeupload/Form2.vue b/SC-web/src/views/scm/basicInformation/tradeupload/Form2.vue index 46f981cb..f767b672 100644 --- a/SC-web/src/views/scm/basicInformation/tradeupload/Form2.vue +++ b/SC-web/src/views/scm/basicInformation/tradeupload/Form2.vue @@ -1,6 +1,6 @@