65d68067 by 任超

feat:申请查询

1 parent 80e6e98d
export default {
SERVERAPI: '/service-bdcdj9',
SERVERAPI: '/service-bdcdj',
// SERVERCAI: '/service-bdcdj-Tian'
}
\ No newline at end of file
......
......@@ -2,46 +2,24 @@
<div class="from-clues">
<!-- 表单部分 -->
<div class="from-clues-header">
<el-form
:model="queryForm"
ref="queryForm"
@submit.native.prevent
label-width="70px"
>
<el-form :model="queryForm" ref="queryForm" @submit.native.prevent label-width="70px">
<el-row>
<el-col :span="5">
<el-form-item label="查询编号">
<el-input
placeholder="请输入编号"
v-model="queryForm.cxbh"
class="width100"
clearable
@clear="queryClick()"
>
<el-input placeholder="请输入编号" v-model="queryForm.cxbh" class="width100" clearable @clear="queryClick">
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="申请人">
<el-input
placeholder="请输入申请人"
v-model="queryForm.sqr"
class="width100"
@clear="queryClick()"
clearable
>
<el-input placeholder="请输入申请人" v-model="queryForm.sqr" class="width100" @clear="queryClick" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="14" class="btnColRight">
<el-form-item>
<el-button
type="primary"
native-type="submit"
@click="queryClick()"
>查询</el-button
>
<el-button type="primary" native-type="submit" @click="queryClick">查询</el-button>
<el-button @click="moreQueryClick()">高级查询</el-button>
</el-form-item>
</el-col>
......@@ -49,19 +27,10 @@
</el-form>
</div>
<!-- 表格 -->
<div class="from-clues-content" id="divcontentid">
<lb-table
:page-size="pageData.size"
id="dydjb"
border
@sort-change="handleSort"
:current-page.sync="pageData.current"
:total="tableData.total"
@size-change="handleSizeChange"
@p-current-change="handleCurrentChange"
:column="tableData.columns"
:data="tableData.data"
>
<div class="from-clues-content">
<lb-table :page-size="pageData.size" class="loadingtext" border @sort-change="handleSort"
:current-page.sync="pageData.current" :total="tableData.total" @size-change="handleSizeChange"
@p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data">
</lb-table>
</div>
</div>
......@@ -75,13 +44,14 @@ import { getJtfcPage } from "@/api/jtfc";
export default {
name: "dydjb",
mixins: [table],
mounted() {
mounted () {
sendThis(this);
this.queryClick()
},
computed: {
...mapGetters(["dictData"]),
},
data() {
data () {
return {
queryForm: {
cxbh: "",
......@@ -95,13 +65,9 @@ export default {
};
},
methods: {
//查询
queryClick() {
this.fetchData();
},
// 初始化数据
fetchData() {
this.$startLoading("divcontentid");
queryClick () {
this.$startLoading();
getJtfcPage({ ...this.queryForm, ...this.pageData }).then((res) => {
this.$endLoading();
if (res.code === 200) {
......@@ -111,17 +77,17 @@ export default {
}
});
},
dydjbClick(scope) {
dydjbClick (scope) {
this.$popup("打印登记薄", "sqcx/dydjb/components/dydjbInfo", {
height: "800px",
formData: {
sqcxdata: scope.row,
},
cancel: function () {}, //取消事件的回调
confirm: function () {},
cancel: function () { }, //取消事件的回调
confirm: function () { },
});
},
handleSort(name, sort) {
handleSort (name, sort) {
console.log(name, sort);
},
},
......
......@@ -2,59 +2,32 @@
<div class="from-clues">
<!-- 家庭房产 -->
<div class="from-clues-header">
<el-form
:model="queryForm"
@submit.native.prevent
ref="queryForm"
label-width="70px"
>
<el-form :model="queryForm" @submit.native.prevent ref="queryForm" label-width="70px">
<el-row>
<el-col :span="5">
<el-form-item label="查询编号">
<el-input
placeholder="请输入查询编号"
@clear="queryClick()"
v-model="queryForm.cxbh"
clearable
class="width100"
>
<el-input placeholder="请输入查询编号" @clear="queryClick()" v-model="queryForm.cxbh" clearable class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="申请人">
<el-input
placeholder="请输入申请人"
@clear="queryClick()"
v-model="queryForm.sqr"
clearable
class="width100"
>
<el-input placeholder="请输入申请人" @clear="queryClick()" v-model="queryForm.sqr" clearable class="width100">
</el-input>
</el-form-item>
</el-col>
<el-col :span="14" class="btnColRight">
<el-button type="primary" native-type="submit" @click="queryClick()"
>查询</el-button
>
<el-button type="primary" native-type="submit" @click="queryClick()">查询</el-button>
<el-button type="primary" @click="handleAdd">新增</el-button>
</el-col>
</el-row>
</el-form>
</div>
<!-- 表格 -->
<div class="from-clues-content" id="divcontentid">
<lb-table
:page-size="pageData.size"
border
id="jtfc"
:current-page.sync="pageData.current"
:total="tableData.total"
@size-change="handleSizeChange"
@p-current-change="handleCurrentChange"
:column="tableData.columns"
:data="tableData.data"
>
<div class="from-clues-content">
<lb-table :page-size="pageData.size" border class="loadingtext" :current-page.sync="pageData.current"
:total="tableData.total" @size-change="handleSizeChange" @p-current-change="handleCurrentChange"
:column="tableData.columns" :data="tableData.data">
</lb-table>
</div>
<addjtfc v-model="isDialog" />
......@@ -69,10 +42,11 @@ export default {
name: "jtfc",
components: { addjtfc },
mixins: [table],
mounted() {
mounted () {
sendThis(this);
this.queryClick()
},
data() {
data () {
return {
isDialog: false,
sqrOption: [],
......@@ -89,13 +63,9 @@ export default {
};
},
methods: {
//查询
queryClick() {
this.fetchData();
},
// 初始化数据
fetchData() {
this.$startLoading("divcontentid");
queryClick () {
this.$startLoading();
getJtfcPage({ ...this.queryForm, ...this.pageData }).then((res) => {
this.$endLoading();
if (res.code === 200) {
......@@ -105,10 +75,10 @@ export default {
}
});
},
handleSort(name, sort) {
handleSort (name, sort) {
console.log(name, sort);
},
handleAdd() {
handleAdd () {
this.isDialog = true;
},
},
......
......@@ -2,45 +2,23 @@
<div class="from-clues">
<!-- 表单部分 -->
<div class="from-clues-header">
<el-form
:model="queryForm"
ref="queryForm"
@submit.native.prevent
label-width="70px"
>
<el-form :model="queryForm" ref="queryForm" @submit.native.prevent label-width="70px">
<el-row>
<el-col :span="5">
<el-form-item label="查询编号">
<el-input
placeholder="请输入编号"
@clear="queryClick()"
v-model="queryForm.cxbh"
class="width100"
clearable
>
<el-input placeholder="请输入编号" @clear="queryClick()" v-model="queryForm.cxbh" class="width100" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="5">
<el-form-item label="申请人">
<el-input
placeholder="请输入申请人"
@clear="queryClick()"
v-model="queryForm.sqr"
class="width100"
clearable
>
<el-input placeholder="请输入申请人" @clear="queryClick()" v-model="queryForm.sqr" class="width100" clearable>
</el-input>
</el-form-item>
</el-col>
<el-col :span="14" class="btnColRight">
<el-form-item>
<el-button
type="primary"
native-type="submit"
@click="queryClick()"
>查询</el-button
>
<el-button type="primary" native-type="submit" @click="queryClick()">查询</el-button>
<el-button @click="moreQueryClick()">高级查询</el-button>
</el-form-item>
</el-col>
......@@ -48,19 +26,10 @@
</el-form>
</div>
<!-- 表格 -->
<div class="from-clues-content" id="divcontentid">
<lb-table
:page-size="pageData.size"
border
id="sqcxjl"
@sort-change="handleSort"
:current-page.sync="pageData.current"
:total="tableData.total"
@size-change="handleSizeChange"
@p-current-change="handleCurrentChange"
:column="tableData.columns"
:data="tableData.data"
>
<div class="from-clues-content">
<lb-table :page-size="pageData.size" border class="loadingtext" @sort-change="handleSort"
:current-page.sync="pageData.current" :total="tableData.total" @size-change="handleSizeChange"
@p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data">
</lb-table>
</div>
</div>
......@@ -72,10 +41,11 @@ import { getJtfcPage } from "@/api/jtfc";
export default {
name: "sqcxjl",
mixins: [table],
mounted() {
mounted () {
sendThis(this);
this.queryClick()
},
data() {
data () {
return {
queryForm: {
cxbh: "",
......@@ -89,12 +59,9 @@ export default {
};
},
methods: {
queryClick() {
this.fetchData();
},
// 初始化数据
fetchData() {
this.$startLoading("divcontentid");
queryClick () {
this.$startLoading();
getJtfcPage({ ...this.queryForm, ...this.pageData }).then((res) => {
this.$endLoading();
if (res.code === 200) {
......@@ -104,19 +71,19 @@ export default {
}
});
},
handleSort(name, sort) {
handleSort (name, sort) {
console.log(name, sort);
},
// 查看
handleViewClick(scope) {
handleViewClick (scope) {
var sqcxBsm = scope.row.bsmSqcx;
this.$popup("申请查询记录", "sqcx/sqcxjl/components/sqcxjlInfo", {
height: "800px",
formData: {
sqcxBsm: sqcxBsm,
},
cancel: function () {}, //取消事件的回调
confirm: function () {},
cancel: function () { }, //取消事件的回调
confirm: function () { },
});
},
},
......