Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
07829189
提交
07829189
authored
9月 16, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复:意向订单流程操作问题
上级
339bccf8
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
7 行增加
和
16 行删除
+7
-16
index.tsx
src/components/order/productOrder/approvalOrder/index.tsx
+1
-12
index.tsx
src/components/order/productOrder/shipmentsOrder/index.tsx
+2
-3
index.tsx
src/components/order/productOrder/sureOrder/index.tsx
+2
-0
index.tsx
src/pages/orderManage/productOrder/orderList/index.tsx
+2
-1
没有找到文件。
src/components/order/productOrder/approvalOrder/index.tsx
浏览文件 @
07829189
import
{
FC
,
useState
}
from
'react'
;
import
{
Form
,
Modal
,
ModalProps
,
Radio
,
Image
,
Row
,
Col
,
Input
,
RadioChangeEvent
,
message
,
}
from
'antd'
;
import
{
Form
,
Modal
,
ModalProps
,
Radio
,
Image
,
Input
,
RadioChangeEvent
,
message
}
from
'antd'
;
import
'./index.scss'
;
import
{
OrderManageAPI
}
from
'~/api'
;
...
...
src/components/order/productOrder/shipmentsOrder/index.tsx
浏览文件 @
07829189
import
{
FC
,
useEffect
,
useState
}
from
'react'
;
import
{
Cascader
,
Form
,
Input
,
message
,
Modal
,
ModalProps
,
Select
}
from
'antd'
;
import
{
OrderManageAPI
}
from
'~/api'
;
import
{
Inter
ListType
,
Inter
ReqType
}
from
'~/api/interface'
;
import
{
mallOrder
ListType
,
mallOrder
SendType
}
from
'~/api/interface/orderManageType'
;
import
{
InterReqType
}
from
'~/api/interface'
;
import
{
mallOrderSendType
}
from
'~/api/interface/orderManageType'
;
import
regionData
from
'~/assets/json/district.json'
;
type
mallOrderType
=
InterListType
<
mallOrderListType
>
[
0
];
// 发货请求类型
type
sendMallType
=
Omit
<
Exclude
<
InterReqType
<
mallOrderSendType
>
,
undefined
>
,
'takeRegion'
>
&
{
takeRegion
:
string
[];
...
...
src/components/order/productOrder/sureOrder/index.tsx
浏览文件 @
07829189
...
...
@@ -24,6 +24,7 @@ import { decode } from 'js-base64';
import
{
UploadFile
}
from
'antd/es/upload/interface'
;
import
{
uploadContractType
,
userFddInfoType
}
from
'~/api/interface/fddInterfaceType'
;
import
{
useNavigate
}
from
'react-router-dom'
;
import
dayjs
from
'dayjs'
;
// 商城订单对象类型
type
mallOrderItemType
=
InterListType
<
mallOrderListType
>
[
0
];
...
...
@@ -187,6 +188,7 @@ const SureOrder: FC<ModalProps & selfProps> = ({ open, onOk, onCancel, orderItem
id
:
orderItem
.
id
,
orderAmount
:
type
===
1
?
undefined
:
values
[
0
].
orderTotalAmount
,
orderTotalAmount
:
type
===
1
?
values
[
0
].
orderTotalAmount
:
undefined
,
deliveryTime
:
dayjs
(
values
[
0
].
deliveryTime
).
format
(
'YYYY-MM-DD'
),
}).
then
(({
code
,
message
:
msg
})
=>
{
if
(
code
===
'200'
)
{
message
.
success
(
'确认订单成功'
);
...
...
src/pages/orderManage/productOrder/orderList/index.tsx
浏览文件 @
07829189
...
...
@@ -16,6 +16,7 @@ import { filterObjAttr } from '~/utils';
import
'./index.scss'
;
import
qs
from
'query-string'
;
import
{
useSelector
}
from
'react-redux'
;
import
dayjs
from
'dayjs'
;
// 表格数据类型
type
TableType
=
InterListType
<
mallOrderListType
>
;
...
...
@@ -346,7 +347,7 @@ function ProductOrderView() {
title
:
'订单交期'
,
dataIndex
:
'deliveryTime'
,
align
:
'center'
,
render
:
(
text
:
string
)
=>
<
TableItem
tr=
{
<
div
>
{
text
}
</
div
>
}
/>,
render
:
(
text
:
string
)
=>
<
TableItem
tr=
{
<
div
>
{
dayjs
(
text
).
format
(
'YYYY-MM-DD'
)
}
</
div
>
}
/>,
},
{
title
:
'备注'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论