合同信息
Showing
3 changed files
with
121 additions
and
13 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 | ||
| ... | @@ -8,11 +13,25 @@ let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('Ap | ... | @@ -8,11 +13,25 @@ let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('Ap | 
| 8 | * @author: renchao | 13 | * @author: renchao | 
| 9 | */ | 14 | */ | 
| 10 | export function getDetail (bsmSldy) { | 15 | export function getDetail (bsmSldy) { | 
| 11 | return request({ | ||
| 12 | url: SERVER.SERVERAPI + '/rest/ywbl/swhtxx/getDetail', | ||
| 13 | method: 'get', | ||
| 14 | params: { | ||
| 15 | bsmSldy: bsmSldy | ||
| 16 | } | ||
| 17 | }) | ||
| 18 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | 
| 16 | return request({ | ||
| 17 | url: SERVER.SERVERAPI + '/rest/ywbl/swhtxx/getDetail', | ||
| 18 | method: 'get', | ||
| 19 | params: { | ||
| 20 | bsmSldy: bsmSldy | ||
| 21 | } | ||
| 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 | ||
| 35 | } | ||
| 36 | }) | ||
| 37 | } | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... | 
| ... | @@ -195,8 +195,8 @@ | ... | @@ -195,8 +195,8 @@ | 
| 195 | </div> | 195 | </div> | 
| 196 | </template> | 196 | </template> | 
| 197 | <script> | 197 | <script> | 
| 198 | import { getDetail } from "@/api/workflow/swhtxx.js"; | ||
| 199 | import { mapGetters } from "vuex"; | 198 | import { mapGetters } from "vuex"; | 
| 199 | import { getDetail } from "@/api/workflow/swhtxx.js"; | ||
| 200 | export default { | 200 | export default { | 
| 201 | computed: { | 201 | computed: { | 
| 202 | ...mapGetters(["dictData", "flag"]), | 202 | ...mapGetters(["dictData", "flag"]), | 
| ... | @@ -281,7 +281,6 @@ | ... | @@ -281,7 +281,6 @@ | 
| 281 | }; | 281 | }; | 
| 282 | }, | 282 | }, | 
| 283 | methods: { | 283 | methods: { | 
| 284 | onSubmit () { }, | ||
| 285 | loadData () { | 284 | loadData () { | 
| 286 | getDetail(this.propsParam.bsmSldy).then((res) => { | 285 | getDetail(this.propsParam.bsmSldy).then((res) => { | 
| 287 | if (res.code === 200 && res.result) { | 286 | if (res.code === 200 && res.result) { | 
| ... | @@ -305,7 +304,7 @@ | ... | @@ -305,7 +304,7 @@ | 
| 305 | }) | 304 | }) | 
| 306 | }, | 305 | }, | 
| 307 | handleContract () { | 306 | handleContract () { | 
| 308 | this.$popupDialog('合同信息', 'workflow/main/swxx/jyht', {}, '50%', true) | 307 | this.$popupDialog('合同信息', 'workflow/main/swxx/jyht', { bsmSldy: this.propsParam.bsmSldy }, '50%', true) | 
| 309 | } | 308 | } | 
| 310 | } | 309 | } | 
| 311 | } | 310 | } | ... | ... | 
| 1 | <!-- | 1 | <!-- | 
| 2 | * @Description: 交易合同 | 2 | * @Description: 交易合同 | 
| 3 | * @Autor: renchao | 3 | * @Autor: renchao | 
| 4 | * @LastEditTime: 2024-03-21 14:15:27 | 4 | * @LastEditTime: 2024-03-21 16:25:53 | 
| 5 | --> | 5 | --> | 
| 6 | <template> | 6 | <template> | 
| 7 | <div class='jyht'> | 7 | <div class='jyht'> | 
| 8 | 交易合同 | 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.hth"></el-input> | ||
| 13 | </el-form-item> | ||
| 14 | </el-col> | ||
| 15 | <el-col :span="16" class="btnColRight"> | ||
| 16 | <el-button type="primary" @click="handleSearch">查询</el-button> | ||
| 17 | </el-col> | ||
| 18 | </el-row> | ||
| 19 | </el-form> | ||
| 20 | |||
| 21 | <lb-table ref="table" @row-click="handleRowClick" :pagination="false" :key="key" | ||
| 22 | :column="tableData.columns" | ||
| 23 | :data="tableData.data"> | ||
| 24 | </lb-table> | ||
| 25 | <div class="text-center"> | ||
| 26 | <el-button @click="$popupCacel">取消</el-button> | ||
| 27 | <el-button type="primary" @click="handleSubmit" plain>保存</el-button> | ||
| 28 | </div> | ||
| 9 | </div> | 29 | </div> | 
| 10 | </template> | 30 | </template> | 
| 11 | <script> | 31 | <script> | 
| 32 | import store from '@/store/index.js' | ||
| 33 | import { loadQlrxx } from "@/api/workflow/swhtxx.js"; | ||
| 12 | export default { | 34 | export default { | 
| 13 | props: { | 35 | props: { | 
| 14 | formData: { | 36 | formData: { | 
| ... | @@ -19,6 +41,74 @@ | ... | @@ -19,6 +41,74 @@ | 
| 19 | components: {}, | 41 | components: {}, | 
| 20 | data () { | 42 | data () { | 
| 21 | return { | 43 | return { | 
| 44 | key: 0, | ||
| 45 | radioVal: '', | ||
| 46 | tableData: { | ||
| 47 | data: [], | ||
| 48 | columns: [ | ||
| 49 | { | ||
| 50 | label: '选择', | ||
| 51 | width: '50px', | ||
| 52 | render: (h, scope) => { | ||
| 53 | return ( | ||
| 54 | <div class="orgColumn"> | ||
| 55 | <el-radio onChange={() => { this.handleChange(scope.row) }} v-model={this.radioVal} label={scope.row.bsmSqr}> | ||
| 56 |   | ||
| 57 | </el-radio> | ||
| 58 | </div> | ||
| 59 | ) | ||
| 60 | } | ||
| 61 | }, | ||
| 62 | { | ||
| 63 | prop: 'sqrmc', | ||
| 64 | label: '权利人名称', | ||
| 65 | }, | ||
| 66 | { | ||
| 67 | prop: 'zjzlmc', | ||
| 68 | label: '证件种类' | ||
| 69 | }, | ||
| 70 | { | ||
| 71 | prop: 'dh', | ||
| 72 | label: '联系电话' | ||
| 73 | } | ||
| 74 | ] | ||
| 75 | }, | ||
| 76 | queryForm: { | ||
| 77 | hth: '' | ||
| 78 | } | ||
| 79 | } | ||
| 80 | }, | ||
| 81 | mounted () { | ||
| 82 | this.handleSearch() | ||
| 83 | }, | ||
| 84 | methods: { | ||
| 85 | handleRowClick (val) { | ||
| 86 | this.radioVal = row.bsmSqr | ||
| 87 | }, | ||
| 88 | handleSubmit () { }, | ||
| 89 | handleChange (row) { | ||
| 90 | this.radioVal = row.bsmSqr | ||
| 91 | }, | ||
| 92 | handleSearch () { | ||
| 93 | function findValueByKey (array, keyToFind) { | ||
| 94 | var foundItem = array.find(function (item) { | ||
| 95 | return item.dcode === keyToFind; | ||
| 96 | }); | ||
| 97 | |||
| 98 | return foundItem ? foundItem.dname : undefined; | ||
| 99 | } | ||
| 100 | |||
| 101 | loadQlrxx(this.formData.bsmSldy).then(res => { | ||
| 102 | let arr = store.getters.dictData['A30'] | ||
| 103 | this.tableData.data = res.result | ||
| 104 | this.tableData.data = this.tableData.data.concat(this.tableData.data) | ||
| 105 | this.tableData.data.forEach(item => { | ||
| 106 | if (item.zjzl) { | ||
| 107 | item.zjzlmc = findValueByKey(arr, item.zjzl); | ||
| 108 | } | ||
| 109 | }) | ||
| 110 | this.key++ | ||
| 111 | }) | ||
| 22 | } | 112 | } | 
| 23 | } | 113 | } | 
| 24 | } | 114 | } | ... | ... | 
- 
Please register or sign in to post a comment