6b930cd5 by renchao@pashanhoo.com

Merge branch 'dev' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web into dev

2 parents b2116435 1ff92a0f
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-09-14 17:19:26 4 * @LastEditTime: 2023-09-14 17:19:26
5 --> 5 -->
...@@ -25,12 +25,12 @@ ...@@ -25,12 +25,12 @@
25 </el-col> 25 </el-col>
26 <el-col :span="8"> 26 <el-col :span="8">
27 <el-form-item label="行政区划区县代码:"> 27 <el-form-item label="行政区划区县代码:">
28 <el-input v-model="ruleForm.AREACODE"></el-input> 28 <el-input v-model="ruleForm.areacode"></el-input>
29 </el-form-item> 29 </el-form-item>
30 </el-col> 30 </el-col>
31 <el-col :span="8"> 31 <el-col :span="8">
32 <el-form-item label="登记系统业务号:"> 32 <el-form-item label="登记系统业务号:">
33 <el-input v-model="ruleForm.YWH"></el-input> 33 <el-input v-model="ruleForm.ywh"></el-input>
34 </el-form-item> 34 </el-form-item>
35 </el-col> 35 </el-col>
36 </el-row> 36 </el-row>
...@@ -43,47 +43,47 @@ ...@@ -43,47 +43,47 @@
43 </el-col> 43 </el-col>
44 <el-col :span="8"> 44 <el-col :span="8">
45 <el-form-item label="原户主姓名:"> 45 <el-form-item label="原户主姓名:">
46 <el-input v-model="ruleForm.MC_OLD"></el-input> 46 <el-input v-model="ruleForm.mcOld"></el-input>
47 </el-form-item> 47 </el-form-item>
48 </el-col> 48 </el-col>
49 <el-col :span="8"> 49 <el-col :span="8">
50 <el-form-item label="原户主身份证号码:"> 50 <el-form-item label="原户主身份证号码:">
51 <el-input v-model="ruleForm.ZJHM_OLD"></el-input> 51 <el-input v-model="ruleForm.zjhmOld"></el-input>
52 </el-form-item> 52 </el-form-item>
53 </el-col> 53 </el-col>
54 </el-row> 54 </el-row>
55 <el-row :gutter="10"> 55 <el-row :gutter="10">
56 <el-col :span="8"> 56 <el-col :span="8">
57 <el-form-item label="原户主联系电话:"> 57 <el-form-item label="原户主联系电话:">
58 <el-input v-model="ruleForm.LXDH_OLD"></el-input> 58 <el-input v-model="ruleForm.lxdhOld"></el-input>
59 </el-form-item> 59 </el-form-item>
60 </el-col> 60 </el-col>
61 <el-col :span="8"> 61 <el-col :span="8">
62 <el-form-item label="新户主姓名:"> 62 <el-form-item label="新户主姓名:">
63 <el-input v-model="ruleForm.MC_NEW"></el-input> 63 <el-input v-model="ruleForm.mcNew"></el-input>
64 </el-form-item> 64 </el-form-item>
65 </el-col> 65 </el-col>
66 <el-col :span="8"> 66 <el-col :span="8">
67 <el-form-item label="新户主身份证号码:"> 67 <el-form-item label="新户主身份证号码:">
68 <el-input v-model="ruleForm.ZJHM_NEW"></el-input> 68 <el-input v-model="ruleForm.zjhmNew"></el-input>
69 </el-form-item> 69 </el-form-item>
70 </el-col> 70 </el-col>
71 </el-row> 71 </el-row>
72 <el-row :gutter="10"> 72 <el-row :gutter="10">
73 <el-col :span="8"> 73 <el-col :span="8">
74 <el-form-item label="新户主联系电话:"> 74 <el-form-item label="新户主联系电话:">
75 <el-input v-model="ruleForm.LXDH_NEW"></el-input> 75 <el-input v-model="ruleForm.lxdhNew"></el-input>
76 </el-form-item> 76 </el-form-item>
77 </el-col> 77 </el-col>
78 <el-col :span="8"> 78 <el-col :span="8">
79 <el-form-item label="房产证编号:"> 79 <el-form-item label="房产证编号:">
80 <el-input v-model="ruleForm.FCZBH"></el-input> 80 <el-input v-model="ruleForm.fczbh"></el-input>
81 </el-form-item> 81 </el-form-item>
82 </el-col> 82 </el-col>
83 <el-col :span="8"> 83 <el-col :span="8">
84 <el-form-item label="是否过户:"> 84 <el-form-item label="是否过户:">
85 <el-switch 85 <el-switch
86 v-model="ruleForm.SFGH" 86 v-model="ruleForm.sfgh"
87 :active-value='1' 87 :active-value='1'
88 active-text="是" 88 active-text="是"
89 :inactive-value="0" 89 :inactive-value="0"
...@@ -96,17 +96,23 @@ ...@@ -96,17 +96,23 @@
96 <el-row :gutter="10"> 96 <el-row :gutter="10">
97 <el-col :span="24"> 97 <el-col :span="24">
98 <el-form-item label="房屋坐落(地址):"> 98 <el-form-item label="房屋坐落(地址):">
99 <el-input v-model="ruleForm.FWZL" type="textarea" 99 <el-input v-model="ruleForm.fwzl" type="textarea"
100 :rows="2"></el-input> 100 :rows="2"></el-input>
101 </el-form-item> 101 </el-form-item>
102 </el-col> 102 </el-col>
103 </el-row> 103 </el-row>
104 <el-row class="btn" v-if="viewEdit">
105 <el-form-item>
106 <el-button type="primary" @click="onSubmit">保存</el-button>
107 </el-form-item>
108 </el-row>
104 </div> 109 </div>
105 </el-form> 110 </el-form>
106 </div> 111 </div>
107 </template> 112 </template>
108 <script> 113 <script>
109 import { mapGetters } from "vuex"; 114 import { mapGetters } from "vuex";
115 import { getDlxxByBsmSldy, saveOrUpdateDlxx } from "@/api/sfxx.js";
110 export default { 116 export default {
111 computed: { 117 computed: {
112 ...mapGetters(["dictData", "flag"]), 118 ...mapGetters(["dictData", "flag"]),
...@@ -119,6 +125,8 @@ ...@@ -119,6 +125,8 @@
119 formdata.append("bsmSldy", this.propsParam.bsmSldy); 125 formdata.append("bsmSldy", this.propsParam.bsmSldy);
120 formdata.append("djlx", this.propsParam.djlx); 126 formdata.append("djlx", this.propsParam.djlx);
121 formdata.append("isEdit", this.viewEdit); 127 formdata.append("isEdit", this.viewEdit);
128 console.log(this.propsParam)
129 this.getDlxxByBsmSldy()
122 }, 130 },
123 data () { 131 data () {
124 return { 132 return {
...@@ -131,6 +139,25 @@ ...@@ -131,6 +139,25 @@
131 } 139 }
132 }, 140 },
133 methods: { 141 methods: {
142 getDlxxByBsmSldy() {
143 getDlxxByBsmSldy(this.propsParam.bsmSldy).then((res) => {
144 if (res.code === 200) {
145 if (res.result != null) {
146 this.ruleForm = res.result
147 }
148 }
149 });
150 },
151 saveOrUpdateDlxx() {
152 saveOrUpdateDlxx(this.ruleForm).then((res) => {
153 if (res.code === 200) {
154 this.$message.success("成功")
155 }
156 });
157 },
158 onSubmit () {
159 this.saveOrUpdateDlxx()
160 }
134 } 161 }
135 } 162 }
136 </script> 163 </script>
......