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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +