Commit 59a6f99b authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 订单详情月结账期支付方式显示

parent 7c8070e4
......@@ -37,14 +37,26 @@ const TabHeader = ({dataSource}) => {
</div>
}
// 支付信息
const payTextList = ["",
// 支付方式
const payTextList = [
"积分支付",
'线上支付',
'线下支付',
'授信支付',
'货到付款'
'货到付款',
]
// 支付渠道
const payChannel = [
"积分支付",
"支付宝",
"微信",
"银联",
"余额支付",
"线下支付线上确认",
"授信额度支付",
"货到付款",
]
const OrderPayTabs:React.FC<OrderPayTabsProps> = (props) => {
const { data } = useContext(OrderDetailContext)
const [payList, setPaylist] = useState<any[]>([])
......@@ -72,14 +84,24 @@ const OrderPayTabs:React.FC<OrderPayTabsProps> = (props) => {
<Col className={style.fontGray} span={4}>支付环节: </Col>
<Col>{v.payNode}</Col>
</Row>
{
v.payWay === -1 ?
<Row>
<Col className={style.fontGray} span={4}>支付方式: </Col>
<Col>{v.channel === 100 ? '账期' : '月结'}</Col>
</Row>
:
<>
<Row>
<Col className={style.fontGray} span={4}>支付方式: </Col>
<Col>{payTextList[v.payWay]}</Col>
</Row>
<Row>
<Col className={style.fontGray} span={4}>支付渠道: </Col>
<Col>{payList.find(j => j.id === v.channel)?.way || (v.channel === 0 && '积分支付')}</Col>
<Col>{payChannel[v.channel]}</Col>
</Row>
</>
}
</TabPane>) }
</Tabs>
{/* </Row> */}
......
......@@ -79,8 +79,8 @@ const CommonOrderDetail:React.FC<CommonOrderDetailProps> = (props) => {
customKey='state'
outerVerifyCurrent={findLastIndexFlowState(formData.externalWorkflowFlowRecordLogResponses)}
innerVerifyCurrent={findLastIndexFlowState(formData.interiorWorkflowFlowRecordLogResponses)}
outerVerifySteps={formData.externalWorkflowFlowRecordLogResponses || []}
innerVerifySteps={formData.interiorWorkflowFlowRecordLogResponses || []}
outerVerifySteps={formData.externalWorkflowFlowRecordLogResponses || null}
innerVerifySteps={formData.interiorWorkflowFlowRecordLogResponses || null}
></AuditProcess> }
{/* 商品列表 */}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment