|
|
@ -128,13 +128,7 @@ const rules = reactive({ |
|
|
|
|
|
|
|
//重置表单 |
|
|
|
const deleteConsumeForm = function () { |
|
|
|
consumeForm.value = { |
|
|
|
jwcode: '', |
|
|
|
permanentBean: '', |
|
|
|
freeBean: '', |
|
|
|
remark: '', |
|
|
|
adminName: '' |
|
|
|
} |
|
|
|
formRef.value.resetFields(); |
|
|
|
} |
|
|
|
|
|
|
|
const handleConsumeForm = async () => { |
|
|
@ -196,13 +190,7 @@ const handleConsumeForm = async () => { |
|
|
|
addDisabled.value = false |
|
|
|
if (result.code == 200) { |
|
|
|
ElMessage.success('新增成功') |
|
|
|
consumeForm.value = { |
|
|
|
jwcode: "", |
|
|
|
permanentBean: '', |
|
|
|
freeBean: '', |
|
|
|
remark: '', |
|
|
|
adminName: '' |
|
|
|
} |
|
|
|
deleteConsumeForm() |
|
|
|
user.value = {} |
|
|
|
} else { |
|
|
|
ElMessage.error(result.msg) |
|
|
@ -218,7 +206,8 @@ const throttledHandleConsumeFormt = _.throttle(handleConsumeForm, 5000, { |
|
|
|
</script> |
|
|
|
<template> |
|
|
|
<div> |
|
|
|
<el-form :model="consumeForm" :rules="rules" ref="formRef" label-width="auto" style="max-width: 600px" class="consume-form"> |
|
|
|
<el-form :model="consumeForm" :rules="rules" ref="formRef" label-width="auto" style="max-width: 600px" |
|
|
|
class="consume-form"> |
|
|
|
<el-form-item prop="jwcode" label="精网号" label-position="left"> |
|
|
|
<el-input v-model="consumeForm.jwcode" style="width: 220px" /> |
|
|
|
<el-button type="primary" @click="getUser(consumeForm.jwcode)" style="margin-left: 20px">查询</el-button> |
|
|
|