Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
Project
Project
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
shenshaokai
jinfa-platform
Commits
a947e560
Commit
a947e560
authored
Dec 09, 2020
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改加工列表页搜索
parent
46372949
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
36 additions
and
38 deletions
+36
-38
index.tsx
src/pages/handling/assign/add/index.tsx
+1
-1
schema.tsx
src/pages/handling/assign/add/schema.tsx
+1
-1
index.tsx
src/pages/handling/common/index.tsx
+9
-1
index.tsx
src/pages/handling/components/EnterPrise/index.tsx
+10
-7
schema.tsx
src/pages/handling/components/EnterPrise/schema.tsx
+0
-0
SearchForm.tsx
src/pages/handling/components/ModalForTable/SearchForm.tsx
+0
-0
index.tsx
src/pages/handling/components/ProcessOrder/index.tsx
+6
-15
schema.tsx
src/pages/handling/components/ProcessOrder/schema.tsx
+3
-3
index.tsx
src/pages/handling/confirm/Query/index.tsx
+3
-2
schema.tsx
src/pages/handling/confirm/Query/schema.tsx
+2
-2
index.tsx
src/utils/index.tsx
+1
-6
No files found.
src/pages/handling/assign/add/index.tsx
View file @
a947e560
...
...
@@ -162,7 +162,7 @@ const Add: React.FC<{}> = () => {
})
// 当物流为 物流时,那么填充
onFieldMount$
(
'receivefullAddress'
).
subscribe
((
state
)
=>
{
PublicApi
.
getLogisticsReceiverAddressPage
({
current
:
'1'
,
pageSize
:
'
10
'
})
PublicApi
.
getLogisticsReceiverAddressPage
({
current
:
'1'
,
pageSize
:
'
99
'
})
.
then
((
res
)
=>
{
let
options
=
[];
if
(
res
.
code
===
1000
)
{
...
...
src/pages/handling/assign/add/schema.tsx
View file @
a947e560
...
...
@@ -124,7 +124,7 @@ const basicTab = {
{
type
:
'value:visible'
,
target
:
'*(receivefullAddress, receiveAddressID, receiveAddress,receiveUserName,receiveUserTel)'
,
condition
:
'{{$value == 1}}'
condition
:
'{{$value ==
=
1}}'
},
],
},
...
...
src/pages/handling/common/index.tsx
View file @
a947e560
...
...
@@ -19,7 +19,7 @@ export const docTime = [{label: '单据时间(全部)', value: 0}].concat(co
/**
* 下单时间
*/
export
const
orderTime
=
[{
label
:
'
单据
时间(全部)'
,
value
:
0
}].
concat
(
commonTimeList
);
export
const
orderTime
=
[{
label
:
'
订单
时间(全部)'
,
value
:
0
}].
concat
(
commonTimeList
);
...
...
@@ -142,6 +142,14 @@ export const ASSINGN_TITLE_MAPS = {
[
ASSIGN_PENDING_SUBMIT
]:
PENDING_SUBMIT_TITLE
,
}
export
const
COMFIRM_TITLE_MAPS
=
{
[
CONFIRM_QUERY
]:
'生产通知单查询'
,
[
CONFIRM_PENDING_SUBMIT
]:
'待提交生产通知单'
,
[
CONFIRM_PENDING_FIRST
]:
'待审核生产通知单(一级)'
,
[
CONFIRM_PENDING_SECOND
]:
'待审核生产通知单(二级)'
,
[
CONFIRM_PENDING_CONFIRM
]:
'待确认生产通知单'
}
// export const DETAIL_PATH = {
...
...
src/pages/handling/components/EnterPrise/index.tsx
View file @
a947e560
import
React
,
{
useState
}
from
'react'
;
import
React
,
{
useState
,
useCallback
}
from
'react'
;
import
{
Modal
}
from
'antd'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
EyePreview
from
'@/components/EyePreview'
;
...
...
@@ -7,14 +7,14 @@ import { createAsyncFormActions, FormEffectHooks } from '@formily/antd';
import
{
useRowSelectionTable
}
from
'@/hooks/useRowSelectionTable'
;
import
{
schema
}
from
'./schema'
;
const
actions
=
createAsyncFormActions
();
const
{
onFieldInit$
}
=
FormEffectHooks
const
{
onFieldInit$
,
onFieldMount$
}
=
FormEffectHooks
const
EnterPrise
=
({
visible
,
cancel
,
...
restProps
})
=>
{
const
[
selectRow
,
memberRowCtl
]
=
useRowSelectionTable
({
customKey
:
'memberId'
,
type
:
'radio'
});
const
fetchData
=
async
(
params
:
any
)
=>
{
const
fetchData
=
useCallback
(
async
(
params
:
any
)
=>
{
let
res
=
await
PublicApi
.
getMemberManageLowerPageBynamerole
(
params
);
return
res
;
};
}
,
[])
;
const
onOk
=
()
=>
{
restProps
.
onOk
(
memberRowCtl
)
...
...
@@ -22,6 +22,7 @@ const EnterPrise = ({visible, cancel, ...restProps}) => {
}
const
effects
=
()
=>
{
// 使用onFieldMount 会执行两次,暂时不知道为什么
onFieldInit$
(
'roleId'
).
subscribe
((
fieldState
)
=>
{
PublicApi
.
getMemberManageRoleSubList
().
then
(
res
=>
{
let
options
=
[]
...
...
@@ -35,7 +36,6 @@ const EnterPrise = ({visible, cancel, ...restProps}) => {
})
}
return
(
<
Modal
title=
"选择加工企业"
...
...
@@ -44,14 +44,17 @@ const EnterPrise = ({visible, cancel, ...restProps}) => {
onCancel=
{
cancel
}
onOk=
{
onOk
}
>
<
SearchForm
{
visible
?
<
SearchForm
request=
{
fetchData
}
schema=
{
schema
}
actions=
{
actions
}
effects=
{
effects
}
expressionScope=
{
{
rowSelection
:
selectRow
}
}
></
SearchForm
>
:
null
}
</
Modal
>
)
}
...
...
src/pages/handling/components/EnterPrise/schema.tsx
View file @
a947e560
src/pages/handling/components/ModalForTable/SearchForm.tsx
View file @
a947e560
src/pages/handling/components/ProcessOrder/index.tsx
View file @
a947e560
...
...
@@ -23,16 +23,6 @@ const expandRowColumn = [
const
ProcessProducts
=
({
visible
,
cancel
,
rowSelection
,
...
restProps
})
=>
{
// const [mainTableSelectRow, mainTableSelectRowCtl] = useRowSelectionTable({customKey: 'id'});
const
[
selectRow
,
selectRowCtl
]
=
useRowSelectionTable
({
customKey
:
'fullId'
,
extendsSelection
:
{
getCheckboxProps
:
record
=>
({
disabled
:
record
.
purchaseCount
-
(
record
.
processNum
||
0
)
<=
0
,
}),
}
});
const
fetchData
=
useCallback
(
async
(
params
:
any
)
=>
{
const
{
orderTime
,
...
rest
}
=
params
const
{
st
,
et
}
=
timeRange
(
orderTime
);
...
...
@@ -85,12 +75,8 @@ const ProcessProducts = ({visible, cancel, rowSelection, ...restProps}) => {
},
// defaultExpandAllRows: true
}
// console.log("rowSelection",rowSelection);
const
handleSubmit
=
()
=>
{
// console.log(selectRowCtl, mainTableSelectRowCtl);
// console.log(selectRowCtl)
// restProps.onOk(selectRowCtl)
restProps
.
onOk
()
cancel
();
}
...
...
@@ -117,7 +103,9 @@ const ProcessProducts = ({visible, cancel, rowSelection, ...restProps}) => {
</
div
>
}
>
<
SearchForm
{
visible
?
<
SearchForm
request=
{
fetchData
}
components=
{
{
Table
}
}
schema=
{
schema
}
...
...
@@ -127,6 +115,9 @@ const ProcessProducts = ({visible, cancel, rowSelection, ...restProps}) => {
expandable
:
expandable
}
}
></
SearchForm
>
:
null
}
</
Drawer
>
)
}
...
...
src/pages/handling/components/ProcessOrder/schema.tsx
View file @
a947e560
...
...
@@ -96,11 +96,11 @@ export const schema = {
}
}
},
supplyMembers
Id
:
{
supplyMembers
Name
:
{
type
:
'string'
,
'x-component'
:
'
Selec
t'
,
'x-component'
:
'
Inpu
t'
,
'x-component-props'
:
{
placeholder
:
'请
选择
采购会员'
,
placeholder
:
'请
填写
采购会员'
,
allowClear
:
true
,
style
:
{
width
:
'150px'
,
...
...
src/pages/handling/confirm/Query/index.tsx
View file @
a947e560
...
...
@@ -19,7 +19,8 @@ import {
CONFIRM_PENDING_SECOND
,
CONFIRM_PENDING_CONFIRM
,
SUPPLIER_OUTER_STATUS_COLOR
,
PROCESS_OUTER_STATUS_COLOR
PROCESS_OUTER_STATUS_COLOR
,
COMFIRM_TITLE_MAPS
}
from
'../../common'
import
{
timeRange
}
from
'@/utils'
;
...
...
@@ -214,7 +215,7 @@ const Query: React.FC<{}> = (props) => {
return
(
<
PageHeaderWrapper
title=
{
'生产通知单查询'
}
title=
{
COMFIRM_TITLE_MAPS
[
pathname
]
||
'生产通知单查询'
}
>
<
Card
>
<
StandardTable
...
...
src/pages/handling/confirm/Query/schema.tsx
View file @
a947e560
...
...
@@ -205,8 +205,8 @@ export const pendingFirstQuerySchema: ISchema = {
},
docTime
:
{
type
:
'string'
,
default
:
undefined
,
enum
:
[]
,
default
:
0
,
enum
:
docTime
,
'x-component-props'
:
{
placeholder
:
'单据时间(全部)'
,
allowClear
:
true
,
...
...
src/utils/index.tsx
View file @
a947e560
...
...
@@ -96,12 +96,7 @@ export function timeRange(val: number) {
).
valueOf
();
break
;
case
7
:
st
=
moment
(
moment
()
.
year
(
moment
().
year
()
-
1
)
.
startOf
(
'year'
)
.
format
(
'YYYY-MM-DD HH:mm:ss'
),
).
valueOf
();
st
=
moment
(
'1971-01-01'
,
'YYYY-MM-DD'
).
valueOf
();
// 或者0
et
=
moment
(
moment
()
.
year
(
moment
().
year
()
-
1
)
...
...
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