钱包记录添加月份参数

This commit is contained in:
weiwei committed 2025-02-28 10:32:54 +08:00
1 parent 9ce33414d6
commit 1588ef9cfc
1 file changed
+49 -1
+49 -1
View File
@@ -20,6 +20,15 @@
<el-form-item style="width: 200px" label="饭卡卡号" prop="cardNumber">
<el-input v-model="state.queryForm.cardNumber" placeholder="饭卡卡号" clearable />
</el-form-item>
<el-form-item style="width: 200px" label="月份" prop="walletRecordMonth">
<el-date-picker
v-model="state.queryForm.walletRecordMonth"
value-format="YYYY-MM"
type="month"
:clearable="false"
placeholder="选择月份"
/>
</el-form-item>
<el-form-item style="width: 200px" label="饭卡类型" prop="walletTypeId">
<select-wallet-type v-model="state.queryForm.walletTypeId" placeholder="饭卡类型" clearable />
</el-form-item>
@@ -119,6 +128,7 @@ import { fetchListJoin, delObjs } from "/@/api/wallet/wallet-manage"
import { useMessage, useMessageBox } from "/@/hooks/message"
import { useDict } from "/@/hooks/dict"
import { displayPrice } from "/@/utils/formatMoney"
import { formatDate } from "/@/utils/formatTime"
const { wallet_type, yes_no_type } = useDict("wallet_type", "yes_no_type")
// 定义变量内容
@@ -131,7 +141,9 @@ const selectObjs = ref([]) as any
const multiple = ref(true)
const state: BasicTableProps = reactive<BasicTableProps>({
queryForm: {},
queryForm: {
walletRecordMonth: formatDate(new Date(), "YYYY-mm"),
},
pageList: fetchListJoin,
})
@@ -206,3 +218,39 @@ const handleDelete = async (ids: string[]) => {
}
}
</script>
<!-- <style scoped>
.cell {
height: 30px;
padding: 3px 0;
box-sizing: border-box;
}
.cell .text {
width: 24px;
height: 24px;
display: block;
margin: 0 auto;
line-height: 24px;
position: absolute;
left: 50%;
transform: translateX(-50%);
border-radius: 50%;
}
.cell.current .text {
background: #626aef;
color: #fff;
}
.cell .holiday {
position: absolute;
width: 6px;
height: 6px;
background: var(--el-color-danger);
border-radius: 50%;
bottom: 0px;
left: 50%;
transform: translateX(-50%);
}
</style> -->