This commit is contained in:
xd 2024-03-21 08:55:41 +08:00
parent df204b32c0
commit 26928f02b6
32 changed files with 0 additions and 4714 deletions

View File

@ -1,104 +0,0 @@
package com.ruoyi.web.controller.sapAccount;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.sapAccount.domain.SapAccount;
import com.ruoyi.sapAccount.service.ISapAccountService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 业务账户Controller
*
* @author ruoyi
* @date 2024-03-11
*/
@RestController
@RequestMapping("/sapAccount/sapAccount")
public class SapAccountController extends BaseController
{
@Autowired
private ISapAccountService sapAccountService;
/**
* 查询业务账户列表
*/
@PreAuthorize("@ss.hasPermi('sapAccount:sapAccount:list')")
@GetMapping("/list")
public TableDataInfo list(SapAccount sapAccount)
{
startPage();
List<SapAccount> list = sapAccountService.selectSapAccountList(sapAccount);
return getDataTable(list);
}
/**
* 导出业务账户列表
*/
@PreAuthorize("@ss.hasPermi('sapAccount:sapAccount:export')")
@Log(title = "业务账户", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SapAccount sapAccount)
{
List<SapAccount> list = sapAccountService.selectSapAccountList(sapAccount);
ExcelUtil<SapAccount> util = new ExcelUtil<SapAccount>(SapAccount.class);
util.exportExcel(response, list, "业务账户数据");
}
/**
* 获取业务账户详细信息
*/
@PreAuthorize("@ss.hasPermi('sapAccount:sapAccount:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id)
{
return success(sapAccountService.selectSapAccountById(id));
}
/**
* 新增业务账户
*/
@PreAuthorize("@ss.hasPermi('sapAccount:sapAccount:add')")
@Log(title = "业务账户", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SapAccount sapAccount)
{
return toAjax(sapAccountService.insertSapAccount(sapAccount));
}
/**
* 修改业务账户
*/
@PreAuthorize("@ss.hasPermi('sapAccount:sapAccount:edit')")
@Log(title = "业务账户", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SapAccount sapAccount)
{
return toAjax(sapAccountService.updateSapAccount(sapAccount));
}
/**
* 删除业务账户
*/
@PreAuthorize("@ss.hasPermi('sapAccount:sapAccount:remove')")
@Log(title = "业务账户", businessType = BusinessType.DELETE)
@DeleteMapping("/{ids}")
public AjaxResult remove(@PathVariable Long[] ids)
{
return toAjax(sapAccountService.deleteSapAccountByIds(ids));
}
}

View File

@ -1,106 +0,0 @@
package com.ruoyi.web.controller.sapCustomer;
import javax.servlet.http.HttpServletResponse;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.sapCustomer.domain.SapCustomer;
import com.ruoyi.sapCustomer.service.ISapCustomerService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.core.page.TableDataInfo;
import java.util.List;
/**
* 客户管理Controller
*
* @author ruoyi
* @date 2024-03-11
*/
@RestController
@RequestMapping("/sapCustomer/sapCustomer")
public class SapCustomerController extends BaseController
{
@Autowired
private ISapCustomerService sapCustomerService;
/**
* 查询客户管理列表
*/
@PreAuthorize("@ss.hasPermi('sapCustomer:sapCustomer:list')")
@GetMapping("/list")
public TableDataInfo list(SapCustomer sapCustomer)
{
startPage();
List<SapCustomer> list = sapCustomerService.selectSapCustomerList(sapCustomer);
return getDataTable(list);
}
/**
* 导出客户管理列表
*/
@PreAuthorize("@ss.hasPermi('sapCustomer:sapCustomer:export')")
@Log(title = "客户管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SapCustomer sapCustomer)
{
List<SapCustomer> list = sapCustomerService.selectSapCustomerList(sapCustomer);
ExcelUtil<SapCustomer> util = new ExcelUtil<SapCustomer>(SapCustomer.class);
util.exportExcel(response, list, "客户管理数据");
}
/**
* 获取客户管理详细信息
*/
@PreAuthorize("@ss.hasPermi('sapCustomer:sapCustomer:query')")
@GetMapping(value = "/{customerId}")
public AjaxResult getInfo(@PathVariable("customerId") Long customerId)
{
return success(sapCustomerService.selectSapCustomerByCustomerId(customerId));
}
/**
* 新增客户管理
*/
@PreAuthorize("@ss.hasPermi('sapCustomer:sapCustomer:add')")
@Log(title = "客户管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SapCustomer sapCustomer)
{
return toAjax(sapCustomerService.insertSapCustomer(sapCustomer));
}
/**
* 修改客户管理
*/
@PreAuthorize("@ss.hasPermi('sapCustomer:sapCustomer:edit')")
@Log(title = "客户管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SapCustomer sapCustomer)
{
return toAjax(sapCustomerService.updateSapCustomer(sapCustomer));
}
/**
* 删除客户管理
*/
@PreAuthorize("@ss.hasPermi('sapCustomer:sapCustomer:remove')")
@Log(title = "客户管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{customerIds}")
public AjaxResult remove(@PathVariable Long[] customerIds)
{
return toAjax(sapCustomerService.deleteSapCustomerByCustomerIds(customerIds));
}
}

View File

@ -1,104 +0,0 @@
package com.ruoyi.web.controller.sapMaterial;
import java.util.List;
import javax.servlet.http.HttpServletResponse;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.sapMaterial.domain.SapMaterial;
import com.ruoyi.sapMaterial.service.ISapMaterialService;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.common.core.page.TableDataInfo;
/**
* 物料管理Controller
*
* @author ruoyi
* @date 2024-03-12
*/
@RestController
@RequestMapping("/sapMaterial/sapMaterial")
public class SapMaterialController extends BaseController
{
@Autowired
private ISapMaterialService sapMaterialService;
/**
* 查询物料管理列表
*/
@PreAuthorize("@ss.hasPermi('sapMaterial:sapMaterial:list')")
@GetMapping("/list")
public TableDataInfo list(SapMaterial sapMaterial)
{
startPage();
List<SapMaterial> list = sapMaterialService.selectSapMaterialList(sapMaterial);
return getDataTable(list);
}
/**
* 导出物料管理列表
*/
@PreAuthorize("@ss.hasPermi('sapMaterial:sapMaterial:export')")
@Log(title = "物料管理", businessType = BusinessType.EXPORT)
@PostMapping("/export")
public void export(HttpServletResponse response, SapMaterial sapMaterial)
{
List<SapMaterial> list = sapMaterialService.selectSapMaterialList(sapMaterial);
ExcelUtil<SapMaterial> util = new ExcelUtil<SapMaterial>(SapMaterial.class);
util.exportExcel(response, list, "物料管理数据");
}
/**
* 获取物料管理详细信息
*/
@PreAuthorize("@ss.hasPermi('sapMaterial:sapMaterial:query')")
@GetMapping(value = "/{materialId}")
public AjaxResult getInfo(@PathVariable("materialId") Long materialId)
{
return success(sapMaterialService.selectSapMaterialByMaterialId(materialId));
}
/**
* 新增物料管理
*/
@PreAuthorize("@ss.hasPermi('sapMaterial:sapMaterial:add')")
@Log(title = "物料管理", businessType = BusinessType.INSERT)
@PostMapping
public AjaxResult add(@RequestBody SapMaterial sapMaterial)
{
return toAjax(sapMaterialService.insertSapMaterial(sapMaterial));
}
/**
* 修改物料管理
*/
@PreAuthorize("@ss.hasPermi('sapMaterial:sapMaterial:edit')")
@Log(title = "物料管理", businessType = BusinessType.UPDATE)
@PutMapping
public AjaxResult edit(@RequestBody SapMaterial sapMaterial)
{
return toAjax(sapMaterialService.updateSapMaterial(sapMaterial));
}
/**
* 删除物料管理
*/
@PreAuthorize("@ss.hasPermi('sapMaterial:sapMaterial:remove')")
@Log(title = "物料管理", businessType = BusinessType.DELETE)
@DeleteMapping("/{materialIds}")
public AjaxResult remove(@PathVariable Long[] materialIds)
{
return toAjax(sapMaterialService.deleteSapMaterialByMaterialIds(materialIds));
}
}

View File

@ -1,222 +0,0 @@
package com.ruoyi.web.webservice.contract;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlType;
/**
* <EFBFBD><EFBFBD>ͬ<EFBFBD><EFBFBD>ѯ
*
* <p>DT_OASD_HTCX_REQ complex type<EFBFBD><EFBFBD> Java <EFBFBD>
*
* <p><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ģʽƬ<EFBFBD><EFBFBD>ָ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD>Ԥ<EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ݡ<EFBFBD>
*
* <pre>
* &lt;complexType name="DT_OASD_HTCX_REQ">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;attribute name="ZUSER" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="HTQDRQ_S" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="HTQDRQ_E" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="KUNNR" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="HTBH2" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="ZYWY" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;attribute name="KBK" type="{http://www.w3.org/2001/XMLSchema}string" />
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DT_OASD_HTCX_REQ")
public class DTOASDHTCXREQ {
@XmlAttribute(name = "ZUSER")
protected String zuser;
@XmlAttribute(name = "HTQDRQ_S")
protected String htqdrqs;
@XmlAttribute(name = "HTQDRQ_E")
protected String htqdrqe;
@XmlAttribute(name = "KUNNR")
protected String kunnr;
@XmlAttribute(name = "HTBH2")
protected String htbh2;
@XmlAttribute(name = "ZYWY")
protected String zywy;
@XmlAttribute(name = "KBK")
protected String kbk;
/**
* <EFBFBD><EFBFBD>ȡzuser<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><EFBFBD>
*
* @return
* possible object is
* {@link String }
*
*/
public String getZUSER() {
return zuser;
}
/**
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>zuser<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><EFBFBD>
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setZUSER(String value) {
this.zuser = value;
}
/**
* <EFBFBD><EFBFBD>ȡhtqdrqs<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><EFBFBD>
*
* @return
* possible object is
* {@link String }
*
*/
public String getHTQDRQS() {
return htqdrqs;
}
/**
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>htqdrqs<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><EFBFBD>
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHTQDRQS(String value) {
this.htqdrqs = value;
}
/**
* <EFBFBD><EFBFBD>ȡhtqdrqe<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><EFBFBD>
*
* @return
* possible object is
* {@link String }
*
*/
public String getHTQDRQE() {
return htqdrqe;
}
/**
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>htqdrqe<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><EFBFBD>
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHTQDRQE(String value) {
this.htqdrqe = value;
}
/**
* <EFBFBD><EFBFBD>ȡkunnr<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><EFBFBD>
*
* @return
* possible object is
* {@link String }
*
*/
public String getKUNNR() {
return kunnr;
}
/**
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>kunnr<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><EFBFBD>
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKUNNR(String value) {
this.kunnr = value;
}
/**
* <EFBFBD><EFBFBD>ȡhtbh2<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><EFBFBD>
*
* @return
* possible object is
* {@link String }
*
*/
public String getHTBH2() {
return htbh2;
}
/**
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>htbh2<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><EFBFBD>
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setHTBH2(String value) {
this.htbh2 = value;
}
/**
* <EFBFBD><EFBFBD>ȡzywy<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><EFBFBD>
*
* @return
* possible object is
* {@link String }
*
*/
public String getZYWY() {
return zywy;
}
/**
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>zywy<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><EFBFBD>
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setZYWY(String value) {
this.zywy = value;
}
/**
* <EFBFBD><EFBFBD>ȡkbk<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><EFBFBD>
*
* @return
* possible object is
* {@link String }
*
*/
public String getKBK() {
return kbk;
}
/**
* <EFBFBD><EFBFBD><EFBFBD><EFBFBD>kbk<EFBFBD><EFBFBD><EFBFBD>Ե<EFBFBD>ֵ<EFBFBD><EFBFBD>
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setKBK(String value) {
this.kbk = value;
}
}

View File

@ -1,79 +0,0 @@
package com.ruoyi.web.webservice.contract;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the com.jncable.sd.htcx package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
private final static QName _MTOASDHTCXREQ_QNAME = new QName("http://jncable.com/SD/HTCX", "MT_OASD_HTCX_REQ");
private final static QName _MTOASDHTCXRESP_QNAME = new QName("http://jncable.com/SD/HTCX", "MT_OASD_HTCX_RESP");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.jncable.sd.htcx
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link DTOASDHTCXRESP }
*
*/
public DTOASDHTCXRESP createDTOASDHTCXRESP() {
return new DTOASDHTCXRESP();
}
/**
* Create an instance of {@link DTOASDHTCXREQ }
*
*/
public DTOASDHTCXREQ createDTOASDHTCXREQ() {
return new DTOASDHTCXREQ();
}
/**
* Create an instance of {@link DTOASDHTCXRESP.HTDATA }
*
*/
public DTOASDHTCXRESP.HTDATA createDTOASDHTCXRESPHTDATA() {
return new DTOASDHTCXRESP.HTDATA();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DTOASDHTCXREQ }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://jncable.com/SD/HTCX", name = "MT_OASD_HTCX_REQ")
public JAXBElement<DTOASDHTCXREQ> createMTOASDHTCXREQ(DTOASDHTCXREQ value) {
return new JAXBElement<DTOASDHTCXREQ>(_MTOASDHTCXREQ_QNAME, DTOASDHTCXREQ.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link DTOASDHTCXRESP }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://jncable.com/SD/HTCX", name = "MT_OASD_HTCX_RESP")
public JAXBElement<DTOASDHTCXRESP> createMTOASDHTCXRESP(DTOASDHTCXRESP value) {
return new JAXBElement<DTOASDHTCXRESP>(_MTOASDHTCXRESP_QNAME, DTOASDHTCXRESP.class, null, value);
}
}

View File

@ -1,38 +0,0 @@
package com.ruoyi.web.webservice.contract;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.bind.annotation.XmlSeeAlso;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.9-b130926.1035
* Generated source version: 2.2
*
*/
@WebService(name = "SI_OASD_HTCX_OUT", targetNamespace = "http://jncable.com/SD/HTCX")
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@XmlSeeAlso({
ObjectFactory.class
})
public interface SIOASDHTCXOUT {
/**
*
* @param mtOASDHTCXREQ
* @return
* returns com.jncable.sd.htcx.DTOASDHTCXRESP
*/
@WebMethod(operationName = "SI_OASD_HTCX_OUT", action = "http://sap.com/xi/WebService/soap1.1")
@WebResult(name = "MT_OASD_HTCX_RESP", targetNamespace = "http://jncable.com/SD/HTCX", partName = "MT_OASD_HTCX_RESP")
public DTOASDHTCXRESP siOASDHTCXOUT(
@WebParam(name = "MT_OASD_HTCX_REQ", targetNamespace = "http://jncable.com/SD/HTCX", partName = "MT_OASD_HTCX_REQ")
DTOASDHTCXREQ mtOASDHTCXREQ);
}

View File

@ -1,136 +0,0 @@
package com.ruoyi.web.webservice.contract;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeature;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.9-b130926.1035
* Generated source version: 2.2
*
*/
@WebServiceClient(name = "SI_OASD_HTCX_OUTService", targetNamespace = "http://jncable.com/SD/HTCX", wsdlLocation = "http://poprd:50000/dir/wsdl?p=ic/e1fa44a11fe33076ae0186750b236995")
public class SIOASDHTCXOUTService
extends Service
{
private static URL SIOASDHTCXOUTSERVICE_WSDL_LOCATION;
private static WebServiceException SIOASDHTCXOUTSERVICE_EXCEPTION;
private static QName SIOASDHTCXOUTSERVICE_QNAME = new QName("http://jncable.com/SD/HTCX", "SI_OASD_HTCX_OUTService");
/**
* 赋值host
* @param host
*/
/*static {
URL url = null;
WebServiceException e = null;
try {
System.out.println(getHost());
url = new URL("http://"+host+":50000/dir/wsdl?p=ic/e1fa44a11fe33076ae0186750b236995");
} catch (MalformedURLException ex) {
e = new WebServiceException(ex);
}
SIOASDHTCXOUTSERVICE_WSDL_LOCATION = url;
SIOASDHTCXOUTSERVICE_EXCEPTION = e;
}*/
public void setHost(String host) {
URL url = null;
WebServiceException e = null;
try {
url = new URL("http://"+host+":50000/dir/wsdl?p=ic/e1fa44a11fe33076ae0186750b236995");
} catch (MalformedURLException ex) {
e = new WebServiceException(ex);
}
SIOASDHTCXOUTSERVICE_WSDL_LOCATION = url;
SIOASDHTCXOUTSERVICE_EXCEPTION = e;
}
public SIOASDHTCXOUTService() {
super(__getWsdlLocation(), SIOASDHTCXOUTSERVICE_QNAME);
}
public SIOASDHTCXOUTService(WebServiceFeature... features) {
super(__getWsdlLocation(), SIOASDHTCXOUTSERVICE_QNAME, features);
}
public SIOASDHTCXOUTService(URL wsdlLocation) {
super(wsdlLocation, SIOASDHTCXOUTSERVICE_QNAME);
}
public SIOASDHTCXOUTService(URL wsdlLocation, WebServiceFeature... features) {
super(wsdlLocation, SIOASDHTCXOUTSERVICE_QNAME, features);
}
public SIOASDHTCXOUTService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public SIOASDHTCXOUTService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
super(wsdlLocation, serviceName, features);
}
/**
*
* @return
* returns SIOASDHTCXOUT
*/
@WebEndpoint(name = "HTTP_Port")
public SIOASDHTCXOUT getHTTPPort() {
return super.getPort(new QName("http://jncable.com/SD/HTCX", "HTTP_Port"), SIOASDHTCXOUT.class);
}
/**
*
* @param features
* A list of {@link WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns SIOASDHTCXOUT
*/
@WebEndpoint(name = "HTTP_Port")
public SIOASDHTCXOUT getHTTPPort(WebServiceFeature... features) {
return super.getPort(new QName("http://jncable.com/SD/HTCX", "HTTP_Port"), SIOASDHTCXOUT.class, features);
}
/**
*
* @return
* returns SIOASDHTCXOUT
*/
@WebEndpoint(name = "HTTPS_Port")
public SIOASDHTCXOUT getHTTPSPort() {
return super.getPort(new QName("http://jncable.com/SD/HTCX", "HTTPS_Port"), SIOASDHTCXOUT.class);
}
/**
*
* @param features
* A list of {@link WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns SIOASDHTCXOUT
*/
@WebEndpoint(name = "HTTPS_Port")
public SIOASDHTCXOUT getHTTPSPort(WebServiceFeature... features) {
return super.getPort(new QName("http://jncable.com/SD/HTCX", "HTTPS_Port"), SIOASDHTCXOUT.class, features);
}
private static URL __getWsdlLocation() {
if (SIOASDHTCXOUTSERVICE_EXCEPTION!= null) {
throw SIOASDHTCXOUTSERVICE_EXCEPTION;
}
return SIOASDHTCXOUTSERVICE_WSDL_LOCATION;
}
}

View File

@ -1,78 +0,0 @@
package com.ruoyi.web.webservice.contract;
import com.ruoyi.contract.domain.Contract;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;
import java.net.Authenticator;
import java.net.PasswordAuthentication;
import java.util.List;
@Component
@PropertySource("classpath:/common.yml")
public class contractUtils {
private static String user;
public static String getUser() {
return user;
}
@Value("${sapWebservice.user}")
public void setUser(String user) {
contractUtils.user = user;
}
private static String psw;
public static String getPsw() {
return psw;
}
@Value("${sapWebservice.psw}")
public void setPsw(String psw) {
contractUtils.psw = psw;
}
private static String host;
public static String getHost() {
return host;
}
@Value("${sapWebservice.host}")
public void setHost(String host) {
contractUtils.host = host;
}
public static List<DTOASDHTCXRESP.HTDATA> data(Contract contract) {
Authenticator.setDefault(new Authenticator() {
@Override
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(user, psw.toCharArray());
}
});
SIOASDHTCXOUTService ss = new SIOASDHTCXOUTService();
ss.setHost(host);
SIOASDHTCXOUT si = ss.getHTTPPort();
DTOASDHTCXREQ d = new DTOASDHTCXREQ();
String beginDate = contract.getContractDateRange()[0];
beginDate = beginDate.substring(0, 4) + beginDate.substring(5, 7) + beginDate.substring(8);
String endDate = contract.getContractDateRange()[1];
endDate = endDate.substring(0, 4) + endDate.substring(5, 7) + endDate.substring(8);
d.setHTQDRQS(beginDate);
d.setHTQDRQE(endDate);
d.setKUNNR(contract.getContractCustom());
d.setHTBH2(contract.getContractNo());
d.setZYWY(contract.getContractSalesmanNo());
DTOASDHTCXRESP dt = si.siOASDHTCXOUT(d);
List<DTOASDHTCXRESP.HTDATA> HTDATA = dt.getHTDATA();
return HTDATA;
}
}

View File

@ -1,2 +0,0 @@
@javax.xml.bind.annotation.XmlSchema(namespace = "http://jncable.com/SD/HTCX")
package com.ruoyi.web.webservice.contract;

View File

@ -1,93 +0,0 @@
package com.ruoyi.sapAccount.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 业务账户对象 sap_account
*
* @author ruoyi
* @date 2024-03-11
*/
public class SapAccount extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** */
private Long id;
/** 登录账号 */
@Excel(name = "登录账号")
private String userName;
/** 登录名 */
@Excel(name = "登录名")
private String nickName;
/** 账户 */
@Excel(name = "账户")
private String sapBm;
/** 账户名 */
@Excel(name = "账户名")
private String sapName;
/** 片区 */
@Excel(name = "片区")
private String sapArea;
public void setId(Long id)
{
this.id = id;
}
public Long getId()
{
return id;
}
public String getNickName() {return nickName;}
public void setNickName(String nickName) {this.nickName = nickName;}
public String getUserName() {return userName;}
public void setUserName(String userName) {this.userName = userName;}
public void setSapBm(String sapBm)
{
this.sapBm = sapBm;
}
public String getSapBm()
{
return sapBm;
}
public void setSapName(String sapName)
{
this.sapName = sapName;
}
public String getSapName()
{
return sapName;
}
public void setSapArea(String sapArea)
{
this.sapArea = sapArea;
}
public String getSapArea()
{
return sapArea;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("id", getId())
.append("sapBm", getSapBm())
.append("sapName", getSapName())
.append("sapArea", getSapArea())
.toString();
}
}

View File

@ -1,61 +0,0 @@
package com.ruoyi.sapAccount.mapper;
import java.util.List;
import com.ruoyi.sapAccount.domain.SapAccount;
/**
* 业务账户Mapper接口
*
* @author ruoyi
* @date 2024-03-11
*/
public interface SapAccountMapper
{
/**
* 查询业务账户
*
* @param id 业务账户主键
* @return 业务账户
*/
public SapAccount selectSapAccountById(Long id);
/**
* 查询业务账户列表
*
* @param sapAccount 业务账户
* @return 业务账户集合
*/
public List<SapAccount> selectSapAccountList(SapAccount sapAccount);
/**
* 新增业务账户
*
* @param sapAccount 业务账户
* @return 结果
*/
public int insertSapAccount(SapAccount sapAccount);
/**
* 修改业务账户
*
* @param sapAccount 业务账户
* @return 结果
*/
public int updateSapAccount(SapAccount sapAccount);
/**
* 删除业务账户
*
* @param id 业务账户主键
* @return 结果
*/
public int deleteSapAccountById(Long id);
/**
* 批量删除业务账户
*
* @param ids 需要删除的数据主键集合
* @return 结果
*/
public int deleteSapAccountByIds(Long[] ids);
}

View File

@ -1,61 +0,0 @@
package com.ruoyi.sapAccount.service;
import java.util.List;
import com.ruoyi.sapAccount.domain.SapAccount;
/**
* 业务账户Service接口
*
* @author ruoyi
* @date 2024-03-11
*/
public interface ISapAccountService
{
/**
* 查询业务账户
*
* @param id 业务账户主键
* @return 业务账户
*/
public SapAccount selectSapAccountById(Long id);
/**
* 查询业务账户列表
*
* @param sapAccount 业务账户
* @return 业务账户集合
*/
public List<SapAccount> selectSapAccountList(SapAccount sapAccount);
/**
* 新增业务账户
*
* @param sapAccount 业务账户
* @return 结果
*/
public int insertSapAccount(SapAccount sapAccount);
/**
* 修改业务账户
*
* @param sapAccount 业务账户
* @return 结果
*/
public int updateSapAccount(SapAccount sapAccount);
/**
* 批量删除业务账户
*
* @param ids 需要删除的业务账户主键集合
* @return 结果
*/
public int deleteSapAccountByIds(Long[] ids);
/**
* 删除业务账户信息
*
* @param id 业务账户主键
* @return 结果
*/
public int deleteSapAccountById(Long id);
}

View File

@ -1,93 +0,0 @@
package com.ruoyi.sapAccount.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sapAccount.mapper.SapAccountMapper;
import com.ruoyi.sapAccount.domain.SapAccount;
import com.ruoyi.sapAccount.service.ISapAccountService;
/**
* 业务账户Service业务层处理
*
* @author ruoyi
* @date 2024-03-11
*/
@Service
public class SapAccountServiceImpl implements ISapAccountService
{
@Autowired
private SapAccountMapper sapAccountMapper;
/**
* 查询业务账户
*
* @param id 业务账户主键
* @return 业务账户
*/
@Override
public SapAccount selectSapAccountById(Long id)
{
return sapAccountMapper.selectSapAccountById(id);
}
/**
* 查询业务账户列表
*
* @param sapAccount 业务账户
* @return 业务账户
*/
@Override
public List<SapAccount> selectSapAccountList(SapAccount sapAccount)
{
return sapAccountMapper.selectSapAccountList(sapAccount);
}
/**
* 新增业务账户
*
* @param sapAccount 业务账户
* @return 结果
*/
@Override
public int insertSapAccount(SapAccount sapAccount)
{
return sapAccountMapper.insertSapAccount(sapAccount);
}
/**
* 修改业务账户
*
* @param sapAccount 业务账户
* @return 结果
*/
@Override
public int updateSapAccount(SapAccount sapAccount)
{
return sapAccountMapper.updateSapAccount(sapAccount);
}
/**
* 批量删除业务账户
*
* @param ids 需要删除的业务账户主键
* @return 结果
*/
@Override
public int deleteSapAccountByIds(Long[] ids)
{
return sapAccountMapper.deleteSapAccountByIds(ids);
}
/**
* 删除业务账户信息
*
* @param id 业务账户主键
* @return 结果
*/
@Override
public int deleteSapAccountById(Long id)
{
return sapAccountMapper.deleteSapAccountById(id);
}
}

View File

@ -1,98 +0,0 @@
package com.ruoyi.sapCustomer.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 客户管理对象 sap_customer
*
* @author ruoyi
* @date 2024-03-11
*/
public class SapCustomer extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** id */
private Long customerId;
/** 编码 */
@Excel(name = "编码")
private String customerKunnr;
/** 名称1 */
@Excel(name = "名称1")
private String customerName1;
/** 名称2 */
@Excel(name = "名称2")
private String customerName2;
private String customerName;
/** 是否停用 */
@Excel(name = "是否停用")
private String customerState;
public void setCustomerId(Long customerId)
{
this.customerId = customerId;
}
public Long getCustomerId()
{
return customerId;
}
public void setCustomerKunnr(String customerKunnr)
{
this.customerKunnr = customerKunnr;
}
public String getCustomerKunnr()
{
return customerKunnr;
}
public void setCustomerName1(String customerName1)
{
this.customerName1 = customerName1;
}
public String getCustomerName1()
{
return customerName1;
}
public void setCustomerName2(String customerName2)
{
this.customerName2 = customerName2;
}
public String getCustomerName2()
{
return customerName2;
}
public void setCustomerState(String customerState)
{
this.customerState = customerState;
}
public String getCustomerState()
{
return customerState;
}
public String getCustomerName() {return customerName;}
public void setCustomerName(String customerName) {this.customerName = customerName;}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("customerId", getCustomerId())
.append("customerKunnr", getCustomerKunnr())
.append("customerName1", getCustomerName1())
.append("customerName2", getCustomerName2())
.append("customerState", getCustomerState())
.toString();
}
}

