1111
Showing
3 changed files
with
58 additions
and
34 deletions
... | @@ -22,8 +22,9 @@ | ... | @@ -22,8 +22,9 @@ |
22 | <el-col :span="6" class="btnColRight"> | 22 | <el-col :span="6" class="btnColRight"> |
23 | <el-form-item> | 23 | <el-form-item> |
24 | <el-button type="primary" icon="el-icon-search" @click="fetchData()">查询</el-button> | 24 | <el-button type="primary" icon="el-icon-search" @click="fetchData()">查询</el-button> |
25 | <el-button type="primary" icon="el-icon-search" @click="zslqClick()">证书领取</el-button> | ||
25 | </el-form-item> | 26 | </el-form-item> |
26 | </el-col> | 27 | </el-col> |
27 | </el-row> | 28 | </el-row> |
28 | </el-form> | 29 | </el-form> |
29 | </div> | 30 | </div> |
... | @@ -31,15 +32,19 @@ | ... | @@ -31,15 +32,19 @@ |
31 | <lb-table border :column="tableData.columns" :heightNum="210" :data="tableData.data" :pagination="false"> | 32 | <lb-table border :column="tableData.columns" :heightNum="210" :data="tableData.data" :pagination="false"> |
32 | </lb-table> | 33 | </lb-table> |
33 | </div> | 34 | </div> |
35 | <zslqDialog v-model="dialogVisible" @update:dialogVisible="dialogVisibles"></zslqDialog> | ||
34 | </div> | 36 | </div> |
35 | </template> | 37 | </template> |
36 | <script> | 38 | <script> |
37 | import table from "@/utils/mixin/table"; | 39 | import table from "@/utils/mixin/table"; |
40 | import zslqDialog from "./zslq.vue"; | ||
38 | import { getCertificateList } from "@/api/bdcqz.js"; | 41 | import { getCertificateList } from "@/api/bdcqz.js"; |
39 | import { datas } from "../javascript/fzxxdata"; | 42 | import { datas } from "../javascript/fzxxdata"; |
40 | export default { | 43 | export default { |
41 | mixins: [table], | 44 | mixins: [table], |
42 | components: {}, | 45 | components: { |
46 | zslqDialog | ||
47 | }, | ||
43 | props: { | 48 | props: { |
44 | }, | 49 | }, |
45 | data () { | 50 | data () { |
... | @@ -54,18 +59,26 @@ export default { | ... | @@ -54,18 +59,26 @@ export default { |
54 | total: 0, | 59 | total: 0, |
55 | columns: datas.columns().fzgrid, | 60 | columns: datas.columns().fzgrid, |
56 | data: [], | 61 | data: [], |
57 | } | 62 | }, |
63 | dialogVisible:false | ||
58 | } | 64 | } |
59 | }, | 65 | }, |
60 | methods: { | 66 | methods: { |
61 | // 列表渲染接口 | 67 | // 列表渲染接口 |
62 | fetchData () { | 68 | fetchData () { |
63 | this.ruleForm.bsmSldy = this.$parent.unitData[0].bsmSldy; | 69 | this.ruleForm.bsmSlsq = this.$route.query.bsmSlsq; |
64 | getCertificateList(this.ruleForm).then(res => { | 70 | getCertificateList(this.ruleForm).then(res => { |
65 | if (res.code === 200) { | 71 | if (res.code === 200) { |
66 | this.tableData.data = res.result; | 72 | this.tableData.data = res.result; |
67 | } | 73 | } |
68 | }) | 74 | }) |
75 | }, | ||
76 | zslqClick(){ | ||
77 | this.dialogVisible = true; | ||
78 | }, | ||
79 | //子组件传 过来的 数据 | ||
80 | dialogVisibles(v){ | ||
81 | this.dialogVisible = v; | ||
69 | } | 82 | } |
70 | } | 83 | } |
71 | } | 84 | } | ... | ... |
1 | <template> | 1 | <template> |
2 | <dialogBox title="不动产权证领取" width="85%" @closeDialog="closeDialog" @submitForm="handleSubmit" v-model="value" > | ||
2 | <div class="zslq"> | 3 | <div class="zslq"> |
3 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px"> | 4 | <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="100px"> |
4 | <el-row> | 5 | <el-row> |
... | @@ -30,7 +31,7 @@ | ... | @@ -30,7 +31,7 @@ |
30 | <el-col :span="6"> | 31 | <el-col :span="6"> |
31 | <el-form-item label="证件类型" prop="lzrzjlb"> | 32 | <el-form-item label="证件类型" prop="lzrzjlb"> |
32 | <el-select v-model="ruleForm.lzrzjlb" filterable clearable placeholder="请选择"> | 33 | <el-select v-model="ruleForm.lzrzjlb" filterable clearable placeholder="请选择"> |
33 | <el-option v-for="item in zslqList" :key="item.dcode" :label="item.dname" :value="item.dcode"> | 34 | <el-option v-for="item in zjzlData" :key="item.dcode" :label="item.dname" :value="item.dcode"> |
34 | </el-option> | 35 | </el-option> |
35 | </el-select> | 36 | </el-select> |
36 | </el-form-item> | 37 | </el-form-item> |
... | @@ -46,12 +47,9 @@ | ... | @@ -46,12 +47,9 @@ |
46 | </el-form-item> | 47 | </el-form-item> |
47 | </el-col> | 48 | </el-col> |
48 | </el-row> | 49 | </el-row> |
49 | <el-row style="text-align:center"> | ||
50 | <el-button type="primary" @click="onSubmit">确定</el-button> | ||
51 | <el-button>取消</el-button> | ||
52 | </el-row> | ||
53 | </el-form> | 50 | </el-form> |
54 | </div> | 51 | </div> |
52 | </dialogBox> | ||
55 | </template> | 53 | </template> |
56 | 54 | ||
57 | <script> | 55 | <script> |
... | @@ -60,15 +58,18 @@ import table from "@/utils/mixin/table"; | ... | @@ -60,15 +58,18 @@ import table from "@/utils/mixin/table"; |
60 | import { getUnclaimedBdcqz, issueCertificate } from "@/api/bdcqz.js"; | 58 | import { getUnclaimedBdcqz, issueCertificate } from "@/api/bdcqz.js"; |
61 | import { datas } from "../javascript/fzxxdata"; | 59 | import { datas } from "../javascript/fzxxdata"; |
62 | export default { | 60 | export default { |
61 | props: { | ||
62 | value: { type: Boolean, default: true } | ||
63 | }, | ||
63 | mixins: [table], | 64 | mixins: [table], |
64 | data () { | 65 | data () { |
65 | return { | 66 | return { |
66 | zslqList: [], | 67 | zjzlData: store.getters.dictData['A30'], |
67 | ruleForm: { | 68 | ruleForm: { |
68 | fzrxm: '', | 69 | fzrxm: '', |
69 | fzsj: '', | 70 | fzsj: '', |
70 | fzsl: '', | 71 | fzsl: '', |
71 | bsmBdcqz: [], | 72 | bdcqzList: [], |
72 | lzrxm: '', | 73 | lzrxm: '', |
73 | lzrzjlb: '', | 74 | lzrzjlb: '', |
74 | lzrzjh: '', | 75 | lzrzjh: '', |
... | @@ -95,44 +96,43 @@ export default { | ... | @@ -95,44 +96,43 @@ export default { |
95 | }, | 96 | }, |
96 | } | 97 | } |
97 | }, | 98 | }, |
98 | props: ["formData"], | 99 | watch: { |
99 | created () { | 100 | value (val) { |
100 | this.zslqList = store.getters.dictData['A30']; | 101 | if (val) { |
101 | this.loadGrid(); | 102 | this.loadGrid(); |
103 | } | ||
104 | }, | ||
102 | }, | 105 | }, |
103 | methods: { | 106 | methods: { |
104 | onSubmit () { | ||
105 | |||
106 | }, | ||
107 | fetchData () { }, | ||
108 | //列表初始化 | 107 | //列表初始化 |
109 | loadGrid () { | 108 | loadGrid () { |
110 | getUnclaimedBdcqz({ bsmSlsq: this.formData.bsmSlsq }).then(res => { | 109 | getUnclaimedBdcqz({ bsmSlsq: this.$route.query.bsmSlsq }).then(res => { |
111 | if (res.code === 200) { | 110 | if (res.code === 200) { |
112 | this.tableData.data = res.result; | 111 | this.tableData.data = res.result; |
112 | this.ruleForm.bdcqzList = res.result; | ||
113 | } | 113 | } |
114 | }) | 114 | }) |
115 | }, | 115 | }, |
116 | submitForm () { | 116 | handleSubmit () { |
117 | this.$refs.ruleForm.validate(valid => { | 117 | this.$refs.ruleForm.validate(valid => { |
118 | if (valid) { | 118 | if (valid) { |
119 | issueCertificate(this.ruleForm).then(res => { | 119 | issueCertificate(this.ruleForm).then(res => { |
120 | if (res.code == 200) { | 120 | if (res.code == 200) { |
121 | this.$message.success('保存成功') | 121 | this.$message.success('保存成功'); |
122 | this.$parent.fetchData(); | ||
122 | this.$emit("input", false); | 123 | this.$emit("input", false); |
123 | this.$refs.ruleForm.resetFields(); | ||
124 | } else { | 124 | } else { |
125 | this.$message.error(res.message) | 125 | this.$message.error(res.message) |
126 | } | 126 | } |
127 | }) | 127 | }) |
128 | } else { | 128 | } else { |
129 | this.$message.error("请填写领取人信息!") | ||
129 | return false; | 130 | return false; |
130 | } | 131 | } |
131 | }); | 132 | }); |
132 | }, | 133 | }, |
133 | closeDialog () { | 134 | closeDialog () { |
134 | this.$emit("input", false); | 135 | this.$emit("input", false); |
135 | this.$refs.ruleForm.resetFields(); | ||
136 | }, | 136 | }, |
137 | } | 137 | } |
138 | } | 138 | } | ... | ... |
... | @@ -20,6 +20,14 @@ class data extends filter { | ... | @@ -20,6 +20,14 @@ class data extends filter { |
20 | { | 20 | { |
21 | prop: "bdcqzlx", | 21 | prop: "bdcqzlx", |
22 | label: "不动产权证类型", | 22 | label: "不动产权证类型", |
23 | render: (h, scope) => { | ||
24 | return ( | ||
25 | <div> | ||
26 | <span v-show={scope.row.bdcqzlx == '1'}>不动产权证书</span> | ||
27 | <span v-show={scope.row.bdcqzlx == '2'}>不动产登记证明</span> | ||
28 | </div> | ||
29 | ) | ||
30 | } | ||
23 | }, | 31 | }, |
24 | { | 32 | { |
25 | prop: "qllx", | 33 | prop: "qllx", |
... | @@ -49,20 +57,15 @@ class data extends filter { | ... | @@ -49,20 +57,15 @@ class data extends filter { |
49 | { | 57 | { |
50 | prop: "zl", | 58 | prop: "zl", |
51 | label: "坐落" | 59 | label: "坐落" |
60 | }, | ||
61 | { | ||
62 | prop: "fzsj", | ||
63 | label: "发证时间" | ||
52 | }, | 64 | }, |
53 | { | 65 | { |
54 | prop: "lzrxm", | 66 | prop: "lzrxm", |
55 | label: "领取人" | 67 | label: "领证人姓名" |
56 | }, | 68 | }, |
57 | { | ||
58 | label: '操作', | ||
59 | width: '200', | ||
60 | align: 'center', | ||
61 | fixed: 'right', | ||
62 | render: (h, scope) => { | ||
63 | return <el-button type="text" icon="el-icon-delete" onClick={() => { vm.del(scope.row) }}>添加领取材料</el-button> | ||
64 | } | ||
65 | } | ||
66 | ], | 69 | ], |
67 | //领证证列表 | 70 | //领证证列表 |
68 | lzgrid: [ | 71 | lzgrid: [ |
... | @@ -75,6 +78,14 @@ class data extends filter { | ... | @@ -75,6 +78,14 @@ class data extends filter { |
75 | prop: "bdcqzlx", | 78 | prop: "bdcqzlx", |
76 | label: "不动产权证类型", | 79 | label: "不动产权证类型", |
77 | width: '120', | 80 | width: '120', |
81 | render: (h, scope) => { | ||
82 | return ( | ||
83 | <div> | ||
84 | <span v-show={scope.row.bdcqzlx == '1'}>不动产权证书</span> | ||
85 | <span v-show={scope.row.bdcqzlx == '2'}>不动产登记证明</span> | ||
86 | </div> | ||
87 | ) | ||
88 | } | ||
78 | }, | 89 | }, |
79 | { | 90 | { |
80 | prop: "qllx", | 91 | prop: "qllx", | ... | ... |
-
Please register or sign in to post a comment