From b5ba452cf9c36bd618e6cab7186fc7f2babfbc74 Mon Sep 17 00:00:00 2001 From: dongxiaoke <1910333201@qq.com> Date: Tue, 27 Jun 2023 15:04:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95=E6=8D=AE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../v1/impl/InvoiceCheckWebServiceImpl.java | 6 +- .../platform/ProductInfoController.java | 104 +++++ .../service/impl/EleCheckInvoiceImpl.java | 7 +- .../jianshui/platform/domain/ProductInfo.java | 225 ++++++++++ .../platform/mapper/ProductInfoMapper.java | 61 +++ .../platform/service/IProductInfoService.java | 61 +++ .../service/impl/ProductInfoServiceImpl.java | 96 ++++ .../platform/mapper/ProductInfoMapper.xml | 136 ++++++ jianshui-ui/src/api/platform/product_info.js | 44 ++ .../src/views/platform/product_info/index.vue | 411 ++++++++++++++++++ 10 files changed, 1144 insertions(+), 7 deletions(-) create mode 100644 jianshui-admin/src/main/java/com/jianshui/web/controller/platform/ProductInfoController.java create mode 100644 jianshui-platform/src/main/java/com/jianshui/platform/domain/ProductInfo.java create mode 100644 jianshui-platform/src/main/java/com/jianshui/platform/mapper/ProductInfoMapper.java create mode 100644 jianshui-platform/src/main/java/com/jianshui/platform/service/IProductInfoService.java create mode 100644 jianshui-platform/src/main/java/com/jianshui/platform/service/impl/ProductInfoServiceImpl.java create mode 100644 jianshui-platform/src/main/resources/com/jianshui/platform/mapper/ProductInfoMapper.xml create mode 100644 jianshui-ui/src/api/platform/product_info.js create mode 100644 jianshui-ui/src/views/platform/product_info/index.vue diff --git a/jianshui-admin/src/main/java/com/jianshui/api/controller/webservice/income/v1/impl/InvoiceCheckWebServiceImpl.java b/jianshui-admin/src/main/java/com/jianshui/api/controller/webservice/income/v1/impl/InvoiceCheckWebServiceImpl.java index 0605363..fd143dc 100644 --- a/jianshui-admin/src/main/java/com/jianshui/api/controller/webservice/income/v1/impl/InvoiceCheckWebServiceImpl.java +++ b/jianshui-admin/src/main/java/com/jianshui/api/controller/webservice/income/v1/impl/InvoiceCheckWebServiceImpl.java @@ -179,8 +179,8 @@ public class InvoiceCheckWebServiceImpl { // 调用发票查询接口 JSONObject request = new JSONObject(); - request.put("fpzl", Fpzl); // TODO 新增发票种类字段 - request.put("fpje", Kpje); // TODO 开票金额字段 + request.put("fpzl", Fpzl); + request.put("fpje", Kpje); request.put("fpdm", InvCode); Date kprqDate = null; try { @@ -196,7 +196,7 @@ public class InvoiceCheckWebServiceImpl { request.put("fphm", InvNo); request.put("jym", Jym); AjaxResult invoiceResult = incomeService.checkInvoiceSingle(companyservice, request); - log.info("【发票查询结果】companyid:{},serviceKey:{},invoiceResult:{}", companyservice.getCompanyid(), serviceKey, JSONObject.toJSONString(invoiceResult)); + log.info("【发票查询结果】companyid:{},serviceKey:{},param:{},invoiceResult:{}", companyservice.getCompanyid(), serviceKey, request,JSONObject.toJSONString(invoiceResult)); // JSONObject data = JSONObject.parseObject("{\n" + // " \"robUserMoney\": 0,\n" + // " \"resultContent\": {\n" + diff --git a/jianshui-admin/src/main/java/com/jianshui/web/controller/platform/ProductInfoController.java b/jianshui-admin/src/main/java/com/jianshui/web/controller/platform/ProductInfoController.java new file mode 100644 index 0000000..ce50995 --- /dev/null +++ b/jianshui-admin/src/main/java/com/jianshui/web/controller/platform/ProductInfoController.java @@ -0,0 +1,104 @@ +package com.jianshui.web.controller.platform; + +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.jianshui.common.annotation.Log; +import com.jianshui.common.core.controller.BaseController; +import com.jianshui.common.core.domain.AjaxResult; +import com.jianshui.common.enums.BusinessType; +import com.jianshui.platform.domain.ProductInfo; +import com.jianshui.platform.service.IProductInfoService; +import com.jianshui.common.utils.poi.ExcelUtil; +import com.jianshui.common.core.page.TableDataInfo; + +/** + * 商品信息Controller + * + * @author kk + * @date 2023-06-27 + */ +@RestController +@RequestMapping("/platform/product_info") +public class ProductInfoController extends BaseController +{ + @Autowired + private IProductInfoService productInfoService; + + /** + * 查询商品信息列表 + */ + @PreAuthorize("@ss.hasPermi('platform:product_info:list')") + @GetMapping("/list") + public TableDataInfo list(ProductInfo productInfo) + { + startPage(); + List list = productInfoService.selectProductInfoList(productInfo); + return getDataTable(list); + } + + /** + * 导出商品信息列表 + */ + @PreAuthorize("@ss.hasPermi('platform:product_info:export')") + @Log(title = "商品信息", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, ProductInfo productInfo) + { + List list = productInfoService.selectProductInfoList(productInfo); + ExcelUtil util = new ExcelUtil(ProductInfo.class); + util.exportExcel(response, list, "商品信息数据"); + } + + /** + * 获取商品信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('platform:product_info:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(productInfoService.selectProductInfoById(id)); + } + + /** + * 新增商品信息 + */ + @PreAuthorize("@ss.hasPermi('platform:product_info:add')") + @Log(title = "商品信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody ProductInfo productInfo) + { + return toAjax(productInfoService.insertProductInfo(productInfo)); + } + + /** + * 修改商品信息 + */ + @PreAuthorize("@ss.hasPermi('platform:product_info:edit')") + @Log(title = "商品信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody ProductInfo productInfo) + { + return toAjax(productInfoService.updateProductInfo(productInfo)); + } + + /** + * 删除商品信息 + */ + @PreAuthorize("@ss.hasPermi('platform:product_info:remove')") + @Log(title = "商品信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(productInfoService.deleteProductInfoByIds(ids)); + } +} diff --git a/jianshui-income/src/main/java/com/jianshui/income/service/impl/EleCheckInvoiceImpl.java b/jianshui-income/src/main/java/com/jianshui/income/service/impl/EleCheckInvoiceImpl.java index 9b148d6..efa15d1 100644 --- a/jianshui-income/src/main/java/com/jianshui/income/service/impl/EleCheckInvoiceImpl.java +++ b/jianshui-income/src/main/java/com/jianshui/income/service/impl/EleCheckInvoiceImpl.java @@ -103,14 +103,14 @@ public class EleCheckInvoiceImpl implements ICheckInvoice { if ("0000".equals(returnStateInfo.getString("returnCode")) == false) { // 如果返回值不是0000,说明有错误 String errorString = Base64Util.decrypt(returnStateInfo.getString("returnMessage")); int errorCode = returnStateInfo.getInteger("returnCode"); - log.info("单个发票校验错误结果:companyId=" + companyId + ",errorCode=" + errorCode + ",returnMessage=" + errorString); + log.info("单个发票校验错误结果:companyId=" + companyId + ",data=" + data + ",errorCode=" + errorCode + ",returnMessage=" + errorString); return AjaxResult.error(errorCode, errorString); } // 否则成功 String resultStr = resp.getString("content"); JSONObject resultJson = JSONObject.parseObject(Base64Util.decrypt(resultStr)); // 获得返回的数据 - log.info("单个发票校验成功结果:companyId=" + companyId + ",resultJson=" + resultJson); + log.info("单个发票校验成功结果:companyId=" + companyId + ",data=" + data + ",resultJson=" + resultJson); // 处理返回的数据 // 处理invoice_check JSONObject resultContent = resultJson.getJSONObject("data"); @@ -128,7 +128,6 @@ public class EleCheckInvoiceImpl implements ICheckInvoice { } invoiceCheck = this.handelCheckResult(invoiceCheck, resultContent); // 批量处理一把 - // TODO: 2023/6/5 确定一下哪些需要扣钱 List cyjgList = Arrays.asList("9999", "0002", "0005", "1004", "1006", "1007", "1008", "1009","1010", "1011", "1012", "1013", "1014", "1015", "1020", "1021"); if (cyjgList.contains(invoiceCheck.getCyjg())) { log.info("单个发票校验错误结果:companyId=" + companyId + ",errorCode=" + invoiceCheck.getCyjg() + ",returnMessage=" + invoiceCheck.getCyjgxx()); @@ -180,7 +179,7 @@ public class EleCheckInvoiceImpl implements ICheckInvoice { // RedisQueueUtil.build().setData(invoiceCheck).onQueue("income_result_save_consumer").retry(0).dispatch(); if (!"0001".equals(invoiceCheck.getCyjg()) ) { - log.info("单个发票校验错误结果:companyId=" + companyId + ",errorCode=" + invoiceCheck.getCyjg() + ",returnMessage=" + invoiceCheck.getCyjgxx()); + log.info("单个发票校验错误结果:companyId=" + companyId + ",data=" + data + ",errorCode=" + invoiceCheck.getCyjg() + ",returnMessage=" + invoiceCheck.getCyjgxx()); return new AjaxResult(Integer.parseInt(invoiceCheck.getCyjg()),invoiceCheck.getCyjgxx()); } diff --git a/jianshui-platform/src/main/java/com/jianshui/platform/domain/ProductInfo.java b/jianshui-platform/src/main/java/com/jianshui/platform/domain/ProductInfo.java new file mode 100644 index 0000000..d5548fa --- /dev/null +++ b/jianshui-platform/src/main/java/com/jianshui/platform/domain/ProductInfo.java @@ -0,0 +1,225 @@ +package com.jianshui.platform.domain; + +import java.math.BigDecimal; +import com.jianshui.common.annotation.Excel; +import com.jianshui.common.core.domain.BaseEntity; +import net.logstash.logback.encoder.org.apache.commons.lang3.builder.ToStringBuilder; +import net.logstash.logback.encoder.org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 商品信息对象 product_info + * + * @author kk + * @date 2023-06-27 + */ +public class ProductInfo extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键 */ + private Long id; + + /** 商品编码 */ + @Excel(name = "商品编码") + private String productCode; + + /** 商品名称 */ + @Excel(name = "商品名称") + private String productName; + + /** 税率 */ + @Excel(name = "税率") + private BigDecimal taxRate; + + /** 单价 */ + @Excel(name = "单价") + private BigDecimal unitPrice; + + /** 规格型号 */ + @Excel(name = "规格型号") + private String specification; + + /** 计量单位 */ + @Excel(name = "计量单位") + private String unitOfMeasurement; + + /** 税收分类编码 */ + @Excel(name = "税收分类编码") + private String taxCategoryCode; + + /** 税收分类编码Id */ + @Excel(name = "税收分类编码Id") + private Long taxCategoryCodeId; + + /** 税收分类编码简称 */ + @Excel(name = "税收分类编码简称") + private String taxCategoryAbbreviation; + + /** 是否享受优惠政策 */ + @Excel(name = "是否享受优惠政策") + private String isQualifiedForDiscount; + + /** 优惠政策类型 */ + @Excel(name = "优惠政策类型") + private String discountPolicyType; + + /** 零税率标识 */ + @Excel(name = "零税率标识") + private String zeroTaxRateIndicator; + + /** 状态 */ + @Excel(name = "状态") + private String status; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setProductCode(String productCode) + { + this.productCode = productCode; + } + + public String getProductCode() + { + return productCode; + } + public void setProductName(String productName) + { + this.productName = productName; + } + + public String getProductName() + { + return productName; + } + public void setTaxRate(BigDecimal taxRate) + { + this.taxRate = taxRate; + } + + public BigDecimal getTaxRate() + { + return taxRate; + } + public void setUnitPrice(BigDecimal unitPrice) + { + this.unitPrice = unitPrice; + } + + public BigDecimal getUnitPrice() + { + return unitPrice; + } + public void setSpecification(String specification) + { + this.specification = specification; + } + + public String getSpecification() + { + return specification; + } + public void setUnitOfMeasurement(String unitOfMeasurement) + { + this.unitOfMeasurement = unitOfMeasurement; + } + + public String getUnitOfMeasurement() + { + return unitOfMeasurement; + } + public void setTaxCategoryCode(String taxCategoryCode) + { + this.taxCategoryCode = taxCategoryCode; + } + + public String getTaxCategoryCode() + { + return taxCategoryCode; + } + public void setTaxCategoryCodeId(Long taxCategoryCodeId) + { + this.taxCategoryCodeId = taxCategoryCodeId; + } + + public Long getTaxCategoryCodeId() + { + return taxCategoryCodeId; + } + public void setTaxCategoryAbbreviation(String taxCategoryAbbreviation) + { + this.taxCategoryAbbreviation = taxCategoryAbbreviation; + } + + public String getTaxCategoryAbbreviation() + { + return taxCategoryAbbreviation; + } + public void setIsQualifiedForDiscount(String isQualifiedForDiscount) + { + this.isQualifiedForDiscount = isQualifiedForDiscount; + } + + public String getIsQualifiedForDiscount() + { + return isQualifiedForDiscount; + } + public void setDiscountPolicyType(String discountPolicyType) + { + this.discountPolicyType = discountPolicyType; + } + + public String getDiscountPolicyType() + { + return discountPolicyType; + } + public void setZeroTaxRateIndicator(String zeroTaxRateIndicator) + { + this.zeroTaxRateIndicator = zeroTaxRateIndicator; + } + + public String getZeroTaxRateIndicator() + { + return zeroTaxRateIndicator; + } + public void setStatus(String status) + { + this.status = status; + } + + public String getStatus() + { + return status; + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("productCode", getProductCode()) + .append("productName", getProductName()) + .append("taxRate", getTaxRate()) + .append("unitPrice", getUnitPrice()) + .append("specification", getSpecification()) + .append("unitOfMeasurement", getUnitOfMeasurement()) + .append("taxCategoryCode", getTaxCategoryCode()) + .append("taxCategoryCodeId", getTaxCategoryCodeId()) + .append("taxCategoryAbbreviation", getTaxCategoryAbbreviation()) + .append("isQualifiedForDiscount", getIsQualifiedForDiscount()) + .append("discountPolicyType", getDiscountPolicyType()) + .append("zeroTaxRateIndicator", getZeroTaxRateIndicator()) + .append("status", getStatus()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .append("remark", getRemark()) + .toString(); + } +} diff --git a/jianshui-platform/src/main/java/com/jianshui/platform/mapper/ProductInfoMapper.java b/jianshui-platform/src/main/java/com/jianshui/platform/mapper/ProductInfoMapper.java new file mode 100644 index 0000000..cc48c20 --- /dev/null +++ b/jianshui-platform/src/main/java/com/jianshui/platform/mapper/ProductInfoMapper.java @@ -0,0 +1,61 @@ +package com.jianshui.platform.mapper; + +import java.util.List; +import com.jianshui.platform.domain.ProductInfo; + +/** + * 商品信息Mapper接口 + * + * @author kk + * @date 2023-06-27 + */ +public interface ProductInfoMapper +{ + /** + * 查询商品信息 + * + * @param id 商品信息主键 + * @return 商品信息 + */ + public ProductInfo selectProductInfoById(Long id); + + /** + * 查询商品信息列表 + * + * @param productInfo 商品信息 + * @return 商品信息集合 + */ + public List selectProductInfoList(ProductInfo productInfo); + + /** + * 新增商品信息 + * + * @param productInfo 商品信息 + * @return 结果 + */ + public int insertProductInfo(ProductInfo productInfo); + + /** + * 修改商品信息 + * + * @param productInfo 商品信息 + * @return 结果 + */ + public int updateProductInfo(ProductInfo productInfo); + + /** + * 删除商品信息 + * + * @param id 商品信息主键 + * @return 结果 + */ + public int deleteProductInfoById(Long id); + + /** + * 批量删除商品信息 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteProductInfoByIds(Long[] ids); +} diff --git a/jianshui-platform/src/main/java/com/jianshui/platform/service/IProductInfoService.java b/jianshui-platform/src/main/java/com/jianshui/platform/service/IProductInfoService.java new file mode 100644 index 0000000..706100e --- /dev/null +++ b/jianshui-platform/src/main/java/com/jianshui/platform/service/IProductInfoService.java @@ -0,0 +1,61 @@ +package com.jianshui.platform.service; + +import java.util.List; +import com.jianshui.platform.domain.ProductInfo; + +/** + * 商品信息Service接口 + * + * @author kk + * @date 2023-06-27 + */ +public interface IProductInfoService +{ + /** + * 查询商品信息 + * + * @param id 商品信息主键 + * @return 商品信息 + */ + public ProductInfo selectProductInfoById(Long id); + + /** + * 查询商品信息列表 + * + * @param productInfo 商品信息 + * @return 商品信息集合 + */ + public List selectProductInfoList(ProductInfo productInfo); + + /** + * 新增商品信息 + * + * @param productInfo 商品信息 + * @return 结果 + */ + public int insertProductInfo(ProductInfo productInfo); + + /** + * 修改商品信息 + * + * @param productInfo 商品信息 + * @return 结果 + */ + public int updateProductInfo(ProductInfo productInfo); + + /** + * 批量删除商品信息 + * + * @param ids 需要删除的商品信息主键集合 + * @return 结果 + */ + public int deleteProductInfoByIds(Long[] ids); + + /** + * 删除商品信息信息 + * + * @param id 商品信息主键 + * @return 结果 + */ + public int deleteProductInfoById(Long id); +} diff --git a/jianshui-platform/src/main/java/com/jianshui/platform/service/impl/ProductInfoServiceImpl.java b/jianshui-platform/src/main/java/com/jianshui/platform/service/impl/ProductInfoServiceImpl.java new file mode 100644 index 0000000..0ab542d --- /dev/null +++ b/jianshui-platform/src/main/java/com/jianshui/platform/service/impl/ProductInfoServiceImpl.java @@ -0,0 +1,96 @@ +package com.jianshui.platform.service.impl; + +import java.util.List; +import com.jianshui.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.jianshui.platform.mapper.ProductInfoMapper; +import com.jianshui.platform.domain.ProductInfo; +import com.jianshui.platform.service.IProductInfoService; + +/** + * 商品信息Service业务层处理 + * + * @author kk + * @date 2023-06-27 + */ +@Service +public class ProductInfoServiceImpl implements IProductInfoService +{ + @Autowired + private ProductInfoMapper productInfoMapper; + + /** + * 查询商品信息 + * + * @param id 商品信息主键 + * @return 商品信息 + */ + @Override + public ProductInfo selectProductInfoById(Long id) + { + return productInfoMapper.selectProductInfoById(id); + } + + /** + * 查询商品信息列表 + * + * @param productInfo 商品信息 + * @return 商品信息 + */ + @Override + public List selectProductInfoList(ProductInfo productInfo) + { + return productInfoMapper.selectProductInfoList(productInfo); + } + + /** + * 新增商品信息 + * + * @param productInfo 商品信息 + * @return 结果 + */ + @Override + public int insertProductInfo(ProductInfo productInfo) + { + productInfo.setCreateTime(DateUtils.getNowDate()); + return productInfoMapper.insertProductInfo(productInfo); + } + + /** + * 修改商品信息 + * + * @param productInfo 商品信息 + * @return 结果 + */ + @Override + public int updateProductInfo(ProductInfo productInfo) + { + productInfo.setUpdateTime(DateUtils.getNowDate()); + return productInfoMapper.updateProductInfo(productInfo); + } + + /** + * 批量删除商品信息 + * + * @param ids 需要删除的商品信息主键 + * @return 结果 + */ + @Override + public int deleteProductInfoByIds(Long[] ids) + { + return productInfoMapper.deleteProductInfoByIds(ids); + } + + /** + * 删除商品信息信息 + * + * @param id 商品信息主键 + * @return 结果 + */ + @Override + public int deleteProductInfoById(Long id) + { + return productInfoMapper.deleteProductInfoById(id); + } +} diff --git a/jianshui-platform/src/main/resources/com/jianshui/platform/mapper/ProductInfoMapper.xml b/jianshui-platform/src/main/resources/com/jianshui/platform/mapper/ProductInfoMapper.xml new file mode 100644 index 0000000..e3d774d --- /dev/null +++ b/jianshui-platform/src/main/resources/com/jianshui/platform/mapper/ProductInfoMapper.xml @@ -0,0 +1,136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, product_code, product_name, tax_rate, unit_price, specification, unit_of_measurement, tax_category_code, tax_category_code_id, tax_category_abbreviation, is_qualified_for_discount, discount_policy_type, zero_tax_rate_indicator, status, create_by, create_time, update_by, update_time, remark from product_info + + + + + + + + insert into product_info + + product_code, + product_name, + tax_rate, + unit_price, + specification, + unit_of_measurement, + tax_category_code, + tax_category_code_id, + tax_category_abbreviation, + is_qualified_for_discount, + discount_policy_type, + zero_tax_rate_indicator, + status, + create_by, + create_time, + update_by, + update_time, + remark, + + + #{productCode}, + #{productName}, + #{taxRate}, + #{unitPrice}, + #{specification}, + #{unitOfMeasurement}, + #{taxCategoryCode}, + #{taxCategoryCodeId}, + #{taxCategoryAbbreviation}, + #{isQualifiedForDiscount}, + #{discountPolicyType}, + #{zeroTaxRateIndicator}, + #{status}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + #{remark}, + + + + + update product_info + + product_code = #{productCode}, + product_name = #{productName}, + tax_rate = #{taxRate}, + unit_price = #{unitPrice}, + specification = #{specification}, + unit_of_measurement = #{unitOfMeasurement}, + tax_category_code = #{taxCategoryCode}, + tax_category_code_id = #{taxCategoryCodeId}, + tax_category_abbreviation = #{taxCategoryAbbreviation}, + is_qualified_for_discount = #{isQualifiedForDiscount}, + discount_policy_type = #{discountPolicyType}, + zero_tax_rate_indicator = #{zeroTaxRateIndicator}, + status = #{status}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + remark = #{remark}, + + where id = #{id} + + + + delete from product_info where id = #{id} + + + + delete from product_info where id in + + #{id} + + + \ No newline at end of file diff --git a/jianshui-ui/src/api/platform/product_info.js b/jianshui-ui/src/api/platform/product_info.js new file mode 100644 index 0000000..02a5f63 --- /dev/null +++ b/jianshui-ui/src/api/platform/product_info.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询商品信息列表 +export function listProduct_info(query) { + return request({ + url: '/platform/product_info/list', + method: 'get', + params: query + }) +} + +// 查询商品信息详细 +export function getProduct_info(id) { + return request({ + url: '/platform/product_info/' + id, + method: 'get' + }) +} + +// 新增商品信息 +export function addProduct_info(data) { + return request({ + url: '/platform/product_info', + method: 'post', + data: data + }) +} + +// 修改商品信息 +export function updateProduct_info(data) { + return request({ + url: '/platform/product_info', + method: 'put', + data: data + }) +} + +// 删除商品信息 +export function delProduct_info(id) { + return request({ + url: '/platform/product_info/' + id, + method: 'delete' + }) +} diff --git a/jianshui-ui/src/views/platform/product_info/index.vue b/jianshui-ui/src/views/platform/product_info/index.vue new file mode 100644 index 0000000..4032bd6 --- /dev/null +++ b/jianshui-ui/src/views/platform/product_info/index.vue @@ -0,0 +1,411 @@ + + +