View File

@ -1,62 +0,0 @@
package com.ruoyi.sapCustomer.mapper;
import com.ruoyi.sapCustomer.domain.SapCustomer;
import java.util.List;
/**
* 客户管理Mapper接口
*
* @author ruoyi
* @date 2024-03-11
*/
public interface SapCustomerMapper
{
/**
* 查询客户管理
*
* @param customerId 客户管理主键
* @return 客户管理
*/
public SapCustomer selectSapCustomerByCustomerId(Long customerId);
/**
* 查询客户管理列表
*
* @param sapCustomer 客户管理
* @return 客户管理集合
*/
public List<SapCustomer> selectSapCustomerList(SapCustomer sapCustomer);
/**
* 新增客户管理
*
* @param sapCustomer 客户管理
* @return 结果
*/
public int insertSapCustomer(SapCustomer sapCustomer);
/**
* 修改客户管理
*
* @param sapCustomer 客户管理
* @return 结果
*/
public int updateSapCustomer(SapCustomer sapCustomer);
/**
* 删除客户管理
*
* @param customerId 客户管理主键
* @return 结果
*/
public int deleteSapCustomerByCustomerId(Long customerId);
/**
* 批量删除客户管理
*
* @param customerIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteSapCustomerByCustomerIds(Long[] customerIds);
}

View File

@ -1,62 +0,0 @@
package com.ruoyi.sapCustomer.service;
import com.ruoyi.sapCustomer.domain.SapCustomer;
import java.util.List;
/**
* 客户管理Service接口
*
* @author ruoyi
* @date 2024-03-11
*/
public interface ISapCustomerService
{
/**
* 查询客户管理
*
* @param customerId 客户管理主键
* @return 客户管理
*/
public SapCustomer selectSapCustomerByCustomerId(Long customerId);
/**
* 查询客户管理列表
*
* @param sapCustomer 客户管理
* @return 客户管理集合
*/
public List<SapCustomer> selectSapCustomerList(SapCustomer sapCustomer);
/**
* 新增客户管理
*
* @param sapCustomer 客户管理
* @return 结果
*/
public int insertSapCustomer(SapCustomer sapCustomer);
/**
* 修改客户管理
*
* @param sapCustomer 客户管理
* @return 结果
*/
public int updateSapCustomer(SapCustomer sapCustomer);
/**
* 批量删除客户管理
*
* @param customerIds 需要删除的客户管理主键集合
* @return 结果
*/
public int deleteSapCustomerByCustomerIds(Long[] customerIds);
/**
* 删除客户管理信息
*
* @param customerId 客户管理主键
* @return 结果
*/
public int deleteSapCustomerByCustomerId(Long customerId);
}

View File

@ -1,94 +0,0 @@
package com.ruoyi.sapCustomer.service.impl;
import com.ruoyi.sapCustomer.domain.SapCustomer;
import com.ruoyi.sapCustomer.mapper.SapCustomerMapper;
import com.ruoyi.sapCustomer.service.ISapCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
* 客户管理Service业务层处理
*
* @author ruoyi
* @date 2024-03-11
*/
@Service
public class SapCustomerServiceImpl implements ISapCustomerService
{
@Autowired
private SapCustomerMapper sapCustomerMapper;
/**
* 查询客户管理
*
* @param customerId 客户管理主键
* @return 客户管理
*/
@Override
public SapCustomer selectSapCustomerByCustomerId(Long customerId)
{
return sapCustomerMapper.selectSapCustomerByCustomerId(customerId);
}
/**
* 查询客户管理列表
*
* @param sapCustomer 客户管理
* @return 客户管理
*/
@Override
public List<SapCustomer> selectSapCustomerList(SapCustomer sapCustomer)
{
return sapCustomerMapper.selectSapCustomerList(sapCustomer);
}
/**
* 新增客户管理
*
* @param sapCustomer 客户管理
* @return 结果
*/
@Override
public int insertSapCustomer(SapCustomer sapCustomer)
{
return sapCustomerMapper.insertSapCustomer(sapCustomer);
}
/**
* 修改客户管理
*
* @param sapCustomer 客户管理
* @return 结果
*/
@Override
public int updateSapCustomer(SapCustomer sapCustomer)
{
return sapCustomerMapper.updateSapCustomer(sapCustomer);
}
/**
* 批量删除客户管理
*
* @param customerIds 需要删除的客户管理主键
* @return 结果
*/
@Override
public int deleteSapCustomerByCustomerIds(Long[] customerIds)
{
return sapCustomerMapper.deleteSapCustomerByCustomerIds(customerIds);
}
/**
* 删除客户管理信息
*
* @param customerId 客户管理主键
* @return 结果
*/
@Override
public int deleteSapCustomerByCustomerId(Long customerId)
{
return sapCustomerMapper.deleteSapCustomerByCustomerId(customerId);
}
}

View File

@ -1,297 +0,0 @@
package com.ruoyi.sapMaterial.domain;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
/**
* 物料管理对象 sap_material
*
* @author ruoyi
* @date 2024-03-12
*/
public class SapMaterial extends BaseEntity
{
private static final long serialVersionUID = 1L;
/** 物料id */
private Long materialId;
/** 编码 */
@Excel(name = "编码")
private String materialMatnr;
/** 名称 */
@Excel(name = "名称")
private String materialMaktx;
/** 销售组织 */
@Excel(name = "销售组织")
private String materialVkorg;
/** 分销渠道 */
@Excel(name = "分销渠道")
private String materialVtweg;
/** 单位 */
@Excel(name = "单位")
private String materialMeins;
/** 产品组 */
@Excel(name = "产品组")
private String materialSpart;
/** 产品组描述 */
@Excel(name = "产品组描述")
private String materialVtext;
/** 类别 */
@Excel(name = "类别")
private String materialMatkl;
/** 类别描述 */
@Excel(name = "类别描述")
private String materialWgbez;
/** 单位净重 */
@Excel(name = "单位净重")
private String materialDwjz;
/** 厂价 */
@Excel(name = "厂价")
private String materialChangj;
/** 型号 */
private String materialXingh;
/** 规格 */
private String materialGuig;
/** 截面 */
private String materialJiem;
/** 电压 */
private String materialDiany;
/** 临时字段 */
private String materialTemp;
/** 临时字段(IEC型号) */
private String materialModel;
/** 标识(100米/卷) */
@Excel(name = "标识(100米/卷)")
private String materialMrbs;
/** 是否有效 */
@Excel(name = "是否有效")
private String materialSfyx;
public void setMaterialId(Long materialId)
{
this.materialId = materialId;
}
public Long getMaterialId()
{
return materialId;
}
public void setMaterialMatnr(String materialMatnr)
{
this.materialMatnr = materialMatnr;
}
public String getMaterialMatnr()
{
return materialMatnr;
}
public void setMaterialMaktx(String materialMaktx)
{
this.materialMaktx = materialMaktx;
}
public String getMaterialMaktx()
{
return materialMaktx;
}
public void setMaterialVkorg(String materialVkorg)
{
this.materialVkorg = materialVkorg;
}
public String getMaterialVkorg()
{
return materialVkorg;
}
public void setMaterialVtweg(String materialVtweg)
{
this.materialVtweg = materialVtweg;
}
public String getMaterialVtweg()
{
return materialVtweg;
}
public void setMaterialMeins(String materialMeins)
{
this.materialMeins = materialMeins;
}
public String getMaterialMeins()
{
return materialMeins;
}
public void setMaterialSpart(String materialSpart)
{
this.materialSpart = materialSpart;
}
public String getMaterialSpart()
{
return materialSpart;
}
public void setMaterialVtext(String materialVtext)
{
this.materialVtext = materialVtext;
}
public String getMaterialVtext()
{
return materialVtext;
}
public void setMaterialMatkl(String materialMatkl)
{
this.materialMatkl = materialMatkl;
}
public String getMaterialMatkl()
{
return materialMatkl;
}
public void setMaterialWgbez(String materialWgbez)
{
this.materialWgbez = materialWgbez;
}
public String getMaterialWgbez()
{
return materialWgbez;
}
public void setMaterialDwjz(String materialDwjz)
{
this.materialDwjz = materialDwjz;
}
public String getMaterialDwjz()
{
return materialDwjz;
}
public void setMaterialChangj(String materialChangj)
{
this.materialChangj = materialChangj;
}
public String getMaterialChangj()
{
return materialChangj;
}
public void setMaterialXingh(String materialXingh)
{
this.materialXingh = materialXingh;
}
public String getMaterialXingh()
{
return materialXingh;
}
public void setMaterialGuig(String materialGuig)
{
this.materialGuig = materialGuig;
}
public String getMaterialGuig()
{
return materialGuig;
}
public void setMaterialJiem(String materialJiem)
{
this.materialJiem = materialJiem;
}
public String getMaterialJiem()
{
return materialJiem;
}
public void setMaterialDiany(String materialDiany)
{
this.materialDiany = materialDiany;
}
public String getMaterialDiany()
{
return materialDiany;
}
public void setMaterialTemp(String materialTemp)
{
this.materialTemp = materialTemp;
}
public String getMaterialTemp()
{
return materialTemp;
}
public void setMaterialModel(String materialModel)
{
this.materialModel = materialModel;
}
public String getMaterialModel()
{
return materialModel;
}
public void setMaterialMrbs(String materialMrbs)
{
this.materialMrbs = materialMrbs;
}
public String getMaterialMrbs()
{
return materialMrbs;
}
public void setMaterialSfyx(String materialSfyx)
{
this.materialSfyx = materialSfyx;
}
public String getMaterialSfyx()
{
return materialSfyx;
}
@Override
public String toString() {
return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
.append("materialId", getMaterialId())
.append("materialMatnr", getMaterialMatnr())
.append("materialMaktx", getMaterialMaktx())
.append("materialVkorg", getMaterialVkorg())
.append("materialVtweg", getMaterialVtweg())
.append("materialMeins", getMaterialMeins())
.append("materialSpart", getMaterialSpart())
.append("materialVtext", getMaterialVtext())
.append("materialMatkl", getMaterialMatkl())
.append("materialWgbez", getMaterialWgbez())
.append("materialDwjz", getMaterialDwjz())
.append("materialChangj", getMaterialChangj())
.append("materialXingh", getMaterialXingh())
.append("materialGuig", getMaterialGuig())
.append("materialJiem", getMaterialJiem())
.append("materialDiany", getMaterialDiany())
.append("materialTemp", getMaterialTemp())
.append("materialModel", getMaterialModel())
.append("materialMrbs", getMaterialMrbs())
.append("materialSfyx", getMaterialSfyx())
.toString();
}
}

View File

@ -1,61 +0,0 @@
package com.ruoyi.sapMaterial.mapper;
import java.util.List;
import com.ruoyi.sapMaterial.domain.SapMaterial;
/**
* 物料管理Mapper接口
*
* @author ruoyi
* @date 2024-03-12
*/
public interface SapMaterialMapper
{
/**
* 查询物料管理
*
* @param materialId 物料管理主键
* @return 物料管理
*/
public SapMaterial selectSapMaterialByMaterialId(Long materialId);
/**
* 查询物料管理列表
*
* @param sapMaterial 物料管理
* @return 物料管理集合
*/
public List<SapMaterial> selectSapMaterialList(SapMaterial sapMaterial);
/**
* 新增物料管理
*
* @param sapMaterial 物料管理
* @return 结果
*/
public int insertSapMaterial(SapMaterial sapMaterial);
/**
* 修改物料管理
*
* @param sapMaterial 物料管理
* @return 结果
*/
public int updateSapMaterial(SapMaterial sapMaterial);
/**
* 删除物料管理
*
* @param materialId 物料管理主键
* @return 结果
*/
public int deleteSapMaterialByMaterialId(Long materialId);
/**
* 批量删除物料管理
*
* @param materialIds 需要删除的数据主键集合
* @return 结果
*/
public int deleteSapMaterialByMaterialIds(Long[] materialIds);
}

View File

@ -1,61 +0,0 @@
package com.ruoyi.sapMaterial.service;
import java.util.List;
import com.ruoyi.sapMaterial.domain.SapMaterial;
/**
* 物料管理Service接口
*
* @author ruoyi
* @date 2024-03-12
*/
public interface ISapMaterialService
{
/**
* 查询物料管理
*
* @param materialId 物料管理主键
* @return 物料管理
*/
public SapMaterial selectSapMaterialByMaterialId(Long materialId);
/**
* 查询物料管理列表
*
* @param sapMaterial 物料管理
* @return 物料管理集合
*/
public List<SapMaterial> selectSapMaterialList(SapMaterial sapMaterial);
/**
* 新增物料管理
*
* @param sapMaterial 物料管理
* @return 结果
*/
public int insertSapMaterial(SapMaterial sapMaterial);
/**
* 修改物料管理
*
* @param sapMaterial 物料管理
* @return 结果
*/
public int updateSapMaterial(SapMaterial sapMaterial);
/**
* 批量删除物料管理
*
* @param materialIds 需要删除的物料管理主键集合
* @return 结果
*/
public int deleteSapMaterialByMaterialIds(Long[] materialIds);
/**
* 删除物料管理信息
*
* @param materialId 物料管理主键
* @return 结果
*/
public int deleteSapMaterialByMaterialId(Long materialId);
}

View File

@ -1,93 +0,0 @@
package com.ruoyi.sapMaterial.service.impl;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.sapMaterial.mapper.SapMaterialMapper;
import com.ruoyi.sapMaterial.domain.SapMaterial;
import com.ruoyi.sapMaterial.service.ISapMaterialService;
/**
* 物料管理Service业务层处理
*
* @author ruoyi
* @date 2024-03-12
*/
@Service
public class SapMaterialServiceImpl implements ISapMaterialService
{
@Autowired
private SapMaterialMapper sapMaterialMapper;
/**
* 查询物料管理
*
* @param materialId 物料管理主键
* @return 物料管理
*/
@Override
public SapMaterial selectSapMaterialByMaterialId(Long materialId)
{
return sapMaterialMapper.selectSapMaterialByMaterialId(materialId);
}
/**
* 查询物料管理列表
*
* @param sapMaterial 物料管理
* @return 物料管理
*/
@Override
public List<SapMaterial> selectSapMaterialList(SapMaterial sapMaterial)
{
return sapMaterialMapper.selectSapMaterialList(sapMaterial);
}
/**
* 新增物料管理
*
* @param sapMaterial 物料管理
* @return 结果
*/
@Override
public int insertSapMaterial(SapMaterial sapMaterial)
{
return sapMaterialMapper.insertSapMaterial(sapMaterial);
}
/**
* 修改物料管理
*
* @param sapMaterial 物料管理
* @return 结果
*/
@Override
public int updateSapMaterial(SapMaterial sapMaterial)
{
return sapMaterialMapper.updateSapMaterial(sapMaterial);
}
/**
* 批量删除物料管理
*
* @param materialIds 需要删除的物料管理主键
* @return 结果
*/
@Override
public int deleteSapMaterialByMaterialIds(Long[] materialIds)
{
return sapMaterialMapper.deleteSapMaterialByMaterialIds(materialIds);
}
/**
* 删除物料管理信息
*
* @param materialId 物料管理主键
* @return 结果
*/
@Override
public int deleteSapMaterialByMaterialId(Long materialId)
{
return sapMaterialMapper.deleteSapMaterialByMaterialId(materialId);
}
}

View File

@ -1,79 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.sapAccount.mapper.SapAccountMapper">
<resultMap type="SapAccount" id="SapAccountResult">
<result property="id" column="id" />
<result property="userName" column="user_name" />
<result property="nickName" column="nick_name" />
<result property="sapBm" column="sap_bm" />
<result property="sapName" column="sap_name" />
<result property="sapArea" column="sap_area" />
</resultMap>
<sql id="SapAccountJoins">
left join sys_user u on u.user_name = a.user_name
</sql>
<sql id="selectSapAccountVo">
select a.id, a.user_name, case when u.status is null then a.user_name+'(登录账号不存在)' when u.status = '1' then u.nick_name+'(停用)' else u.nick_name end nick_name, a.sap_bm, a.sap_name, a.sap_area
from sap_account a
<include refid="SapAccountJoins"/>
</sql>
<select id="selectSapAccountList" parameterType="SapAccount" resultMap="SapAccountResult">
<include refid="selectSapAccountVo"/>
<where>
<if test="userName != null and userName != ''"> and a.user_name = #{userName}</if>
<if test="sapBm != null and sapBm != ''"> and a.sap_bm = #{sapBm}</if>
<if test="sapName != null and sapName != ''"> and a.sap_name like concat('%', #{sapName}, '%')</if>
<if test="sapArea != null and sapArea != ''"> and a.sap_area = #{sapArea}</if>
</where>
</select>
<select id="selectSapAccountById" parameterType="Long" resultMap="SapAccountResult">
<include refid="selectSapAccountVo"/>
where a.id = #{id}
</select>
<insert id="insertSapAccount" parameterType="SapAccount" useGeneratedKeys="true" keyProperty="id">
insert into sap_account
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="userName != null and userName != ''">user_name,</if>
<if test="sapBm != null and sapBm != ''">sap_bm,</if>
<if test="sapName != null and sapName != ''">sap_name,</if>
<if test="sapArea != null and sapArea != ''">sap_area,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="userName != null and userName != ''">#{userName},</if>
<if test="sapBm != null and sapBm != ''">#{sapBm},</if>
<if test="sapName != null and sapName != ''">#{sapName},</if>
<if test="sapArea != null and sapArea != ''">#{sapArea},</if>
</trim>
</insert>
<update id="updateSapAccount" parameterType="SapAccount">
update sap_account
<trim prefix="SET" suffixOverrides=",">
<if test="userName != null and userName != ''">user_name = #{userName},</if>
<if test="sapBm != null and sapBm != ''">sap_bm = #{sapBm},</if>
<if test="sapName != null and sapName != ''">sap_name = #{sapName},</if>
<if test="sapArea != null and sapArea != ''">sap_area = #{sapArea},</if>
</trim>
where id = #{id}
</update>
<delete id="deleteSapAccountById" parameterType="Long">
delete from sap_account where id = #{id}
</delete>
<delete id="deleteSapAccountByIds" parameterType="String">
delete from sap_account where id in
<foreach item="id" collection="array" open="(" separator="," close=")">
#{id}
</foreach>
</delete>
</mapper>

View File

@ -1,71 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.sapCustomer.mapper.SapCustomerMapper">
<resultMap type="SapCustomer" id="SapCustomerResult">
<result property="customerId" column="customer_id" />
<result property="customerKunnr" column="customer_kunnr" />
<result property="customerName1" column="customer_name1" />
<result property="customerName2" column="customer_name2" />
<result property="customerName" column="customer_name" />
<result property="customerState" column="customer_state" />
</resultMap>
<sql id="selectSapCustomerVo">
select customer_id, customer_kunnr, customer_name1,customer_name2,customer_name1 + isnull(customer_name2,'') customer_name, customer_state from sap_customer
</sql>
<select id="selectSapCustomerList" parameterType="SapCustomer" resultMap="SapCustomerResult">
<include refid="selectSapCustomerVo"/>
<where>
<if test="customerKunnr != null and customerKunnr != ''"> and customer_kunnr = #{customerKunnr}</if>
<if test="customerName != null and customerName != ''"> and customer_name1 like concat('%', #{customerName}, '%')</if>
<if test="customerState != null and customerState != ''"> and customer_state = #{customerState}</if>
</where>
</select>
<select id="selectSapCustomerByCustomerId" parameterType="Long" resultMap="SapCustomerResult">
<include refid="selectSapCustomerVo"/>
where customer_id = #{customerId}
</select>
<insert id="insertSapCustomer" parameterType="SapCustomer" useGeneratedKeys="true" keyProperty="customerId">
insert into sap_customer
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="customerKunnr != null and customerKunnr != ''">customer_kunnr,</if>
<if test="customerName1 != null and customerName1 != ''">customer_name1,</if>
<if test="customerName2 != null">customer_name2,</if>
<if test="customerState != null and customerState != ''">customer_state,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="customerKunnr != null and customerKunnr != ''">#{customerKunnr},</if>
<if test="customerName1 != null and customerName1 != ''">#{customerName1},</if>
<if test="customerName2 != null">#{customerName2},</if>
<if test="customerState != null and customerState != ''">#{customerState},</if>
</trim>
</insert>
<update id="updateSapCustomer" parameterType="SapCustomer">
update sap_customer
<trim prefix="SET" suffixOverrides=",">
<if test="customerKunnr != null and customerKunnr != ''">customer_kunnr = #{customerKunnr},</if>
<if test="customerName1 != null and customerName1 != ''">customer_name1 = #{customerName1},</if>
<if test="customerName2 != null">customer_name2 = #{customerName2},</if>
<if test="customerState != null and customerState != ''">customer_state = #{customerState},</if>
</trim>
where customer_id = #{customerId}
</update>
<delete id="deleteSapCustomerByCustomerId" parameterType="Long">
delete from sap_customer where customer_id = #{customerId}
</delete>
<delete id="deleteSapCustomerByCustomerIds" parameterType="String">
delete from sap_customer where customer_id in
<foreach item="customerId" collection="array" open="(" separator="," close=")">
#{customerId}
</foreach>
</delete>
</mapper>

View File

@ -1,141 +0,0 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.sapMaterial.mapper.SapMaterialMapper">
<resultMap type="SapMaterial" id="SapMaterialResult">
<result property="materialId" column="material_id" />
<result property="materialMatnr" column="material_matnr" />
<result property="materialMaktx" column="material_maktx" />
<result property="materialVkorg" column="material_vkorg" />
<result property="materialVtweg" column="material_vtweg" />
<result property="materialMeins" column="material_meins" />
<result property="materialSpart" column="material_spart" />
<result property="materialVtext" column="material_vtext" />
<result property="materialMatkl" column="material_matkl" />
<result property="materialWgbez" column="material_wgbez" />
<result property="materialDwjz" column="material_dwjz" />
<result property="materialChangj" column="material_changj" />
<result property="materialXingh" column="material_xingh" />
<result property="materialGuig" column="material_guig" />
<result property="materialJiem" column="material_jiem" />
<result property="materialDiany" column="material_diany" />
<result property="materialTemp" column="material_temp" />
<result property="materialModel" column="material_model" />
<result property="materialMrbs" column="material_mrbs" />
<result property="materialSfyx" column="material_sfyx" />
</resultMap>
<sql id="SapMaterialJoins">
left join Redbook.RedBook.dbo.sdmdm1 rdm on rdm.matnr='0000000000'+sm.material_matnr
</sql>
<sql id="selectSapMaterialVo">
select sm.material_id, sm.material_matnr, sm.material_maktx, sm.material_vkorg, sm.material_vtweg,
sm.material_meins, sm.material_spart, sm.material_vtext, sm.material_matkl, sm.material_wgbez, sm.material_dwjz,
case when rdm.当前厂价=0 then null else rdm.当前厂价 end material_changj, sm.material_xingh, sm.material_guig,
sm.material_jiem, sm.material_diany, sm.material_temp,
sm.material_model, material_mrbs, material_sfyx
from sap_material sm
<include refid="SapMaterialJoins"/>
</sql>
<select id="selectSapMaterialList" parameterType="SapMaterial" resultMap="SapMaterialResult">
<include refid="selectSapMaterialVo"/>
<where>
<if test="materialMatnr != null and materialMatnr != ''"> and sm.material_matnr = #{materialMatnr}</if>
<if test="materialMaktx != null and materialMaktx != ''"> and sm.material_maktx like concat('%', #{materialMaktx}, '%')</if>
<if test="materialMrbs != null and materialMrbs != ''"> and sm.material_mrbs = #{materialMrbs}</if>
<if test="materialSfyx != null and materialSfyx != ''"> and sm.material_sfyx = #{materialSfyx}</if>
</where>
</select>
<select id="selectSapMaterialByMaterialId" parameterType="Long" resultMap="SapMaterialResult">
<include refid="selectSapMaterialVo"/>
where sm.material_id = #{materialId}
</select>
<insert id="insertSapMaterial" parameterType="SapMaterial" useGeneratedKeys="true" keyProperty="materialId">
insert into sap_material
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="materialMatnr != null and materialMatnr != ''">material_matnr,</if>
<if test="materialMaktx != null and materialMaktx != ''">material_maktx,</if>
<if test="materialVkorg != null and materialVkorg != ''">material_vkorg,</if>
<if test="materialVtweg != null and materialVtweg != ''">material_vtweg,</if>
<if test="materialMeins != null and materialMeins != ''">material_meins,</if>
<if test="materialSpart != null and materialSpart != ''">material_spart,</if>
<if test="materialVtext != null and materialVtext != ''">material_vtext,</if>
<if test="materialMatkl != null and materialMatkl != ''">material_matkl,</if>
<if test="materialWgbez != null and materialWgbez != ''">material_wgbez,</if>
<if test="materialDwjz != null and materialDwjz != ''">material_dwjz,</if>
<if test="materialChangj != null">material_changj,</if>
<if test="materialXingh != null">material_xingh,</if>
<if test="materialGuig != null">material_guig,</if>
<if test="materialJiem != null">material_jiem,</if>
<if test="materialDiany != null">material_diany,</if>
<if test="materialTemp != null">material_temp,</if>
<if test="materialModel != null">material_model,</if>
<if test="materialMrbs != null">material_mrbs,</if>
<if test="materialSfyx != null">material_sfyx,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="materialMatnr != null and materialMatnr != ''">#{materialMatnr},</if>
<if test="materialMaktx != null and materialMaktx != ''">#{materialMaktx},</if>
<if test="materialVkorg != null and materialVkorg != ''">#{materialVkorg},</if>
<if test="materialVtweg != null and materialVtweg != ''">#{materialVtweg},</if>
<if test="materialMeins != null and materialMeins != ''">#{materialMeins},</if>
<if test="materialSpart != null and materialSpart != ''">#{materialSpart},</if>
<if test="materialVtext != null and materialVtext != ''">#{materialVtext},</if>
<if test="materialMatkl != null and materialMatkl != ''">#{materialMatkl},</if>
<if test="materialWgbez != null and materialWgbez != ''">#{materialWgbez},</if>
<if test="materialDwjz != null and materialDwjz != ''">#{materialDwjz},</if>
<if test="materialChangj != null">#{materialChangj},</if>
<if test="materialXingh != null">#{materialXingh},</if>
<if test="materialGuig != null">#{materialGuig},</if>
<if test="materialJiem != null">#{materialJiem},</if>
<if test="materialDiany != null">#{materialDiany},</if>
<if test="materialTemp != null">#{materialTemp},</if>
<if test="materialModel != null">#{materialModel},</if>
<if test="materialMrbs != null">#{materialMrbs},</if>
<if test="materialSfyx != null">#{materialSfyx},</if>
</trim>
</insert>
<update id="updateSapMaterial" parameterType="SapMaterial">
update sap_material
<trim prefix="SET" suffixOverrides=",">
<if test="materialMatnr != null and materialMatnr != ''">material_matnr = #{materialMatnr},</if>
<if test="materialMaktx != null and materialMaktx != ''">material_maktx = #{materialMaktx},</if>
<if test="materialVkorg != null and materialVkorg != ''">material_vkorg = #{materialVkorg},</if>
<if test="materialVtweg != null and materialVtweg != ''">material_vtweg = #{materialVtweg},</if>
<if test="materialMeins != null and materialMeins != ''">material_meins = #{materialMeins},</if>
<if test="materialSpart != null and materialSpart != ''">material_spart = #{materialSpart},</if>
<if test="materialVtext != null and materialVtext != ''">material_vtext = #{materialVtext},</if>
<if test="materialMatkl != null and materialMatkl != ''">material_matkl = #{materialMatkl},</if>
<if test="materialWgbez != null and materialWgbez != ''">material_wgbez = #{materialWgbez},</if>
<if test="materialDwjz != null and materialDwjz != ''">material_dwjz = #{materialDwjz},</if>
<if test="materialChangj != null">material_changj = #{materialChangj},</if>
<if test="materialXingh != null">material_xingh = #{materialXingh},</if>
<if test="materialGuig != null">material_guig = #{materialGuig},</if>
<if test="materialJiem != null">material_jiem = #{materialJiem},</if>
<if test="materialDiany != null">material_diany = #{materialDiany},</if>
<if test="materialTemp != null">material_temp = #{materialTemp},</if>
<if test="materialModel != null">material_model = #{materialModel},</if>
<if test="materialMrbs != null">material_mrbs = #{materialMrbs},</if>
<if test="materialSfyx != null">material_sfyx = #{materialSfyx},</if>
</trim>
where material_id = #{materialId}
</update>
<delete id="deleteSapMaterialByMaterialId" parameterType="Long">
delete from sap_material where material_id = #{materialId}
</delete>
<delete id="deleteSapMaterialByMaterialIds" parameterType="String">
delete from sap_material where material_id in
<foreach item="materialId" collection="array" open="(" separator="," close=")">
#{materialId}
</foreach>
</delete>
</mapper>

View File

@ -1,44 +0,0 @@
import request from '@/utils/request'
// 查询业务账户列表
export function listSapAccount(query) {
return request({
url: '/sapAccount/sapAccount/list',
method: 'get',
params: query
})
}
// 查询业务账户详细
export function getSapAccount(id) {
return request({
url: '/sapAccount/sapAccount/' + id,
method: 'get'
})
}
// 新增业务账户
export function addSapAccount(data) {
return request({
url: '/sapAccount/sapAccount',
method: 'post',
data: data
})
}
// 修改业务账户
export function updateSapAccount(data) {
return request({
url: '/sapAccount/sapAccount',
method: 'put',
data: data
})
}
// 删除业务账户
export function delSapAccount(id) {
return request({
url: '/sapAccount/sapAccount/' + id,
method: 'delete'
})
}

View File

@ -1,44 +0,0 @@
import request from '@/utils/request'
// 查询客户管理列表
export function listSapCustomer(query) {
return request({
url: '/sapCustomer/sapCustomer/list',
method: 'get',
params: query
})
}
// 查询客户管理详细
export function getSapCustomer(customerId) {
return request({
url: '/sapCustomer/sapCustomer/' + customerId,
method: 'get'
})
}
// 新增客户管理
export function addSapCustomer(data) {
return request({
url: '/sapCustomer/sapCustomer',
method: 'post',
data: data
})
}
// 修改客户管理
export function updateSapCustomer(data) {
return request({
url: '/sapCustomer/sapCustomer',
method: 'put',
data: data
})
}
// 删除客户管理
export function delSapCustomer(customerId) {
return request({
url: '/sapCustomer/sapCustomer/' + customerId,
method: 'delete'
})
}

View File

@ -1,44 +0,0 @@
import request from '@/utils/request'
// 查询物料管理列表
export function listSapMaterial(query) {
return request({
url: '/sapMaterial/sapMaterial/list',
method: 'get',
params: query
})
}
// 查询物料管理详细
export function getSapMaterial(materialId) {
return request({
url: '/sapMaterial/sapMaterial/' + materialId,
method: 'get'
})
}
// 新增物料管理
export function addSapMaterial(data) {
return request({
url: '/sapMaterial/sapMaterial',
method: 'post',
data: data
})
}
// 修改物料管理
export function updateSapMaterial(data) {
return request({
url: '/sapMaterial/sapMaterial',
method: 'put',
data: data
})
}
// 删除物料管理
export function delSapMaterial(materialId) {
return request({
url: '/sapMaterial/sapMaterial/' + materialId,
method: 'delete'
})
}

View File

@ -1,329 +0,0 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="登录账号" prop="sapBm">
<el-input
v-model="queryParams.userName"
placeholder="请输入登录账号"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="账户" prop="sapBm">
<el-input
v-model="queryParams.sapBm"
placeholder="请输入账户"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="账户名" prop="sapName">
<el-input
v-model="queryParams.sapName"
placeholder="请输入账户名"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="片区" prop="sapArea">
<el-select v-model="queryParams.sapArea" placeholder="请选择片区" clearable>
<el-option
v-for="dict in dict.type.sap_area"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['sapAccount:sapAccount:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['sapAccount:sapAccount:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['sapAccount:sapAccount:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['sapAccount:sapAccount:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="sapAccountList" :row-class-name="rowSapAccountIndex" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="序号" align="center" prop="index" width="80"/>
<el-table-column label=" " align="center" prop="id" v-if="false"/>
<el-table-column label="登录账号" align="center" prop="userName" />
<el-table-column label="登录名" align="center" prop="nickName" />
<el-table-column label="账户" align="center" prop="sapBm" />
<el-table-column label="账户名" align="center" prop="sapName" />
<el-table-column label="片区" align="center" prop="sapArea">
<template slot-scope="scope">
<dict-tag :options="dict.type.sap_area" :value="scope.row.sapArea"/>
</template>
</el-table-column>
<el-table-column label="操作" align="center">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['sapAccount:sapAccount:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['sapAccount:sapAccount:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改业务账户对话框 -->
<el-dialog :title="title" :visible.sync="open" width="600px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-row>
<el-col :span="12">
<el-form-item label="登录账号" prop="userName">
<el-input v-model="form.userName" placeholder="请输入登录账号" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="账户" prop="sapBm">
<el-input v-model="form.sapBm" placeholder="请输入账户" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="账户名" prop="sapName">
<el-input v-model="form.sapName" placeholder="请输入账户名" />
</el-form-item>
</el-col>
<el-col :span="12">
<el-form-item label="片区" prop="sapArea">
<el-select v-model="form.sapArea" placeholder="请选择片区">
<el-option
v-for="dict in dict.type.sap_area"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listSapAccount, getSapAccount, delSapAccount, addSapAccount, updateSapAccount } from "@/api/sapAccount/sapAccount";
export default {
name: "SapAccount",
dicts: ['sap_area'],
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
sapAccountList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
userName: null,
sapBm: null,
sapName: null,
sapArea: null
},
//
form: {},
//
rules: {
userName: [
{ required: true, message: "登录账号不能为空", trigger: "blur" }
],
sapBm: [
{ required: true, message: "账户不能为空", trigger: "blur" }
],
sapName: [
{ required: true, message: "账户名不能为空", trigger: "blur" }
],
sapArea: [
{ required: true, message: "片区不能为空", trigger: "change" }
]
}
};
},
created() {
this.getList();
},
methods: {
/** 查询业务账户列表 */
getList() {
this.loading = true;
listSapAccount(this.queryParams).then(response => {
this.sapAccountList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
id: null,
userName: null,
sapBm: null,
sapName: null,
sapArea: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.id)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加业务账户";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const id = row.id || this.ids
getSapAccount(id).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改业务账户";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.id != null) {
updateSapAccount(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addSapAccount(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除业务账户编号为"' + ids + '"的数据项?').then(function() {
return delSapAccount(ids);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('sapAccount/sapAccount/export', {
...this.queryParams
}, `sapAccount_${new Date().getTime()}.xlsx`)
},
/** 序号 */
rowSapAccountIndex({ row, rowIndex }) {
row.index = rowIndex + 1;
}
}
};
</script>

View File

@ -1,304 +0,0 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="编码" prop="customerKunnr">
<el-input
v-model="queryParams.customerKunnr"
placeholder="请输入编码"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="名称" prop="customerName">
<el-input
v-model="queryParams.customerName"
placeholder="请输入名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="是否停用" prop="customerState">
<el-select v-model="queryParams.customerState" placeholder="请选择是否停用" clearable>
<el-option
v-for="dict in dict.type.common_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['SapCustomer:SapCustomer:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['SapCustomer:SapCustomer:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['SapCustomer:SapCustomer:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['SapCustomer:SapCustomer:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="SapCustomerList" :row-class-name="rowSapCustomerIndex" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="序号" align="center" prop="index" width="80"/>
<el-table-column label="id" align="center" prop="customerId" v-if="false"/>
<el-table-column label="编码" align="center" prop="customerKunnr" />
<el-table-column label="名称" align="center" prop="customerName" />
<el-table-column label="是否停用" align="center" prop="customerState">
<template slot-scope="scope">
<dict-tag :options="dict.type.common_state" :value="scope.row.customerState"/>
</template>
</el-table-column>
<el-table-column label="操作" align="center">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['SapCustomer:SapCustomer:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['SapCustomer:SapCustomer:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改客户管理对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="编码" prop="customerKunnr">
<el-input v-model="form.customerKunnr" placeholder="请输入编码" />
</el-form-item>
<el-form-item label="名称1" prop="customerName1">
<el-input v-model="form.customerName1" placeholder="请输入名称1" />
</el-form-item>
<el-form-item label="名称2" prop="customerName2">
<el-input v-model="form.customerName2" placeholder="请输入名称2" />
</el-form-item>
<el-form-item label="是否停用" prop="customerState">
<el-radio-group v-model="form.customerState">
<el-radio
v-for="dict in dict.type.common_state"
:key="dict.value"
:label="dict.value"
>{{dict.label}}</el-radio>
</el-radio-group>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listSapCustomer, getSapCustomer, delSapCustomer, addSapCustomer, updateSapCustomer } from "@/api/sapCustomer/sapCustomer";
export default {
name: "SapCustomer",
dicts: ['common_state'],
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
SapCustomerList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
customerKunnr: null,
customerName: null,
customerState: null
},
//
form: {},
//
rules: {
customerKunnr: [
{ required: true, message: "编码不能为空", trigger: "blur" }
],
customerName1: [
{ required: true, message: "名称1不能为空", trigger: "blur" }
],
customerState: [
{ required: true, message: "是否停用不能为空", trigger: "change" }
]
}
};
},
created() {
this.getList();
},
methods: {
/** 查询客户管理列表 */
getList() {
this.loading = true;
listSapCustomer(this.queryParams).then(response => {
this.SapCustomerList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
customerId: null,
customerKunnr: null,
customerName1: null,
customerName2: null,
customerState: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.customerId)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加客户管理";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const customerId = row.customerId || this.ids
getSapCustomer(customerId).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改客户管理";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.customerId != null) {
updateSapCustomer(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addSapCustomer(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const customerIds = row.customerId || this.ids;
this.$modal.confirm('是否确认删除客户管理编号为"' + customerIds + '"的数据项?').then(function() {
return delSapCustomer(customerIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('SapCustomer/SapCustomer/export', {
...this.queryParams
}, `SapCustomer_${new Date().getTime()}.xlsx`)
},
/** 序号 */
rowSapCustomerIndex({ row, rowIndex }) {
row.index = rowIndex + 1;
}
}
};
</script>

View File

@ -1,432 +0,0 @@
<template>
<div class="app-container">
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
<el-form-item label="编码" prop="materialMatnr">
<el-input
v-model="queryParams.materialMatnr"
placeholder="请输入编码"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="名称" prop="materialMaktx">
<el-input
v-model="queryParams.materialMaktx"
placeholder="请输入名称"
clearable
@keyup.enter.native="handleQuery"
/>
</el-form-item>
<el-form-item label="标识" prop="materialMrbs">
<el-select v-model="queryParams.materialMrbs" placeholder="请选择标识(100米/卷)" clearable>
<el-option
v-for="dict in dict.type.sap_segmentation"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item label="是否有效" prop="materialSfyx">
<el-select v-model="queryParams.materialSfyx" placeholder="请选择是否有效" clearable>
<el-option
v-for="dict in dict.type.sap_material_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
</el-form-item>
</el-form>
<el-row :gutter="10" class="mb8">
<el-col :span="1.5">
<el-button
type="primary"
plain
icon="el-icon-plus"
size="mini"
@click="handleAdd"
v-hasPermi="['sapMaterial:sapMaterial:add']"
>新增</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="success"
plain
icon="el-icon-edit"
size="mini"
:disabled="single"
@click="handleUpdate"
v-hasPermi="['sapMaterial:sapMaterial:edit']"
>修改</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="danger"
plain
icon="el-icon-delete"
size="mini"
:disabled="multiple"
@click="handleDelete"
v-hasPermi="['sapMaterial:sapMaterial:remove']"
>删除</el-button>
</el-col>
<el-col :span="1.5">
<el-button
type="warning"
plain
icon="el-icon-download"
size="mini"
@click="handleExport"
v-hasPermi="['sapMaterial:sapMaterial:export']"
>导出</el-button>
</el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row>
<el-table v-loading="loading" :data="sapMaterialList" :row-class-name="rowSapMaterialIndex" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="序号" align="center" prop="index" width="80"/>
<el-table-column label="物料id" align="center" prop="materialId" v-if="false"/>
<el-table-column label="编码" align="center" prop="materialMatnr" />
<el-table-column label="名称" width="250" prop="materialMaktx" />
<el-table-column label="销售组织" align="center" prop="materialVkorg" />
<el-table-column label="分销渠道" align="center" prop="materialVtweg" />
<el-table-column label="单位" align="center" prop="materialMeins" />
<el-table-column label="产品组" align="center" prop="materialSpart" />
<el-table-column label="产品组描述" align="center" prop="materialVtext" />
<el-table-column label="类别" align="center" prop="materialMatkl" />
<el-table-column label="类别描述" align="center" prop="materialWgbez" />
<el-table-column label="单位净重" align="center" prop="materialDwjz" />
<el-table-column label="厂价" align="center" prop="materialChangj" />
<el-table-column label="标识" align="center" prop="materialMrbs">
<template slot-scope="scope">
<dict-tag :options="dict.type.sap_segmentation" :value="scope.row.materialMrbs"/>
</template>
</el-table-column>
<el-table-column label="是否有效" align="center" prop="materialSfyx">
<template slot-scope="scope">
<dict-tag :options="dict.type.sap_material_state" :value="scope.row.materialSfyx"/>
</template>
</el-table-column>
<el-table-column fixed="right" label="操作" width="150" align="center">
<template slot-scope="scope">
<el-button
size="mini"
type="text"
icon="el-icon-edit"
@click="handleUpdate(scope.row)"
v-hasPermi="['sapMaterial:sapMaterial:edit']"
>修改</el-button>
<el-button
size="mini"
type="text"
icon="el-icon-delete"
@click="handleDelete(scope.row)"
v-hasPermi="['sapMaterial:sapMaterial:remove']"
>删除</el-button>
</template>
</el-table-column>
</el-table>
<pagination
v-show="total>0"
:total="total"
:page.sync="queryParams.pageNum"
:limit.sync="queryParams.pageSize"
@pagination="getList"
/>
<!-- 添加或修改物料管理对话框 -->
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-row>
<el-col :span="8">
<el-form-item label="编码" prop="materialMatnr" label-width="100px">
<el-input v-model="form.materialMatnr" placeholder="请输入编码" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="名称" prop="materialMaktx" label-width="100px">
<el-input v-model="form.materialMaktx" placeholder="请输入名称" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="销售组织" prop="materialVkorg" label-width="100px">
<el-input v-model="form.materialVkorg" placeholder="请输入销售组织" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="分销渠道" prop="materialVtweg" label-width="100px">
<el-input v-model="form.materialVtweg" placeholder="请输入分销渠道" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="单位" prop="materialMeins" label-width="100px">
<el-input v-model="form.materialMeins" placeholder="请输入单位" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="产品组" prop="materialSpart" label-width="100px">
<el-input v-model="form.materialSpart" placeholder="请输入产品组" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="产品组描述" prop="materialVtext" label-width="100px">
<el-input v-model="form.materialVtext" placeholder="请输入产品组描述" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="类别" prop="materialMatkl" label-width="100px">
<el-input v-model="form.materialMatkl" placeholder="请输入类别" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="类别描述" prop="materialWgbez" label-width="100px">
<el-input v-model="form.materialWgbez" placeholder="请输入类别描述" />
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col :span="8">
<el-form-item label="单位净重" prop="materialDwjz" label-width="100px">
<el-input v-model="form.materialDwjz" placeholder="请输入单位净重" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="标识" prop="materialMrbs" label-width="100px">
<el-select v-model="form.materialMrbs" placeholder="请选择标识(100米/卷)">
<el-option
v-for="dict in dict.type.sap_segmentation"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="是否有效" prop="materialSfyx" label-width="100px">
<el-select v-model="form.materialSfyx" placeholder="请选择是否有效">
<el-option
v-for="dict in dict.type.sap_material_state"
:key="dict.value"
:label="dict.label"
:value="dict.value"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm"> </el-button>
<el-button @click="cancel"> </el-button>
</div>
</el-dialog>
</div>
</template>
<script>
import { listSapMaterial, getSapMaterial, delSapMaterial, addSapMaterial, updateSapMaterial } from "@/api/sapMaterial/sapMaterial";
export default {
name: "SapMaterial",
dicts: ['sap_segmentation', 'sap_material_state'],
data() {
return {
//
loading: true,
//
ids: [],
//
single: true,
//
multiple: true,
//
showSearch: true,
//
total: 0,
//
sapMaterialList: [],
//
title: "",
//
open: false,
//
queryParams: {
pageNum: 1,
pageSize: 10,
materialMatnr: null,
materialMaktx: null,
materialMrbs: null,
materialSfyx: null
},
//
form: {},
//
rules: {
materialMatnr: [
{ required: true, message: "编码不能为空", trigger: "blur" }
],
materialMaktx: [
{ required: true, message: "名称不能为空", trigger: "blur" }
],
materialVkorg: [
{ required: true, message: "销售组织不能为空", trigger: "blur" }
],
materialVtweg: [
{ required: true, message: "分销渠道不能为空", trigger: "blur" }
],
materialMeins: [
{ required: true, message: "单位不能为空", trigger: "blur" }
],
materialSpart: [
{ required: true, message: "产品组不能为空", trigger: "blur" }
],
materialVtext: [
{ required: true, message: "产品组描述不能为空", trigger: "blur" }
],
materialMatkl: [
{ required: true, message: "类别不能为空", trigger: "blur" }
],
materialWgbez: [
{ required: true, message: "类别描述不能为空", trigger: "blur" }
],
materialDwjz: [
{ required: true, message: "单位净重不能为空", trigger: "blur" }
],
materialSfyx: [
{ required: true, message: "是否有效不能为空", trigger: "blur" }
],
}
};
},
created() {
this.getList();
},
methods: {
/** 查询物料管理列表 */
getList() {
this.loading = true;
listSapMaterial(this.queryParams).then(response => {
this.sapMaterialList = response.rows;
this.total = response.total;
this.loading = false;
});
},
//
cancel() {
this.open = false;
this.reset();
},
//
reset() {
this.form = {
materialId: null,
materialMatnr: null,
materialMaktx: null,
materialVkorg: null,
materialVtweg: null,
materialMeins: null,
materialSpart: null,
materialVtext: null,
materialMatkl: null,
materialWgbez: null,
materialDwjz: null,
materialChangj: null,
materialXingh: null,
materialGuig: null,
materialJiem: null,
materialDiany: null,
materialTemp: null,
materialModel: null,
materialMrbs: null,
materialSfyx: null
};
this.resetForm("form");
},
/** 搜索按钮操作 */
handleQuery() {
this.queryParams.pageNum = 1;
this.getList();
},
/** 重置按钮操作 */
resetQuery() {
this.resetForm("queryForm");
this.handleQuery();
},
//
handleSelectionChange(selection) {
this.ids = selection.map(item => item.materialId)
this.single = selection.length!==1
this.multiple = !selection.length
},
/** 新增按钮操作 */
handleAdd() {
this.reset();
this.open = true;
this.title = "添加物料管理";
},
/** 修改按钮操作 */
handleUpdate(row) {
this.reset();
const materialId = row.materialId || this.ids
getSapMaterial(materialId).then(response => {
this.form = response.data;
this.open = true;
this.title = "修改物料管理";
});
},
/** 提交按钮 */
submitForm() {
this.$refs["form"].validate(valid => {
if (valid) {
if (this.form.materialId != null) {
updateSapMaterial(this.form).then(response => {
this.$modal.msgSuccess("修改成功");
this.open = false;
this.getList();
});
} else {
addSapMaterial(this.form).then(response => {
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
});
}
}
});
},
/** 删除按钮操作 */
handleDelete(row) {
const materialIds = row.materialId || this.ids;
this.$modal.confirm('是否确认删除物料管理编号为"' + materialIds + '"的数据项?').then(function() {
return delSapMaterial(materialIds);
}).then(() => {
this.getList();
this.$modal.msgSuccess("删除成功");
}).catch(() => {});
},
/** 导出按钮操作 */
handleExport() {
this.download('sapMaterial/sapMaterial/export', {
...this.queryParams
}, `sapMaterial_${new Date().getTime()}.xlsx`)
},
/** 序号 */
rowSapMaterialIndex({ row, rowIndex }) {
row.index = rowIndex + 1;
},
}
};
</script>

BIN
sql/ry-vue20240321.bak Normal file

Binary file not shown.