Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
54bca6fd
authored
2024-03-21 16:32:52 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
合同信息
1 parent
b4a1b63f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
121 additions
and
13 deletions
src/api/workflow/swhtxx.js
src/views/workflow/main/swxx/index.vue
src/views/workflow/main/swxx/jyht.vue
src/api/workflow/swhtxx.js
View file @
54bca6f
/*
* @Description:
* @Autor: renchao
* @LastEditTime: 2024-03-21 15:43:56
*/
import
request
from
'@/utils/request'
let
SERVER
=
window
.
config
?
window
.
config
:
JSON
.
parse
(
localStorage
.
getItem
(
'ApiUrl'
))
...
...
@@ -8,11 +13,25 @@ let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('Ap
* @author: renchao
*/
export
function
getDetail
(
bsmSldy
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/ywbl/swhtxx/getDetail'
,
method
:
'get'
,
params
:
{
bsmSldy
:
bsmSldy
}
})
}
\ No newline at end of file
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/ywbl/swhtxx/getDetail'
,
method
:
'get'
,
params
:
{
bsmSldy
:
bsmSldy
}
})
}
/**
* @description: 读取权利人信息
* @param {*} bsmSldy
* @author: renchao
*/
export
function
loadQlrxx
(
bsmSldy
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/ywbl/swhtxx/loadQlrxx'
,
method
:
'get'
,
params
:
{
bsmSldy
:
bsmSldy
}
})
}
\ No newline at end of file
...
...
src/views/workflow/main/swxx/index.vue
View file @
54bca6f
...
...
@@ -195,8 +195,8 @@
</div>
</
template
>
<
script
>
import
{
getDetail
}
from
"@/api/workflow/swhtxx.js"
;
import
{
mapGetters
}
from
"vuex"
;
import
{
getDetail
}
from
"@/api/workflow/swhtxx.js"
;
export
default
{
computed
:
{
...
mapGetters
([
"dictData"
,
"flag"
]),
...
...
@@ -281,7 +281,6 @@
};
},
methods
:
{
onSubmit
()
{
},
loadData
()
{
getDetail
(
this
.
propsParam
.
bsmSldy
).
then
((
res
)
=>
{
if
(
res
.
code
===
200
&&
res
.
result
)
{
...
...
@@ -305,7 +304,7 @@
})
},
handleContract
()
{
this
.
$popupDialog
(
'合同信息'
,
'workflow/main/swxx/jyht'
,
{},
'50%'
,
true
)
this
.
$popupDialog
(
'合同信息'
,
'workflow/main/swxx/jyht'
,
{
bsmSldy
:
this
.
propsParam
.
bsmSldy
},
'50%'
,
true
)
}
}
}
...
...
src/views/workflow/main/swxx/jyht.vue
View file @
54bca6f
<!--
* @Description: 交易合同
* @Autor: renchao
* @LastEditTime: 2024-03-21 1
4:15:27
* @LastEditTime: 2024-03-21 1
6:25:53
-->
<
template
>
<div
class=
'jyht'
>
交易合同
<el-form
:model=
"queryForm"
>
<el-row
:gutter=
"10"
>
<el-col
:span=
"8"
>
<el-form-item
label=
"合同号"
>
<el-input
v-model=
"queryForm.hth"
></el-input>
</el-form-item>
</el-col>
<el-col
:span=
"16"
class=
"btnColRight"
>
<el-button
type=
"primary"
@
click=
"handleSearch"
>
查询
</el-button>
</el-col>
</el-row>
</el-form>
<lb-table
ref=
"table"
@
row-click=
"handleRowClick"
:pagination=
"false"
:key=
"key"
:column=
"tableData.columns"
:data=
"tableData.data"
>
</lb-table>
<div
class=
"text-center"
>
<el-button
@
click=
"$popupCacel"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"handleSubmit"
plain
>
保存
</el-button>
</div>
</div>
</
template
>
<
script
>
import
store
from
'@/store/index.js'
import
{
loadQlrxx
}
from
"@/api/workflow/swhtxx.js"
;
export
default
{
props
:
{
formData
:
{
...
...
@@ -19,6 +41,74 @@
components
:
{},
data
()
{
return
{
key
:
0
,
radioVal
:
''
,
tableData
:
{
data
:
[],
columns
:
[
{
label
:
'选择'
,
width
:
'50px'
,
render
:
(
h
,
scope
)
=>
{
return
(
<
div
class
=
"orgColumn"
>
<
el
-
radio
onChange
=
{()
=>
{
this
.
handleChange
(
scope
.
row
)
}}
v
-
model
=
{
this
.
radioVal
}
label
=
{
scope
.
row
.
bsmSqr
}
>
&
ensp
;
<
/el-radio
>
<
/div
>
)
}
},
{
prop
:
'sqrmc'
,
label
:
'权利人名称'
,
},
{
prop
:
'zjzlmc'
,
label
:
'证件种类'
},
{
prop
:
'dh'
,
label
:
'联系电话'
}
]
},
queryForm
:
{
hth
:
''
}
}
},
mounted
()
{
this
.
handleSearch
()
},
methods
:
{
handleRowClick
(
val
)
{
this
.
radioVal
=
row
.
bsmSqr
},
handleSubmit
()
{
},
handleChange
(
row
)
{
this
.
radioVal
=
row
.
bsmSqr
},
handleSearch
()
{
function
findValueByKey
(
array
,
keyToFind
)
{
var
foundItem
=
array
.
find
(
function
(
item
)
{
return
item
.
dcode
===
keyToFind
;
});
return
foundItem
?
foundItem
.
dname
:
undefined
;
}
loadQlrxx
(
this
.
formData
.
bsmSldy
).
then
(
res
=>
{
let
arr
=
store
.
getters
.
dictData
[
'A30'
]
this
.
tableData
.
data
=
res
.
result
this
.
tableData
.
data
=
this
.
tableData
.
data
.
concat
(
this
.
tableData
.
data
)
this
.
tableData
.
data
.
forEach
(
item
=>
{
if
(
item
.
zjzl
)
{
item
.
zjzlmc
=
findValueByKey
(
arr
,
item
.
zjzl
);
}
})
this
.
key
++
})
}
}
}
...
...
Please
register
or
sign in
to post a comment