|
@@ -9,7 +9,8 @@
|
|
|
:searchConfig="searchConfig"
|
|
|
highlight-current-row
|
|
|
@get-list="getList"
|
|
|
- @clickReset="clickReset">
|
|
|
+ @clickReset="clickReset"
|
|
|
+ @changeRadioGroup="changeRadioGroup">
|
|
|
</byTable>
|
|
|
</el-card>
|
|
|
|
|
@@ -43,7 +44,7 @@ const sourceList = ref({
|
|
|
total: 0,
|
|
|
pageNum: 1,
|
|
|
pageSize: 10,
|
|
|
- type: "1",
|
|
|
+ type: 1,
|
|
|
departmentId: "",
|
|
|
beginTime: "",
|
|
|
endTime: "",
|
|
@@ -53,6 +54,25 @@ const loading = ref(false);
|
|
|
const searchConfig = computed(() => {
|
|
|
return [
|
|
|
{
|
|
|
+ type: "radio-group",
|
|
|
+ prop: "type",
|
|
|
+ label: "维度",
|
|
|
+ data: [
|
|
|
+ {
|
|
|
+ dictKey: 1,
|
|
|
+ dictValue: "月度",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ dictKey: 2,
|
|
|
+ dictValue: "季度",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ dictKey: 3,
|
|
|
+ dictValue: "年度",
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
type: "date",
|
|
|
propList: ["beginTime", "endTime"],
|
|
|
label: "日期",
|
|
@@ -143,6 +163,9 @@ const getList = async (req, status) => {
|
|
|
} else {
|
|
|
sourceList.value.pagination = { ...sourceList.value.pagination, ...req };
|
|
|
}
|
|
|
+ if (sourceList.value.pagination.beginTime || sourceList.value.pagination.endTime) {
|
|
|
+ sourceList.value.pagination.type = 4;
|
|
|
+ }
|
|
|
loading.value = true;
|
|
|
proxy.post("/statementOfAccountMerge/page", sourceList.value.pagination).then((res) => {
|
|
|
if (res.rows && res.rows.length > 0) {
|
|
@@ -165,6 +188,9 @@ getList();
|
|
|
const clickReset = () => {
|
|
|
getList("", true);
|
|
|
};
|
|
|
+const changeRadioGroup = () => {
|
|
|
+ getList({ beginTime: "", endTime: "" });
|
|
|
+};
|
|
|
const openPrint = ref(false);
|
|
|
const idGroupConcat = ref("");
|
|
|
const activeName = ref("sku");
|