Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wms
Project
Project
Details
Activity
Releases
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
wuhao
wms
Commits
8c356db4
Commit
8c356db4
authored
Jul 19, 2022
by
左玲玲
😬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1416
parent
bd0f0279
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
201 additions
and
327 deletions
+201
-327
routes.js
config/routes.js
+1
-1
index.jsx
src/components/InitForm/index.jsx
+0
-3
index.jsx
src/components/TreeRender/index.jsx
+12
-16
fields.js
src/pages/platform/Rule/fields.js
+27
-30
index.jsx
src/pages/platform/Rule/index.jsx
+135
-261
index.jsx
src/pages/platform/Sendlist/index.jsx
+4
-11
Formpage.jsx
src/pages/platform/Sendset/Formpage.jsx
+3
-3
fieldstore.js
src/pages/system/Store/fieldstore.js
+3
-2
system.js
src/services/system.js
+16
-0
No files found.
config/routes.js
View file @
8c356db4
...
...
@@ -174,7 +174,7 @@ export default [
},
{
path
:
"/platform/rule"
,
path
:
"/platform/
no
rule"
,
name
:
"编号规则"
,
component
:
"./platform/Rule"
,
},
...
...
src/components/InitForm/index.jsx
View file @
8c356db4
...
...
@@ -557,9 +557,6 @@ let InitForm = ({
// formartSubmit(values);
}
}
onValuesChange=
{
(
changedValues
,
values
)
=>
{
console
.
log
(
'===================================='
)
console
.
log
(
changedValues
)
console
.
log
(
'===================================='
)
let
newvalue
=
{};
let
linkkey
=
Object
.
keys
(
changedValues
)[
0
];
//联动逻辑
...
...
src/components/TreeRender/index.jsx
View file @
8c356db4
...
...
@@ -79,20 +79,17 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max
</
span
>
</
Tooltip
>
)
:
(
<
Tooltip
title=
{
item
.
title
}
placement=
"bottom"
>
<
span
style=
{
{
display
:
"inline-block"
,
maxWidth
:
maxWidth
??
88
,
overflow
:
"hidden"
,
textOverflow
:
"ellipsis"
,
whiteSpace
:
"nowrap"
}
}
>
{
item
.
title
}
</
span
>
</
Tooltip
>
);
<
Tooltip
title=
{
item
.
title
}
placement=
"bottom"
>
<
span
style=
{
{
display
:
"inline-block"
,
maxWidth
:
maxWidth
??
88
,
overflow
:
"hidden"
,
textOverflow
:
"ellipsis"
,
whiteSpace
:
"nowrap"
}
}
>
{
item
.
title
}
</
span
>
</
Tooltip
>
);
const
actiontitle
=
(
<
div
style=
{
{
display
:
"flex"
,
alignItems
:
"center"
,
justifyContent
:
"space-between"
}
}
>
{
title
}
<
div
>
{
item
.
key
!=
"0"
&&
<
Divider
type=
'vertical'
style=
{
{
margin
:
"0 6px"
}
}
></
Divider
>
}
{
item
.
key
!=
"0"
&&
<
Tooltip
title=
"编辑"
onClick=
{
(
e
)
=>
{
item
.
key
&&
item
.
key
!=
"0"
&&
<
Tooltip
title=
"编辑"
onClick=
{
(
e
)
=>
{
e
.
stopPropagation
();
setsavetitle
(
null
)
if
(
getPrem
(
"enElectricityMeterType_save"
,
"ifs"
))
{
...
...
@@ -110,8 +107,9 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max
<
FormOutlined
style=
{
{
color
:
"#1890ff"
}
}
/>
</
Tooltip
>
}
<
Divider
type=
'vertical'
style=
{
{
margin
:
"0 6px"
}
}
></
Divider
>
{
item
.
key
&&
<
Divider
type=
'vertical'
style=
{
{
margin
:
"0 6px"
}
}
></
Divider
>
}
<
Tooltip
title=
"新增"
>
<
PlusSquareOutlined
disabled=
{
!
getPrem
(
"enElectricityMeterType_save"
,
"ifs"
)
}
...
...
@@ -158,10 +156,10 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max
</
Tooltip
>
</
Popconfirm
>
}
{
{
/* {
item.key === "" && <Divider type='vertical' style={{ margin: "0 6px" }}></Divider>
}
{
}
*/
}
{
/* {
item.key === "" && <Tooltip title={expandall ? "收起" : "展开"} onClick={(e) => {
e.stopPropagation();
setexpandall(!expandall)
...
...
@@ -169,7 +167,7 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max
}}>
{expandall ? <ArrowDownOutlined /> : <ArrowRightOutlined />}
</Tooltip>
}
}
*/
}
</
div
>
</
div
>
...
...
@@ -221,7 +219,6 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max
if
(
modal
.
okText
==
"修改"
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
if
(
savetitle
)
{
console
.
log
(
ref1
.
current
);
doFetch
({
url
:
saveurl
,
params
:
{
...
...
@@ -299,7 +296,6 @@ function TreeRender({ url, deleteurl, saveurl, onselected, params, noaction, max
defaultExpandAll=
{
true
}
expandedKeys=
{
expandedKeys
}
onExpand=
{
(
expandedKeys
)
=>
{
console
.
log
(
expandedKeys
);
onExpand
(
expandedKeys
)
}
}
>
...
...
src/pages/platform/Rule/fields.js
View file @
8c356db4
import
{
bmNoType
}
from
"@/services/platform"
;
import
{
bmNoTypeadd
}
from
"@/services/system"
export
default
{
noTypeId
:
{
value
:
null
,
type
:
"select"
,
title
:
"单号类型"
,
name
:
[
"noTypeId"
],
required
:
true
,
options
:
{
database
:
bmNoType
,
params
:
{},
},
col
:
{
span
:
12
},
},
noSunName
:
{
value
:
null
,
type
:
"input"
,
title
:
"编号子类"
,
name
:
[
"noSunName"
],
required
:
true
,
col
:
{
span
:
12
},
},
nrList
:
{
value
:
{
value
:
[],
other
:
{}
},
type
:
"diyrule"
,
title
:
"规则配置"
,
name
:
[
"nrList"
],
col
:
{
span
:
24
},
required
:
true
,
},
};
"noTypeId"
:
{
"value"
:
null
,
"type"
:
"select"
,
"title"
:
"单号类型"
,
"name"
:
[
"noTypeId"
],
"required"
:
true
,
"options"
:
{
database
:
bmNoTypeadd
,
params
:
{}
},
"col"
:
{
span
:
24
},
},
"nrList"
:
{
"value"
:
{
value
:
[],
other
:
{}
},
"type"
:
"diyrule"
,
"title"
:
"规则配置"
,
"name"
:
[
"nrList"
],
"col"
:
{
span
:
24
},
"required"
:
true
}
}
\ No newline at end of file
src/pages/platform/Rule/index.jsx
View file @
8c356db4
This diff is collapsed.
Click to expand it.
src/pages/platform/Sendlist/index.jsx
View file @
8c356db4
...
...
@@ -33,7 +33,7 @@ let SendList = (props) => {
"title"
:
"推送方式"
,
"dataIndex"
:
"sendMethodName"
,
"key"
:
"sendMethodName"
,
search
:
false
search
:
false
},
{
"title"
:
"推送内容"
,
...
...
@@ -127,23 +127,16 @@ let SendList = (props) => {
actionRef=
{
actionRef
}
path=
"/ngic-base-business/paMsgSendRecord/queryList"
></
AutoTable
>
<
D
rawer
<
D
etails
title=
{
details
.
totalTitle
}
closable=
{
true
}
visible=
{
details
.
visible
}
onClose=
{
()
=>
{
cdetails
({
...
details
,
visible
:
false
})
}
}
destroyOnClose=
{
true
}
afterVisibleChange=
{
(
v
)
=>
{
cdetails
({
...
details
,
shown
:
v
})
}
}
width=
"100%"
className=
"drawerDetails"
{
...
details
}
>
{
details
.
shown
&&
<
Details
{
...
details
}
></
Details
>
}
</
Drawer
>
</
Details
>
</
div
>
)
}
...
...
src/pages/platform/Sendset/Formpage.jsx
View file @
8c356db4
...
...
@@ -7,7 +7,7 @@ import InitForm from '@/components/InitForm';
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
tableField
}
from
"./fields"
;
import
moment
from
"moment"
;
import
{
factory
,
allDepartment
,
allShop
,
depart
,
selectionBoxAll
,
roleList
,
currentUserList
}
from
"@/services/system"
;
import
{
factory
Select
,
factory
,
allDepartment
,
allShop
,
depart
,
selectionBoxAll
,
roleList
,
currentUserList
}
from
"@/services/system"
;
const
{
TextArea
}
=
Input
,
{
Paragraph
}
=
Typography
;
...
...
@@ -513,10 +513,10 @@ const Formpage = (props) => {
let
database
;
switch
(
val
)
{
case
2
:
database
=
factory
database
=
factory
Select
break
;
case
3
:
database
=
depart
database
=
factory
break
;
case
4
:
database
=
selectionBoxAll
...
...
src/pages/system/Store/fieldstore.js
View file @
8c356db4
...
...
@@ -25,11 +25,12 @@ export default {
},
"description"
:
{
"value"
:
null
,
"type"
:
"
input
"
,
"type"
:
"
textarea
"
,
"title"
:
"描述"
,
"name"
:
[
"description"
],
"required"
:
true
"required"
:
false
,
col
:{
span
:
24
}
}
};
src/services/system.js
View file @
8c356db4
...
...
@@ -228,4 +228,20 @@ export async function allSection(params) {
method
:
'POST'
,
data
:
params
,
});
}
//查询全部编号类型下拉框(登录人公司)
export
async
function
bmNoTypeadd
(
params
)
{
return
request
(
`/wms/ngic-base-business/bmNoType/querySelect`
,
{
method
:
'POST'
,
data
:
params
,
});
}
//查询全部编号类型下拉框(登录人公司)
export
async
function
bmNoType
(
params
)
{
return
request
(
`/wms/ngic-base-business/bmNoType/queryAllSelect`
,
{
method
:
'POST'
,
data
:
params
,
});
}
\ 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