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 40d1019c5..09da62d79 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 @@ -142,6 +142,8 @@ public class FtSettleDaoController extends BaseController { case 3: ftSettleDao.setType("在线支付"); break; + + default: } diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtStaffInfoDaoController.java b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtStaffInfoDaoController.java index 59203d599..a65518a0d 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtStaffInfoDaoController.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/fantang/controller/FtStaffInfoDaoController.java @@ -136,7 +136,7 @@ public class FtStaffInfoDaoController extends BaseController { } // 判断密码是否为空 - if (ftStaffInfoDao.getPassword() == null || ftStaffInfoDao.getPassword().equals("")) { + if (ftStaffInfoDao.getPassword() == null || "".equals(ftStaffInfoDao.getPassword())) { ftStaffInfoDao.setPassword("123456"); } diff --git a/ruoyi-ui/src/views/fantang/invoiceReturn/index.vue b/ruoyi-ui/src/views/fantang/invoiceReturn/index.vue index 7acbc1eba..6e871bd98 100644 --- a/ruoyi-ui/src/views/fantang/invoiceReturn/index.vue +++ b/ruoyi-ui/src/views/fantang/invoiceReturn/index.vue @@ -368,7 +368,8 @@ size="mini" @click="handleAdd" v-hasPermi="['fantang:invoice:add']" - >新增 + >新增 + 回款登记 + >回款登记 + 删除 + >删除 + 导出 + >导出 + - + - + + @@ -454,8 +461,7 @@ import {addInvoice, delInvoice, exportInvoice, getInvoice, listInvoice, updateIn export default { name: "Invoice", - components: { - }, + components: {}, data() { return { // 遮罩层 @@ -480,19 +486,25 @@ export default { queryParams: { pageNum: 1, pageSize: 10, - invoiceType:2, + // invoiceType:2, }, // 表单参数 form: {}, // 表单校验 - rules: { - } + rules: {} }; }, created() { this.getList(); }, methods: { + formatInvoiceType(row) { + if (row.invoiceType === 1 || row.invoiceType === "1") { + return "开票" + } else { + return "挂账" + } + }, /** 查询财务收费开票列表 */ getList() { this.loading = true; @@ -536,7 +548,7 @@ export default { // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map(item => item.id) - this.single = selection.length!==1 + this.single = selection.length !== 1 this.multiple = !selection.length }, /** 新增按钮操作 */ @@ -582,7 +594,7 @@ export default { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" - }).then(function() { + }).then(function () { return delInvoice(ids); }).then(() => { this.getList(); @@ -596,7 +608,7 @@ export default { confirmButtonText: "确定", cancelButtonText: "取消", type: "warning" - }).then(function() { + }).then(function () { return exportInvoice(queryParams); }).then(response => { this.download(response.msg); diff --git a/ruoyi-ui/src/views/fantang/settlement/index.vue b/ruoyi-ui/src/views/fantang/settlement/index.vue index a35b58971..cb2bd443f 100644 --- a/ruoyi-ui/src/views/fantang/settlement/index.vue +++ b/ruoyi-ui/src/views/fantang/settlement/index.vue @@ -327,14 +327,23 @@ export default { }, /** 修改按钮操作 */ handleUpdate(row) { - this.reset(); - const settleId = row.settleId || this.ids + console.log(row) - getSettlement(settleId).then(response => { - this.form = response.data; - this.open = true; - this.title = "开票"; - }); + + if (row.type!=="预付款冲减"){ + this.reset(); + const settleId = row.settleId || this.ids + console.log(row) + getSettlement(settleId).then(response => { + this.form = response.data; + this.open = true; + this.title = "开票"; + }); + }else { + this.msgError("预付款冲减不能开票") + } + + }, /** 提交按钮 */ submitForm() {