完善
Showing
7 changed files
with
51 additions
and
31 deletions
| 1 | import request from '@/utils/request' | 1 | import request from '@/utils/request' |
| 2 | import SERVER from './config' | 2 | import SERVER from './config' |
| 3 | // 获取家庭房产列表 | 3 | // 获取申请查询列表 |
| 4 | export function getJtfcPage (data) { | 4 | export function getSqcxPage (data) { |
| 5 | return request({ | 5 | return request({ |
| 6 | url: SERVER.SERVERAPI + '/rest/sqcx/jtfc/getJtfcPage', | 6 | url: SERVER.SERVERAPI + '/rest/sqcx/jtfc/getSqcxPage', |
| 7 | method: 'post', | ||
| 8 | data | ||
| 9 | }) | ||
| 10 | } | ||
| 11 | |||
| 12 | // 获取房屋明细列表 | ||
| 13 | export function getFwmxPage (data) { | ||
| 14 | return request({ | ||
| 15 | url: SERVER.SERVERAPI + '/rest/sqcx/jtfc/getFwmxPage', | ||
| 16 | method: 'post', | 7 | method: 'post', |
| 17 | data | 8 | data |
| 18 | }) | 9 | }) |
| ... | @@ -45,6 +36,15 @@ export function getJtfcInfo (params) { | ... | @@ -45,6 +36,15 @@ export function getJtfcInfo (params) { |
| 45 | }) | 36 | }) |
| 46 | } | 37 | } |
| 47 | 38 | ||
| 39 | // 获取房屋明细记录详细信息 | ||
| 40 | export function getFwmxInfo (params) { | ||
| 41 | return request({ | ||
| 42 | url: SERVER.SERVERAPI + '/rest/sqcx/jtfc/getFwmxInfo/', | ||
| 43 | method: 'get', | ||
| 44 | params | ||
| 45 | }) | ||
| 46 | } | ||
| 47 | |||
| 48 | // 打印家庭房产 | 48 | // 打印家庭房产 |
| 49 | export function printJtcfInfo (data) { | 49 | export function printJtcfInfo (data) { |
| 50 | return request({ | 50 | return request({ | ... | ... |
| ... | @@ -53,7 +53,7 @@ | ... | @@ -53,7 +53,7 @@ |
| 53 | </template> | 53 | </template> |
| 54 | 54 | ||
| 55 | <script> | 55 | <script> |
| 56 | import { addFwmxCxjgXx, getJtfcInfo,printJtcfInfo } from "@/api/sqcx"; | 56 | import { addFwmxCxjgXx, getFwmxInfo,printJtcfInfo } from "@/api/sqcx"; |
| 57 | import { getPrintTemplateByCode } from "@/api/system"; | 57 | import { getPrintTemplateByCode } from "@/api/system"; |
| 58 | import { datas, sendThis } from "./dydjbdata"; | 58 | import { datas, sendThis } from "./dydjbdata"; |
| 59 | import { getLodop } from "@/utils/LodopFuncs" | 59 | import { getLodop } from "@/utils/LodopFuncs" |
| ... | @@ -144,7 +144,7 @@ export default { | ... | @@ -144,7 +144,7 @@ export default { |
| 144 | //加载详细信息 | 144 | //加载详细信息 |
| 145 | loadData () { | 145 | loadData () { |
| 146 | this.$startLoading(); | 146 | this.$startLoading(); |
| 147 | getJtfcInfo({ sqcxBsm: this.sqcxBsm }).then((res) => { | 147 | getFwmxInfo({ sqcxBsm: this.sqcxBsm }).then((res) => { |
| 148 | this.$endLoading(); | 148 | this.$endLoading(); |
| 149 | if (res.code == 200) { | 149 | if (res.code == 200) { |
| 150 | this.activeStep = 2; | 150 | this.activeStep = 2; | ... | ... |
| ... | @@ -36,10 +36,13 @@ | ... | @@ -36,10 +36,13 @@ |
| 36 | 36 | ||
| 37 | <script> | 37 | <script> |
| 38 | import { datas, sendThis } from "./infodata"; | 38 | import { datas, sendThis } from "./infodata"; |
| 39 | import { getJtfcInfo } from "@/api/sqcx"; | 39 | import { getFwmxInfo } from "@/api/sqcx"; |
| 40 | export default { | 40 | export default { |
| 41 | props: { | 41 | props: { |
| 42 | 42 | formData: { | |
| 43 | type: Object, | ||
| 44 | default: () => {}, | ||
| 45 | }, | ||
| 43 | }, | 46 | }, |
| 44 | data () { | 47 | data () { |
| 45 | return { | 48 | return { |
| ... | @@ -65,10 +68,24 @@ export default { | ... | @@ -65,10 +68,24 @@ export default { |
| 65 | resultData: {}, | 68 | resultData: {}, |
| 66 | }; | 69 | }; |
| 67 | }, | 70 | }, |
| 68 | mounted () { }, | 71 | mounted () { |
| 72 | if(this.formData){ | ||
| 73 | this.getDetailInfo() | ||
| 74 | } | ||
| 75 | }, | ||
| 69 | methods: { | 76 | methods: { |
| 70 | setResult(data){ | 77 | setResult(data){ |
| 71 | this.resultData = data | 78 | this.resultData = data |
| 79 | }, | ||
| 80 | getDetailInfo(){ | ||
| 81 | this.$startLoading(); | ||
| 82 | getFwmxInfo({ sqcxBsm: this.formData.bsmSqcx }).then((res) => { | ||
| 83 | this.$endLoading(); | ||
| 84 | if (res.code == 200) { | ||
| 85 | this.resultData = res.result | ||
| 86 | } | ||
| 87 | }); | ||
| 88 | |||
| 72 | } | 89 | } |
| 73 | }, | 90 | }, |
| 74 | }; | 91 | }; | ... | ... |
| ... | @@ -51,7 +51,7 @@ import table from "@/utils/mixin/table"; | ... | @@ -51,7 +51,7 @@ import table from "@/utils/mixin/table"; |
| 51 | import { popupDialog } from "@/utils/popup.js"; | 51 | import { popupDialog } from "@/utils/popup.js"; |
| 52 | import { datas, sendThis } from "./dydjbdata"; | 52 | import { datas, sendThis } from "./dydjbdata"; |
| 53 | import addDydjb from "./components/addDydjb.vue"; | 53 | import addDydjb from "./components/addDydjb.vue"; |
| 54 | import { getFwmxPage } from "@/api/sqcx"; | 54 | import { getSqcxPage } from "@/api/sqcx"; |
| 55 | export default { | 55 | export default { |
| 56 | name: "dydjb", | 56 | name: "dydjb", |
| 57 | components: { addDydjb }, | 57 | components: { addDydjb }, |
| ... | @@ -71,6 +71,7 @@ export default { | ... | @@ -71,6 +71,7 @@ export default { |
| 71 | cxbh: "", | 71 | cxbh: "", |
| 72 | sqr: "", | 72 | sqr: "", |
| 73 | ywh: "", | 73 | ywh: "", |
| 74 | cxlx: '2' | ||
| 74 | }, | 75 | }, |
| 75 | tableData: { | 76 | tableData: { |
| 76 | columns: datas.columns(), | 77 | columns: datas.columns(), |
| ... | @@ -82,7 +83,7 @@ export default { | ... | @@ -82,7 +83,7 @@ export default { |
| 82 | // 初始化数据 | 83 | // 初始化数据 |
| 83 | queryClick () { | 84 | queryClick () { |
| 84 | this.$startLoading(); | 85 | this.$startLoading(); |
| 85 | getFwmxPage({ ...this.queryForm, ...this.pageData }).then((res) => { | 86 | getSqcxPage({ ...this.queryForm, ...this.pageData }).then((res) => { |
| 86 | this.$endLoading(); | 87 | this.$endLoading(); |
| 87 | if (res.code === 200) { | 88 | if (res.code === 200) { |
| 88 | let { records, total } = res.result; | 89 | let { records, total } = res.result; |
| ... | @@ -92,19 +93,20 @@ export default { | ... | @@ -92,19 +93,20 @@ export default { |
| 92 | }); | 93 | }); |
| 93 | }, | 94 | }, |
| 94 | dydjbClick (scope) { | 95 | dydjbClick (scope) { |
| 95 | this.$nextTick(() => { | 96 | // this.$nextTick(() => { |
| 96 | this.isDialog = true | 97 | // this.isDialog = true |
| 97 | this.sqcxBsm = scope.row.bsmSqcx | 98 | // this.sqcxBsm = scope.row.bsmSqcx |
| 98 | }) | 99 | // }) |
| 99 | // popupDialog("打印登记薄", "sqcx/dydjb/components/dydjbInfo", { | 100 | popupDialog("打印登记薄", "sqcx/dydjb/components/dydjbInfo", { |
| 100 | // bsmSqcx: scope.row.bsmSqcx, | 101 | bsmSqcx: scope.row.bsmSqcx, |
| 101 | // }); | 102 | }); |
| 102 | }, | 103 | }, |
| 103 | handleSort (name, sort) { | 104 | handleSort (name, sort) { |
| 104 | console.log(name, sort); | 105 | console.log(name, sort); |
| 105 | }, | 106 | }, |
| 106 | openAddDialog(){ | 107 | openAddDialog(){ |
| 107 | this.isDialog = true | 108 | this.isDialog = true |
| 109 | this.sqcxBsm = '' | ||
| 108 | } | 110 | } |
| 109 | }, | 111 | }, |
| 110 | }; | 112 | }; | ... | ... |
| ... | @@ -63,7 +63,7 @@ class data extends filter { | ... | @@ -63,7 +63,7 @@ class data extends filter { |
| 63 | label: "操作", | 63 | label: "操作", |
| 64 | width: 100, | 64 | width: 100, |
| 65 | render: (h, scope) => { | 65 | render: (h, scope) => { |
| 66 | return <el-button type="text" icon='el-icon-printer' onClick={() => { vm.dydjbClick(scope) }}>打印登记薄</el-button> | 66 | return <el-button type="text" icon='el-icon-view' onClick={() => { vm.dydjbClick(scope) }}>查看</el-button> |
| 67 | } | 67 | } |
| 68 | }, | 68 | }, |
| 69 | 69 | ... | ... |
| ... | @@ -46,7 +46,7 @@ | ... | @@ -46,7 +46,7 @@ |
| 46 | <script> | 46 | <script> |
| 47 | import table from "@/utils/mixin/table"; | 47 | import table from "@/utils/mixin/table"; |
| 48 | import { datas, sendThis } from "./jtfcdata"; | 48 | import { datas, sendThis } from "./jtfcdata"; |
| 49 | import { getJtfcPage } from "@/api/sqcx"; | 49 | import { getSqcxPage } from "@/api/sqcx"; |
| 50 | import addjtfc from "./components/addjtfc.vue"; | 50 | import addjtfc from "./components/addjtfc.vue"; |
| 51 | export default { | 51 | export default { |
| 52 | name: "jtfc", | 52 | name: "jtfc", |
| ... | @@ -64,6 +64,7 @@ export default { | ... | @@ -64,6 +64,7 @@ export default { |
| 64 | queryForm: { | 64 | queryForm: { |
| 65 | cxbh: "", | 65 | cxbh: "", |
| 66 | sqr: "", | 66 | sqr: "", |
| 67 | cxlx: '1' | ||
| 67 | }, | 68 | }, |
| 68 | tableData: { | 69 | tableData: { |
| 69 | columns: datas.columns(), | 70 | columns: datas.columns(), |
| ... | @@ -75,7 +76,7 @@ export default { | ... | @@ -75,7 +76,7 @@ export default { |
| 75 | // 初始化数据 | 76 | // 初始化数据 |
| 76 | queryClick () { | 77 | queryClick () { |
| 77 | this.$startLoading(); | 78 | this.$startLoading(); |
| 78 | getJtfcPage({ ...this.queryForm, ...this.pageData }).then((res) => { | 79 | getSqcxPage({ ...this.queryForm, ...this.pageData }).then((res) => { |
| 79 | this.$endLoading(); | 80 | this.$endLoading(); |
| 80 | if (res.code === 200) { | 81 | if (res.code === 200) { |
| 81 | let { records, total } = res.result; | 82 | let { records, total } = res.result; | ... | ... |
| ... | @@ -69,7 +69,7 @@ | ... | @@ -69,7 +69,7 @@ |
| 69 | <script> | 69 | <script> |
| 70 | import table from "@/utils/mixin/table"; | 70 | import table from "@/utils/mixin/table"; |
| 71 | import { datas, sendThis } from "./sqcxjldata"; | 71 | import { datas, sendThis } from "./sqcxjldata"; |
| 72 | import { getJtfcPage } from "@/api/sqcx"; | 72 | import { getSqcxPage } from "@/api/sqcx"; |
| 73 | export default { | 73 | export default { |
| 74 | name: "sqcxjl", | 74 | name: "sqcxjl", |
| 75 | mixins: [table], | 75 | mixins: [table], |
| ... | @@ -94,7 +94,7 @@ export default { | ... | @@ -94,7 +94,7 @@ export default { |
| 94 | // 初始化数据 | 94 | // 初始化数据 |
| 95 | queryClick () { | 95 | queryClick () { |
| 96 | this.$startLoading(); | 96 | this.$startLoading(); |
| 97 | getJtfcPage({ ...this.queryForm, ...this.pageData }).then((res) => { | 97 | getSqcxPage({ ...this.queryForm, ...this.pageData }).then((res) => { |
| 98 | this.$endLoading(); | 98 | this.$endLoading(); |
| 99 | if (res.code === 200) { | 99 | if (res.code === 200) { |
| 100 | let { records, total } = res.result; | 100 | let { records, total } = res.result; | ... | ... |
-
Please register or sign in to post a comment