fix: 完善功能,新增POS机刷卡记账。

This commit is contained in:
tianyongbao
2024-06-07 17:09:01 +08:00
parent bdc80f29ef
commit 3474712f40
9 changed files with 852 additions and 16 deletions

View File

@@ -65,7 +65,7 @@ const data = reactive({
rules: {
name: [{ type: 'string', required: true, message: '标题不能为空', trigger: ['change', 'blur'] }],
createTime: [{ type: 'string', required: true, message: '记录时间不能为空', trigger: ['change', 'blur'] }],
type: [{ type: 'string', required: true, message: '类型不能为空', trigger: ['change', 'blur'] }],
typeName: [{ type: 'string', required: true, message: '类型不能为空', trigger: ['change', 'blur'] }],
remark: [{ type: 'string', required: true, message: '内容不能为空', trigger: ['change', 'blur'] }],
}
})
@@ -81,7 +81,7 @@ onLoad((option) => {
getDict()
})
onReady(() => {
proxy.$refs['uForm'].setRules(rules.value)
form.value.createTime = dayjs(new Date().getTime()).format("YYYY-MM-DD HH:mm:ss")
})
function getDict() {
// 类型

View File

@@ -110,7 +110,7 @@ function getList() {
status.value = 'loading'
listHeartJourney({ pageSize: 10, pageNum: pageNum.value, ...queryParams.value }).then(res => {
listData.value = listData.value.concat(res.rows)
if (listData.length < res.total) {
if (listData.value.length < res.total) {
status.value = 'loadmore'
} else {
status.value = 'nomore'