Compare commits
2 Commits
54c4c54cc7
...
1169873a6c
| Author | SHA1 | Date | |
|---|---|---|---|
| 1169873a6c | |||
| 932c8f9baf |
@ -156,7 +156,7 @@ const {
|
||||
align: 'center',
|
||||
minWidth: 120,
|
||||
ellipsis: true,
|
||||
resizable: true,
|
||||
resizable: true
|
||||
},
|
||||
{
|
||||
key: 'deptName',
|
||||
@ -507,7 +507,7 @@ function edit(dataId: CommonType.IdType) {
|
||||
function handleExport() {
|
||||
download('/mps/market/export', searchParams, `营销数据管理_${new Date().getTime()}.xlsx`);
|
||||
}
|
||||
//获取子类目下拉框
|
||||
// 获取子类目下拉框
|
||||
const { startLoading, endLoading } = useLoading();
|
||||
|
||||
const subcategoryIdOptions = ref<CommonType.Option<CommonType.IdType>[]>([]);
|
||||
@ -544,7 +544,7 @@ async function getSubcategoryOptions() {
|
||||
:show-export="false"
|
||||
@add="handleAdd"
|
||||
@delete="handleBatchDelete"
|
||||
@export="handleExport"
|
||||
@export="true"
|
||||
@refresh="getData"
|
||||
>
|
||||
<!-- <template #after>-->
|
||||
|
||||
@ -135,8 +135,8 @@ if(userInfo.roles.includes('operation')){
|
||||
<NFormItemGi span="24 s:12 m:6" label="数据日期" path="date" class="pr-24px">
|
||||
<NDatePicker
|
||||
v-model:formatted-value="model.date"
|
||||
type="datetime"
|
||||
value-format="yyyy-MM-dd"
|
||||
type="month"
|
||||
value-format="yyyy-MM"
|
||||
clearable
|
||||
/>
|
||||
</NFormItemGi>
|
||||
|
||||
@ -1263,7 +1263,6 @@ const {
|
||||
|
||||
return (
|
||||
<div class="flex-center gap-8px">
|
||||
{editBtn()}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -1263,7 +1263,7 @@ const {
|
||||
|
||||
return (
|
||||
<div class="flex-center gap-8px">
|
||||
{editBtn()}
|
||||
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -1263,7 +1263,6 @@ const {
|
||||
|
||||
return (
|
||||
<div class="flex-center gap-8px">
|
||||
{editBtn()}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -1263,7 +1263,6 @@ const {
|
||||
|
||||
return (
|
||||
<div class="flex-center gap-8px">
|
||||
{editBtn()}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -1263,7 +1263,6 @@ const {
|
||||
|
||||
return (
|
||||
<div class="flex-center gap-8px">
|
||||
{editBtn()}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -1262,7 +1262,6 @@ const {
|
||||
|
||||
return (
|
||||
<div class="flex-center gap-8px">
|
||||
{editBtn()}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -215,7 +215,6 @@ const {
|
||||
|
||||
return (
|
||||
<div class="flex-center gap-8px">
|
||||
{editBtn()}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -215,7 +215,6 @@ const {
|
||||
|
||||
return (
|
||||
<div class="flex-center gap-8px">
|
||||
{editBtn()}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -215,7 +215,6 @@ const {
|
||||
|
||||
return (
|
||||
<div class="flex-center gap-8px">
|
||||
{editBtn()}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -115,17 +115,17 @@ const {
|
||||
ellipsis: true,
|
||||
resizable: true
|
||||
},
|
||||
{
|
||||
key: 'invalidBusiness',
|
||||
title: '无效的中间业务计价项目',
|
||||
align: 'center',
|
||||
minWidth: 120,
|
||||
ellipsis: true,
|
||||
resizable: true
|
||||
},
|
||||
// {
|
||||
// key: 'invalidBusiness',
|
||||
// title: '无效的中间业务计价项目',
|
||||
// align: 'center',
|
||||
// minWidth: 120,
|
||||
// ellipsis: true,
|
||||
// resizable: true
|
||||
// },
|
||||
{
|
||||
key: 'validBusiness',
|
||||
title: '有效的中间业务计价项目',
|
||||
title: '中间业务计价项目',
|
||||
align: 'center',
|
||||
minWidth: 120,
|
||||
ellipsis: true,
|
||||
@ -226,7 +226,7 @@ const {
|
||||
);
|
||||
};
|
||||
|
||||
return <div class="flex-center gap-8px">{editBtn()}</div>;
|
||||
return <div class="flex-center gap-8px">{}</div>;
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
package org.dromara.mps.domain.bo;
|
||||
|
||||
import org.dromara.common.translation.annotation.Translation;
|
||||
import org.dromara.common.translation.constant.TransConstant;
|
||||
import org.dromara.mps.domain.MpsDetailEntry;
|
||||
import org.dromara.common.mybatis.core.domain.BaseEntity;
|
||||
import org.dromara.common.core.validate.AddGroup;
|
||||
@ -64,8 +66,7 @@ public class MpsDetailEntryBo extends BaseEntity {
|
||||
/**
|
||||
* 数据日期
|
||||
*/
|
||||
@NotNull(message = "数据日期不能为空", groups = { AddGroup.class, EditGroup.class })
|
||||
private Date date;
|
||||
private String date;
|
||||
|
||||
/**
|
||||
* 部门名称
|
||||
|
||||
@ -4,7 +4,10 @@ import java.math.BigDecimal;
|
||||
import java.util.Date;
|
||||
|
||||
import cn.idev.excel.annotation.ExcelIgnore;
|
||||
import cn.idev.excel.annotation.format.DateTimeFormat;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.dromara.common.translation.annotation.Translation;
|
||||
import org.dromara.common.translation.constant.TransConstant;
|
||||
import org.dromara.mps.domain.MpsDetailEntry;
|
||||
import cn.idev.excel.annotation.ExcelIgnoreUnannotated;
|
||||
import cn.idev.excel.annotation.ExcelProperty;
|
||||
@ -79,19 +82,22 @@ public class MpsDetailEntryVo implements Serializable {
|
||||
* 数据日期
|
||||
*/
|
||||
@ExcelProperty(value = "数据日期")
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat("yyyy-MM-dd")
|
||||
private Date date;
|
||||
|
||||
/**
|
||||
* 部门名称
|
||||
*/
|
||||
@ExcelProperty(value = "部门名称")
|
||||
@Translation(type = TransConstant.DEPT_ID_TO_NAME, mapper = "deptId")
|
||||
private String deptName;
|
||||
|
||||
/**
|
||||
* 部门id
|
||||
*/
|
||||
@ExcelProperty(value = "部门id")
|
||||
private BigDecimal deptId;
|
||||
private Long deptId;
|
||||
|
||||
/**
|
||||
* 客户类型(1-个人,2-对公)
|
||||
|
||||
@ -45,12 +45,14 @@ public interface MpsDetailEntryMapper extends BaseMapperPlus<MpsDetailEntry, Mps
|
||||
"c.old_card_no as oldCardNo , c.new_card_no as newCardNo, c.replace_method as affair ," +
|
||||
"t.traffic_no as trafficNo ,t.traffic_amt as trafficAmt, " +
|
||||
"m.* ," +
|
||||
"d.dept_name AS yxDeptName " +
|
||||
"d.dept_name AS yxDeptName ," +
|
||||
"de.dept_name AS deptName " +
|
||||
"from mps_market m " +
|
||||
" left join mps_traffic t on m.traffic_id = t.traffic_id " +
|
||||
" left join mps_magneticcard c on m.magnetic_card_id = c.magnetic_card_id " +
|
||||
" LEFT JOIN sys_user s ON m.yx_id = s.mkt_no "+
|
||||
" LEFT JOIN sys_dept d ON s.dept_id = d.dept_id "+
|
||||
" LEFT JOIN sys_user s ON m.yx_id = s.mkt_no and m.del_flag = '0'"+
|
||||
" inner JOIN sys_dept d ON s.dept_id = d.dept_id "+
|
||||
" inner JOIN sys_dept de ON m.dept_id = de.dept_id "+
|
||||
"${ew.customSqlSegment}"+
|
||||
"and m.del_flag = '0' order by m.entry_date desc"
|
||||
})
|
||||
|
||||
@ -122,7 +122,7 @@ public class MpsDetailEntryServiceImpl implements IMpsDetailEntryService {
|
||||
lqw.like(StringUtils.isNotBlank(bo.getJbName()), MpsDetailEntry::getJbName, bo.getJbName());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getYxId()), MpsDetailEntry::getYxId, bo.getYxId());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getJbId()), MpsDetailEntry::getJbId, bo.getJbId());
|
||||
lqw.eq(bo.getDate() != null, MpsDetailEntry::getDate, bo.getDate());
|
||||
lqw.like(bo.getDate() != null, MpsDetailEntry::getDate, bo.getDate());
|
||||
lqw.like(StringUtils.isNotBlank(bo.getDeptName()), MpsDetailEntry::getDeptName, bo.getDeptName());
|
||||
lqw.eq(bo.getDeptId() != null, MpsDetailEntry::getDeptId, bo.getDeptId());
|
||||
lqw.eq(StringUtils.isNotBlank(bo.getCustType()), MpsDetailEntry::getCustType, bo.getCustType());
|
||||
|
||||
@ -66,11 +66,11 @@ public class MarketingValidInvalidImportVo implements Serializable {
|
||||
@ExcelProperty(value = "客户身份证号")
|
||||
private String customerId;
|
||||
|
||||
/**
|
||||
* 无效的中间业务计价项目
|
||||
*/
|
||||
@ExcelProperty(value = "无效的中间业务计价项目")
|
||||
private String invalidBusiness;
|
||||
// /**
|
||||
// * 无效的中间业务计价项目
|
||||
// */
|
||||
// @ExcelProperty(value = "无效的中间业务计价项目")
|
||||
// private String invalidBusiness;
|
||||
|
||||
/**
|
||||
* 有效的中间业务计价项目
|
||||
@ -79,9 +79,10 @@ public class MarketingValidInvalidImportVo implements Serializable {
|
||||
private String validBusiness;
|
||||
|
||||
/**
|
||||
* 有效无效标识
|
||||
* 有效无效标识 1有效 9 无效
|
||||
*/
|
||||
@ExcelProperty(value = "有效无效标识")
|
||||
@ExcelProperty(value = "有效无效标识", converter = ExcelDictConvert.class)
|
||||
@ExcelDictFormat(dictType = "report_valid_invalid")
|
||||
private String checkFlag;
|
||||
|
||||
/**
|
||||
|
||||
@ -64,22 +64,23 @@ public class MarketingValidInvalidVo implements Serializable {
|
||||
@ExcelProperty(value = "客户身份证号")
|
||||
private String customerId;
|
||||
|
||||
/**
|
||||
* 无效的中间业务计价项目
|
||||
*/
|
||||
@ExcelProperty(value = "无效的中间业务计价项目")
|
||||
private String invalidBusiness;
|
||||
// /**
|
||||
// * 无效的中间业务计价项目
|
||||
// */
|
||||
// @ExcelProperty(value = "无效的中间业务计价项目")
|
||||
// private String invalidBusiness;
|
||||
|
||||
/**
|
||||
* 有效的中间业务计价项目
|
||||
*/
|
||||
@ExcelProperty(value = "有效的中间业务计价项目")
|
||||
@ExcelProperty(value = "中间业务计价项目")
|
||||
private String validBusiness;
|
||||
|
||||
/**
|
||||
* 有效无效标识
|
||||
*/
|
||||
@ExcelProperty(value = "有效无效标识")
|
||||
@ExcelProperty(value = "有效无效标识", converter = ExcelDictConvert.class)
|
||||
@ExcelDictFormat(dictType = "report_valid_invalid")
|
||||
private String checkFlag;
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user