Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王衍超
rbc-demo
Commits
bc26a93f
Commit
bc26a93f
authored
Apr 08, 2022
by
乔延琦
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop-zhouyi' into 'develop'
fix(invoice): 查看影像卡顿等问题 See merge request GFP/RBC/rbc-frontend!145
parents
45dfd243
27f23075
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
13 deletions
+23
-13
deleteInvoiceAction.js
.../gms-plugin-billexpand/src/actions/deleteInvoiceAction.js
+10
-2
invoice-modal.vue
...lugin-billexpand/src/components-control/invoice-modal.vue
+3
-1
emcon.js
develop/@gms/gms-plugin-billexpand/src/emcon.js
+1
-0
image-view-modal.vue
...oice/src/components/image-view-modal/image-view-modal.vue
+6
-7
image-viewer.vue
.../invoice/src/components/image-view-modal/image-viewer.vue
+3
-3
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/deleteInvoiceAction.js
View file @
bc26a93f
...
@@ -10,10 +10,17 @@ export default {
...
@@ -10,10 +10,17 @@ export default {
const
tableObj
=
targetSubTable
[
i
]
const
tableObj
=
targetSubTable
[
i
]
const
invoiceId
=
tableObj
.
getValue
(
'imageId'
)
const
invoiceId
=
tableObj
.
getValue
(
'imageId'
)
if
(
invoiceId
==
imageId
)
{
if
(
invoiceId
==
imageId
)
{
curbill
.
deleteSubData
(
param
.
param
.
targetTableName
,
i
,
true
)
curbill
.
deleteSubData
(
param
.
param
.
targetTableName
,
i
,
false
,
tableObj
.
getData
()
)
}
}
}
}
}
}
curbill
.
deleteSubData
(
param
.
param
.
tableName
,
curbill
.
getSubFocus
(),
true
)
for
(
let
i
=
imageTable
.
length
-
1
;
i
>=
0
;
--
i
)
{
const
tableObj
=
imageTable
[
i
]
const
id
=
tableObj
.
getValue
(
'imageId'
)
if
(
id
==
imageId
)
{
curbill
.
deleteSubData
(
param
.
param
.
tableName
,
i
,
true
)
}
}
}
}
}
}
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/components-control/invoice-modal.vue
View file @
bc26a93f
...
@@ -55,7 +55,9 @@ export default {
...
@@ -55,7 +55,9 @@ export default {
}
}
this
.
bill
.
refreshSubDataRow
(
subBillName
)
this
.
bill
.
refreshSubDataRow
(
subBillName
)
})
})
this
.
componentName
&&
GMS
.
$hideContainer
.
remove
(
this
.
componentName
)
setTimeout
(()
=>
{
this
.
componentName
&&
GMS
.
$hideContainer
.
remove
(
this
.
componentName
)
},
500
);
})
})
}
}
...
...
develop/@gms/gms-plugin-billexpand/src/emcon.js
View file @
bc26a93f
...
@@ -1817,6 +1817,7 @@ export default {
...
@@ -1817,6 +1817,7 @@ export default {
"description"
:
""
,
"description"
:
""
,
"title"
:
"财务_影像电子凭证[CW_imageView]"
,
"title"
:
"财务_影像电子凭证[CW_imageView]"
,
"value"
:
"CW_imageView"
,
"value"
:
"CW_imageView"
,
"alwaysUse"
:
true
},
},
{
{
"discard"
:
false
,
"discard"
:
false
,
...
...
develop/@rbc/invoice/src/components/image-view-modal/image-view-modal.vue
View file @
bc26a93f
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
:currentIndex=
"currentImgIndex"
:currentIndex=
"currentImgIndex"
/>
/>
</div>
</div>
<div
class=
"right"
>
<div
class=
"right"
v-if=
"imgList && imgList.length"
>
<div
class=
"tool-bar"
>
<div
class=
"tool-bar"
>
<div
class=
"info"
>
<div
class=
"info"
>
第
<span
class=
"number"
>
{{
currentImgIndex
+
1
}}
</span>
张,共
<span
class=
"number"
>
{{
imgList
.
length
}}
</span>
张
第
<span
class=
"number"
>
{{
currentImgIndex
+
1
}}
</span>
张,共
<span
class=
"number"
>
{{
imgList
.
length
}}
</span>
张
...
@@ -50,7 +50,6 @@ export default {
...
@@ -50,7 +50,6 @@ export default {
yearFlag
:
null
,
yearFlag
:
null
,
yearFlags
:
[],
yearFlags
:
[],
currentImgIndex
:
0
,
currentImgIndex
:
0
,
imgUrlSet
:
new
Set
(),
imageTableName
:
null
,
imageTableName
:
null
,
componentName
:
null
,
componentName
:
null
,
};
};
...
@@ -58,20 +57,20 @@ export default {
...
@@ -58,20 +57,20 @@ export default {
watch
:
{
watch
:
{
modalVisible
(
visible
)
{
modalVisible
(
visible
)
{
if
(
!
visible
)
{
if
(
!
visible
)
{
for
(
let
o
of
this
.
img
UrlSe
t
)
{
for
(
let
o
of
this
.
img
Lis
t
)
{
window
.
URL
.
revokeObjectURL
(
o
)
window
.
URL
.
revokeObjectURL
(
o
.
imgUrl
)
}
}
this
.
imgUrlSet
=
new
Set
()
this
.
bill
=
null
this
.
bill
=
null
this
.
imageId
=
null
this
.
imageId
=
null
this
.
yearFlags
=
[]
this
.
yearFlags
=
[]
this
.
componentName
&&
window
.
GMS
.
$hideContainer
.
remove
(
this
.
componentName
)
setTimeout
(()
=>
{
this
.
componentName
&&
window
.
GMS
.
$hideContainer
.
remove
(
this
.
componentName
)
},
500
);
}
}
},
},
imageId
(
id
)
{
imageId
(
id
)
{
if
(
!
id
)
return
if
(
!
id
)
return
getImgUrl
(
id
,
this
.
yearFlag
).
then
(({
url
,
fileName
})
=>
{
getImgUrl
(
id
,
this
.
yearFlag
).
then
(({
url
,
fileName
})
=>
{
this
.
imgUrlSet
.
add
(
url
)
this
.
imgList
=
[{
this
.
imgList
=
[{
imgUrl
:
url
,
imgUrl
:
url
,
id
,
id
,
...
...
develop/@rbc/invoice/src/components/image-view-modal/image-viewer.vue
View file @
bc26a93f
...
@@ -53,7 +53,7 @@
...
@@ -53,7 +53,7 @@
</svg>
</svg>
</div>
</div>
<div
class=
"viewer-container"
>
<div
class=
"viewer-container"
>
<img
style=
"display: none"
id=
"invoice-viewerjs-imgsource"
:src=
"img.imgUrl"
:alt=
"img.fileName"
>
<img
style=
"display: none"
ref=
"imgEle"
id=
"invoice-viewerjs-imgsource"
:src=
"img.imgUrl"
:alt=
"img.fileName"
>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -84,7 +84,7 @@ export default {
...
@@ -84,7 +84,7 @@ export default {
console
.
log
(
'viewer already destroyed?'
)
console
.
log
(
'viewer already destroyed?'
)
}
}
this
.
viewer
=
null
this
.
viewer
=
null
const
ele
=
document
.
getElementById
(
'invoice-viewerjs-imgsource'
)
const
ele
=
this
.
$refs
.
imgEle
const
parentEle
=
ele
.
parentElement
const
parentEle
=
ele
.
parentElement
const
childList
=
Array
.
from
(
parentEle
.
children
)
const
childList
=
Array
.
from
(
parentEle
.
children
)
childList
.
forEach
((
node
)
=>
{
childList
.
forEach
((
node
)
=>
{
...
@@ -103,7 +103,7 @@ export default {
...
@@ -103,7 +103,7 @@ export default {
},
},
methods
:
{
methods
:
{
createViewer
()
{
createViewer
()
{
this
.
viewer
=
new
Viewer
(
document
.
getElementById
(
'invoice-viewerjs-imgsource'
)
,
{
this
.
viewer
=
new
Viewer
(
this
.
$refs
.
imgEle
,
{
inline
:
true
,
inline
:
true
,
toolbar
:
0
,
toolbar
:
0
,
title
:
false
,
title
:
false
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment