Merge branch 'dev'
Showing
6 changed files
with
476 additions
and
27 deletions
| 1 | /* | ||
| 2 | * @Description: | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2024-03-21 15:43:56 | ||
| 5 | */ | ||
| 1 | import request from '@/utils/request' | 6 | import request from '@/utils/request' |
| 2 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) | 7 | let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl')) |
| 3 | 8 | ||
| ... | @@ -15,4 +20,44 @@ export function getDetail (bsmSldy) { | ... | @@ -15,4 +20,44 @@ export function getDetail (bsmSldy) { |
| 15 | bsmSldy: bsmSldy | 20 | bsmSldy: bsmSldy |
| 16 | } | 21 | } |
| 17 | }) | 22 | }) |
| 23 | } | ||
| 24 | /** | ||
| 25 | * @description: 读取权利人信息 | ||
| 26 | * @param {*} bsmSldy | ||
| 27 | * @author: renchao | ||
| 28 | */ | ||
| 29 | export function loadQlrxx (bsmSldy) { | ||
| 30 | return request({ | ||
| 31 | url: SERVER.SERVERAPI + '/rest/ywbl/swhtxx/loadQlrxx', | ||
| 32 | method: 'get', | ||
| 33 | params: { | ||
| 34 | bsmSldy: bsmSldy | ||
| 18 | } | 35 | } |
| 36 | }) | ||
| 37 | } | ||
| 38 | |||
| 39 | /** | ||
| 40 | * @description: 查询房产交易合同信息 | ||
| 41 | * @param {*} bsmSldy | ||
| 42 | * @author: renchao | ||
| 43 | */ | ||
| 44 | export function queryTransactionDetails (data) { | ||
| 45 | return request({ | ||
| 46 | url: SERVER.SERVERAPI + '/rest/ywbl/swhtxx/queryTransactionDetails', | ||
| 47 | method: 'post', | ||
| 48 | data | ||
| 49 | }) | ||
| 50 | } | ||
| 51 | |||
| 52 | /** | ||
| 53 | * @description: 契税完税信息共享 | ||
| 54 | * @param {*} bsmSldy | ||
| 55 | * @author: renchao | ||
| 56 | */ | ||
| 57 | export function querySwwsxx (data) { | ||
| 58 | return request({ | ||
| 59 | url: SERVER.SERVERAPI + '/rest/ywbl/swhtxx/querySwwsxx', | ||
| 60 | method: 'post', | ||
| 61 | data | ||
| 62 | }) | ||
| 63 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
src/views/workflow/main/sdqxx/dlxx.vue
0 → 100644
| 1 | <!-- | ||
| 2 | * @Description: 交易合同 | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2024-03-21 16:58:45 | ||
| 5 | --> | ||
| 6 | <template> | ||
| 7 | <div class='jyht'> | ||
| 8 | <el-form :model="queryForm"> | ||
| 9 | <el-row :gutter="10"> | ||
| 10 | <el-col :span="6"> | ||
| 11 | <el-form-item label="合同号"> | ||
| 12 | <el-input v-model="queryForm.htbh"></el-input> | ||
| 13 | </el-form-item> | ||
| 14 | </el-col> | ||
| 15 | <!-- <el-col :span="6"> | ||
| 16 | <el-form-item label="证件号码"> | ||
| 17 | <el-input v-model="queryForm.sfzjhm"></el-input> | ||
| 18 | </el-form-item> | ||
| 19 | </el-col> | ||
| 20 | <el-col :span="6"> | ||
| 21 | <el-form-item label="业务号"> | ||
| 22 | <el-input v-model="queryForm.ywh"></el-input> | ||
| 23 | </el-form-item> | ||
| 24 | </el-col> --> | ||
| 25 | <!-- <el-col :span="6" class="btnColRight"> | ||
| 26 | <el-button type="primary" @click="handleSearch">查询</el-button> | ||
| 27 | </el-col> --> | ||
| 28 | </el-row> | ||
| 29 | </el-form> | ||
| 30 | |||
| 31 | <lb-table ref="table" @row-click="handleRowClick" :pagination="false" :key="key" | ||
| 32 | :column="tableData.columns" | ||
| 33 | :data="tableData.data"> | ||
| 34 | </lb-table> | ||
| 35 | <div class="text-center"> | ||
| 36 | <el-button @click="$popupCacel">取消</el-button> | ||
| 37 | <!-- <el-button type="primary" @click="handleSubmit" plain>保存</el-button> --> | ||
| 38 | <el-button type="primary" @click="handleSearch">查询</el-button> | ||
| 39 | </div> | ||
| 40 | </div> | ||
| 41 | </template> | ||
| 42 | <script> | ||
| 43 | import store from '@/store/index.js' | ||
| 44 | import { loadQlrxx,queryTransactionDetails } from "@/api/workflow/swhtxx.js"; | ||
| 45 | export default { | ||
| 46 | props: { | ||
| 47 | formData: { | ||
| 48 | type: Object, | ||
| 49 | default: {} | ||
| 50 | } | ||
| 51 | }, | ||
| 52 | components: {}, | ||
| 53 | data () { | ||
| 54 | return { | ||
| 55 | key: 0, | ||
| 56 | radioVal: '', | ||
| 57 | queryForm: { | ||
| 58 | htbh: '', | ||
| 59 | sfzjhm: '', | ||
| 60 | ywh: '' | ||
| 61 | }, | ||
| 62 | tableData: { | ||
| 63 | data: [], | ||
| 64 | columns: [ | ||
| 65 | { | ||
| 66 | label: '选择', | ||
| 67 | width: '50px', | ||
| 68 | render: (h, scope) => { | ||
| 69 | return ( | ||
| 70 | <div class="orgColumn"> | ||
| 71 | <el-radio onChange={() => { this.handleChange(scope.row) }} v-model={this.radioVal} label={scope.row.bsmSqr}> | ||
| 72 |   | ||
| 73 | </el-radio> | ||
| 74 | </div> | ||
| 75 | ) | ||
| 76 | } | ||
| 77 | }, | ||
| 78 | { | ||
| 79 | prop: 'sqrmc', | ||
| 80 | label: '权利人名称', | ||
| 81 | }, | ||
| 82 | { | ||
| 83 | prop: 'zjzlmc', | ||
| 84 | label: '证件种类' | ||
| 85 | }, | ||
| 86 | { | ||
| 87 | prop: 'zjh', | ||
| 88 | label: '证件号码' | ||
| 89 | }, | ||
| 90 | { | ||
| 91 | prop: 'dh', | ||
| 92 | label: '联系电话' | ||
| 93 | } | ||
| 94 | ] | ||
| 95 | } | ||
| 96 | } | ||
| 97 | }, | ||
| 98 | mounted () { | ||
| 99 | this.loadData() | ||
| 100 | }, | ||
| 101 | methods: { | ||
| 102 | handleRowClick (val) { | ||
| 103 | this.radioVal = row.bsmSqr; | ||
| 104 | this.queryForm.nsrmc= row.sqrmc; | ||
| 105 | this.queryForm.sfzjhm= row.zjh; | ||
| 106 | }, | ||
| 107 | handleSearch () { | ||
| 108 | queryTransactionDetails(this.queryForm).then(res => { | ||
| 109 | if (res.code === 200 && res.result){ | ||
| 110 | |||
| 111 | } | ||
| 112 | }) | ||
| 113 | }, | ||
| 114 | handleChange (row) { | ||
| 115 | this.radioVal = row.bsmSqr; | ||
| 116 | this.queryForm.nsrmc= row.sqrmc; | ||
| 117 | this.queryForm.sfzjhm= row.zjh; | ||
| 118 | }, | ||
| 119 | loadData () { | ||
| 120 | function findValueByKey (array, keyToFind) { | ||
| 121 | var foundItem = array.find(function (item) { | ||
| 122 | return item.dcode === keyToFind; | ||
| 123 | }); | ||
| 124 | |||
| 125 | return foundItem ? foundItem.dname : undefined; | ||
| 126 | } | ||
| 127 | this.queryForm.htbh=this.formData.htbh; | ||
| 128 | this.queryForm.qxdm=this.formData.qxdm; | ||
| 129 | this.queryForm.bsmQlxx=this.formData.bsmQlxx; | ||
| 130 | loadQlrxx(this.formData.bsmSldy).then(res => { | ||
| 131 | let arr = store.getters.dictData['A30'] | ||
| 132 | this.tableData.data = res.result | ||
| 133 | this.tableData.data.forEach(item => { | ||
| 134 | if (item.zjzl) { | ||
| 135 | item.zjzlmc = findValueByKey(arr, item.zjzl); | ||
| 136 | } | ||
| 137 | }) | ||
| 138 | this.key++ | ||
| 139 | }) | ||
| 140 | } | ||
| 141 | } | ||
| 142 | } | ||
| 143 | </script> | ||
| 144 | <style scoped lang='scss'> | ||
| 145 | @import "~@/styles/public.scss"; | ||
| 146 | </style> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| ... | @@ -212,9 +212,11 @@ export default { | ... | @@ -212,9 +212,11 @@ export default { |
| 212 | if (res.result.wqht == null) { | 212 | if (res.result.wqht == null) { |
| 213 | return; | 213 | return; |
| 214 | } | 214 | } |
| 215 | if (res.result.wqht.dlnr != "" && res.result.wqht.dlnr != null) { | ||
| 215 | this.dlxxForm = JSON.parse(res.result.wqht.dlnr); | 216 | this.dlxxForm = JSON.parse(res.result.wqht.dlnr); |
| 216 | } | 217 | } |
| 217 | } | 218 | } |
| 219 | } | ||
| 218 | }); | 220 | }); |
| 219 | }, | 221 | }, |
| 220 | onSubmit() {}, | 222 | onSubmit() {}, | ... | ... |
| ... | @@ -6,8 +6,7 @@ | ... | @@ -6,8 +6,7 @@ |
| 6 | v-Loading="loading" | 6 | v-Loading="loading" |
| 7 | :label-position="flag ? 'top' : ''" | 7 | :label-position="flag ? 'top' : ''" |
| 8 | :inline="flag" | 8 | :inline="flag" |
| 9 | label-width="120px" | 9 | label-width="120px"> |
| 10 | > | ||
| 11 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> | 10 | <div class="slxx_con" :class="flag ? 'formMarginBot0' : ''"> |
| 12 | <div class="slxx_title title-block"> | 11 | <div class="slxx_title title-block"> |
| 13 | 申请信息 | 12 | 申请信息 |
| ... | @@ -66,10 +65,11 @@ | ... | @@ -66,10 +65,11 @@ |
| 66 | </el-row> | 65 | </el-row> |
| 67 | <div class="slxx_title title-block"> | 66 | <div class="slxx_title title-block"> |
| 68 | <el-row> | 67 | <el-row> |
| 69 | <el-col :span="20"> 房屋合同信息 </el-col> | 68 | <el-col :span="24"> 房屋合同信息 |
| 70 | <el-col :span="4"> | 69 | <el-button type="primary" @click="handleContract">查询房屋交易合同</el-button> </el-col> |
| 71 | <el-button @click="compare">查询房屋交易合同</el-button> | 70 | <!-- <el-col :span="4" class="btnColRight"> |
| 72 | </el-col> | 71 | |
| 72 | </el-col> --> | ||
| 73 | </el-row> | 73 | </el-row> |
| 74 | <div class="triangle"></div> | 74 | <div class="triangle"></div> |
| 75 | </div> | 75 | </div> |
| ... | @@ -165,9 +165,9 @@ | ... | @@ -165,9 +165,9 @@ |
| 165 | <lb-table | 165 | <lb-table |
| 166 | :column="clmMsr" | 166 | :column="clmMsr" |
| 167 | :pagination="false" | 167 | :pagination="false" |
| 168 | :heightNumSetting="true" | 168 | :key="key" |
| 169 | :data="qlrList" | 169 | :heightNumSetting="true" :minHeight="0" :rowStyleHeight='25' |
| 170 | > | 170 | :data="qlrList"> |
| 171 | </lb-table> | 171 | </lb-table> |
| 172 | <div class="slxx_title title-block"> | 172 | <div class="slxx_title title-block"> |
| 173 | 出卖人信息 | 173 | 出卖人信息 |
| ... | @@ -175,40 +175,46 @@ | ... | @@ -175,40 +175,46 @@ |
| 175 | </div> | 175 | </div> |
| 176 | <lb-table | 176 | <lb-table |
| 177 | :column="clmMsr" | 177 | :column="clmMsr" |
| 178 | :key="key1" | ||
| 178 | :pagination="false" | 179 | :pagination="false" |
| 179 | :heightNumSetting="true" | 180 | :heightNumSetting="true" :minHeight="0" :rowStyleHeight='25' |
| 180 | :data="ywrList" | 181 | :data="ywrList"> |
| 181 | > | ||
| 182 | </lb-table> | 182 | </lb-table> |
| 183 | |||
| 183 | <div class="slxx_title title-block"> | 184 | <div class="slxx_title title-block"> |
| 184 | 缴税信息 | 185 | <el-row> |
| 186 | <el-col :span="24"> 缴税信息 <el-button type="primary" @click="handleSwwsxx">查询契税完税信息</el-button></el-col> | ||
| 187 | </el-row> | ||
| 185 | <div class="triangle"></div> | 188 | <div class="triangle"></div> |
| 186 | </div> | 189 | </div> |
| 187 | <lb-table | 190 | <lb-table |
| 188 | :column="clmSwxx" | 191 | :column="clmSwxx" |
| 189 | :pagination="false" | 192 | :pagination="false" |
| 190 | :heightNumSetting="true" | 193 | :key="key2" |
| 191 | :data="swxxList" | 194 | :heightNumSetting="true" :minHeight="0" :rowStyleHeight='25' |
| 192 | > | 195 | :data="swxxList"> |
| 193 | </lb-table> | 196 | </lb-table> |
| 194 | </div> | 197 | </div> |
| 195 | </el-form> | 198 | </el-form> |
| 196 | </div> | 199 | </div> |
| 197 | </template> | 200 | </template> |
| 198 | <script> | 201 | <script> |
| 199 | import { getDetail } from "@/api/workflow/swhtxx.js"; | 202 | import { mapGetters } from "vuex"; |
| 200 | import { mapGetters } from "vuex"; | 203 | import { getDetail } from "@/api/workflow/swhtxx.js"; |
| 201 | export default { | 204 | export default { |
| 202 | computed: { | 205 | computed: { |
| 203 | ...mapGetters(["dictData", "flag"]), | 206 | ...mapGetters(["dictData", "flag"]), |
| 204 | }, | 207 | }, |
| 205 | mounted() { | 208 | mounted () { |
| 206 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; | 209 | this.viewEdit = this.$parent.currentSelectTab.ableOperation; |
| 207 | this.propsParam = this.$attrs; | 210 | this.propsParam = this.$attrs; |
| 208 | this.loadData(); | 211 | this.loadData(); |
| 209 | }, | 212 | }, |
| 210 | data() { | 213 | data () { |
| 211 | return { | 214 | return { |
| 215 | key: 0, | ||
| 216 | key1: 1, | ||
| 217 | key2: 2, | ||
| 212 | ruleForm: {}, | 218 | ruleForm: {}, |
| 213 | loading: false, | 219 | loading: false, |
| 214 | //表单是否可操作 | 220 | //表单是否可操作 |
| ... | @@ -279,8 +285,7 @@ export default { | ... | @@ -279,8 +285,7 @@ export default { |
| 279 | }; | 285 | }; |
| 280 | }, | 286 | }, |
| 281 | methods: { | 287 | methods: { |
| 282 | onSubmit() {}, | 288 | loadData () { |
| 283 | loadData() { | ||
| 284 | getDetail(this.propsParam.bsmSldy).then((res) => { | 289 | getDetail(this.propsParam.bsmSldy).then((res) => { |
| 285 | if (res.code === 200 && res.result) { | 290 | if (res.code === 200 && res.result) { |
| 286 | this.ruleForm = res.result; | 291 | this.ruleForm = res.result; |
| ... | @@ -292,17 +297,47 @@ export default { | ... | @@ -292,17 +297,47 @@ export default { |
| 292 | this.fwxx = htxx[0].h[0]; | 297 | this.fwxx = htxx[0].h[0]; |
| 293 | this.qlrList = htxx[1].msr; | 298 | this.qlrList = htxx[1].msr; |
| 294 | this.ywrList = htxx[2].cmr; | 299 | this.ywrList = htxx[2].cmr; |
| 300 | this.key++ | ||
| 301 | this.key1++ | ||
| 302 | this.key2++ | ||
| 295 | } | 303 | } |
| 296 | if (res.result.wqht.jsnr != "" && res.result.wqht.jsnr != null) { | 304 | if (res.result.wqht.jsnr != "" && res.result.wqht.jsnr != null) { |
| 297 | this.swxxList = JSON.parse(res.result.wqht.jsnr); | 305 | this.swxxList = JSON.parse(res.result.wqht.jsnr); |
| 298 | } | 306 | } |
| 299 | } | 307 | } |
| 300 | }); | 308 | }) |
| 301 | }, | 309 | }, |
| 310 | handleContract () { | ||
| 311 | let formData = { | ||
| 312 | bsmSldy: this.propsParam.bsmSldy, | ||
| 313 | qxdm: this.ruleForm.qlxx.qxdm, | ||
| 314 | bsmQlxx: this.ruleForm.qlxx.bsmQlxx, | ||
| 315 | }; | ||
| 316 | if(this.ruleForm.wqht==null){ | ||
| 317 | formData.htbh=''; | ||
| 318 | }else{ | ||
| 319 | formData.htbh=this.ruleForm.wqht.wqhth; | ||
| 320 | } | ||
| 321 | this.$popupDialog('查询房产交易合同信息', 'workflow/main/swxx/jyht', formData, '60%', true) | ||
| 302 | }, | 322 | }, |
| 303 | }; | 323 | handleSwwsxx () { |
| 324 | let formData = { | ||
| 325 | bsmSldy: this.propsParam.bsmSldy, | ||
| 326 | qxdm: this.ruleForm.qlxx.qxdm, | ||
| 327 | bsmQlxx: this.ruleForm.qlxx.bsmQlxx, | ||
| 328 | ywh: this.ruleForm.qlxx.ywh, | ||
| 329 | }; | ||
| 330 | if(this.ruleForm.wqht==null){ | ||
| 331 | formData.htbh=''; | ||
| 332 | }else{ | ||
| 333 | formData.htbh=this.ruleForm.wqht.wqhth; | ||
| 334 | } | ||
| 335 | this.$popupDialog('查询契税完税信息共享', 'workflow/main/swxx/swwsxx', formData, '60%', true) | ||
| 336 | } | ||
| 337 | } | ||
| 338 | } | ||
| 304 | </script> | 339 | </script> |
| 305 | <style scoped lang="scss"> | 340 | <style scoped lang="scss"> |
| 306 | @import "~@/styles/public.scss"; | 341 | @import "~@/styles/public.scss"; |
| 307 | @import "~@/styles/slxx/slxx.scss"; | 342 | @import "~@/styles/slxx/slxx.scss"; |
| 308 | </style> | 343 | </style> | ... | ... |
src/views/workflow/main/swxx/jyht.vue
0 → 100644
| 1 | <!-- | ||
| 2 | * @Description: 交易合同 | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2024-03-21 16:58:45 | ||
| 5 | --> | ||
| 6 | <template> | ||
| 7 | <div class='jyht'> | ||
| 8 | <el-form :model="queryForm"> | ||
| 9 | <el-row :gutter="10"> | ||
| 10 | <el-col :span="6"> | ||
| 11 | <el-form-item label="合同号"> | ||
| 12 | <el-input v-model="queryForm.htbh"></el-input> | ||
| 13 | </el-form-item> | ||
| 14 | </el-col> | ||
| 15 | <!-- <el-col :span="6"> | ||
| 16 | <el-form-item label="证件号码"> | ||
| 17 | <el-input v-model="queryForm.sfzjhm"></el-input> | ||
| 18 | </el-form-item> | ||
| 19 | </el-col> | ||
| 20 | <el-col :span="6"> | ||
| 21 | <el-form-item label="业务号"> | ||
| 22 | <el-input v-model="queryForm.ywh"></el-input> | ||
| 23 | </el-form-item> | ||
| 24 | </el-col> --> | ||
| 25 | <!-- <el-col :span="6" class="btnColRight"> | ||
| 26 | <el-button type="primary" @click="handleSearch">查询</el-button> | ||
| 27 | </el-col> --> | ||
| 28 | </el-row> | ||
| 29 | </el-form> | ||
| 30 | |||
| 31 | <lb-table ref="table" @row-click="handleRowClick" :pagination="false" :key="key" | ||
| 32 | :column="tableData.columns" | ||
| 33 | :data="tableData.data"> | ||
| 34 | </lb-table> | ||
| 35 | <div class="text-center"> | ||
| 36 | <el-button @click="$popupCacel">取消</el-button> | ||
| 37 | <!-- <el-button type="primary" @click="handleSubmit" plain>保存</el-button> --> | ||
| 38 | <el-button type="primary" @click="handleSearch">查询</el-button> | ||
| 39 | </div> | ||
| 40 | </div> | ||
| 41 | </template> | ||
| 42 | <script> | ||
| 43 | import store from '@/store/index.js' | ||
| 44 | import { loadQlrxx,queryTransactionDetails } from "@/api/workflow/swhtxx.js"; | ||
| 45 | export default { | ||
| 46 | props: { | ||
| 47 | formData: { | ||
| 48 | type: Object, | ||
| 49 | default: {} | ||
| 50 | } | ||
| 51 | }, | ||
| 52 | components: {}, | ||
| 53 | data () { | ||
| 54 | return { | ||
| 55 | key: 0, | ||
| 56 | radioVal: '', | ||
| 57 | queryForm: { | ||
| 58 | htbh: '', | ||
| 59 | sfzjhm: '', | ||
| 60 | ywh: '' | ||
| 61 | }, | ||
| 62 | tableData: { | ||
| 63 | data: [], | ||
| 64 | columns: [ | ||
| 65 | { | ||
| 66 | label: '选择', | ||
| 67 | width: '50px', | ||
| 68 | render: (h, scope) => { | ||
| 69 | return ( | ||
| 70 | <div class="orgColumn"> | ||
| 71 | <el-radio onChange={() => { this.handleChange(scope.row) }} v-model={this.radioVal} label={scope.row.bsmSqr}> | ||
| 72 |   | ||
| 73 | </el-radio> | ||
| 74 | </div> | ||
| 75 | ) | ||
| 76 | } | ||
| 77 | }, | ||
| 78 | { | ||
| 79 | prop: 'sqrmc', | ||
| 80 | label: '权利人名称', | ||
| 81 | }, | ||
| 82 | { | ||
| 83 | prop: 'zjzlmc', | ||
| 84 | label: '证件种类' | ||
| 85 | }, | ||
| 86 | { | ||
| 87 | prop: 'zjh', | ||
| 88 | label: '证件号码' | ||
| 89 | }, | ||
| 90 | { | ||
| 91 | prop: 'dh', | ||
| 92 | label: '联系电话' | ||
| 93 | } | ||
| 94 | ] | ||
| 95 | } | ||
| 96 | } | ||
| 97 | }, | ||
| 98 | mounted () { | ||
| 99 | this.loadData() | ||
| 100 | }, | ||
| 101 | methods: { | ||
| 102 | handleRowClick (val) { | ||
| 103 | this.radioVal = row.bsmSqr; | ||
| 104 | this.queryForm.nsrmc= row.sqrmc; | ||
| 105 | this.queryForm.sfzjhm= row.zjh; | ||
| 106 | }, | ||
| 107 | handleSearch () { | ||
| 108 | queryTransactionDetails(this.queryForm).then(res => { | ||
| 109 | if (res.code === 200 && res.result){ | ||
| 110 | |||
| 111 | } | ||
| 112 | }) | ||
| 113 | }, | ||
| 114 | handleChange (row) { | ||
| 115 | this.radioVal = row.bsmSqr; | ||
| 116 | this.queryForm.nsrmc= row.sqrmc; | ||
| 117 | this.queryForm.sfzjhm= row.zjh; | ||
| 118 | }, | ||
| 119 | loadData () { | ||
| 120 | function findValueByKey (array, keyToFind) { | ||
| 121 | var foundItem = array.find(function (item) { | ||
| 122 | return item.dcode === keyToFind; | ||
| 123 | }); | ||
| 124 | |||
| 125 | return foundItem ? foundItem.dname : undefined; | ||
| 126 | } | ||
| 127 | this.queryForm.htbh=this.formData.htbh; | ||
| 128 | this.queryForm.qxdm=this.formData.qxdm; | ||
| 129 | this.queryForm.bsmQlxx=this.formData.bsmQlxx; | ||
| 130 | loadQlrxx(this.formData.bsmSldy).then(res => { | ||
| 131 | let arr = store.getters.dictData['A30'] | ||
| 132 | this.tableData.data = res.result | ||
| 133 | this.tableData.data.forEach(item => { | ||
| 134 | if (item.zjzl) { | ||
| 135 | item.zjzlmc = findValueByKey(arr, item.zjzl); | ||
| 136 | } | ||
| 137 | }) | ||
| 138 | this.key++ | ||
| 139 | }) | ||
| 140 | } | ||
| 141 | } | ||
| 142 | } | ||
| 143 | </script> | ||
| 144 | <style scoped lang='scss'> | ||
| 145 | @import "~@/styles/public.scss"; | ||
| 146 | </style> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
src/views/workflow/main/swxx/swwsxx.vue
0 → 100644
| 1 | <!-- | ||
| 2 | * @Description: 交易合同 | ||
| 3 | * @Autor: renchao | ||
| 4 | * @LastEditTime: 2024-03-21 16:58:45 | ||
| 5 | --> | ||
| 6 | <template> | ||
| 7 | <div class='jyht'> | ||
| 8 | <el-form :model="queryForm"> | ||
| 9 | <el-row :gutter="10"> | ||
| 10 | <el-col :span="8"> | ||
| 11 | <el-form-item label="合同号"> | ||
| 12 | <el-input v-model="queryForm.htbh"></el-input> | ||
| 13 | </el-form-item> | ||
| 14 | </el-col> | ||
| 15 | <el-col :span="8"> | ||
| 16 | <el-form-item label="业务号"> | ||
| 17 | <el-input v-model="queryForm.ywh"></el-input> | ||
| 18 | </el-form-item> | ||
| 19 | </el-col> | ||
| 20 | </el-row> | ||
| 21 | </el-form> | ||
| 22 | <div class="text-center"> | ||
| 23 | <el-button @click="$popupCacel">取消</el-button> | ||
| 24 | <!-- <el-button type="primary" @click="handleSubmit" plain>保存</el-button> --> | ||
| 25 | <el-button type="primary" @click="handleSearch">查询</el-button> | ||
| 26 | </div> | ||
| 27 | </div> | ||
| 28 | </template> | ||
| 29 | <script> | ||
| 30 | import store from '@/store/index.js' | ||
| 31 | import { loadQlrxx,querySwwsxx } from "@/api/workflow/swhtxx.js"; | ||
| 32 | export default { | ||
| 33 | props: { | ||
| 34 | formData: { | ||
| 35 | type: Object, | ||
| 36 | default: {} | ||
| 37 | } | ||
| 38 | }, | ||
| 39 | components: {}, | ||
| 40 | data () { | ||
| 41 | return { | ||
| 42 | key: 0, | ||
| 43 | radioVal: '', | ||
| 44 | queryForm: { | ||
| 45 | htbh: '', | ||
| 46 | sfzjhm: '', | ||
| 47 | ywh: '' | ||
| 48 | } | ||
| 49 | } | ||
| 50 | }, | ||
| 51 | mounted () { | ||
| 52 | this.loadData() | ||
| 53 | }, | ||
| 54 | methods: { | ||
| 55 | |||
| 56 | handleSearch () { | ||
| 57 | querySwwsxx(this.queryForm).then(res => { | ||
| 58 | if (res.code === 200 && res.result){ | ||
| 59 | |||
| 60 | } | ||
| 61 | }) | ||
| 62 | }, | ||
| 63 | |||
| 64 | loadData () { | ||
| 65 | this.queryForm.htbh=this.formData.htbh; | ||
| 66 | this.queryForm.qxdm=this.formData.qxdm; | ||
| 67 | this.queryForm.ywh=this.formData.ywh; | ||
| 68 | this.queryForm.bsmQlxx=this.formData.bsmQlxx; | ||
| 69 | } | ||
| 70 | } | ||
| 71 | } | ||
| 72 | </script> | ||
| 73 | <style scoped lang='scss'> | ||
| 74 | @import "~@/styles/public.scss"; | ||
| 75 | </style> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or sign in to post a comment