|
@@ -40,11 +40,11 @@
|
|
|
</div>
|
|
|
<el-dialog v-model="showSearch" title="查询结果" append-to-body :lock-scroll="false">
|
|
|
<el-form class="searchForm" ref="formRef" :model="form" :rules="rules" size="large" :inline="true">
|
|
|
- <el-form-item label="姓名" label-width="100px" prop="xm">
|
|
|
- <el-input v-model="form.xm" placeholder="请输入申请人姓名" clearable></el-input>
|
|
|
+ <el-form-item label="填报人姓名" label-width="100px" prop="tbrXm">
|
|
|
+ <el-input v-model="form.tbrXm" placeholder="请输入填报人姓名" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="手机号" label-width="120px" prop="lxdh">
|
|
|
- <el-input v-model="form.lxdh" placeholder="请输入申请人手机号" maxlength="11" clearable></el-input>
|
|
|
+ <el-form-item label="填报人手机号" label-width="120px" prop="tbrSjhm">
|
|
|
+ <el-input v-model="form.tbrSjhm" placeholder="请输入填报人手机号" maxlength="11" clearable></el-input>
|
|
|
</el-form-item>
|
|
|
<el-form-item class="btn-group">
|
|
|
<el-button class="submitBtn" type="danger" @click="onSubmit(formRef)">查 询</el-button>
|
|
@@ -93,14 +93,14 @@ const search = () => showSearch.value = true
|
|
|
// 查询结果表单相关
|
|
|
const formRef = ref()
|
|
|
const form = reactive({
|
|
|
- xm: '夏洛',
|
|
|
- lxdh: '15512341234'
|
|
|
+ tbrXm: '',
|
|
|
+ tbrSjhm: ''
|
|
|
})
|
|
|
const rules = reactive({
|
|
|
- xm: [
|
|
|
+ tbrXm: [
|
|
|
{ required: true, message: '请输入申请人姓名', trigger: 'blur' },
|
|
|
],
|
|
|
- lxdh: [
|
|
|
+ tbrSjhm: [
|
|
|
{ required: true, message: '请输入申请人手机号', trigger: 'blur' }
|
|
|
],
|
|
|
})
|
|
@@ -109,11 +109,11 @@ async function onSubmit(formEl) {
|
|
|
await formEl.validate((valid, fields) => {
|
|
|
if (valid) {
|
|
|
getRetrofitApplyResult(form).then((res) => {
|
|
|
- console.log(form);
|
|
|
+ console.log(res);
|
|
|
if (res.rows.length > 0) {
|
|
|
// showResult.value = 1
|
|
|
// searchResult.value = res.rows
|
|
|
- resultStr.value= '申请已受理'
|
|
|
+ resultStr.value= '申请已提交成功'
|
|
|
} else {
|
|
|
// showResult.value = 0
|
|
|
resultStr.value= '暂无查询结果'
|