From 64e943b681f8a7b60a9adc1ccd3045cc2ecc591a Mon Sep 17 00:00:00 2001 From: ryoeiken <754264374@qq.com> Date: Mon, 4 Jan 2021 17:32:07 +0800 Subject: [PATCH] =?UTF-8?q?todo:=E5=BC=80=E7=A5=A8=EF=BC=8C=E5=9B=9E?= =?UTF-8?q?=E6=AC=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/FtInvoiceDaoController.java | 19 +- .../controller/FtSettleDaoController.java | 2 +- ruoyi-ui/src/views/fantang/invoice/index.vue | 248 ++++++++ .../src/views/fantang/invoiceReturn/index.vue | 562 +++++++++++++----- ruoyi-ui/src/views/fantang/settle/index.vue | 2 +- 5 files changed, 670 insertions(+), 163 deletions(-) create mode 100644 ruoyi-ui/src/views/fantang/invoice/index.vue diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtInvoiceDaoController.java b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtInvoiceDaoController.java index 8340a6d47..859addf07 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtInvoiceDaoController.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtInvoiceDaoController.java @@ -35,7 +35,7 @@ import java.util.List; public class FtInvoiceDaoController extends BaseController { private final IFtInvoiceDaoService iFtInvoiceDaoService; - + private final IFtReturnDaoService iFtReturnDaoService; /** @@ -46,6 +46,11 @@ public class FtInvoiceDaoController extends BaseController { public TableDataInfo list(FtInvoiceDao ftInvoiceDao) { startPage(); LambdaQueryWrapper lqw = Wrappers.lambdaQuery(ftInvoiceDao); + + if (ftInvoiceDao.getInvoiceType() != null) { + lqw.eq(FtInvoiceDao::getInvoiceType, ftInvoiceDao.getInvoiceType()); + } + List list = iFtInvoiceDaoService.list(lqw); return getDataTable(list); } @@ -132,12 +137,12 @@ public class FtInvoiceDaoController extends BaseController { invoiceDao.setTaxId(taxId); invoiceDao.setInvoiceType(invoiceType); iFtInvoiceDaoService.save(invoiceDao); - - if (invoiceType == 2) { - FtReturnDao ftReturnDao = new FtReturnDao(); - ftReturnDao.setInvoiceId(invoiceDao.getId()); - iFtReturnDaoService.save(ftReturnDao); - } +// +// if (invoiceType == 2) { +// FtReturnDao ftReturnDao = new FtReturnDao(); +// ftReturnDao.setInvoiceId(invoiceDao.getId()); +// iFtReturnDaoService.save(ftReturnDao); +// } return AjaxResult.success("已开票"); } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtSettleDaoController.java b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtSettleDaoController.java index 093323f55..40d1019c5 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtSettleDaoController.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtSettleDaoController.java @@ -136,7 +136,7 @@ public class FtSettleDaoController extends BaseController { prepaymentDao.setPrepaid(balance); iFtPrepaymentDaoService.updateById(prepaymentDao); - ftSettleDao.setType("预付款"); + ftSettleDao.setType("预付款冲减"); break; case 3: diff --git a/ruoyi-ui/src/views/fantang/invoice/index.vue b/ruoyi-ui/src/views/fantang/invoice/index.vue new file mode 100644 index 000000000..1363f30fc --- /dev/null +++ b/ruoyi-ui/src/views/fantang/invoice/index.vue @@ -0,0 +1,248 @@ + + + diff --git a/ruoyi-ui/src/views/fantang/invoiceReturn/index.vue b/ruoyi-ui/src/views/fantang/invoiceReturn/index.vue index 6b0e39a7c..7acbc1eba 100644 --- a/ruoyi-ui/src/views/fantang/invoiceReturn/index.vue +++ b/ruoyi-ui/src/views/fantang/invoiceReturn/index.vue @@ -1,68 +1,359 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +