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
黄庭坚
jinfa-platform
Commits
0730aebf
Commit
0730aebf
authored
Jul 28, 2021
by
前端-黄佳鑫
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v2' of
http://10.0.0.22:3000/lingxi/lingxi-business-paltform
into v2
parents
c094c005
f9e832fd
Hide whitespace changes
Inline
Side-by-side
Showing
34 changed files
with
167 additions
and
73 deletions
+167
-73
index.tsx
src/pages/contract/components/examine/index.tsx
+3
-0
index.tsx
src/pages/contract/constants/index.tsx
+1
-1
index.tsx
...ontract/contractexecution/contractexecutionList/index.tsx
+3
-1
DetailedList.tsx
...act/contractexecution/details/components/DetailedList.tsx
+3
-1
DrawerModal.tsx
...ract/contractexecution/details/components/DrawerModal.tsx
+3
-1
index.tsx
src/pages/contract/contractexecution/details/index.tsx
+2
-0
crossSellProducts.tsx
...tract/coordination/components/modal/crossSellProducts.tsx
+3
-1
selectProduct.tsx
.../contract/coordination/components/modal/selectProduct.tsx
+3
-1
DetailedList.tsx
...contract/coordination/details/components/DetailedList.tsx
+3
-1
Popup.tsx
src/pages/contract/coordination/details/components/Popup.tsx
+3
-1
PurchaseList.tsx
...contract/coordination/details/components/PurchaseList.tsx
+2
-0
SituationList.tsx
...ontract/coordination/details/components/SituationList.tsx
+2
-0
index.tsx
src/pages/contract/coordination/details/index.tsx
+3
-1
add.tsx
src/pages/contract/funds/addbill/add.tsx
+2
-2
index.tsx
src/pages/contract/funds/details/index.tsx
+1
-1
info.tsx
src/pages/contract/funds/editbill/components/info.tsx
+2
-0
index.tsx
src/pages/contract/funds/editbill/index.tsx
+7
-5
index.tsx
src/pages/contract/funds/submitpayment/index.tsx
+2
-0
index.tsx
src/pages/contract/manage/QueryList/index.tsx
+2
-0
contracAdd.tsx
src/pages/contract/manage/add/contracAdd.tsx
+2
-2
index.tsx
src/pages/contract/manage/details/index.tsx
+6
-2
fromtable.tsx
src/pages/contract/manage/editing/components/fromtable.tsx
+5
-1
information.tsx
src/pages/contract/manage/editing/components/information.tsx
+14
-4
index.tsx
src/pages/contract/manage/editing/index.tsx
+11
-5
index.tsx
src/pages/contract/template/addContract/index.tsx
+10
-5
index.tsx
src/pages/contract/template/classSearch/index.tsx
+3
-1
index.tsx
src/pages/contract/template/templateList/index.tsx
+3
-1
useFormatData.ts
...ages/handling/assign/create/common/hooks/useFormatData.ts
+1
-1
orderSchema.tsx
...ges/handling/assign/create/common/schemas/orderSchema.tsx
+36
-23
index.tsx
src/pages/handling/assign/create/index.tsx
+15
-4
useGetAuth.tsx
src/pages/home/hooks/useGetAuth.tsx
+2
-2
index.less
src/pages/home/index.less
+4
-0
index.tsx
src/pages/home/index.tsx
+4
-4
index.tsx
src/pages/member/components/TableModal/index.tsx
+1
-1
No files found.
src/pages/contract/components/examine/index.tsx
View file @
0730aebf
...
...
@@ -102,7 +102,10 @@ const Examine: React.FC<Iprops> = ({
}
}).
finally
(()
=>
{
msg
();
}).
catch
((
err
)
=>
{
});
};
const
onFinishFailed
=
(
errorInfo
:
any
)
=>
{
console
.
log
(
'Failed:'
,
errorInfo
);
...
...
src/pages/contract/constants/index.tsx
View file @
0730aebf
...
...
@@ -3,7 +3,7 @@ import { history } from 'umi'
import
{
formatTimeString
}
from
'@/utils'
import
EyePreview
from
'@/components/EyePreview'
import
{
PlayCircleOutlined
,
PoweroffOutlined
}
from
'@ant-design/icons'
import
CustomTag
from
'@/pages/procurement/components/
C
ustomTag'
import
CustomTag
from
'@/pages/procurement/components/
c
ustomTag'
import
CustomBadge
from
'@/pages/procurement/components/customBadge'
import
{
CALLFORBID_TYPE
,
PURCHASE_TYPE
}
from
'@/constants'
...
...
src/pages/contract/contractexecution/contractexecutionList/index.tsx
View file @
0730aebf
...
...
@@ -144,7 +144,9 @@ const contractexecutionList = () => {
...
params
,
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
}).
catch
((
err
)
=>
{
resolve
([])
});
})
}
return
(
...
...
src/pages/contract/contractexecution/details/components/DetailedList.tsx
View file @
0730aebf
...
...
@@ -82,7 +82,9 @@ const DetailedList: React.FC<Iprops> = ({
}
else
{
}
})
}).
catch
((
err
)
=>
{
resolve
([])
});
})
}
return
(
...
...
src/pages/contract/contractexecution/details/components/DrawerModal.tsx
View file @
0730aebf
...
...
@@ -83,7 +83,9 @@ const DrawerModal: React.FC<Iprops> = ({
console
.
log
(
res
.
data
,
'请求查看付款明细'
)
resolve
(
res
)
}
})
}).
catch
((
err
)
=>
{
resolve
([])
});
})
}
...
...
src/pages/contract/contractexecution/details/index.tsx
View file @
0730aebf
...
...
@@ -90,6 +90,8 @@ const Details = (props: any) => {
}
}).
finally
(()
=>
{
setListLoading
(
false
);
}).
catch
((
err
)
=>
{
resolve
([])
});
}
/* 执行请款的选中 */
...
...
src/pages/contract/coordination/components/modal/crossSellProducts.tsx
View file @
0730aebf
...
...
@@ -56,7 +56,9 @@ const CrossSellProducts: React.FC<IProps> = (props: any) => {
let
{
data
}
=
res
||
{}
setAttribute
(
data
)
}
})
}).
catch
((
err
)
=>
{
});
}
/**选择报价商品回调 */
...
...
src/pages/contract/coordination/components/modal/selectProduct.tsx
View file @
0730aebf
...
...
@@ -55,7 +55,9 @@ const SelectProduct: React.FC<Iprops> = (props: any) => {
return
new
Promise
(
resolve
=>
{
PublicApi
.
getProductCommodityCommonGetCommodityListBySeller
({
...
params
,
environment
:
1
,
shopType
:
1
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
}).
catch
((
err
)
=>
{
resolve
([])
});
})
}
/** 关闭 */
...
...
src/pages/contract/coordination/details/components/DetailedList.tsx
View file @
0730aebf
...
...
@@ -75,7 +75,9 @@ const DetailedList: React.FC<Iprops> = ({
}
else
{
}
})
}).
catch
((
err
)
=>
{
resolve
([])
});
})
}
return
(
...
...
src/pages/contract/coordination/details/components/Popup.tsx
View file @
0730aebf
...
...
@@ -110,7 +110,9 @@ const PopupDrawer: React.FC<Iprops> = ({
setpayAmount
(
payAmount
)
setorderAmount
(
orderAmount
)
}
})
}).
catch
((
err
)
=>
{
resolve
([])
});
})
}
...
...
src/pages/contract/coordination/details/components/PurchaseList.tsx
View file @
0730aebf
...
...
@@ -157,6 +157,8 @@ const purchaseList: React.FC<Iprops> = ({
}
}).
finally
(()
=>
{
setListLoading
(
false
);
}).
catch
((
err
)
=>
{
});
}
...
...
src/pages/contract/coordination/details/components/SituationList.tsx
View file @
0730aebf
...
...
@@ -76,6 +76,8 @@ const situationList: React.FC<Iprops> = ({ contractId }) => {
}
}).
finally
(()
=>
{
setListLoading
(
false
);
}).
catch
((
err
)
=>
{
});
}
const
rowSelection
:
any
=
{
...
...
src/pages/contract/coordination/details/index.tsx
View file @
0730aebf
...
...
@@ -128,7 +128,9 @@ const Details = (props: any) => {
setcontractNo
(
basics
.
contractNo
)
setcontractAbstract
(
contractAbstract
)
}
})
}).
catch
((
err
)
=>
{
});
}
useEffect
(()
=>
{
let
tab
=
[]
...
...
src/pages/contract/funds/addbill/add.tsx
View file @
0730aebf
...
...
@@ -7,8 +7,8 @@ import {
SaveOutlined
,
}
from
'@ant-design/icons'
import
ReutrnEle
from
'@/components/ReturnEle'
;
import
AddInfo
from
'./components/
i
nfo'
import
InfoTable
from
'./components/
t
able'
import
AddInfo
from
'./components/
I
nfo'
import
InfoTable
from
'./components/
T
able'
import
{
PublicApi
}
from
'@/services/api'
;
const
formActions
=
createFormActions
();
...
...
src/pages/contract/funds/details/index.tsx
View file @
0730aebf
...
...
@@ -6,7 +6,7 @@ import { ArrowLeftOutlined } from '@ant-design/icons';
import
{
history
}
from
'umi'
;
import
{
PublicApi
}
from
'@/services/api'
;
import
Examine
from
'../../components/examine'
import
Materials
from
'./components/
m
aterials'
import
Materials
from
'./components/
M
aterials'
import
ColumnsList
from
'./components/ColumnsList'
import
Basic
from
'../../components/detailCard/basic'
const
{
Link
}
=
Anchor
;
...
...
src/pages/contract/funds/editbill/components/info.tsx
View file @
0730aebf
...
...
@@ -86,6 +86,7 @@ const AddInfo = (props: any) => {
basicsData
.
expectPayTime
=
moment
(
key
.
expectPayTime
);
basicsData
.
payParam
=
key
.
payParam
;
basicsData
.
payRatio
=
key
.
payRatio
;
console
.
log
(
basicsData
,
'basicsData'
)
setBasics
(
basicsData
)
setIndex
(
key
.
Index
);
attrValueForm
.
setFieldsValue
(
basicsData
);
...
...
@@ -122,6 +123,7 @@ const AddInfo = (props: any) => {
orderTime
:
basicsData
.
orderTime
,
moneyPayWay
:
basics
.
moneyPayWay
,
payWay
:
basicsData
.
payWay
,
payParam
:
basicsData
.
payParam
,
sourceType
:
basicsData
.
sourceType
,
moneyPayChannel
:
basics
.
moneyPayChannel
,
expectPayTime
:
moment
(
basicsData
.
expectPayTime
),
...
...
src/pages/contract/funds/editbill/index.tsx
View file @
0730aebf
...
...
@@ -45,10 +45,7 @@ const Editbill: React.FC<{}> = (props: any) => {
const
submit
=
async
()
=>
{
const
basicsVO
=
await
currentBasic
.
current
.
get
();
const
detailList
=
await
Object
.
keys
(
detailData
.
current
).
length
!=
0
?
await
detailData
.
current
.
get
()
:
[];
let
msg
=
message
.
loading
({
content
:
'正在操作'
,
duration
:
0
,
});
let
data
=
{
basics
:
basicsVO
.
data
,
detailList
:
detailList
,
...
...
@@ -61,8 +58,13 @@ const Editbill: React.FC<{}> = (props: any) => {
history
.
push
(
'/memberCenter/contract/funds/addbill'
)
}
}).
finally
(()
=>
{
msg
();
}).
catch
((
err
)
=>
{
// resolve([]);
});
setTimeout
(()
=>
{
setLoading
(
false
);
},
2000
)
}
}
...
...
src/pages/contract/funds/submitpayment/index.tsx
View file @
0730aebf
...
...
@@ -97,6 +97,8 @@ const Submitpayment: React.FC<{}> = () => {
...
params
,
}).
then
(
res
=>
{
resolve
(
res
.
data
)
}).
catch
(
err
=>
{
console
.
log
(
err
)
})
})
...
...
src/pages/contract/manage/QueryList/index.tsx
View file @
0730aebf
...
...
@@ -205,6 +205,8 @@ const QueryList = () => {
}
}).
finally
(()
=>
{
msg
();
}).
catch
((
err
)
=>
{
// reject();
});
};
...
...
src/pages/contract/manage/add/contracAdd.tsx
View file @
0730aebf
import
React
,
{
useState
,
useRef
,
useEffect
}
from
'react'
import
{
Button
,
Card
,
Tabs
,
message
}
from
'antd'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
Information
from
'./components/
i
nformation'
import
Information
from
'./components/
I
nformation'
import
FormList
from
'./components/FormList'
import
Fromtable
from
'./components/fromtable'
import
ContractText
from
'./components/
c
ontractText'
import
ContractText
from
'./components/
C
ontractText'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
history
}
from
'umi'
import
{
...
...
src/pages/contract/manage/details/index.tsx
View file @
0730aebf
...
...
@@ -121,7 +121,9 @@ const Details = (props: any) => {
setcontractAbstract
(
contractAbstract
)
setcontractNo
(
basics
.
contractNo
)
}
})
}).
catch
((
err
)
=>
{
});
}
const
onDownload
=
(
file
:
any
)
=>
{
window
.
location
.
href
=
`/api/contract/contractTemplate/downloadContract?contractName=
${
file
.
contractName
}
&contractUrl=
${
file
.
contractUrl
}
`
...
...
@@ -248,7 +250,9 @@ const Details = (props: any) => {
setbidAmount
(
bidAmount
)
setListData
(
res
.
data
.
data
)
setassociatedCategory
(
res
.
data
.
data
[
0
].
setassociatedCategory
)
})
}).
catch
((
err
)
=>
{
});
}
// 展开/收起的回调
const
onExpand
=
expandedKeys
=>
{
...
...
src/pages/contract/manage/editing/components/fromtable.tsx
View file @
0730aebf
...
...
@@ -50,6 +50,7 @@ const FormList = (props: any) => {
render
:
(
_
,
item
,
index
)
=>
<
DatePicker
style=
{
{
width
:
'100%'
}
}
format=
"YYYY-MM-DD"
value=
{
item
.
expectPayTime
}
onChange=
{
(
e
)
=>
onSelectChange
(
e
,
'expectPayTime'
,
index
)
}
/>
},
...
...
@@ -120,7 +121,6 @@ const FormList = (props: any) => {
/* 添加 */
const
addtable
=
()
=>
{
const
data
=
[...
PlanList
];
if
(
keys
)
{
data
.
push
(
keys
);
setkeys
(
''
);
...
...
@@ -205,7 +205,11 @@ const FormList = (props: any) => {
setPlanList
(
item
)
}
useEffect
(()
=>
{
payPlanList
.
map
(
item
=>
{
item
.
expectPayTime
=
moment
(
item
.
expectPayTime
)
})
setPlanList
(
payPlanList
)
console
.
log
(
payPlanList
)
},
[
payPlanList
])
useEffect
(()
=>
{
currentRef
.
current
=
{
...
...
src/pages/contract/manage/editing/components/information.tsx
View file @
0730aebf
...
...
@@ -26,12 +26,22 @@ const Information = (props: any) => {
PublicApi
.
getContractManageGetContractNo
(
data
).
then
(
res
=>
{
console
.
log
(
res
.
data
)
if
(
res
.
code
===
1000
)
{
basic
.
contractNo
=
res
.
data
basic
.
contractNo
=
res
.
data
;
const
rangePicker
=
[];
let
startTime
=
moment
(
basic
.
startTime
)
let
endTime
=
moment
(
basic
.
endTime
);
rangePicker
.
push
(
startTime
,
endTime
);
basic
.
rangePicker
=
rangePicker
;
attrValueForm
.
setFieldsValue
(
basic
)
}
})
}).
catch
((
err
)
=>
{
});
}
else
{
const
rangePicker
=
[];
let
startTime
=
moment
(
basic
.
startTime
)
let
endTime
=
moment
(
basic
.
endTime
);
rangePicker
.
push
(
startTime
,
endTime
);
basic
.
rangePicker
=
rangePicker
;
attrValueForm
.
setFieldsValue
(
basic
)
}
}
...
...
@@ -144,7 +154,7 @@ const Information = (props: any) => {
labelAlign=
"left"
labelCol=
{
{
span
:
2
}
}
wrapperCol=
{
{
span
:
8
}
}
name=
"range
-p
icker"
name=
"range
P
icker"
{
...
rangeConfig
}
>
<
RangePicker
style=
{
{
width
:
'100%'
}
}
...
...
src/pages/contract/manage/editing/index.tsx
View file @
0730aebf
...
...
@@ -3,10 +3,10 @@ import { Button, Card, Tabs, Form } from 'antd'
import
{
PageHeaderWrapper
}
from
'@ant-design/pro-layout'
import
{
PublicApi
}
from
'@/services/api'
;
import
{
history
}
from
'umi'
import
Information
from
'./components/
i
nformation'
import
Information
from
'./components/
I
nformation'
import
FormList
from
'./components/FormList'
;
import
Fromtable
from
'./components/Fromtable'
import
ContractText
from
'./components/
c
ontractText'
import
ContractText
from
'./components/
C
ontractText'
import
{
SaveOutlined
,
}
from
'@ant-design/icons'
...
...
@@ -42,7 +42,9 @@ const Editing: React.FC<{}> = (props: any) => {
setpayPlanList
(
payPlanList
)
setcontractText
(
contractText
)
}
})
}).
catch
((
err
)
=>
{
});
}
/* 查询购物料 */
const
getMaterielList
=
()
=>
{
...
...
@@ -54,7 +56,9 @@ const Editing: React.FC<{}> = (props: any) => {
if
(
res
.
code
===
1000
)
{
setpurchaseMaterielList
(
res
.
data
.
data
)
}
})
}).
catch
((
err
)
=>
{
console
.
log
(
err
)
});
}
useEffect
(()
=>
{
getDetail
();
...
...
@@ -87,7 +91,9 @@ const Editing: React.FC<{}> = (props: any) => {
}
else
{
setbtnType
(
false
)
}
}))
})).
catch
((
err
)
=>
{
console
.
log
(
err
)
});
}
}
...
...
src/pages/contract/template/addContract/index.tsx
View file @
0730aebf
...
...
@@ -57,7 +57,8 @@ const AddContract: React.FC<parmas> = (props) => {
useEffect
(()
=>
{
PublicApi
.
getContractContractTemplateExample
().
then
(
res
=>
{
setFileExampleUrl
(
res
.
data
)
})
}).
catch
((
err
)
=>
{
});
},
[])
/**新增&修改 */
...
...
@@ -67,14 +68,16 @@ const AddContract: React.FC<parmas> = (props) => {
setTimeout
(()
=>
{
history
.
goBack
()
},
1000
)
})
}).
catch
((
err
)
=>
{
});
}
else
{
parmas
.
id
=
id
;
await
PublicApi
.
postContractContractTemplateUpdate
(
parmas
).
then
(
res
=>
{
setTimeout
(()
=>
{
history
.
goBack
()
},
1000
)
})
}).
catch
((
err
)
=>
{
});
}
}
...
...
@@ -131,7 +134,8 @@ const AddContract: React.FC<parmas> = (props) => {
form
.
setFieldsValue
(
res
.
data
)
}
})
}).
catch
((
err
)
=>
{
});
}
},
[
id
])
...
...
@@ -149,7 +153,8 @@ const AddContract: React.FC<parmas> = (props) => {
if
(
res
.
code
===
1000
)
{
window
.
open
(
res
.
data
.
contractUrl
)
}
})
}).
catch
((
err
)
=>
{
});
}
...
...
src/pages/contract/template/classSearch/index.tsx
View file @
0730aebf
...
...
@@ -38,7 +38,9 @@ const ClassSearch = () => {
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getContractContractParamPage
({
...
filterParams
,
...
params
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
}).
catch
(()
=>
{
reject
();
});
})
}
// 搜索
...
...
src/pages/contract/template/templateList/index.tsx
View file @
0730aebf
...
...
@@ -99,7 +99,9 @@ const Template: React.FC<{}> = () => {
return
new
Promise
((
resolve
,
reject
)
=>
{
PublicApi
.
getContractContractTemplatePage
({
...
params
}).
then
(
res
=>
{
resolve
(
res
.
data
)
})
}).
catch
(()
=>
{
reject
();
});
})
}
...
...
src/pages/handling/assign/create/common/hooks/useFormatData.ts
View file @
0730aebf
...
...
@@ -32,7 +32,7 @@ const useFormatData = () => {
const
cacheInitialValue
=
useMemo
<
EditInititalValueType
>
(()
=>
{
if
(
initialValue
===
null
)
{
return
{
source
:
1
}
as
EditInititalValueType
return
{
source
:
1
,
source1
:
1
}
as
EditInititalValueType
}
const
{
summary
,
deliveryType
,
deliveryDate
,
processMemberId
,
processName
,
processRoleId
,
receiveAddress
,
receiveUserName
,
receiveUserTel
,
receiverAddressId
,
source
,
otherAsk
,
details
}
=
initialValue
;
const
isOrder
=
source
===
1
;
...
...
src/pages/handling/assign/create/common/schemas/orderSchema.tsx
View file @
0730aebf
...
...
@@ -4,6 +4,12 @@
import
{
FORM_FILTER_PATH
}
from
'@/formSchema/const'
;
import
{
ISchema
}
from
'@formily/antd'
;
import
{
ORDER_TYPE
}
from
'@/constants/order'
const
ORDER_ENUM
=
ORDER_TYPE
.
filter
(
Boolean
).
map
((
_item
,
index
)
=>
({
label
:
_item
,
value
:
index
+
1
}))
export
const
orderSchema
:
ISchema
=
{
type
:
'object'
,
...
...
@@ -12,48 +18,55 @@ export const orderSchema: ISchema = {
type
:
'object'
,
'x-component'
:
'mega-layout'
,
properties
:
{
name
:
{
orderNo
:
{
type
:
'string'
,
'x-component'
:
'Search'
,
'x-component-props'
:
{
placeholder
:
'搜索
商品名称
'
,
placeholder
:
'搜索
订单号
'
,
align
:
'flex-left'
,
tip
:
'输入
商品名称
进行搜索'
,
tip
:
'输入
订单号
进行搜索'
,
},
},
[
FORM_FILTER_PATH
]:
{
type
:
'object'
,
'x-component'
:
'mega-layout'
,
'x-component-props'
:
{
grid
:
true
,
inline
:
true
,
full
:
true
,
columns
:
3
,
},
properties
:
{
customerCategoryId
:
{
orderThe
:
{
type
:
'string'
,
'x-component'
:
'Cascader'
,
'x-component-props'
:
{
placeholder
:
'请选择商品品类'
,
allowClear
:
true
,
style
:
{
width
:
'160px'
,
// margin: '0 20px 0 0'
},
fieldNames
:
{
label
:
'title'
,
value
:
'id'
,
children
:
'children'
}
"x-component-props"
:
{
placeholder
:
'订单摘要'
}
},
brandId
:
{
membersName
:
{
type
:
'string'
,
// 'x-component': 'Select',
enum
:
[],
'x-component-props'
:
{
placeholder
:
'请选择商品品牌'
,
allowClear
:
true
,
showSearch
:
true
,
optionFilterProp
:
"children"
,
"x-component-props"
:
{
placeholder
:
"采购会员"
}
},
type
:
{
type
:
'string'
,
enum
:
ORDER_ENUM
,
"x-component-props"
:
{
placeholder
:
'订单类型'
,
allowClear
:
true
,
style
:
{
width
:
150
}
}
},
"[startCreateTime, endCreateTime]"
:
{
type
:
'daterange'
,
"x-component-props"
:
{
placeholder
:
[
"下单开始时间"
,
"下单结束时间"
],
style
:
{
width
:
'300px'
}
},
},
submit
:
{
'x-component'
:
'Submit'
,
'x-mega-props'
:
{
...
...
src/pages/handling/assign/create/index.tsx
View file @
0730aebf
...
...
@@ -27,7 +27,7 @@ import ProductDrawer, { productSubmitType, productInfo } from './components/Prod
import
{
priceFormat
}
from
'@/utils/numberFomat'
;
import
{
orderColumns
,
orderProductColumns
}
from
'./common/columns/orderColumn'
;
import
{
orderSchema
}
from
'./common/schemas/orderSchema'
import
{
GetOrderProcessingOrderListResponseDetail
}
from
'@/services/OrderV2Api'
;
import
{
GetOrderProcessingOrderListRe
quest
,
GetOrderProcessingOrderListRe
sponseDetail
}
from
'@/services/OrderV2Api'
;
import
{
EnterpriceType
,
FileType
,
SubmitDataType
,
RestDataType
,
OtherAskType
,
SelectedProcessProductType
}
from
'./types'
;
import
{
history
}
from
'umi'
;
import
moment
from
'moment'
;
...
...
@@ -587,8 +587,19 @@ const Create = () => {
// onSelectAll: onSelectAll
}
const
handleFetchOrderList
=
useCallback
(
async
(
params
:
any
)
=>
{
const
{
data
,
code
}
=
await
PublicApi
.
getOrderProcessingOrderList
(
params
as
any
);
const
handleFetchOrderList
=
useCallback
(
async
(
params
:
GetOrderProcessingOrderListRequest
)
=>
{
const
{
startCreateTime
,
endCreateTime
,
...
rest
}
=
params
as
any
;
let
postData
=
rest
;
if
(
startCreateTime
)
{
const
format
=
'YYYY-MM-DD'
;
postData
=
{
...
postData
,
startCreateTime
:
moment
(
startCreateTime
,
format
).
valueOf
(),
endCreateTime
:
moment
(
endCreateTime
,
format
).
valueOf
(),
}
}
const
{
data
,
code
}
=
await
PublicApi
.
getOrderProcessingOrderList
(
postData
as
GetOrderProcessingOrderListRequest
);
if
(
code
===
1000
)
{
setFetchOrderData
(
data
.
data
);
return
data
...
...
@@ -931,7 +942,7 @@ const Create = () => {
/>
<
TableModal
modalType=
{
"Drawer"
}
width=
{
92
0
}
width=
{
100
0
}
visible=
{
processOrderVisible
}
onClose=
{
()
=>
processOrderToggle
(
false
)
}
title=
{
"选择加工订单"
}
...
...
src/pages/home/hooks/useGetAuth.tsx
View file @
0730aebf
...
...
@@ -18,10 +18,10 @@ type AbilityNameType = "orderAbility"
type
isCheckedLayoutsType
=
{
id
:
number
|
null
,
code
:
number
,
code
?
:
number
,
name
:
string
,
sort
:
number
,
isShow
?:
boolean
,
isShow
?:
boolean
|
(
0
|
1
|
number
)
,
}
const
collection2Obj
=
<
T
,
>
(list: T[], name: string, isCover?: boolean) =
>
{
...
...
src/pages/home/index.less
View file @
0730aebf
...
...
@@ -49,11 +49,15 @@
cursor: pointer;
width: 148px;
.icon {
font-size: 22px;
color: #fff;
}
.text {
margin-left: 8px;
color: #fff;
}
}
src/pages/home/index.tsx
View file @
0730aebf
...
...
@@ -97,9 +97,9 @@ const Home: React.FC<{}> = () => {
return
(
<
PageHeaderWrapper
title=
"首页"
>
<
div
className=
{
styles
.
userGuaid
}
style=
{
{
display
:
visible
?
'block'
:
'none'
}
}
>
{
/*
<div className={styles.userGuaid} style={{display: visible ? 'block': 'none'}}>
<UseGuaid/>
</
div
>
</div>
*/
}
<
div
className=
{
styles
.
container
}
>
<
div
className=
{
styles
.
left
}
>
<
UserCenter
/>
...
...
@@ -115,10 +115,10 @@ const Home: React.FC<{}> = () => {
layouts=
{
layout
}
/>
</
div
>
<
div
className=
{
styles
.
controller
}
onClick=
{
()
=>
setVisible
((
state
)
=>
!
state
)
}
>
<
a
href=
"https://www.yuque.com/shushangyun-lingxi/xr7ol7/eh909i"
target=
"__blank"
className=
{
styles
.
controller
}
>
<
CompassFilled
className=
{
styles
.
icon
}
/>
<
span
className=
{
styles
.
text
}
>
使用向导
</
span
>
</
div
>
</
a
>
</
div
>
<
div
className=
{
styles
.
commonMargin
}
>
<
LatestAnnounce
/>
...
...
src/pages/member/components/TableModal/index.tsx
View file @
0730aebf
...
...
@@ -209,7 +209,7 @@ const TableModal: React.FC<Iprops> = (props: Iprops) => {
//
</
div
>
<
div
style=
{
{
position
:
"relative"
,
}
}
>
<
div
>
{
child
}
</
div
>
<
div
style=
{
{
position
:
'absolute'
,
right
:
0
,
top
:
0
}
}
>
{
ps
}
</
div
>
<
div
style=
{
{
position
:
'absolute'
,
right
:
0
,
top
:
4
}
}
>
{
ps
}
</
div
>
</
div
>
)
}
controlRender=
{
...
...
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