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
18f2def3
Commit
18f2def3
authored
Mar 18, 2022
by
qiaoyanqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
组件注销
parent
0fdcb3aa
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
120 additions
and
46 deletions
+120
-46
customerQueryAction.js
.../gms-plugin-billexpand/src/actions/customerQueryAction.js
+0
-1
draftSaveAction.js
...@gms/gms-plugin-billexpand/src/actions/draftSaveAction.js
+7
-2
draftSearchAction.js
...ms/gms-plugin-billexpand/src/actions/draftSearchAction.js
+7
-2
printMultiAction.js
...gms/gms-plugin-billexpand/src/actions/printMultiAction.js
+10
-2
selectQuery.js
...lop/@gms/gms-plugin-billexpand/src/actions/selectQuery.js
+0
-1
typesBill.vue
...ms-plugin-billexpand/src/components-control/typesBill.vue
+15
-3
copy-bill-modal.vue
...gms/gms-plugin-billexpand/src/control/copy-bill-modal.vue
+2
-4
draftName.vue
develop/@gms/gms-plugin-billexpand/src/control/draftName.vue
+21
-11
draftTable.vue
...lop/@gms/gms-plugin-billexpand/src/control/draftTable.vue
+14
-2
printBill.vue
develop/@gms/gms-plugin-billexpand/src/control/printBill.vue
+13
-6
examineAction.js
.../gms-plugin-billexpand/src/query-actions/examineAction.js
+10
-1
goToDetail.js
...gms/gms-plugin-billexpand/src/query-actions/goToDetail.js
+11
-2
jump2BillTemplate.js
...expand/src/query-actions/imagemanage/jump2BillTemplate.js
+10
-1
viewImage.js
...gin-billexpand/src/query-actions/imagemanage/viewImage.js
+0
-8
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/customerQueryAction.js
View file @
18f2def3
...
@@ -4,7 +4,6 @@ export default {
...
@@ -4,7 +4,6 @@ export default {
if
(
param
)
{
if
(
param
)
{
console
.
log
(
'param'
,
param
)
console
.
log
(
'param'
,
param
)
GMS
.
$hideContainer
.
addComponent
(
customSelect
,
{},
async
function
(
c
)
{
GMS
.
$hideContainer
.
addComponent
(
customSelect
,
{},
async
function
(
c
)
{
const
getExtrCondition
=
async
(
filterFieldObj
)
=>
{
const
getExtrCondition
=
async
(
filterFieldObj
)
=>
{
let
extrConditions
=
[]
let
extrConditions
=
[]
for
(
const
key
in
filterFieldObj
)
{
for
(
const
key
in
filterFieldObj
)
{
...
...
develop/@gms/gms-plugin-billexpand/src/actions/draftSaveAction.js
View file @
18f2def3
...
@@ -4,8 +4,6 @@ export default {
...
@@ -4,8 +4,6 @@ export default {
execute
:
function
(
bill
,
param
)
{
execute
:
function
(
bill
,
param
)
{
if
(
param
)
{
if
(
param
)
{
let
component
=
null
;
let
component
=
null
;
let
columns
=
[]
let
children
=
[];
let
name
=
GMS
.
$hideContainer
.
addComponent
(
draftName
,
{},
function
(
c
)
{
let
name
=
GMS
.
$hideContainer
.
addComponent
(
draftName
,
{},
function
(
c
)
{
component
=
c
;
component
=
c
;
c
.
bill
=
bill
;
c
.
bill
=
bill
;
...
@@ -40,6 +38,13 @@ export default {
...
@@ -40,6 +38,13 @@ export default {
}
}
c
.
billDefineName
=
bill
.
curForm
.
content
.
billdefine
;
c
.
billDefineName
=
bill
.
curForm
.
content
.
billdefine
;
c
.
draftModal
=
true
;
c
.
draftModal
=
true
;
c
.
$nextTick
(()
=>
{
component
.
addListener
({
close
:
function
()
{
GMS
.
$hideContainer
.
remove
(
name
);
}
});
})
});
});
}
else
{
}
else
{
GAMS
.
Common
.
messagePrompt
(
'缺少参数'
);
GAMS
.
Common
.
messagePrompt
(
'缺少参数'
);
...
...
develop/@gms/gms-plugin-billexpand/src/actions/draftSearchAction.js
View file @
18f2def3
...
@@ -3,13 +3,18 @@ export default {
...
@@ -3,13 +3,18 @@ export default {
execute
:
function
(
bill
,
param
)
{
execute
:
function
(
bill
,
param
)
{
if
(
param
)
{
if
(
param
)
{
let
component
=
null
;
let
component
=
null
;
let
columns
=
[]
let
children
=
[]
let
name
=
GMS
.
$hideContainer
.
addComponent
(
customSelect
,
{},
function
(
c
)
{
let
name
=
GMS
.
$hideContainer
.
addComponent
(
customSelect
,
{},
function
(
c
)
{
component
=
c
;
component
=
c
;
c
.
bill
=
bill
;
c
.
bill
=
bill
;
c
.
drawerShow
=
true
;
c
.
drawerShow
=
true
;
c
.
getList
();
c
.
getList
();
c
.
$nextTick
(()
=>
{
component
.
addListener
({
close
:
function
()
{
GMS
.
$hideContainer
.
remove
(
name
);
}
});
})
});
});
}
else
{
}
else
{
GAMS
.
Common
.
messagePrompt
(
'缺少参数'
);
GAMS
.
Common
.
messagePrompt
(
'缺少参数'
);
...
...
develop/@gms/gms-plugin-billexpand/src/actions/printMultiAction.js
View file @
18f2def3
...
@@ -2,8 +2,8 @@ import printBill from '../control/printBill.vue'
...
@@ -2,8 +2,8 @@ import printBill from '../control/printBill.vue'
export
default
{
export
default
{
execute
:
function
(
bill
,
param
)
{
execute
:
function
(
bill
,
param
)
{
if
(
param
)
{
if
(
param
)
{
let
component
=
null
;
GMS
.
$hideContainer
.
addComponent
(
printBill
,
{},
function
(
c
)
{
let
name
=
GMS
.
$hideContainer
.
addComponent
(
printBill
,
{},
function
(
c
)
{
if
(
param
.
param
.
detailFieldName
){
if
(
param
.
param
.
detailFieldName
){
let
url
=
`/rbcfunc/print/merge/multi/
${
param
.
define
}
/
${
bill
.
getMasterData
().
getValue
(
'id'
)}
/
${
param
.
param
.
detailFieldName
}
?detailName=BXMXZB`
;
let
url
=
`/rbcfunc/print/merge/multi/
${
param
.
define
}
/
${
bill
.
getMasterData
().
getValue
(
'id'
)}
/
${
param
.
param
.
detailFieldName
}
?detailName=BXMXZB`
;
GMS
.
$http
GMS
.
$http
...
@@ -30,6 +30,14 @@ export default {
...
@@ -30,6 +30,14 @@ export default {
}
}
c
.
modalShow
=
true
;
c
.
modalShow
=
true
;
}
}
component
=
c
;
c
.
$nextTick
(()
=>
{
component
.
addListener
({
close
:
function
()
{
GMS
.
$hideContainer
.
remove
(
name
);
}
});
})
})
})
}
else
{
}
else
{
GAMS
.
Common
.
messagePrompt
(
'缺少参数'
)
GAMS
.
Common
.
messagePrompt
(
'缺少参数'
)
...
...
develop/@gms/gms-plugin-billexpand/src/actions/selectQuery.js
View file @
18f2def3
...
@@ -3,7 +3,6 @@ export default {
...
@@ -3,7 +3,6 @@ export default {
execute
:
function
(
bill
,
param
)
{
execute
:
function
(
bill
,
param
)
{
if
(
param
)
{
if
(
param
)
{
GMS
.
$hideContainer
.
addComponent
(
selectQueryAction
,
{},
async
function
(
c
)
{
GMS
.
$hideContainer
.
addComponent
(
selectQueryAction
,
{},
async
function
(
c
)
{
debugger
const
getExtrCondition
=
async
(
filterFieldObj
)
=>
{
const
getExtrCondition
=
async
(
filterFieldObj
)
=>
{
let
extrConditions
=
[]
let
extrConditions
=
[]
for
(
const
key
in
filterFieldObj
)
{
for
(
const
key
in
filterFieldObj
)
{
...
...
develop/@gms/gms-plugin-billexpand/src/components-control/typesBill.vue
View file @
18f2def3
...
@@ -59,6 +59,18 @@ export default {
...
@@ -59,6 +59,18 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
addListener
(
l
)
{
this
.
listener
=
l
;
},
close
()
{
this
.
modal_visible
=
false
;
if
(
this
.
listener
)
{
this
.
$nextTick
(()
=>
{
this
.
$destroy
();
this
.
listener
.
close
();
})
}
},
changeData
(
billId
,
state
)
{
changeData
(
billId
,
state
)
{
this
.
init
=
false
;
this
.
init
=
false
;
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
...
@@ -96,14 +108,14 @@ export default {
...
@@ -96,14 +108,14 @@ export default {
GMS
.
vbus
.
$off
(
"cacheEcho"
);
GMS
.
vbus
.
$off
(
"cacheEcho"
);
GMS
.
vbus
.
$emit
(
"custom-query-refresh"
);
GMS
.
vbus
.
$emit
(
"custom-query-refresh"
);
GMS
.
vbus
.
$emit
(
"tab-count-refresh"
);
GMS
.
vbus
.
$emit
(
"tab-count-refresh"
);
this
.
modal_visible
=
false
;
this
.
close
()
;
}
else
{
}
else
{
//提示是否保存
//提示是否保存
this
.
$Modal
.
confirm
({
this
.
$Modal
.
confirm
({
title
:
"信息提示"
,
title
:
"信息提示"
,
content
:
"信息发生变化,确认关闭?"
,
content
:
"信息发生变化,确认关闭?"
,
onOk
:
()
=>
{
onOk
:
()
=>
{
this
.
modal_visible
=
false
;
this
.
close
()
;
},
},
onCancel
:
()
=>
{
onCancel
:
()
=>
{
this
.
modal_visible
=
true
;
this
.
modal_visible
=
true
;
...
@@ -160,7 +172,7 @@ export default {
...
@@ -160,7 +172,7 @@ export default {
GMS
.
vbus
.
$on
(
"submitSuccess"
,
(
res
,
param
)
=>
{
GMS
.
vbus
.
$on
(
"submitSuccess"
,
(
res
,
param
)
=>
{
GMS
.
vbus
.
$emit
(
"custom-query-refresh"
);
GMS
.
vbus
.
$emit
(
"custom-query-refresh"
);
GMS
.
vbus
.
$emit
(
"tab-count-refresh"
);
GMS
.
vbus
.
$emit
(
"tab-count-refresh"
);
this
.
modal_visible
=
false
;
this
.
close
()
;
});
});
GMS
.
vbus
.
$on
(
"openEditBillForm"
,
(
res
,
param
)
=>
{
GMS
.
vbus
.
$on
(
"openEditBillForm"
,
(
res
,
param
)
=>
{
//详情界面点击修改按钮
//详情界面点击修改按钮
...
...
develop/@gms/gms-plugin-billexpand/src/control/copy-bill-modal.vue
View file @
18f2def3
...
@@ -118,12 +118,10 @@ export default {
...
@@ -118,12 +118,10 @@ export default {
close
()
{
close
()
{
this
.
modal_visible
=
false
;
this
.
modal_visible
=
false
;
if
(
this
.
listener
)
{
if
(
this
.
listener
)
{
this
.
$nextTick
(
this
.
$nextTick
(()
=>
{
function
()
{
this
.
$destroy
();
this
.
$destroy
();
this
.
listener
.
close
();
this
.
listener
.
close
();
}.
bind
(
this
)
})
);
}
}
},
},
},
},
...
...
develop/@gms/gms-plugin-billexpand/src/control/draftName.vue
View file @
18f2def3
...
@@ -28,15 +28,27 @@ export default {
...
@@ -28,15 +28,27 @@ export default {
draftModal
:
false
,
draftModal
:
false
,
value
:
""
,
value
:
""
,
billDefineName
:
null
,
billDefineName
:
null
,
loading
:
false
loading
:
false
,
};
};
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
addListener
(
l
)
{
this
.
listener
=
l
;
},
close
()
{
this
.
draftModal
=
false
;
if
(
this
.
listener
)
{
this
.
$nextTick
(()
=>
{
this
.
$destroy
();
this
.
listener
.
close
();
})
}
},
asyncOK
()
{
asyncOK
()
{
if
(
!
this
.
value
)
{
if
(
!
this
.
value
)
{
this
.
$Message
.
info
(
'请输入草稿名称'
);
this
.
$Message
.
info
(
"请输入草稿名称"
);
return
return
;
}
}
this
.
loading
=
true
;
this
.
loading
=
true
;
//掉接口保存当前json 和value
//掉接口保存当前json 和value
...
@@ -52,17 +64,17 @@ export default {
...
@@ -52,17 +64,17 @@ export default {
contentType
:
"application/json"
,
contentType
:
"application/json"
,
})
})
.
then
(
.
then
(
function
(
data
,
textStatus
,
response
)
{
function
(
data
)
{
if
(
data
.
code
==
0
)
{
if
(
data
.
code
==
0
)
{
this
.
$Message
.
info
(
"保存成功"
);
this
.
$Message
.
info
(
"保存成功"
);
this
.
draftModal
=
false
;
this
.
close
()
;
}
else
{
}
else
{
data
.
msg
&&
this
.
$Message
.
error
(
data
.
msg
);
data
.
msg
&&
this
.
$Message
.
error
(
data
.
msg
);
}
}
this
.
loading
=
false
;
this
.
loading
=
false
;
}.
bind
(
this
)
}.
bind
(
this
)
)
)
.
catch
((
XMLHttpRequest
,
textStatus
,
errorThrown
)
=>
{
.
catch
(()
=>
{
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
},
},
...
@@ -82,5 +94,3 @@ export default {
...
@@ -82,5 +94,3 @@ export default {
background
:
#fff
;
background
:
#fff
;
}
}
</
style
>
</
style
>
develop/@gms/gms-plugin-billexpand/src/control/draftTable.vue
View file @
18f2def3
...
@@ -109,6 +109,18 @@ export default {
...
@@ -109,6 +109,18 @@ export default {
this
.
maxHeight
=
window
.
innerHeight
-
this
.
$refs
.
table
.
$el
.
offsetTop
-
87
this
.
maxHeight
=
window
.
innerHeight
-
this
.
$refs
.
table
.
$el
.
offsetTop
-
87
},
},
methods
:
{
methods
:
{
addListener
(
l
)
{
this
.
listener
=
l
;
},
close
()
{
this
.
drawerShow
=
false
;
if
(
this
.
listener
)
{
this
.
$nextTick
(()
=>
{
this
.
$destroy
();
this
.
listener
.
close
();
})
}
},
getList
()
{
getList
()
{
GAMS
.
Util
.
invokeServer
({
GAMS
.
Util
.
invokeServer
({
path
:
"rbcfunc/billdraft/list"
,
path
:
"rbcfunc/billdraft/list"
,
...
@@ -183,7 +195,7 @@ export default {
...
@@ -183,7 +195,7 @@ export default {
this
.
bill
.
getDraftDetailData
(
row
.
id
);
this
.
bill
.
getDraftDetailData
(
row
.
id
);
this
.
bill
.
getDraftDetailData
(
row
.
id
);
this
.
bill
.
getDraftDetailData
(
row
.
id
);
this
.
bill
.
refreshBillForm
(
this
.
bill
.
curForm
.
content
.
billdefine
);
this
.
bill
.
refreshBillForm
(
this
.
bill
.
curForm
.
content
.
billdefine
);
this
.
drawerShow
=
false
;
this
.
close
()
;
},
},
edit
(
row
)
{
edit
(
row
)
{
this
.
currentId
=
row
.
id
;
this
.
currentId
=
row
.
id
;
...
@@ -222,7 +234,7 @@ export default {
...
@@ -222,7 +234,7 @@ export default {
});
});
},
},
handleConfirm
()
{
handleConfirm
()
{
this
.
drawerShow
=
false
;
this
.
close
()
;
},
},
convertOnlyReadBillDefine
(
billDefine
){
convertOnlyReadBillDefine
(
billDefine
){
// 解决遗留问题,接待单子的只读界面标识特殊处理
// 解决遗留问题,接待单子的只读界面标识特殊处理
...
...
develop/@gms/gms-plugin-billexpand/src/control/printBill.vue
View file @
18f2def3
...
@@ -44,6 +44,18 @@ export default {
...
@@ -44,6 +44,18 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
addListener
(
l
)
{
this
.
listener
=
l
;
},
close
()
{
this
.
modalShow
=
false
;
if
(
this
.
listener
)
{
this
.
$nextTick
(()
=>
{
this
.
$destroy
();
this
.
listener
.
close
();
})
}
},
printAsync
()
{
printAsync
()
{
if
(
!
this
.
printTemplate
){
if
(
!
this
.
printTemplate
){
GMS
.
$hideContainer
.
$Message
.
info
(
'请选择打印模板'
);
GMS
.
$hideContainer
.
$Message
.
info
(
'请选择打印模板'
);
...
@@ -69,12 +81,7 @@ export default {
...
@@ -69,12 +81,7 @@ export default {
let
href
=
window
.
URL
.
createObjectURL
(
blob
);
//创建下载的链接
let
href
=
window
.
URL
.
createObjectURL
(
blob
);
//创建下载的链接
downloadElement
.
href
=
href
;
downloadElement
.
href
=
href
;
window
.
open
(
href
)
window
.
open
(
href
)
this
.
modalShow
=
false
;
this
.
close
();
// let routeData = GMS.routerManager.getRouter().resolve({
// path: "/showPrint",
// query: { src: href },
// });
// window.open(routeData.href, "_blank");
});
});
});
});
},
},
...
...
develop/@gms/gms-plugin-billexpand/src/query-actions/examineAction.js
View file @
18f2def3
...
@@ -33,12 +33,21 @@ export default {
...
@@ -33,12 +33,21 @@ export default {
}
}
);
);
}
else
{
}
else
{
GMS
.
$hideContainer
.
addComponent
(
typesBill
,
{},
function
(
c
)
{
let
component
=
null
;
let
name
=
GMS
.
$hideContainer
.
addComponent
(
typesBill
,
{},
function
(
c
)
{
component
=
c
;
c
.
templateName
=
templateName
;
c
.
templateName
=
templateName
;
c
.
billId
=
billId
;
c
.
billId
=
billId
;
c
.
state
=
billState
;
c
.
state
=
billState
;
c
.
init
=
true
;
c
.
init
=
true
;
c
.
modal_visible
=
true
;
c
.
modal_visible
=
true
;
c
.
$nextTick
(()
=>
{
component
.
addListener
({
close
:
function
()
{
GMS
.
$hideContainer
.
remove
(
name
);
}
});
})
});
});
}
}
},
},
...
...
develop/@gms/gms-plugin-billexpand/src/query-actions/goToDetail.js
View file @
18f2def3
...
@@ -32,14 +32,23 @@ export default {
...
@@ -32,14 +32,23 @@ export default {
}
}
);
);
}
else
{
}
else
{
GMS
.
$hideContainer
.
addComponent
(
typesBill
,
{},
function
(
c
)
{
let
component
=
null
;
let
name
=
GMS
.
$hideContainer
.
addComponent
(
typesBill
,
{},
function
(
c
)
{
c
.
templateName
=
templateName
;
c
.
templateName
=
templateName
;
c
.
billId
=
context
.
selects
[
0
][
param
.
billId
];
c
.
billId
=
context
.
selects
[
0
][
param
.
billId
];
c
.
init
=
true
;
c
.
init
=
true
;
c
.
modal_visible
=
true
;
c
.
modal_visible
=
true
;
c
.
isReadOnly
=
true
c
.
isReadOnly
=
true
c
.
state
=
'readOnly'
c
.
state
=
'readOnly'
c
.
hideButtonGroup
=
param
.
hideButton
?
true
:
false
c
.
hideButtonGroup
=
param
.
hideButton
?
true
:
false
;
component
=
c
;
c
.
$nextTick
(()
=>
{
component
.
addListener
({
close
:
function
()
{
GMS
.
$hideContainer
.
remove
(
name
);
}
});
})
})
})
}
}
}
}
...
...
develop/@gms/gms-plugin-billexpand/src/query-actions/imagemanage/jump2BillTemplate.js
View file @
18f2def3
...
@@ -29,12 +29,21 @@ export default {
...
@@ -29,12 +29,21 @@ export default {
}
}
);
);
}
else
{
}
else
{
GMS
.
$hideContainer
.
addComponent
(
typesBill
,
{},
function
(
c
)
{
let
component
=
null
;
let
name
=
GMS
.
$hideContainer
.
addComponent
(
typesBill
,
{},
function
(
c
)
{
c
.
templateName
=
billTemplateName
;
c
.
templateName
=
billTemplateName
;
c
.
billId
=
billId
;
c
.
billId
=
billId
;
c
.
init
=
true
;
c
.
init
=
true
;
c
.
modal_visible
=
true
;
c
.
modal_visible
=
true
;
c
.
isReadOnly
=
true
;
c
.
isReadOnly
=
true
;
component
=
c
;
c
.
$nextTick
(()
=>
{
component
.
addListener
({
close
:
function
()
{
GMS
.
$hideContainer
.
remove
(
name
);
}
});
})
});
});
}
}
},
},
...
...
develop/@gms/gms-plugin-billexpand/src/query-actions/imagemanage/viewImage.js
View file @
18f2def3
...
@@ -12,12 +12,5 @@ export default {
...
@@ -12,12 +12,5 @@ export default {
c
.
yearFlag
=
yearFlag
c
.
yearFlag
=
yearFlag
c
.
imageId
=
imageId
c
.
imageId
=
imageId
})
})
// if (param) {
// GMS.$hideContainer.addComponent(ImageViewModal, {}, function (c) {
// c.billId = bill.getMasterData().getValue('id');
// })
// } else {
// GAMS.Common.messagePrompt('缺少参数')
// }
}
}
}
}
\ No newline at end of file
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