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
3bc8e6c5
Commit
3bc8e6c5
authored
Mar 18, 2022
by
qiaoyanqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
没用的删除了
parent
9d65e0a0
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
7 additions
and
123 deletions
+7
-123
agreeAction.js
...lop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
+1
-13
closeAction.js
...lop/@gms/gms-plugin-billexpand/src/actions/closeAction.js
+0
-1
customerQueryAction.js
.../gms-plugin-billexpand/src/actions/customerQueryAction.js
+0
-84
deleteBill.js
develop/@gms/gms-plugin-billexpand/src/actions/deleteBill.js
+1
-5
deleteInvoiceAction.js
.../gms-plugin-billexpand/src/actions/deleteInvoiceAction.js
+0
-1
imageView.js
develop/@gms/gms-plugin-billexpand/src/actions/imageView.js
+0
-9
modifyAction.js
...op/@gms/gms-plugin-billexpand/src/actions/modifyAction.js
+0
-3
printMultiAction.js
...gms/gms-plugin-billexpand/src/actions/printMultiAction.js
+2
-1
submitAction.js
...op/@gms/gms-plugin-billexpand/src/actions/submitAction.js
+0
-1
referenceIgnore.js
...gms-plugin-billexpand/src/actions/util/referenceIgnore.js
+1
-1
plugin.js
develop/@gms/gms-plugin-billexpand/src/plugin.js
+1
-4
normalize.less
...ms/gms-plugin-billexpand/src/styles/common/normalize.less
+1
-0
No files found.
develop/@gms/gms-plugin-billexpand/src/actions/agreeAction.js
View file @
3bc8e6c5
...
...
@@ -36,9 +36,7 @@ export default {
});
}
});
}
}
else
{
GMS
.
$hideContainer
.
$Message
.
error
(
'缺少参数'
);
}
...
...
@@ -131,21 +129,13 @@ export default {
executeApproval
:
function
(
bill
,
param
)
{
if
(
param
.
param
.
actions
)
{
let
saveParam
=
{
actions
:
param
.
param
.
actions
,
// afterAction: "",
// confirmTitle: "",
// customSaveAction: "",
// noCheckCardDepressPeriod: true,
// noCheckSubTable: true,
// viewName: ""
actions
:
param
.
param
.
actions
}
bill
.
executeServerAction
(
saveParam
,
function
(
code
,
data
)
{
if
(
code
===
200
)
{
this
.
approval
(
bill
,
param
);
// bill.setControlsSate(param["_control_name_"], "loading", false)
}
else
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
// bill.setControlsSate(param["_control_name_"], "loading", false)
GMS
.
$hideContainer
.
$message
.
error
(
"操作异常请联系管理员"
);
}
}.
bind
(
this
));
...
...
@@ -164,8 +154,6 @@ export default {
return
}
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"enable"
,
true
)
// console.log('审批成功');
bill
.
setControlsSate
(
param
[
"_control_name_"
],
"loading"
,
false
)
GMS
.
$hideContainer
.
$Message
.
success
(
'审批成功!'
)
GMS
.
vbus
.
$emit
(
'change-form-state'
,
{
state
:
'readOnly'
})
...
...
develop/@gms/gms-plugin-billexpand/src/actions/closeAction.js
View file @
3bc8e6c5
import
Bridge
from
'../components-control/util/bridge'
export
default
{
execute
:
function
(
bill
,
param
)
{
if
(
...
...
develop/@gms/gms-plugin-billexpand/src/actions/customerQueryAction.js
deleted
100644 → 0
View file @
9d65e0a0
import
customSelect
from
'../control/CustomerSelect.vue'
;
export
default
{
execute
:
function
(
bill
,
param
)
{
if
(
param
)
{
console
.
log
(
'param'
,
param
)
GMS
.
$hideContainer
.
addComponent
(
customSelect
,
{},
async
function
(
c
)
{
const
getExtrCondition
=
async
(
filterFieldObj
)
=>
{
let
extrConditions
=
[]
for
(
const
key
in
filterFieldObj
)
{
let
extrConditionObj
=
{
name
:
filterFieldObj
[
key
]
}
let
value
=
bill
.
getMasterData
().
getValue
(
key
)
extrConditionObj
.
values
=
await
getExtrConditionObjValue
(
value
)
extrConditionObj
.
type
=
getExtrConditionObjType
(
value
)
extrConditions
.
push
(
extrConditionObj
)
}
return
extrConditions
}
const
getExtrConditionObjType
=
(
val
)
=>
{
const
type
=
typeof
val
const
reg
=
new
RegExp
(
/^
[
0-9a-zA-Z
]{8}
-
[
0-9a-zA-Z
]{4}
-
[
0-9a-zA-Z
]{4}
-
[
0-9a-zA-Z
]{4}
-
[
0-9a-zA-Z
]{12}
$/
)
if
(
Object
.
prototype
.
toString
.
call
(
val
)
===
'[object Object]'
)
{
const
value
=
val
.
code
const
type
=
typeof
value
return
type
.
toUpperCase
()
}
else
if
(
Object
.
prototype
.
toString
.
call
(
val
)
===
'[object Date]'
)
{
return
'DATE'
}
else
if
(
type
===
'number'
||
type
===
'boolean'
)
{
return
type
.
toUpperCase
()
}
else
if
(
reg
.
test
(
val
))
{
return
'UUID'
}
else
{
return
type
.
toUpperCase
()
}
}
const
getExtrConditionObjValue
=
async
(
val
)
=>
{
if
(
Object
.
prototype
.
toString
.
call
(
val
)
===
'[object Object]'
)
{
if
(
val
.
_type
)
{
const
tableName
=
val
.
_type
.
split
(
'.'
).
length
>
0
?
val
.
_type
.
split
(
'.'
)[
1
]
:
val
.
_type
const
postData
=
{
pagination
:
false
,
tableName
:
tableName
,
searchKey
:
""
,
queryDataStructure
:
"ALL"
,
queryChildrenType
:
"ALL_CHILDREN_WITH_SELF"
,
code
:
val
.
code
,
authType
:
"ACCESS"
,
versionDate
:
""
,
expression
:
""
,
}
const
{
data
}
=
await
GMS
.
$http
.
post
(
`/baseData/data/list`
,
postData
)
const
node
=
data
.
rows
[
0
]
const
value
=
node
.
objectcode
?
node
.
objectcode
:
val
.
code
return
value
}
else
{
return
val
.
objectcode
?
val
.
objectcode
:
val
.
code
}
}
else
{
return
val
}
}
c
.
bill
=
bill
const
actionParam
=
param
.
param
c
.
field
=
actionParam
.
field
c
.
baseDataFields
=
actionParam
.
field
.
baseDataFields
c
.
templateName
=
actionParam
.
templateName
c
.
tableName
=
actionParam
.
tableName
c
.
extrCondition
=
await
getExtrCondition
(
actionParam
.
field
.
filterField
)
c
.
isDrawer
=
true
c
.
drawerShow
=
true
c
.
actionParam
=
actionParam
// let isSub = actionParam.tableName.split('.').length
let
isSub
=
false
c
.
isSub
=
isSub
===
1
})
}
else
{
GAMS
.
Common
.
messagePrompt
(
'缺少参数'
);
}
},
}
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/actions/deleteBill.js
View file @
3bc8e6c5
...
...
@@ -12,12 +12,8 @@ export default {
})
},
billDeleted
(
bill
,
param
)
{
let
postData
=
{
data
:
bill
.
getBuillData
()
};
let
id
=
bill
.
getMasterData
().
getValue
(
'id'
);
let
url
=
`/rbc/bill/action/deleted/
${
bill
.
getBillDefine
()}
/
${
id
}
`
//let url = `/rbc/bill/action/executed/${bill.getBillDefine()}/bill.Basic.delete?currentDataId=${id}`;
let
url
=
`/rbc/bill/action/deleted/
${
bill
.
getBillDefine
()}
/
${
id
}
`
;
GMS
.
$http
.
post
(
url
).
then
((
data
)
=>
{
if
(
data
.
status
==
200
&&
data
.
data
.
code
==
0
)
{
GMS
.
$hideContainer
.
$Modal
.
remove
();
...
...
develop/@gms/gms-plugin-billexpand/src/actions/deleteInvoiceAction.js
View file @
3bc8e6c5
export
default
{
execute
:
function
(
bill
,
param
)
{
const
curbill
=
bill
.
dom
||
bill
// bill.deleteSubData(param.param.tableName,bill.getSubFocus(),true)
const
imageTable
=
curbill
.
getSubData
(
param
.
param
.
tableName
)
const
imageTableObj
=
imageTable
[
curbill
.
getSubFocus
()]
const
imageId
=
imageTableObj
.
getValue
(
'imageId'
)
...
...
develop/@gms/gms-plugin-billexpand/src/actions/imageView.js
View file @
3bc8e6c5
...
...
@@ -2,17 +2,9 @@ import ImageViewModal from '../../../../@rbc/invoice/src/components/image-view-m
export
default
{
execute
:
function
(
bill
,
param
)
{
const
curbill
=
bill
.
dom
||
bill
// const billCode = 'e7bb5a4e-9028-4475-9164-a268725a7faa'
GMS
.
$hideContainer
.
addComponent
(
ImageViewModal
,
{},
function
(
c
)
{
c
.
imageTableName
=
param
.
param
.
tableName
c
.
bill
=
curbill
})
// if (param) {
// GMS.$hideContainer.addComponent(ImageViewModal, {}, function (c) {
// c.billId = bill.getMasterData().getValue('id');
// })
// } else {
// GAMS.Common.messagePrompt('缺少参数')
// }
}
}
\ No newline at end of file
develop/@gms/gms-plugin-billexpand/src/actions/modifyAction.js
View file @
3bc8e6c5
...
...
@@ -2,9 +2,6 @@ export default {
execute
:
function
(
bill
,
param
)
{
if
(
param
)
{
let
buidData
=
bill
.
getBuillData
();
// GMS.$hideContainer.$router.push({
// path: "/editBillForm/" + param.param.viewName + "/" + buidData.id
// });
GMS
.
vbus
.
$emit
(
'openEditBillForm'
,
buidData
,
param
);
}
}
...
...
develop/@gms/gms-plugin-billexpand/src/actions/printMultiAction.js
View file @
3bc8e6c5
...
...
@@ -17,7 +17,8 @@ export default {
.
then
((
res
)
=>
{
let
blob
=
new
Blob
([
res
.
data
],
{
type
:
"application/pdf;charset=utf-8"
,
});
let
downloadElement
=
document
.
createElement
(
"a"
);
});
let
downloadElement
=
document
.
createElement
(
"a"
);
let
href
=
window
.
URL
.
createObjectURL
(
blob
);
//创建下载的链接
downloadElement
.
href
=
href
;
window
.
open
(
href
)
...
...
develop/@gms/gms-plugin-billexpand/src/actions/submitAction.js
View file @
3bc8e6c5
...
...
@@ -69,7 +69,6 @@ export default {
});
},
submitExecute
(
bill
,
param
){
if
(
bill
)
{
bill
.
setControlsSate
(
param
[
"_control_name_"
],
'enable'
,
false
)
let
postData
=
{
...
...
develop/@gms/gms-plugin-billexpand/src/actions/util/referenceIgnore.js
View file @
3bc8e6c5
...
...
@@ -12,7 +12,7 @@
export
function
actionIgnoreField
(
bill
)
{
let
action
=
bill
.
curForm
.
content
.
actions
;
if
(
action
&&
action
.
length
>
0
)
{
let
obj
=
action
.
find
(
v
=>
v
.
execute
==
'customerSelectAction'
)
//引用申请单动作
let
obj
=
action
.
find
(
v
=>
v
.
execute
==
'customerSelectAction'
)
//引用申请单动作
let
str
=
''
if
(
obj
&&
obj
.
param
&&
obj
.
param
.
field
){
str
+=
Object
.
keys
(
obj
.
param
.
field
).
join
();
...
...
develop/@gms/gms-plugin-billexpand/src/plugin.js
View file @
3bc8e6c5
import
mcon
from
'./mcon'
;
import
emcon
from
'./emcon'
;
import
'./styles/common/normalize.less'
import
Vue
from
'vue'
;
import
{
Popover
}
from
'element-ui'
;
Vue
.
use
(
Popover
)
export
default
{
install
:
function
(){
GMS
.
getContext
().
getCollector
().
addElements
(
mcon
);
// 收集所有配置文件
GMS
.
getContext
().
getEmconCollector
().
addElements
(
emcon
);
//收集清单配置文件
}
};
};
develop/@gms/gms-plugin-billexpand/src/styles/common/normalize.less
View file @
3bc8e6c5
...
...
@@ -15,3 +15,4 @@ textarea {
display: flex;
align-items: center;
}
//element 样式修改
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