From d53427a85d9fffff6a100b56f2f9cb7db4de9fd5 Mon Sep 17 00:00:00 2001 From: kane Date: Wed, 28 Jun 2023 17:24:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../InvoiceParamConfigController.java | 104 +++++ .../platform/domain/InvoiceParamConfig.java | 434 ++++++++++++++++++ .../mapper/InvoiceParamConfigMapper.java | 61 +++ .../service/IInvoiceParamConfigService.java | 61 +++ .../impl/InvoiceParamConfigServiceImpl.java | 116 +++++ .../mapper/InvoiceParamConfigMapper.xml | 185 ++++++++ jianshui-ui/src/api/platform/config.js | 44 ++ .../src/views/platform/config/index.vue | 433 +++++++++++++++++ 8 files changed, 1438 insertions(+) create mode 100644 jianshui-admin/src/main/java/com/jianshui/web/controller/platform/InvoiceParamConfigController.java create mode 100644 jianshui-platform/src/main/java/com/jianshui/platform/domain/InvoiceParamConfig.java create mode 100644 jianshui-platform/src/main/java/com/jianshui/platform/mapper/InvoiceParamConfigMapper.java create mode 100644 jianshui-platform/src/main/java/com/jianshui/platform/service/IInvoiceParamConfigService.java create mode 100644 jianshui-platform/src/main/java/com/jianshui/platform/service/impl/InvoiceParamConfigServiceImpl.java create mode 100644 jianshui-platform/src/main/resources/com/jianshui/platform/mapper/InvoiceParamConfigMapper.xml create mode 100644 jianshui-ui/src/api/platform/config.js create mode 100644 jianshui-ui/src/views/platform/config/index.vue diff --git a/jianshui-admin/src/main/java/com/jianshui/web/controller/platform/InvoiceParamConfigController.java b/jianshui-admin/src/main/java/com/jianshui/web/controller/platform/InvoiceParamConfigController.java new file mode 100644 index 0000000..c4c6a43 --- /dev/null +++ b/jianshui-admin/src/main/java/com/jianshui/web/controller/platform/InvoiceParamConfigController.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.InvoiceParamConfig; +import com.jianshui.platform.service.IInvoiceParamConfigService; +import com.jianshui.common.utils.poi.ExcelUtil; +import com.jianshui.common.core.page.TableDataInfo; + +/** + * 导入设置Controller + * + * @author kane + * @date 2023-06-28 + */ +@RestController +@RequestMapping("/platform/config") +public class InvoiceParamConfigController extends BaseController +{ + @Autowired + private IInvoiceParamConfigService invoiceParamConfigService; + + /** + * 查询导入设置列表 + */ + @PreAuthorize("@ss.hasPermi('platform:config:list')") + @GetMapping("/list") + public TableDataInfo list(InvoiceParamConfig invoiceParamConfig) + { + startPage(); + List list = invoiceParamConfigService.selectInvoiceParamConfigList(invoiceParamConfig); + return getDataTable(list); + } + + /** + * 导出导入设置列表 + */ + @PreAuthorize("@ss.hasPermi('platform:config:export')") + @Log(title = "导入设置", businessType = BusinessType.EXPORT) + @PostMapping("/export") + public void export(HttpServletResponse response, InvoiceParamConfig invoiceParamConfig) + { + List list = invoiceParamConfigService.selectInvoiceParamConfigList(invoiceParamConfig); + ExcelUtil util = new ExcelUtil(InvoiceParamConfig.class); + util.exportExcel(response, list, "导入设置数据"); + } + + /** + * 获取导入设置详细信息 + */ + @PreAuthorize("@ss.hasPermi('platform:config:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(invoiceParamConfigService.selectInvoiceParamConfigById(id)); + } + + /** + * 新增导入设置 + */ + @PreAuthorize("@ss.hasPermi('platform:config:add')") + @Log(title = "导入设置", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody InvoiceParamConfig invoiceParamConfig) + { + return toAjax(invoiceParamConfigService.insertInvoiceParamConfig(invoiceParamConfig)); + } + + /** + * 修改导入设置 + */ + @PreAuthorize("@ss.hasPermi('platform:config:edit')") + @Log(title = "导入设置", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody InvoiceParamConfig invoiceParamConfig) + { + return toAjax(invoiceParamConfigService.updateInvoiceParamConfig(invoiceParamConfig)); + } + + /** + * 删除导入设置 + */ + @PreAuthorize("@ss.hasPermi('platform:config:remove')") + @Log(title = "导入设置", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(invoiceParamConfigService.deleteInvoiceParamConfigByIds(ids)); + } +} diff --git a/jianshui-platform/src/main/java/com/jianshui/platform/domain/InvoiceParamConfig.java b/jianshui-platform/src/main/java/com/jianshui/platform/domain/InvoiceParamConfig.java new file mode 100644 index 0000000..bb4f81d --- /dev/null +++ b/jianshui-platform/src/main/java/com/jianshui/platform/domain/InvoiceParamConfig.java @@ -0,0 +1,434 @@ +package com.jianshui.platform.domain; + +import java.math.BigDecimal; +import com.jianshui.common.annotation.Excel; +import com.jianshui.common.core.domain.BaseEntity; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * 导入设置对象 invoice_param_config + * + * @author kane + * @date 2023-06-28 + */ +public class InvoiceParamConfig extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 主键ID */ + private Long id; + + /** 企业名称 */ + @Excel(name = "企业名称") + private String companyName; + + /** 单据编号 */ + @Excel(name = "单据编号") + private String receiptNumber; + + /** 客户名称/编码 */ + @Excel(name = "客户名称/编码") + private String customerName; + + /** 客户税号 */ + @Excel(name = "客户税号") + private String customerTaxNumber; + + /** 客户地址 */ + @Excel(name = "客户地址") + private String customerAddress; + + /** 客户电话 */ + @Excel(name = "客户电话") + private String customerPhone; + + /** 开户银行 */ + @Excel(name = "开户银行") + private String bankName; + + /** 银行账号 */ + @Excel(name = "银行账号") + private String bankNumber; + + /** 手机号 */ + @Excel(name = "手机号") + private String phone; + + /** 邮箱 */ + @Excel(name = "邮箱") + private String email; + + /** 商品名称/编码 */ + @Excel(name = "商品名称/编码") + private String productName; + + /** 规格型号 */ + @Excel(name = "规格型号") + private String specification; + + /** 单位 */ + @Excel(name = "单位") + private String unit; + + /** 单价 */ + @Excel(name = "单价") + private String price; + + /** 数量 */ + @Excel(name = "数量") + private String num; + + /** 金额 */ + @Excel(name = "金额") + private String taxamt; + + /** 税率 */ + @Excel(name = "税率") + private String taxrate; + + /** 税额 */ + @Excel(name = "税额") + private String tax; + + /** 折扣 */ + @Excel(name = "折扣") + private String discount; + + /** 扣除额 */ + @Excel(name = "扣除额") + private String deduction; + + /** 单价含税不含税标识 */ + @Excel(name = "单价含税不含税标识") + private String signboard; + + /** 零税率标识 */ + @Excel(name = "零税率标识") + private String zeroTaxRate; + + /** 编码简称 */ + @Excel(name = "编码简称") + private String encodingName; + + /** 编码版本号 */ + @Excel(name = "编码版本号") + private String encodingVersion; + + /** 优惠政策类型 */ + @Excel(name = "优惠政策类型") + private String discountsType; + + /** 税收分类编码 */ + @Excel(name = "税收分类编码") + private String taxClassificationCode; + + /** 是否享受优惠政策 */ + @Excel(name = "是否享受优惠政策") + private String isornotDiscounts; + + /** 订单来源(1-模板导入,2-API调用,3-手工录入,4-扫码开票) */ + private String source; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setCompanyName(String companyName) + { + this.companyName = companyName; + } + + public String getCompanyName() + { + return companyName; + } + public void setReceiptNumber(String receiptNumber) + { + this.receiptNumber = receiptNumber; + } + + public String getReceiptNumber() + { + return receiptNumber; + } + public void setCustomerName(String customerName) + { + this.customerName = customerName; + } + + public String getCustomerName() + { + return customerName; + } + public void setCustomerTaxNumber(String customerTaxNumber) + { + this.customerTaxNumber = customerTaxNumber; + } + + public String getCustomerTaxNumber() + { + return customerTaxNumber; + } + public void setCustomerAddress(String customerAddress) + { + this.customerAddress = customerAddress; + } + + public String getCustomerAddress() + { + return customerAddress; + } + public void setCustomerPhone(String customerPhone) + { + this.customerPhone = customerPhone; + } + + public String getCustomerPhone() + { + return customerPhone; + } + public void setBankName(String bankName) + { + this.bankName = bankName; + } + + public String getBankName() + { + return bankName; + } + public void setBankNumber(String bankNumber) + { + this.bankNumber = bankNumber; + } + + public String getBankNumber() + { + return bankNumber; + } + public void setPhone(String phone) + { + this.phone = phone; + } + + public String getPhone() + { + return phone; + } + public void setEmail(String email) + { + this.email = email; + } + + public String getEmail() + { + return email; + } + public void setProductName(String productName) + { + this.productName = productName; + } + + public String getProductName() + { + return productName; + } + public void setSpecification(String specification) + { + this.specification = specification; + } + + public String getSpecification() + { + return specification; + } + public void setUnit(String unit) + { + this.unit = unit; + } + + public String getUnit() + { + return unit; + } + public void setPrice(String price) + { + this.price = price; + } + + public String getPrice() + { + return price; + } + public void setNum(String num) + { + this.num = num; + } + + public String getNum() + { + return num; + } + public void setTaxamt(String taxamt) + { + this.taxamt = taxamt; + } + + public String getTaxamt() + { + return taxamt; + } + public void setTaxrate(String taxrate) + { + this.taxrate = taxrate; + } + + public String getTaxrate() + { + return taxrate; + } + public void setTax(String tax) + { + this.tax = tax; + } + + public String getTax() + { + return tax; + } + public void setDiscount(String discount) + { + this.discount = discount; + } + + public String getDiscount() + { + return discount; + } + public void setDeduction(String deduction) + { + this.deduction = deduction; + } + + public String getDeduction() + { + return deduction; + } + public void setSignboard(String signboard) + { + this.signboard = signboard; + } + + public String getSignboard() + { + return signboard; + } + public void setZeroTaxRate(String zeroTaxRate) + { + this.zeroTaxRate = zeroTaxRate; + } + + public String getZeroTaxRate() + { + return zeroTaxRate; + } + public void setEncodingName(String encodingName) + { + this.encodingName = encodingName; + } + + public String getEncodingName() + { + return encodingName; + } + public void setEncodingVersion(String encodingVersion) + { + this.encodingVersion = encodingVersion; + } + + public String getEncodingVersion() + { + return encodingVersion; + } + public void setDiscountsType(String discountsType) + { + this.discountsType = discountsType; + } + + public String getDiscountsType() + { + return discountsType; + } + public void setTaxClassificationCode(String taxClassificationCode) + { + this.taxClassificationCode = taxClassificationCode; + } + + public String getTaxClassificationCode() + { + return taxClassificationCode; + } + public void setIsornotDiscounts(String isornotDiscounts) + { + this.isornotDiscounts = isornotDiscounts; + } + + public String getIsornotDiscounts() + { + return isornotDiscounts; + } + public void setSource(String source) + { + this.source = source; + } + + public String getSource() + { + return source; + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("companyName", getCompanyName()) + .append("receiptNumber", getReceiptNumber()) + .append("customerName", getCustomerName()) + .append("customerTaxNumber", getCustomerTaxNumber()) + .append("customerAddress", getCustomerAddress()) + .append("customerPhone", getCustomerPhone()) + .append("bankName", getBankName()) + .append("bankNumber", getBankNumber()) + .append("phone", getPhone()) + .append("email", getEmail()) + .append("remark", getRemark()) + .append("productName", getProductName()) + .append("specification", getSpecification()) + .append("unit", getUnit()) + .append("price", getPrice()) + .append("num", getNum()) + .append("taxamt", getTaxamt()) + .append("taxrate", getTaxrate()) + .append("tax", getTax()) + .append("discount", getDiscount()) + .append("deduction", getDeduction()) + .append("signboard", getSignboard()) + .append("zeroTaxRate", getZeroTaxRate()) + .append("encodingName", getEncodingName()) + .append("encodingVersion", getEncodingVersion()) + .append("discountsType", getDiscountsType()) + .append("taxClassificationCode", getTaxClassificationCode()) + .append("isornotDiscounts", getIsornotDiscounts()) + .append("source", getSource()) + .append("createBy", getCreateBy()) + .append("createTime", getCreateTime()) + .append("updateBy", getUpdateBy()) + .append("updateTime", getUpdateTime()) + .toString(); + } +} diff --git a/jianshui-platform/src/main/java/com/jianshui/platform/mapper/InvoiceParamConfigMapper.java b/jianshui-platform/src/main/java/com/jianshui/platform/mapper/InvoiceParamConfigMapper.java new file mode 100644 index 0000000..da8b47c --- /dev/null +++ b/jianshui-platform/src/main/java/com/jianshui/platform/mapper/InvoiceParamConfigMapper.java @@ -0,0 +1,61 @@ +package com.jianshui.platform.mapper; + +import java.util.List; +import com.jianshui.platform.domain.InvoiceParamConfig; + +/** + * 导入设置Mapper接口 + * + * @author kane + * @date 2023-06-28 + */ +public interface InvoiceParamConfigMapper +{ + /** + * 查询导入设置 + * + * @param id 导入设置主键 + * @return 导入设置 + */ + public InvoiceParamConfig selectInvoiceParamConfigById(Long id); + + /** + * 查询导入设置列表 + * + * @param invoiceParamConfig 导入设置 + * @return 导入设置集合 + */ + public List selectInvoiceParamConfigList(InvoiceParamConfig invoiceParamConfig); + + /** + * 新增导入设置 + * + * @param invoiceParamConfig 导入设置 + * @return 结果 + */ + public int insertInvoiceParamConfig(InvoiceParamConfig invoiceParamConfig); + + /** + * 修改导入设置 + * + * @param invoiceParamConfig 导入设置 + * @return 结果 + */ + public int updateInvoiceParamConfig(InvoiceParamConfig invoiceParamConfig); + + /** + * 删除导入设置 + * + * @param id 导入设置主键 + * @return 结果 + */ + public int deleteInvoiceParamConfigById(Long id); + + /** + * 批量删除导入设置 + * + * @param ids 需要删除的数据主键集合 + * @return 结果 + */ + public int deleteInvoiceParamConfigByIds(Long[] ids); +} diff --git a/jianshui-platform/src/main/java/com/jianshui/platform/service/IInvoiceParamConfigService.java b/jianshui-platform/src/main/java/com/jianshui/platform/service/IInvoiceParamConfigService.java new file mode 100644 index 0000000..a5f3899 --- /dev/null +++ b/jianshui-platform/src/main/java/com/jianshui/platform/service/IInvoiceParamConfigService.java @@ -0,0 +1,61 @@ +package com.jianshui.platform.service; + +import java.util.List; +import com.jianshui.platform.domain.InvoiceParamConfig; + +/** + * 导入设置Service接口 + * + * @author kane + * @date 2023-06-28 + */ +public interface IInvoiceParamConfigService +{ + /** + * 查询导入设置 + * + * @param id 导入设置主键 + * @return 导入设置 + */ + public InvoiceParamConfig selectInvoiceParamConfigById(Long id); + + /** + * 查询导入设置列表 + * + * @param invoiceParamConfig 导入设置 + * @return 导入设置集合 + */ + public List selectInvoiceParamConfigList(InvoiceParamConfig invoiceParamConfig); + + /** + * 新增导入设置 + * + * @param invoiceParamConfig 导入设置 + * @return 结果 + */ + public int insertInvoiceParamConfig(InvoiceParamConfig invoiceParamConfig); + + /** + * 修改导入设置 + * + * @param invoiceParamConfig 导入设置 + * @return 结果 + */ + public int updateInvoiceParamConfig(InvoiceParamConfig invoiceParamConfig); + + /** + * 批量删除导入设置 + * + * @param ids 需要删除的导入设置主键集合 + * @return 结果 + */ + public int deleteInvoiceParamConfigByIds(Long[] ids); + + /** + * 删除导入设置信息 + * + * @param id 导入设置主键 + * @return 结果 + */ + public int deleteInvoiceParamConfigById(Long id); +} diff --git a/jianshui-platform/src/main/java/com/jianshui/platform/service/impl/InvoiceParamConfigServiceImpl.java b/jianshui-platform/src/main/java/com/jianshui/platform/service/impl/InvoiceParamConfigServiceImpl.java new file mode 100644 index 0000000..7e59105 --- /dev/null +++ b/jianshui-platform/src/main/java/com/jianshui/platform/service/impl/InvoiceParamConfigServiceImpl.java @@ -0,0 +1,116 @@ +package com.jianshui.platform.service.impl; + +import java.math.BigDecimal; +import java.util.List; + +import com.jianshui.common.core.domain.entity.Companyservice; +import com.jianshui.common.core.domain.entity.SysUser; +import com.jianshui.common.utils.DateUtils; +import com.jianshui.common.utils.SecurityUtils; +import com.jianshui.system.mapper.CompanyserviceMapper; +import com.jianshui.system.mapper.SysUserMapper; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.jianshui.platform.mapper.InvoiceParamConfigMapper; +import com.jianshui.platform.domain.InvoiceParamConfig; +import com.jianshui.platform.service.IInvoiceParamConfigService; + +/** + * 导入设置Service业务层处理 + * + * @author kane + * @date 2023-06-28 + */ +@Service +public class InvoiceParamConfigServiceImpl implements IInvoiceParamConfigService +{ + @Autowired + private InvoiceParamConfigMapper invoiceParamConfigMapper; + + @Autowired + private SysUserMapper sysUserMapper; + + @Autowired + private CompanyserviceMapper companyserviceMapper; + + /** + * 查询导入设置 + * + * @param id 导入设置主键 + * @return 导入设置 + */ + @Override + public InvoiceParamConfig selectInvoiceParamConfigById(Long id) + { + return invoiceParamConfigMapper.selectInvoiceParamConfigById(id); + } + + /** + * 查询导入设置列表 + * + * @param invoiceParamConfig 导入设置 + * @return 导入设置 + */ + @Override + public List selectInvoiceParamConfigList(InvoiceParamConfig invoiceParamConfig) + { + return invoiceParamConfigMapper.selectInvoiceParamConfigList(invoiceParamConfig); + } + + /** + * 新增导入设置 + * + * @param invoiceParamConfig 导入设置 + * @return 结果 + */ + @Override + public int insertInvoiceParamConfig(InvoiceParamConfig invoiceParamConfig) + { + //获取企业id + Long userId = SecurityUtils.getUserId(); + SysUser sysUser = sysUserMapper.selectUserById(userId); + Companyservice companyservice = companyserviceMapper.selectCompanyserviceByCompanyid(sysUser.getCompanyId()); + //封装参数 + invoiceParamConfig.setCreateTime(DateUtils.getNowDate()); + invoiceParamConfig.setCompanyName(companyservice.getSellername()); + invoiceParamConfig.setCreateBy(sysUser.getCreateBy()); + return invoiceParamConfigMapper.insertInvoiceParamConfig(invoiceParamConfig); + } + + /** + * 修改导入设置 + * + * @param invoiceParamConfig 导入设置 + * @return 结果 + */ + @Override + public int updateInvoiceParamConfig(InvoiceParamConfig invoiceParamConfig) + { + invoiceParamConfig.setUpdateTime(DateUtils.getNowDate()); + return invoiceParamConfigMapper.updateInvoiceParamConfig(invoiceParamConfig); + } + + /** + * 批量删除导入设置 + * + * @param ids 需要删除的导入设置主键 + * @return 结果 + */ + @Override + public int deleteInvoiceParamConfigByIds(Long[] ids) + { + return invoiceParamConfigMapper.deleteInvoiceParamConfigByIds(ids); + } + + /** + * 删除导入设置信息 + * + * @param id 导入设置主键 + * @return 结果 + */ + @Override + public int deleteInvoiceParamConfigById(Long id) + { + return invoiceParamConfigMapper.deleteInvoiceParamConfigById(id); + } +} diff --git a/jianshui-platform/src/main/resources/com/jianshui/platform/mapper/InvoiceParamConfigMapper.xml b/jianshui-platform/src/main/resources/com/jianshui/platform/mapper/InvoiceParamConfigMapper.xml new file mode 100644 index 0000000..f3cff77 --- /dev/null +++ b/jianshui-platform/src/main/resources/com/jianshui/platform/mapper/InvoiceParamConfigMapper.xml @@ -0,0 +1,185 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + select id, company_name, receipt_number, customer_name, customer_tax_number, customer_address, customer_phone, bank_name, bank_number, phone, email, remark, product_name, specification, unit, price, num, taxamt, taxrate, tax, discount, deduction, signboard, zero_tax_rate, encoding_name, encoding_version, discounts_type, tax_classification_code, isornot_discounts, source, create_by, create_time, update_by, update_time from invoice_param_config + + + + + + + + insert into invoice_param_config + + company_name, + receipt_number, + customer_name, + customer_tax_number, + customer_address, + customer_phone, + bank_name, + bank_number, + phone, + email, + remark, + product_name, + specification, + unit, + price, + num, + taxamt, + taxrate, + tax, + discount, + deduction, + signboard, + zero_tax_rate, + encoding_name, + encoding_version, + discounts_type, + tax_classification_code, + isornot_discounts, + source, + create_by, + create_time, + update_by, + update_time, + + + #{companyName}, + #{receiptNumber}, + #{customerName}, + #{customerTaxNumber}, + #{customerAddress}, + #{customerPhone}, + #{bankName}, + #{bankNumber}, + #{phone}, + #{email}, + #{remark}, + #{productName}, + #{specification}, + #{unit}, + #{price}, + #{num}, + #{taxamt}, + #{taxrate}, + #{tax}, + #{discount}, + #{deduction}, + #{signboard}, + #{zeroTaxRate}, + #{encodingName}, + #{encodingVersion}, + #{discountsType}, + #{taxClassificationCode}, + #{isornotDiscounts}, + #{source}, + #{createBy}, + #{createTime}, + #{updateBy}, + #{updateTime}, + + + + + update invoice_param_config + + company_name = #{companyName}, + receipt_number = #{receiptNumber}, + customer_name = #{customerName}, + customer_tax_number = #{customerTaxNumber}, + customer_address = #{customerAddress}, + customer_phone = #{customerPhone}, + bank_name = #{bankName}, + bank_number = #{bankNumber}, + phone = #{phone}, + email = #{email}, + remark = #{remark}, + product_name = #{productName}, + specification = #{specification}, + unit = #{unit}, + price = #{price}, + num = #{num}, + taxamt = #{taxamt}, + taxrate = #{taxrate}, + tax = #{tax}, + discount = #{discount}, + deduction = #{deduction}, + signboard = #{signboard}, + zero_tax_rate = #{zeroTaxRate}, + encoding_name = #{encodingName}, + encoding_version = #{encodingVersion}, + discounts_type = #{discountsType}, + tax_classification_code = #{taxClassificationCode}, + isornot_discounts = #{isornotDiscounts}, + source = #{source}, + create_by = #{createBy}, + create_time = #{createTime}, + update_by = #{updateBy}, + update_time = #{updateTime}, + + where id = #{id} + + + + delete from invoice_param_config where id = #{id} + + + + delete from invoice_param_config where id in + + #{id} + + + \ No newline at end of file diff --git a/jianshui-ui/src/api/platform/config.js b/jianshui-ui/src/api/platform/config.js new file mode 100644 index 0000000..a2db80a --- /dev/null +++ b/jianshui-ui/src/api/platform/config.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询导入设置列表 +export function listConfig(query) { + return request({ + url: '/platform/config/list', + method: 'get', + params: query + }) +} + +// 查询导入设置详细 +export function getConfig(id) { + return request({ + url: '/platform/config/' + id, + method: 'get' + }) +} + +// 新增导入设置 +export function addConfig(data) { + return request({ + url: '/platform/config', + method: 'post', + data: data + }) +} + +// 修改导入设置 +export function updateConfig(data) { + return request({ + url: '/platform/config', + method: 'put', + data: data + }) +} + +// 删除导入设置 +export function delConfig(id) { + return request({ + url: '/platform/config/' + id, + method: 'delete' + }) +} diff --git a/jianshui-ui/src/views/platform/config/index.vue b/jianshui-ui/src/views/platform/config/index.vue new file mode 100644 index 0000000..57bbfe7 --- /dev/null +++ b/jianshui-ui/src/views/platform/config/index.vue @@ -0,0 +1,433 @@ + + +