From fcd72db7caf64f10c287c002da1f250a2c2547c0 Mon Sep 17 00:00:00 2001 From: bawei <95887577@qq.com> Date: Thu, 2 Mar 2023 08:22:47 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=90=8C=E4=BF=AE=E6=94=B9=E4=B8=8A?= =?UTF-8?q?=E4=BC=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../model/contractfile/ContractFileModel.java | 1 + .../service/impl/ContractFileServiceImpl.java | 28 +++++++- SC-web/src/layout/classic/sidebar/Logo.vue | 2 +- .../basicInformation/contractfile/index.vue | 66 +++++++++++++++---- .../scm/basicInformation/customer/Form.vue | 9 ++- .../scm/basicInformation/vehicle/Form.vue | 2 +- 6 files changed, 89 insertions(+), 19 deletions(-) diff --git a/SC-boot/linkage-scm/src/main/java/jnpf/contractfile/model/contractfile/ContractFileModel.java b/SC-boot/linkage-scm/src/main/java/jnpf/contractfile/model/contractfile/ContractFileModel.java index 44f12451..97d46cf7 100644 --- a/SC-boot/linkage-scm/src/main/java/jnpf/contractfile/model/contractfile/ContractFileModel.java +++ b/SC-boot/linkage-scm/src/main/java/jnpf/contractfile/model/contractfile/ContractFileModel.java @@ -45,4 +45,5 @@ public class ContractFileModel { private List list; private String creatorTime; + private String code; } diff --git a/SC-boot/linkage-scm/src/main/java/jnpf/contractfile/service/impl/ContractFileServiceImpl.java b/SC-boot/linkage-scm/src/main/java/jnpf/contractfile/service/impl/ContractFileServiceImpl.java index 4cc4bc64..cf548ba1 100644 --- a/SC-boot/linkage-scm/src/main/java/jnpf/contractfile/service/impl/ContractFileServiceImpl.java +++ b/SC-boot/linkage-scm/src/main/java/jnpf/contractfile/service/impl/ContractFileServiceImpl.java @@ -7,7 +7,9 @@ import jnpf.contractfile.model.contractfile.ContractfileImportVO; import jnpf.contractfile.service.*; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import cn.hutool.core.util.ObjectUtil; -import jnpf.entity.EmployeeEntity; +import jnpf.customer.mapper.CustomerVMapper; +import jnpf.customer.entity.CustomerEntity; + import jnpf.model.EmployeeModel; import jnpf.model.employee.EmployeeImportVO; import jnpf.permission.model.authorize.AuthorizeConditionModel; @@ -22,6 +24,8 @@ import java.lang.reflect.Field; import com.baomidou.mybatisplus.annotation.TableField; +import jnpf.supplier.entity.SupplierEntity; +import jnpf.supplier.mapper.SupplierMapper; import org.springframework.stereotype.Service; import com.baomidou.mybatisplus.core.metadata.IPage; import org.springframework.beans.factory.annotation.Autowired; @@ -55,6 +59,12 @@ public class ContractFileServiceImpl extends ServiceImpl getList(ContractFilePagination contractFilePagination) { @@ -340,8 +350,24 @@ public class ContractFileServiceImpl extends ServiceImpl queryWrappers = new QueryWrapper(); + queryWrappers.eq("supplier_name",model.getName()); + List list = supplierMapper.selectList(queryWrappers); + if (list.size()>0){ + model.setCode(list.get(0).getId()); + } + } } else if (model.getContractType().equals("销售合同")) { model.setContractType("1"); + if (model.getName()!=null){ + QueryWrapper queryWrappers = new QueryWrapper(); + queryWrappers.eq("supplier_nm",model.getName()); + List list = customerMapper.selectList(queryWrappers); + if (list.size()>0){ + model.setCode(list.get(0).getId()); + } + } } } if (model.getClassification() != null) { diff --git a/SC-web/src/layout/classic/sidebar/Logo.vue b/SC-web/src/layout/classic/sidebar/Logo.vue index e0c39c80..3dfe979a 100644 --- a/SC-web/src/layout/classic/sidebar/Logo.vue +++ b/SC-web/src/layout/classic/sidebar/Logo.vue @@ -20,7 +20,7 @@ - + diff --git a/SC-web/src/views/scm/basicInformation/contractfile/index.vue b/SC-web/src/views/scm/basicInformation/contractfile/index.vue index 548f48ac..c611d78a 100644 --- a/SC-web/src/views/scm/basicInformation/contractfile/index.vue +++ b/SC-web/src/views/scm/basicInformation/contractfile/index.vue @@ -25,14 +25,16 @@
- 新增 - + 新增 + 导出 - - + + 导入 + +
@@ -54,7 +56,13 @@ {{ scope.row.contractType | dynamicText(contractTypeOptions) }} - + + + + + @@ -98,10 +106,15 @@ + + +