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