修复开票管理是否已开票不能筛选的 bug
This commit is contained in:
parent
0e1564998f
commit
007d0adfb2
@ -145,19 +145,10 @@ public class FtInvoiceDaoController extends BaseController {
|
||||
invoiceDao.setInvoiceAmount(invoiceAmount);
|
||||
iFtInvoiceDaoService.save(invoiceDao);
|
||||
|
||||
// 跟踪回款
|
||||
// if (invoiceType == 2) {
|
||||
// FtReturnDao ftReturnDao = new FtReturnDao();
|
||||
// ftReturnDao.setInvoiceId(invoiceDao.getId());
|
||||
// ftReturnDao.setReturnFlag(0);
|
||||
//
|
||||
// ftReturnDaoService.save(ftReturnDao);
|
||||
// }
|
||||
|
||||
FtSettlementDao settlementDao = new FtSettlementDao();
|
||||
settlementDao.setSettleId(params.getLong("settleId"));
|
||||
settlementDao.setInvoiceId(invoiceDao.getId());
|
||||
settlementDao.setInvoiceFlag(true);
|
||||
settlementDao.setInvoiceFlag(1);
|
||||
settSettlementDaoService.updateById(settlementDao);
|
||||
|
||||
return AjaxResult.success("已开票");
|
||||
|
@ -108,5 +108,5 @@ public class FtSettlementDao implements Serializable {
|
||||
|
||||
private Long invoiceId;
|
||||
|
||||
private Boolean invoiceFlag;
|
||||
private Integer invoiceFlag;
|
||||
}
|
||||
|
@ -29,7 +29,7 @@
|
||||
<if test="beginOfDay != null and beginOfDay !=''">settle_at BETWEEN #{beginOfDay}</if>
|
||||
<if test="endOfDay != null and endOfDay !=''">AND #{endOfDay}</if>
|
||||
<if test="type != null and type !=''">and a.type = #{type}</if>
|
||||
<if test="invoiceFlag != null and invoiceFlag !=''">and a.invoice_flag = #{invoiceFlag}</if>
|
||||
<if test="invoiceFlag != 2">and a.invoice_flag = #{invoiceFlag}</if>
|
||||
</where>
|
||||
|
||||
</select>
|
||||
|
@ -204,11 +204,14 @@ export default {
|
||||
label: '开票并跟踪回款'
|
||||
}],
|
||||
invoiceFlagOptions: [{
|
||||
value: true,
|
||||
value: 1,
|
||||
label: '是'
|
||||
}, {
|
||||
value: false,
|
||||
value: 0,
|
||||
label: '否'
|
||||
}, {
|
||||
value: 2,
|
||||
label: '全部'
|
||||
}],
|
||||
typeOptions: [{
|
||||
value: '现金',
|
||||
@ -262,7 +265,7 @@ export default {
|
||||
receipts: undefined,
|
||||
type: undefined,
|
||||
refund: undefined,
|
||||
invoiceFlag: undefined,
|
||||
invoiceFlag: 2,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
@ -334,7 +337,7 @@ export default {
|
||||
}
|
||||
},
|
||||
formatInvoiceFlag(row) {
|
||||
if (row.invoiceFlag === true) {
|
||||
if (row.invoiceFlag === 1 || row.invoiceFlag === '1') {
|
||||
return '是';
|
||||
} else {
|
||||
return '否';
|
||||
|
Loading…
x
Reference in New Issue
Block a user