style:不动产数据编辑
Showing
5 changed files
with
38 additions
and
33 deletions
... | @@ -95,8 +95,9 @@ | ... | @@ -95,8 +95,9 @@ |
95 | 实际层数: <br /> | 95 | 实际层数: <br /> |
96 | <p class="label-detail">(SJCS)</p> | 96 | <p class="label-detail">(SJCS)</p> |
97 | </span> | 97 | </span> |
98 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-only-number="{ max: 99999, min: 1, precision: 0 }" | 98 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" |
99 | placeholder="实际层数" v-model="ruleForm.sjcs"></el-input-number> | 99 | v-only-number="{ max: 99999, min: 1, precision: 0 }" placeholder="实际层数" |
100 | v-model="ruleForm.sjcs"></el-input-number> | ||
100 | </el-form-item> | 101 | </el-form-item> |
101 | </el-col> | 102 | </el-col> |
102 | </el-row> | 103 | </el-row> |
... | @@ -108,8 +109,8 @@ | ... | @@ -108,8 +109,8 @@ |
108 | 户号: <br /> | 109 | 户号: <br /> |
109 | <p class="label-detail">(HH)</p> | 110 | <p class="label-detail">(HH)</p> |
110 | </span> | 111 | </span> |
111 | <el-input-number controls-position="right":disabled="$store.state.business.Edit" v-model="ruleForm.hh" placeholder="户号" | 112 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" v-model="ruleForm.hh" |
112 | v-only-number="{ max: 99999, min: 1, precision: 0 }"></el-input-number> | 113 | placeholder="户号" v-only-number="{ max: 99999, min: 1, precision: 0 }"></el-input-number> |
113 | </el-form-item> | 114 | </el-form-item> |
114 | </el-col> | 115 | </el-col> |
115 | 116 | ||
... | @@ -225,7 +226,7 @@ | ... | @@ -225,7 +226,7 @@ |
225 | <p class="label-detail">(YCFTJZMJ)</p> | 226 | <p class="label-detail">(YCFTJZMJ)</p> |
226 | </span> | 227 | </span> |
227 | <el-input :disabled="$store.state.business.Edit" | 228 | <el-input :disabled="$store.state.business.Edit" |
228 | : 999999999999999, min: 0, precision: 2 }" placeholder="预测分摊建筑面积" type="number" | 229 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" placeholder="预测分摊建筑面积" type="number" |
229 | v-model.number="ruleForm.ycftjzmj"></el-input> | 230 | v-model.number="ruleForm.ycftjzmj"></el-input> |
230 | </el-form-item> | 231 | </el-form-item> |
231 | </el-col> | 232 | </el-col> |
... | @@ -236,9 +237,9 @@ | ... | @@ -236,9 +237,9 @@ |
236 | 预测地下部分建筑面积: <br /> | 237 | 预测地下部分建筑面积: <br /> |
237 | <p class="label-detail">(YCDXBFJZMJ)</p> | 238 | <p class="label-detail">(YCDXBFJZMJ)</p> |
238 | </span> | 239 | </span> |
239 | <el-input-number controls-position="right" :disabled="$store.state.business.Edit" | 240 | <el-input controls-position="right" :disabled="$store.state.business.Edit" |
240 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" placeholder="预测地下部分建筑面积" type="number" | 241 | v-only-number="{ max: 999999999999999, min: 0, precision: 2 }" placeholder="预测地下部分建筑面积" type="number" |
241 | v-model.number="ruleForm.ycdxbfjzmj"></el-input-number> | 242 | v-model.number="ruleForm.ycdxbfjzmj"></el-input> |
242 | </el-form-item> | 243 | </el-form-item> |
243 | </el-col> | 244 | </el-col> |
244 | 245 | ||
... | @@ -363,9 +364,8 @@ | ... | @@ -363,9 +364,8 @@ |
363 | 分摊土地面积: <br /> | 364 | 分摊土地面积: <br /> |
364 | <p class="label-detail">(FTTDMJ)</p> | 365 | <p class="label-detail">(FTTDMJ)</p> |
365 | </span> | 366 | </span> |
366 | <el-input :disabled="$store.state.business.Edit" | 367 | <el-input :disabled="$store.state.business.Edit" : 999999999999999, min: 0, precision: 3 }" |
367 | : 999999999999999, min: 0, precision: 3 }" placeholder="分摊土地面积" type="number" | 368 | placeholder="分摊土地面积" type="number" v-model.number="ruleForm.fttdmj"></el-input> |
368 | v-model.number="ruleForm.fttdmj"></el-input> | ||
369 | </el-form-item> | 369 | </el-form-item> |
370 | </el-col> | 370 | </el-col> |
371 | </el-row> | 371 | </el-row> |
... | @@ -465,7 +465,7 @@ export default { | ... | @@ -465,7 +465,7 @@ export default { |
465 | default: "", | 465 | default: "", |
466 | }, | 466 | }, |
467 | }, | 467 | }, |
468 | data() { | 468 | data () { |
469 | return { | 469 | return { |
470 | ruleForm: { | 470 | ruleForm: { |
471 | YSDM: "", | 471 | YSDM: "", |
... | @@ -508,7 +508,7 @@ export default { | ... | @@ -508,7 +508,7 @@ export default { |
508 | }; | 508 | }; |
509 | }, | 509 | }, |
510 | methods: { | 510 | methods: { |
511 | async featchData() { | 511 | async featchData () { |
512 | try { | 512 | try { |
513 | let { result: res } = await kttFwH.getKttFwHById(this.bsmSjsb); | 513 | let { result: res } = await kttFwH.getKttFwHById(this.bsmSjsb); |
514 | this.ruleForm = res; | 514 | this.ruleForm = res; |
... | @@ -517,7 +517,7 @@ export default { | ... | @@ -517,7 +517,7 @@ export default { |
517 | this.$refs.msg.messageShow(); | 517 | this.$refs.msg.messageShow(); |
518 | } | 518 | } |
519 | }, | 519 | }, |
520 | handleUpdateForm() { | 520 | handleUpdateForm () { |
521 | return new Promise(async (resolve, reject) => { | 521 | return new Promise(async (resolve, reject) => { |
522 | try { | 522 | try { |
523 | let res = await kttFwH.updateKttFwH(this.ruleForm); | 523 | let res = await kttFwH.updateKttFwH(this.ruleForm); | ... | ... |
... | @@ -315,7 +315,6 @@ | ... | @@ -315,7 +315,6 @@ |
315 | </div> | 315 | </div> |
316 | </div> | 316 | </div> |
317 | </el-form> | 317 | </el-form> |
318 | <message-tips ref="msg" /> | ||
319 | </div> | 318 | </div> |
320 | </template> | 319 | </template> |
321 | <script> | 320 | <script> |
... | @@ -378,19 +377,15 @@ export default { | ... | @@ -378,19 +377,15 @@ export default { |
378 | try { | 377 | try { |
379 | let { result: res } = await zttGyQlr.getZttGyQlrById(this.bsmSjsb) | 378 | let { result: res } = await zttGyQlr.getZttGyQlrById(this.bsmSjsb) |
380 | this.obligeeForm.obligeeList = res | 379 | this.obligeeForm.obligeeList = res |
381 | //this.featchRule() | ||
382 | } catch (error) { | 380 | } catch (error) { |
383 | this.$refs.msg.messageShow() | ||
384 | } | 381 | } |
385 | }, | 382 | }, |
386 | handleUpdateForm () { | 383 | handleUpdateForm () { |
387 | return new Promise(async (resolve) => { | 384 | return new Promise(async (resolve) => { |
388 | try { | 385 | try { |
389 | let res = await zttGyQlr.updateZttGyQlr(this.obligeeForm.obligeeList) | 386 | let res = await zttGyQlr.updateZttGyQlr(this.obligeeForm.obligeeList) |
390 | // this.$refs['formList'].resetFields(); | ||
391 | resolve(res.code) | 387 | resolve(res.code) |
392 | } catch (error) { | 388 | } catch (error) { |
393 | this.$refs.msg.messageShow() | ||
394 | } | 389 | } |
395 | }) | 390 | }) |
396 | } | 391 | } | ... | ... |
... | @@ -7,8 +7,8 @@ | ... | @@ -7,8 +7,8 @@ |
7 | </div> | 7 | </div> |
8 | <el-tabs v-model="titleName" type="card" @tab-click="handleTitleTab"> | 8 | <el-tabs v-model="titleName" type="card" @tab-click="handleTitleTab"> |
9 | <el-tab-pane label="数据模型" name="sjmx"></el-tab-pane> | 9 | <el-tab-pane label="数据模型" name="sjmx"></el-tab-pane> |
10 | <el-tab-pane label="xml报文" name="xml"></el-tab-pane> | 10 | <el-tab-pane v-if="visiableXml" label="xml报文" name="xml"></el-tab-pane> |
11 | <el-tab-pane label="响应结果" name="xyjg"></el-tab-pane> | 11 | <el-tab-pane v-if="visiableXml" label="响应结果" name="xyjg"></el-tab-pane> |
12 | </el-tabs> | 12 | </el-tabs> |
13 | <div v-if="titleName == 'sjmx'" class="sjmx"> | 13 | <div v-if="titleName == 'sjmx'" class="sjmx"> |
14 | <div class="dialog-from"> | 14 | <div class="dialog-from"> |
... | @@ -97,11 +97,11 @@ | ... | @@ -97,11 +97,11 @@ |
97 | </el-tabs> | 97 | </el-tabs> |
98 | <div class="edit-content"> | 98 | <div class="edit-content"> |
99 | <component :is="editItem" ref="editItem" :class="{ 'editForm': $store.state.business.Edit }" | 99 | <component :is="editItem" ref="editItem" :class="{ 'editForm': $store.state.business.Edit }" |
100 | :bsmYwsjb="bsmYwsjb" :bsmSjsb="dataReport.bsmReport" /> | 100 | :bsmYwsjb="bsmYwsjb" :bsmSjsb="dataReport.bsmReport || dataReport.bsmSjsb" /> |
101 | </div> | 101 | </div> |
102 | </div> | 102 | </div> |
103 | <div v-if="titleName == 'xyjg'"> | 103 | <div v-if="titleName == 'xyjg'"> |
104 | <Xyjg :form-data = 'dataReport'></Xyjg> | 104 | <Xyjg :form-data='dataReport'></Xyjg> |
105 | </div> | 105 | </div> |
106 | <JsonEditor :resultInfo="resultInfo" v-if="titleName == 'xml'" /> | 106 | <JsonEditor :resultInfo="resultInfo" v-if="titleName == 'xml'" /> |
107 | <!-- <div slot="footer" class="dialog_footer" ref="dialogFooter"> | 107 | <!-- <div slot="footer" class="dialog_footer" ref="dialogFooter"> |
... | @@ -126,6 +126,14 @@ export default { | ... | @@ -126,6 +126,14 @@ export default { |
126 | title: { | 126 | title: { |
127 | type: String, | 127 | type: String, |
128 | default: '' | 128 | default: '' |
129 | }, | ||
130 | tabsActiveName: { | ||
131 | type: String, | ||
132 | default: '' | ||
133 | }, | ||
134 | visiableXml: { | ||
135 | type: Boolean, | ||
136 | default: false | ||
129 | } | 137 | } |
130 | }, | 138 | }, |
131 | computed: { | 139 | computed: { |
... | @@ -177,19 +185,21 @@ export default { | ... | @@ -177,19 +185,21 @@ export default { |
177 | this.titleName = 'sjmx'; | 185 | this.titleName = 'sjmx'; |
178 | this.dialogVisible = true; | 186 | this.dialogVisible = true; |
179 | //获取表头列表 | 187 | //获取表头列表 |
180 | getDetail({ bsmReport: this.dataReport.bsmReport }).then((res) => { | 188 | getDetail({ bsmReport: this.dataReport.bsmReport || this.dataReport.bsmSjsb }).then((res) => { |
181 | if (res.code == 200) { | 189 | if (res.code == 200) { |
182 | this.headerList = res.result; | 190 | this.headerList = res.result; |
183 | this.activeName = res.result[0].soleurl | 191 | this.activeName = this.tabsActiveName == '' ? res.result[0].soleurl : this.tabsActiveName |
184 | this.bsmYwsjb = this.headerList[0].bsmYwsjb; | 192 | this.bsmYwsjb = this.headerList[0].bsmYwsjb; |
185 | this.editItem = this.loadView(this.activeName); | 193 | this.editItem = this.loadView(this.activeName); |
194 | console.log(this.activeName, 'this.activeNamethis.activeNamethis.activeName'); | ||
186 | } | 195 | } |
187 | }); | 196 | }); |
188 | // 获取xml | 197 | // 获取xml |
189 | getXml(item.bizMsgid).then((res) => { | 198 | if (this.visiableXml) { |
190 | console.log(res); | 199 | getXml(item.bizMsgid).then((res) => { |
191 | this.resultInfo = res.message | 200 | this.resultInfo = res.message |
192 | }) | 201 | }) |
202 | } | ||
193 | }, | 203 | }, |
194 | changeList (val) { | 204 | changeList (val) { |
195 | let _index = val.index; | 205 | let _index = val.index; |
... | @@ -206,7 +216,7 @@ export default { | ... | @@ -206,7 +216,7 @@ export default { |
206 | }, | 216 | }, |
207 | loadView (view) { | 217 | loadView (view) { |
208 | return (r) => | 218 | return (r) => |
209 | require.ensure([], () => r(require(`@/components/Business/${view}`))); | 219 | require.ensure([], () => r(require(`@/components/Business/${view}.vue`))); |
210 | }, | 220 | }, |
211 | closeDialog () { | 221 | closeDialog () { |
212 | this.dialogVisible = false; | 222 | this.dialogVisible = false; | ... | ... |
... | @@ -66,12 +66,12 @@ | ... | @@ -66,12 +66,12 @@ |
66 | </div> | 66 | </div> |
67 | <div class="from-clues-content"> | 67 | <div class="from-clues-content"> |
68 | <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="pageData.total" | 68 | <lb-table :page-size="pageData.size" :current-page.sync="pageData.current" :total="pageData.total" |
69 | @selection-change="handleSelectionChange" @size-change="handleSizeChange" | 69 | @size-change="handleSizeChange" @p-current-change="handleCurrentChange" :column="tableData.columns" |
70 | @p-current-change="handleCurrentChange" :column="tableData.columns" :data="tableData.data"> | 70 | :data="tableData.data"> |
71 | </lb-table> | 71 | </lb-table> |
72 | </div> | 72 | </div> |
73 | <!-- 编辑 --> | 73 | <!-- 编辑 --> |
74 | <dataDetails ref="editLog" :title="title" /> | 74 | <dataDetails ref="editLog" :title="title" :tabsActiveName="'qlfQlDyaq'" /> |
75 | </div> | 75 | </div> |
76 | </template> | 76 | </template> |
77 | 77 | ... | ... |
... | @@ -91,7 +91,7 @@ | ... | @@ -91,7 +91,7 @@ |
91 | </lb-table> | 91 | </lb-table> |
92 | </div> | 92 | </div> |
93 | <!-- 编辑 --> | 93 | <!-- 编辑 --> |
94 | <dataDetails ref="editLog" :title="title" /> | 94 | <dataDetails ref="editLog" :title="title" :visiableXml="true" /> |
95 | </div> | 95 | </div> |
96 | </template> | 96 | </template> |
97 | 97 | ... | ... |
-
Please register or sign in to post a comment