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

fix: 处理交易规则筛选状态清空,处理品牌页面异常

parent 0b48a5da
...@@ -41,7 +41,7 @@ const CheckDetail: React.FC<{}> = () => { ...@@ -41,7 +41,7 @@ const CheckDetail: React.FC<{}> = () => {
const { code, data } = res const { code, data } = res
setDetails(data) setDetails(data)
if(code === 1000) { if(code === 1000) {
let bankRes = await PublicApi.getSettleAccountsCorporateAccountConfig({memberId: data.memberId + ''}) let bankRes = await PublicApi.getSettleAccountsCorporateAccountConfig({memberId: data.memberId + '', memberRoleId: data.memberRoleId + ''})
setBankDetail(bankRes.data) setBankDetail(bankRes.data)
} }
} }
...@@ -66,7 +66,7 @@ const CheckDetail: React.FC<{}> = () => { ...@@ -66,7 +66,7 @@ const CheckDetail: React.FC<{}> = () => {
title: '交易时间', title: '交易时间',
dataIndex: 'tradeTime', dataIndex: 'tradeTime',
key: 'tradeTime', key: 'tradeTime',
render: (text: any) => moment(text).format("YYYY-MM-DD HH:mm:ss") render: (text: any) => moment(text).format("YYYY-MM-DD HH:mm:ss")
}, },
{ {
title: '交易金额(元)', title: '交易金额(元)',
...@@ -116,7 +116,7 @@ const CheckDetail: React.FC<{}> = () => { ...@@ -116,7 +116,7 @@ const CheckDetail: React.FC<{}> = () => {
} }
const handleCancel = () => { const handleCancel = () => {
checkForm.resetFields() checkForm.resetFields()
setVisibleModal(false) setVisibleModal(false)
} }
...@@ -126,7 +126,7 @@ const CheckDetail: React.FC<{}> = () => { ...@@ -126,7 +126,7 @@ const CheckDetail: React.FC<{}> = () => {
onBack={() => history.goBack()} onBack={() => history.goBack()}
backIcon={<ReutrnEle />} backIcon={<ReutrnEle />}
extra={ urlParams.preview ? [] : [ extra={ urlParams.preview ? [] : [
<Button <Button
icon={<CheckSquareOutlined />} icon={<CheckSquareOutlined />}
key="1" key="1"
type="primary" type="primary"
...@@ -288,8 +288,8 @@ const CheckDetail: React.FC<{}> = () => { ...@@ -288,8 +288,8 @@ const CheckDetail: React.FC<{}> = () => {
layout="vertical" layout="vertical"
form={checkForm} form={checkForm}
> >
<Form.Item <Form.Item
name="status" name="status"
label="" label=""
rules={[ rules={[
{ {
...@@ -305,8 +305,8 @@ const CheckDetail: React.FC<{}> = () => { ...@@ -305,8 +305,8 @@ const CheckDetail: React.FC<{}> = () => {
</Radio.Group> </Radio.Group>
</Form.Item> </Form.Item>
{ {
checkStatus===2 && <Form.Item checkStatus===2 && <Form.Item
name="remark" name="remark"
label={'审核不通过原因'} label={'审核不通过原因'}
rules={[ rules={[
{ {
......
...@@ -186,6 +186,7 @@ const AddBrand: React.FC<{}> = () => { ...@@ -186,6 +186,7 @@ const AddBrand: React.FC<{}> = () => {
保存 保存
</Button>, </Button>,
]} ]}
className={styles.brandBox}
> >
<Space direction="vertical" style={{width:'100%'}}> <Space direction="vertical" style={{width:'100%'}}>
<Card headStyle={{borderBottom:'none'}} title="流程进度"> <Card headStyle={{borderBottom:'none'}} title="流程进度">
......
.proveBox{ .proveBox{
width:175px; width:175px;
height:120px; height:120px;
border:1px solid rgba(235,236,240,1); border:1px solid rgba(235,236,240,1);
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
padding: 18px; padding: 18px;
} }
} }
\ No newline at end of file
.brandBox {
:global {
.ant-form-item {
display: block;
}
}
}
...@@ -259,21 +259,23 @@ export const useElectronicContract = (ctx: ISchemaFormActions | ISchemaFormAsync ...@@ -259,21 +259,23 @@ export const useElectronicContract = (ctx: ISchemaFormActions | ISchemaFormAsync
params['memberId'] = ctx.getFieldValue('supplyMembersId') params['memberId'] = ctx.getFieldValue('supplyMembersId')
params['memberRoleId'] = ctx.getFieldValue('supplyMembersRoleId') params['memberRoleId'] = ctx.getFieldValue('supplyMembersRoleId')
fetchOrderApi.getOrderWorkFlow(params).then(data => { if(params['memberId'] && params['memberRoleId']) {
// 简单流程并使用电子合同 强行启用电子合同 fetchOrderApi.getOrderWorkFlow(params).then(data => {
if(data["processEnum"] === 24 && data["isElectronicContract"]) { // 简单流程并使用电子合同 强行启用电子合同
ctx.setFieldState("usingElectronicContracts", state => { if(data["processEnum"] === 24 && data["isElectronicContract"]) {
state.visible = true
})
ctx.setFieldValue("processEnum", data["processEnum"])
// ctx.setFieldValue("usingElectronicContracts", data["isElectronicContract"] ? 1 : 0)
}
if(data['electronicContractId']) {
fetchOrderApi.createContract({contractTemplateId: data['electronicContractId'], signMemberId: params['memberId'] }).then(_data => {
ctx.setFieldState("usingElectronicContracts", state => { ctx.setFieldState("usingElectronicContracts", state => {
state.props["x-component-props"].contract = { contractTemplateId: data['electronicContractId'], ..._data, } state.visible = true
}) })
}) ctx.setFieldValue("processEnum", data["processEnum"])
} // ctx.setFieldValue("usingElectronicContracts", data["isElectronicContract"] ? 1 : 0)
}) }
if(data['electronicContractId']) {
fetchOrderApi.createContract({contractTemplateId: data['electronicContractId'], signMemberId: params['memberId'] }).then(_data => {
ctx.setFieldState("usingElectronicContracts", state => {
state.props["x-component-props"].contract = { contractTemplateId: data['electronicContractId'], ..._data, }
})
})
}
})
}
} }
...@@ -3,8 +3,6 @@ import { PayInfoCell, EditableRow } from '../components/payInfoTableCell' ...@@ -3,8 +3,6 @@ import { PayInfoCell, EditableRow } from '../components/payInfoTableCell'
import { ISchemaFormActions, ISchemaFormAsyncActions } from '@formily/antd' import { ISchemaFormActions, ISchemaFormAsyncActions } from '@formily/antd'
import { useEffect, useState, useRef, useContext } from 'react' import { useEffect, useState, useRef, useContext } from 'react'
import { PublicApi } from '@/services/api' import { PublicApi } from '@/services/api'
import { ReadyAddOrderDetailContext } from '../../context'
import { message } from 'antd'
export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions, memberId: any, memberRoleId: any, orderProducts: any): any => { export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions, memberId: any, memberRoleId: any, orderProducts: any): any => {
const paywayData = useRef<any>({}) const paywayData = useRef<any>({})
...@@ -148,7 +146,7 @@ export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions ...@@ -148,7 +146,7 @@ export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
if(options.filter(_item => _item.payType === 4).length) if(options.filter(_item => _item.payType === 4).length)
options.filter(_item => _item.payType === 4)[0].disabled = false options.filter(_item => _item.payType === 4)[0].disabled = false
} }
} , 500) } , 800)
setTimeout(() => { setTimeout(() => {
if(pros.filter(item => item.deliveryType === 1).length !== pros.length) { if(pros.filter(item => item.deliveryType === 1).length !== pros.length) {
...@@ -161,7 +159,7 @@ export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions ...@@ -161,7 +159,7 @@ export const usePaymentInfo = (ctx: ISchemaFormActions | ISchemaFormAsyncActions
} }
} }
} , 800) } , 800)
console.log(newColumns, 'newColumns')
setColumns(newColumns) setColumns(newColumns)
} }
} }
......
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