fix: 完善功能,新增POS机刷卡记账。
This commit is contained in:
@@ -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() {
|
||||
// 类型
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user