192baa40 by tianhaohao@pashanhoo.com

1111

1 parent 07a8d673
...@@ -77,21 +77,3 @@ export function deleteSfmx (bsmSf) { ...@@ -77,21 +77,3 @@ export function deleteSfmx (bsmSf) {
77 } 77 }
78 }) 78 })
79 } 79 }
80
81 export function getDlxxByBsmSldy (bsmSldy) {
82 return request({
83 url: SERVER.SERVERAPI + '/rest/ywbl/dlxx/getDlxxByBsmSldy',
84 method: 'get',
85 params: {
86 bsmSldy: bsmSldy
87 }
88 })
89 }
90
91 export function saveOrUpdateDlxx (data) {
92 return request({
93 url: SERVER.SERVERAPI + '/rest/ywbl/dlxx/saveOrUpdateDlxx',
94 method: 'post',
95 data
96 })
97 }
......
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
11 v-Loading="loading" 11 v-Loading="loading"
12 :label-position="flag ? 'top' : ''" 12 :label-position="flag ? 'top' : ''"
13 :inline="flag" 13 :inline="flag"
14 label-width="130px"> 14 label-width="130px"
15 >
15 <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> 16 <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''">
16 <div class="slxx_title title-block"> 17 <div class="slxx_title title-block">
17 申请信息 18 申请信息
...@@ -70,6 +71,8 @@ ...@@ -70,6 +71,8 @@
70 </el-row> 71 </el-row>
71 <div class="slxx_title title-block"> 72 <div class="slxx_title title-block">
72 电力过户信息 73 电力过户信息
74
75 <el-button @click="showDialogDlxx">电力过户信息修改</el-button>
73 <div class="triangle"></div> 76 <div class="triangle"></div>
74 </div> 77 </div>
75 <el-row :gutter="10"> 78 <el-row :gutter="10">
...@@ -89,7 +92,7 @@ ...@@ -89,7 +92,7 @@
89 </el-form-item> 92 </el-form-item>
90 </el-col> 93 </el-col>
91 </el-row> 94 </el-row>
92 <el-row :gutter="10"> 95 <el-row :gutter="10">
93 <el-col :span="8"> 96 <el-col :span="8">
94 <el-form-item label="原户主姓名:"> 97 <el-form-item label="原户主姓名:">
95 <el-input disabled v-model="dlxxForm.MC_OLD"></el-input> 98 <el-input disabled v-model="dlxxForm.MC_OLD"></el-input>
...@@ -106,7 +109,7 @@ ...@@ -106,7 +109,7 @@
106 </el-form-item> 109 </el-form-item>
107 </el-col> 110 </el-col>
108 </el-row> 111 </el-row>
109 <el-row :gutter="10"> 112 <el-row :gutter="10">
110 <el-col :span="8"> 113 <el-col :span="8">
111 <el-form-item label="新户主姓名:"> 114 <el-form-item label="新户主姓名:">
112 <el-input disabled v-model="dlxxForm.MC_NEW"></el-input> 115 <el-input disabled v-model="dlxxForm.MC_NEW"></el-input>
...@@ -122,15 +125,15 @@ ...@@ -122,15 +125,15 @@
122 <el-input disabled v-model="dlxxForm.LXDH_NEW"></el-input> 125 <el-input disabled v-model="dlxxForm.LXDH_NEW"></el-input>
123 </el-form-item> 126 </el-form-item>
124 </el-col> 127 </el-col>
125 </el-row> 128 </el-row>
126 <el-row :gutter="10"> 129 <el-row :gutter="10">
127 <el-col :span="24"> 130 <el-col :span="24">
128 <el-form-item label="房屋坐落(地址):"> 131 <el-form-item label="房屋坐落(地址):">
129 <el-input disabled v-model="dlxxForm.FWZL"></el-input> 132 <el-input disabled v-model="dlxxForm.FWZL"></el-input>
130 </el-form-item> 133 </el-form-item>
131 </el-col> 134 </el-col>
132 </el-row> 135 </el-row>
133 <el-row :gutter="10"> 136 <el-row :gutter="10">
134 <el-col :span="8"> 137 <el-col :span="8">
135 <el-form-item label="房产证编号:"> 138 <el-form-item label="房产证编号:">
136 <el-input disabled v-model="dlxxForm.FCZBH"></el-input> 139 <el-input disabled v-model="dlxxForm.FCZBH"></el-input>
...@@ -138,12 +141,14 @@ ...@@ -138,12 +141,14 @@
138 </el-col> 141 </el-col>
139 <el-col :span="8"> 142 <el-col :span="8">
140 <el-form-item label="是否过户:"> 143 <el-form-item label="是否过户:">
141 <el-switch disabled 144 <el-switch
145 disabled
142 v-model="dlxxForm.SFGH" 146 v-model="dlxxForm.SFGH"
143 :active-value='1' 147 :active-value="1"
144 active-text="是" 148 active-text="是"
145 :inactive-value="0" 149 :inactive-value="0"
146 inactive-text="否"> 150 inactive-text="否"
151 >
147 </el-switch> 152 </el-switch>
148 </el-form-item> 153 </el-form-item>
149 </el-col> 154 </el-col>
...@@ -152,73 +157,73 @@ ...@@ -152,73 +157,73 @@
152 <el-input disabled v-model="dlxxForm.SENDTIME"></el-input> 157 <el-input disabled v-model="dlxxForm.SENDTIME"></el-input>
153 </el-form-item> 158 </el-form-item>
154 </el-col> 159 </el-col>
155 </el-row> 160 </el-row>
156 <div class="slxx_title title-block"> 161 <div class="slxx_title title-block">
157 自来水过户信息 162 自来水过户信息
158 <div class="triangle"></div> 163 <div class="triangle"></div>
159 </div> 164 </div>
160 <div class="slxx_title title-block"> 165 <div class="slxx_title title-block">
161 天然气过户信息 166 天然气过户信息
162 <div class="triangle"></div> 167 <div class="triangle"></div>
163 </div> 168 </div>
164 <div class="slxx_title title-block"> 169 <div class="slxx_title title-block">
165 热力供暖过户信息 170 热力供暖过户信息
166 <div class="triangle"></div> 171 <div class="triangle"></div>
167 </div> 172 </div>
168 </div> 173 </div>
169
170 </el-form> 174 </el-form>
175 <el-dialog :visible.sync="dialogDlxx" title="电力过户信息修改">
176 <div class="text-center">
177 <el-button @click="$popupCacel">取消</el-button>
178 <el-button type="primary" @click="onSubmit" plain>保存</el-button>
179 </div>
180 </el-dialog>
171 </div> 181 </div>
172 </template> 182 </template>
173 <script> 183 <script>
174 import { mapGetters } from "vuex"; 184 import { mapGetters } from "vuex";
175 import { getDlxxByBsmSldy, saveOrUpdateDlxx } from "@/api/sfxx.js"; 185 import { getDetail } from "@/api/workflow/swhtxx.js";
176 import { getDetail } from "@/api/workflow/swhtxx.js"; 186 export default {
177 export default { 187 computed: {
178 computed: { 188 ...mapGetters(["dictData", "flag"]),
179 ...mapGetters(["dictData", "flag"]), 189 },
180 }, 190 mounted() {
181 mounted () { 191 // this.loading = true
182 // this.loading = true 192 this.viewEdit = this.$parent.currentSelectTab.ableOperation;
183 this.viewEdit = this.$parent.currentSelectTab.ableOperation; 193 this.propsParam = this.$attrs;
184 this.propsParam = this.$attrs; 194 this.getDlxxByBsmSldy();
185 this.getDlxxByBsmSldy(); 195 },
196 data() {
197 return {
198 dialogDlxx: false,
199 loading: false,
200 //表单是否可操作
201 viewEdit: false,
202 ruleForm: {},
203 dlxxForm: {},
204 };
205 },
206 methods: {
207 getDlxxByBsmSldy() {
208 getDetail(this.propsParam.bsmSldy).then((res) => {
209 if (res.code === 200) {
210 if (res.result != null) {
211 this.ruleForm = res.result;
212 this.dlxxForm = JSON.parse(res.result.wqht.dlnr);
213 }
214 }
215 });
186 }, 216 },
187 data () { 217 onSubmit() {
188 return { 218
189 loading: false,
190 //表单是否可操作
191 viewEdit: false,
192 ruleForm: {
193 },
194 dlxxForm:{}
195 }
196 }, 219 },
197 methods: { 220 showDialogDlxx() {
198 getDlxxByBsmSldy() { 221 this.dialogDlxx = true;
199 getDetail(this.propsParam.bsmSldy).then((res) => {
200 if (res.code === 200) {
201 if (res.result != null) {
202 this.ruleForm = res.result;
203 this.dlxxForm = JSON.parse(res.result.wqht.dlnr);
204 }
205 }
206 });
207 },
208 saveOrUpdateDlxx() {
209 saveOrUpdateDlxx(this.ruleForm).then((res) => {
210 if (res.code === 200) {
211 this.$message.success("成功")
212 }
213 });
214 },
215 onSubmit () {
216 this.saveOrUpdateDlxx()
217 }
218 } 222 }
219 } 223 },
224 };
220 </script> 225 </script>
221 <style scoped lang="scss"> 226 <style scoped lang="scss">
222 @import "~@/styles/public.scss"; 227 @import "~@/styles/public.scss";
223 @import "~@/styles/slxx/slxx.scss"; 228 @import "~@/styles/slxx/slxx.scss";
224 </style> 229 </style>
......