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
122f85c6
authored
2023-09-07 17:13:55 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:编辑企业
1 parent
80fa1fe7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
80 additions
and
55 deletions
src/api/company.js
src/components/Popup1/index.vue
src/views/xxba/components/clxx/dialog/clxxDetailDialog.vue
src/views/xxba/components/clxx/dialog/imagePreview.vue
src/views/xxba/components/clxx/index.vue
src/api/company.js
View file @
122f85c
/*
* @Description: 企业银行接口
* @Autor: renchao
* @LastEditTime: 2023-09-07 1
4:42:19
* @LastEditTime: 2023-09-07 1
6:53:25
*/
import
request
from
'@/utils/request'
let
SERVER
=
window
.
config
?
window
.
config
:
JSON
.
parse
(
localStorage
.
getItem
(
'ApiUrl'
))
...
...
@@ -20,4 +20,44 @@ export function getCompanyMaterialList (bsmCompany) {
bsmCompany
:
bsmCompany
}
})
}
\ No newline at end of file
}
/**
* @description: 添加材料目录
* @param {*} bsmCompany
* @author: renchao
*/
export
function
addCompanyMaterial
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/sys/company/addCompanyMaterial'
,
method
:
'post'
,
data
})
}
/**
* @description: 获取文件材料列表
* @param {*} bsmCompany
* @author: renchao
*/
export
function
getFileListByBsmMaterial
(
bsmMaterial
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/sys/company/getFileListByBsmMaterial'
,
method
:
'get'
,
params
:
{
bsmMaterial
:
bsmMaterial
}
})
}
/**
* @description: 批量上传材料目录
* @param {*} bsmCompany
* @author: renchao
*/
export
function
uploadBatch
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/sys/company/uploadBatch'
,
method
:
'post'
,
data
})
}
...
...
src/components/Popup1/index.vue
View file @
122f85c
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-0
8-03 14:50:08
* @LastEditTime: 2023-0
9-07 16:28:14
-->
<
template
>
<transition
name=
"msgbox-fade"
>
...
...
@@ -167,6 +167,7 @@
min-height
:
30%
;
max-height
:
90vh
;
overflow-y
:
scroll
;
box-sizing
:
border-box
;
}
.ls-mask-footer
{
...
...
src/views/xxba/components/clxx/dialog/clxxDetailDialog.vue
View file @
122f85c
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-0
8-15 09:43:46
* @LastEditTime: 2023-0
9-07 16:13:07
-->
<
template
>
<div
class=
"clmlmx-box"
>
...
...
@@ -209,13 +209,6 @@
this
.
unitData
=
this
.
$parent
.
unitData
;
var
formdata
=
new
FormData
();
formdata
.
append
(
"bsmSlsq"
,
Vue
.
prototype
.
$currentRoute
.
query
.
bsmSlsq
);
if
(
Vue
.
prototype
.
$currentRoute
.
query
.
sqywbm
==
"DJBBL"
)
{
formdata
.
append
(
"bsmSldy"
,
this
.
formData
.
bsmRepair
);
formdata
.
append
(
"clfl"
,
3
);
}
else
{
formdata
.
append
(
"bsmSldy"
,
this
.
formData
.
unitData
[
0
]?.
bsmSldy
);
formdata
.
append
(
"clfl"
,
2
);
}
InitClml
(
formdata
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
resolve
(
res
.
code
)
...
...
src/views/xxba/components/clxx/dialog/imagePreview.vue
0 → 100644
View file @
122f85c
This diff is collapsed.
Click to expand it.
src/views/xxba/components/clxx/index.vue
View file @
122f85c
<!--
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-09-07 1
5:06:4
2
* @LastEditTime: 2023-09-07 1
6:54:3
2
-->
<
template
>
<div
class=
"clxx"
>
...
...
@@ -29,12 +29,11 @@
</div>
<div
v-for=
"(item, index) in tableData"
:key=
"item.bsm
Sj
"
:class=
"['child', treeCheckId == item.bsm
Sj
? 'checked' : '']"
:key=
"item.bsm
Material
"
:class=
"['child', treeCheckId == item.bsm
Material
? 'checked' : '']"
@
click=
"treeClick(item, index)"
>
<span
v-if=
"item.isrequired == 1"
class=
"required"
>
必选
</span>
{{
item
.
sjmc
}}
<span
class=
"cl_number"
:key=
"key"
>
(
{{
item
.
children
?
item
.
children
.
length
:
0
}}
)
</span>
{{
item
.
clmc
}}
<span
class=
"cl_number"
:key=
"key"
>
(
{{
item
.
sxh
}}
)
</span>
</div>
</div>
</div>
...
...
@@ -60,8 +59,8 @@
import
store
from
'@/store/index.js'
import
clxxAddDialog
from
"./dialog/clxxAddDialog.vue"
;
import
clxxDetailDialog
from
"./dialog/clxxDetailDialog.vue"
;
import
imagePreview
from
"
@/views/components
/imagePreview.vue"
;
import
{
getCompanyMaterialList
}
from
"@/api/company.js"
;
import
imagePreview
from
"
./dialog
/imagePreview.vue"
;
import
{
getCompanyMaterialList
,
addCompanyMaterial
,
getFileListByBsmMaterial
}
from
"@/api/company.js"
;
export
default
{
components
:
{
clxxAddDialog
,
imagePreview
,
clxxDetailDialog
},
props
:
{
...
...
@@ -82,9 +81,7 @@
key
:
0
,
tableData
:
[],
previewImg
:
{
// 收件标识码
bsmSj
:
""
,
bsmSlsq
:
this
.
$parent
.
bsmSlsq
,
bsmMaterial
:
""
,
index
:
0
,
selectedIndex
:
0
,
imgList
:
[],
...
...
@@ -102,10 +99,10 @@
nextPriview
()
{
if
(
this
.
treeCheckIndex
<
this
.
tableData
.
length
)
{
this
.
treeCheckIndex
++
;
this
.
treeCheckId
=
this
.
tableData
[
this
.
treeCheckIndex
].
bsm
Sj
;
this
.
treeCheckId
=
this
.
tableData
[
this
.
treeCheckIndex
].
bsm
Material
;
this
.
previewImg
.
index
=
0
;
this
.
previewImg
.
imgList
=
this
.
tableData
[
this
.
treeCheckIndex
].
children
;
this
.
previewImg
.
bsm
Sj
=
this
.
tableData
[
this
.
treeCheckIndex
].
bsmSj
;
this
.
previewImg
.
bsm
Material
=
this
.
tableData
[
this
.
treeCheckIndex
].
bsmMaterial
;
}
},
/**
...
...
@@ -115,10 +112,10 @@
prevPriview
()
{
if
(
this
.
treeCheckIndex
>=
1
)
{
this
.
treeCheckIndex
--
;
this
.
treeCheckId
=
this
.
tableData
[
this
.
treeCheckIndex
].
bsm
Sj
;
this
.
treeCheckId
=
this
.
tableData
[
this
.
treeCheckIndex
].
bsm
Material
;
this
.
previewImg
.
index
=
this
.
previewImg
.
imgList
.
length
;
this
.
previewImg
.
imgList
=
this
.
tableData
[
this
.
treeCheckIndex
].
children
;
this
.
previewImg
.
bsm
Sj
=
this
.
tableData
[
this
.
treeCheckIndex
].
bsmSj
;
this
.
previewImg
.
bsm
Material
=
this
.
tableData
[
this
.
treeCheckIndex
].
bsmMaterial
;
}
},
/**
...
...
@@ -156,12 +153,12 @@
* @author: renchao
*/
setChecked
(
item
)
{
this
.
treeCheckId
=
item
.
bsm
Sj
;
this
.
treeCheckId
=
item
.
bsm
Material
;
this
.
title
=
item
.
sjmc
;
this
.
titleYs
=
1
;
this
.
titleNum
=
item
.
children
.
length
;
this
.
previewImg
.
imgList
=
item
.
children
;
this
.
previewImg
.
bsm
Sj
=
item
.
bsmSj
;
//
this.previewImg.imgList = item.children;
this
.
previewImg
.
bsm
Material
=
item
.
bsmMaterial
;
},
/**
* @description: updateList
...
...
@@ -173,7 +170,7 @@
if
(
val
.
children
.
length
!=
0
)
{
//删除最后一张图片时 val=null
this
.
tableData
.
forEach
((
item
)
=>
{
if
(
item
.
bsm
Sj
===
val
.
bsmSj
)
{
if
(
item
.
bsm
Material
===
val
.
bsmMaterial
)
{
item
.
children
=
val
.
children
;
}
});
...
...
@@ -185,11 +182,11 @@
}
else
{
this
.
previewImg
.
imgList
=
[];
this
.
tableData
.
forEach
((
item
,
index
)
=>
{
if
(
this
.
treeCheckId
==
item
.
bsm
Sj
)
{
if
(
this
.
treeCheckId
==
item
.
bsm
Material
)
{
item
.
children
=
[];
that
.
treeCheckIndex
=
index
;
}
})
;
})
}
},
/**
...
...
@@ -206,28 +203,20 @@
*/
addSave
(
data
)
{
let
obj
=
{
bsmSlsq
:
this
.
$parent
.
bsmSlsq
,
isrequired
:
"1"
,
sjmc
:
data
.
clmc
,
sjsl
:
0
,
smzt
:
""
,
ys
:
0
,
sjlx
:
data
.
cllx
,
sfxjcl
:
"1"
,
// 是否必选
bsmCompany
:
this
.
formData
.
bsmCompany
,
clmc
:
data
.
clmc
,
cllx
:
data
.
cllx
};
if
(
this
.
$route
.
query
.
sqywbm
==
"DJBBL"
)
{
obj
.
bsmSldy
=
this
.
$parent
.
bsmRepair
}
saveClml
(
obj
).
then
(
async
(
res
)
=>
{
addCompanyMaterial
(
obj
).
then
(
async
(
res
)
=>
{
if
(
res
.
code
==
200
)
{
let
res
=
await
this
.
clmlInitList
(
2
);
if
(
res
==
200
)
this
.
$message
({
message
:
"新增成功"
,
type
:
"success"
,
})
;
type
:
"success"
})
}
})
;
})
},
/**
* @description: 材料目录点击选中
...
...
@@ -237,10 +226,12 @@
*/
treeClick
(
item
,
index
)
{
this
.
previewImg
.
index
=
0
;
this
.
treeCheckId
=
item
?.
bsm
Sj
;
this
.
treeCheckId
=
item
?.
bsm
Material
;
this
.
treeCheckIndex
=
index
;
this
.
previewImg
.
imgList
=
item
.
children
?
item
.
children
:
[];
this
.
previewImg
.
bsmSj
=
item
?.
bsmSj
;
getFileListByBsmMaterial
(
item
.
bsmMaterial
).
then
(
res
=>
{
this
.
previewImg
.
imgList
=
res
.
result
?
res
.
result
:
[]
})
this
.
previewImg
.
bsmMaterial
=
item
?.
bsmMaterial
;
},
/**
* @description: 小图片点击
...
...
@@ -269,14 +260,13 @@
setTableData
(
tableData
)
{
this
.
$nextTick
((
res
)
=>
{
this
.
tableData
=
tableData
;
})
;
}
,
}
,
}
;
})
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
@import
"~@/styles/mixin.scss"
;
.active
{
background
:
$
light-blue
!important
;
color
:
#fff
;
...
...
@@ -294,6 +284,7 @@
.clxx
{
width
:
100%
;
height
:
94%
;
display
:
flex
;
padding-left
:
5px
;
.left
{
...
...
Please
register
or
sign in
to post a comment