Commit 5d1ae101 authored by 武广's avatar 武广

Merge branch 'feature/settlement' into 'master'

feat: 添加结算模式

See merge request !105
parents a722eb43 c5beb99b
...@@ -4,7 +4,8 @@ import { Button } from 'antd'; ...@@ -4,7 +4,8 @@ import { Button } from 'antd';
export const dateStateEnum = { export const dateStateEnum = {
1: { text: '一周', maxlength: 8 }, 1: { text: '一周', maxlength: 8 },
2: { text: '半个月', maxlength: 4 }, 2: { text: '半个月', maxlength: 4 },
3: { text: ' 一个月', maxlength: 2 }, 3: { text: '一个月', maxlength: 2 },
4: { text: '日结', maxlength: 10 },
}; };
export const orderStateNum = { export const orderStateNum = {
......
...@@ -48,7 +48,10 @@ export async function getInfo() { ...@@ -48,7 +48,10 @@ export async function getInfo() {
const data = await apiBusinessDetail(); const data = await apiBusinessDetail();
let settlementType = 1; let settlementType = 1;
const res = data.data; const res = data.data;
if (res) { console.log('res :>> ', res);
if (!res) {
return;
}
if (res.facilities) { if (res.facilities) {
res.customList = res.facilities.customList || []; res.customList = res.facilities.customList || [];
res.selfList = res.facilities.selfList || []; res.selfList = res.facilities.selfList || [];
...@@ -96,7 +99,6 @@ export async function getInfo() { ...@@ -96,7 +99,6 @@ export async function getInfo() {
if (settlementType !== null) { if (settlementType !== null) {
settlementType = +res.settlementType; settlementType = +res.settlementType;
} }
}
// 身份证有效期处理 // 身份证有效期处理
let checkboxDisabled = false; let checkboxDisabled = false;
if (res.legalPersonPeriod) { if (res.legalPersonPeriod) {
......
import React, { Component } from 'react'; import React, { Component } from 'react';
import { history } from 'umi';
import moment from 'moment'; import moment from 'moment';
import { ArrowRightOutlined, UploadOutlined } from '@ant-design/icons'; import { ArrowRightOutlined, UploadOutlined } from '@ant-design/icons';
import { Form } from '@ant-design/compatible'; import { Form } from '@ant-design/compatible';
...@@ -31,7 +30,7 @@ import { ...@@ -31,7 +30,7 @@ import {
getServiceFacility, getServiceFacility,
businessModel, businessModel,
getInfo, getInfo,
getBankList, // getBankList,
businessTypeDesc, businessTypeDesc,
signDateTypeList, signDateTypeList,
legalPersonList, legalPersonList,
...@@ -62,7 +61,7 @@ class BusinessInfo extends Component { ...@@ -62,7 +61,7 @@ class BusinessInfo extends Component {
areaAddr: [], // 四级地址列表 areaAddr: [], // 四级地址列表
categoryList: [], // 主要类目 categoryList: [], // 主要类目
serviceFacilitys: [], // 服务设施 serviceFacilitys: [], // 服务设施
bankList: [], // 开户行 // bankList: [], // 开户行
settlementType: 1, settlementType: 1,
// loading: false, // loading: false,
visibleLoading: false, visibleLoading: false,
...@@ -77,7 +76,7 @@ class BusinessInfo extends Component { ...@@ -77,7 +76,7 @@ class BusinessInfo extends Component {
await getInfo.call(this); await getInfo.call(this);
getAreaAddr.call(this); getAreaAddr.call(this);
getServiceFacility.call(this); getServiceFacility.call(this);
getBankList.call(this); // getBankList.call(this);
} }
// 主营类目 // 主营类目
...@@ -997,23 +996,9 @@ class BusinessInfo extends Component { ...@@ -997,23 +996,9 @@ class BusinessInfo extends Component {
<Col span={12}> <Col span={12}>
<FormItem label="开户行" labelCol={{ span: 8 }}> <FormItem label="开户行" labelCol={{ span: 8 }}>
{getFieldDecorator('accountBankName', { {getFieldDecorator('accountBankName', {
rules: [{ required: true, message: '选择开户行!' }], rules: [{ required: true, message: '输入开户行!' }],
initialValue: businessInfo.accountBankName, initialValue: businessInfo.accountBankName,
})( })(<Input maxLength={100} disabled={disabled} />)}
<Select
showSearch
filterOption={(input, option) =>
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
}
disabled={disabled}
>
{this.state.bankList.map(item => (
<Option value={item.bankName} key={item.bankName}>
{item.bankName}
</Option>
))}
</Select>,
)}
</FormItem> </FormItem>
</Col> </Col>
<Col span={12}> <Col span={12}>
...@@ -1086,23 +1071,9 @@ class BusinessInfo extends Component { ...@@ -1086,23 +1071,9 @@ class BusinessInfo extends Component {
<Col span={12}> <Col span={12}>
<FormItem label="开户行" labelCol={{ span: 8 }}> <FormItem label="开户行" labelCol={{ span: 8 }}>
{getFieldDecorator('accountBankName', { {getFieldDecorator('accountBankName', {
rules: [{ required: true, message: '选择开户行!' }], rules: [{ required: true, message: '输入开户行!' }],
initialValue: businessInfo.accountBankName, initialValue: businessInfo.accountBankName,
})( })(<Input maxLength={100} disabled={disabled} />)}
<Select
showSearch
filterOption={(input, option) =>
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
}
disabled={disabled}
>
{this.state.bankList.map(item => (
<Option value={item.bankName} key={item.bankName}>
{item.bankName}
</Option>
))}
</Select>,
)}
</FormItem> </FormItem>
</Col> </Col>
<Col span={12}> <Col span={12}>
...@@ -1152,23 +1123,9 @@ class BusinessInfo extends Component { ...@@ -1152,23 +1123,9 @@ class BusinessInfo extends Component {
<Col span={12}> <Col span={12}>
<FormItem label="开户行" labelCol={{ span: 8 }}> <FormItem label="开户行" labelCol={{ span: 8 }}>
{getFieldDecorator('accountBankName', { {getFieldDecorator('accountBankName', {
rules: [{ required: true, message: '选择开户行!' }], rules: [{ required: true, message: '输入开户行!' }],
initialValue: businessInfo.accountBankName, initialValue: businessInfo.accountBankName,
})( })(<Input maxLength={100} disabled={disabled} />)}
<Select
showSearch
filterOption={(input, option) =>
(option?.value ?? '').toLowerCase().includes(input.toLowerCase())
}
disabled={disabled}
>
{this.state.bankList.map(item => (
<Option value={item.bankName} key={item.bankName}>
{item.bankName}
</Option>
))}
</Select>,
)}
</FormItem> </FormItem>
</Col> </Col>
<Col span={12}> <Col span={12}>
......
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