Commit 91f5d509 authored by XieZhiXiong's avatar XieZhiXiong

新增单据中

parent dbe3cd46
...@@ -298,8 +298,18 @@ export const DOC_DIRECTION = { ...@@ -298,8 +298,18 @@ export const DOC_DIRECTION = {
export const ORDER_TYPE2_INQUIRY = 1; // 询价采购 export const ORDER_TYPE2_INQUIRY = 1; // 询价采购
export const ORDER_TYPE2_DEMAND = 2; // 需求采购 export const ORDER_TYPE2_DEMAND = 2; // 需求采购
export const ORDER_TYPE2_SPOT = 3; // 现货采购 export const ORDER_TYPE2_SPOT = 3; // 现货采购
// export const ORDER_TYPE2_iNQUIRY = 4; // 集采 export const ORDER_TYPE2_CENTRALIZED = 4; // 集采
// export const ORDER_TYPE2_iNQUIRY = 5; // 积分兑换 export const ORDER_TYPE2_POINTS = 5; // 积分兑换
// export const ORDER_TYPE2_iNQUIRY = 6; // 渠道直采 export const ORDER_TYPE2_CHANNEL_DIRECT = 6; // 渠道直采
// export const ORDER_TYPE2_iNQUIRY = 7; // 渠道现货 export const ORDER_TYPE2_CHANNEL_SPOT = 7; // 渠道现货
// export const ORDER_TYPE2_iNQUIRY = 8; // 渠道积分兑换 export const ORDER_TYPE2_CHANNEL_POINTS = 8; // 渠道积分兑换
\ No newline at end of file export const ORDER_TYPE2 = {
[ORDER_TYPE2_INQUIRY]: '询价采购',
[ORDER_TYPE2_DEMAND]: '需求采购',
[ORDER_TYPE2_SPOT]: '现货采购',
[ORDER_TYPE2_CENTRALIZED]: '集采',
[ORDER_TYPE2_POINTS]: '积分兑换',
[ORDER_TYPE2_CHANNEL_DIRECT]: '渠道直采',
[ORDER_TYPE2_CHANNEL_SPOT]: '渠道现货',
[ORDER_TYPE2_CHANNEL_POINTS]: '渠道积分兑换',
};
\ No newline at end of file
...@@ -158,7 +158,7 @@ const MemberMaintain: React.FC<[]> = () => { ...@@ -158,7 +158,7 @@ const MemberMaintain: React.FC<[]> = () => {
type="link" type="link"
onClick={() => handleCommit(record.memberId, record.validateId)} onClick={() => handleCommit(record.memberId, record.validateId)}
> >
提交审核 提交平台审核
</Button> </Button>
</> </>
)} )}
...@@ -179,7 +179,10 @@ const MemberMaintain: React.FC<[]> = () => { ...@@ -179,7 +179,10 @@ const MemberMaintain: React.FC<[]> = () => {
</> </>
)} )}
{/* 外部审核状态不等于 审核通过 可进行删除操作 */} {/* 外部审核状态不等于 审核通过 可进行删除操作 */}
{record.outerStatus !== MEMBER_OUTER_STATUS_SUCCESS && ( {(
record.outerStatus === MEMBER_OUTER_STATUS_UNCOMMITTED ||
record.outerStatus === MEMBER_OUTER_STATUS_FAILED
) && (
<Popconfirm <Popconfirm
title="确定要删除吗?" title="确定要删除吗?"
okText="是" okText="是"
......
...@@ -13,7 +13,9 @@ import NiceForm from '@/components/NiceForm'; ...@@ -13,7 +13,9 @@ import NiceForm from '@/components/NiceForm';
import ModalTable from '@/components/ModalTable'; import ModalTable from '@/components/ModalTable';
import Search from '@/components/NiceForm/components/Search'; import Search from '@/components/NiceForm/components/Search';
import Submit from '@/components/NiceForm/components/Submit'; import Submit from '@/components/NiceForm/components/Submit';
import DateSelect from '@/components/NiceForm/components/DateSelect';
import { FORM_FILTER_PATH } from '@/formSchema/const'; import { FORM_FILTER_PATH } from '@/formSchema/const';
import { ORDER_TYPE2 } from '@/constants';
import { getBillsDetailSchema, orderBillSchema } from './schema'; import { getBillsDetailSchema, orderBillSchema } from './schema';
const addSchemaAction = createFormActions(); const addSchemaAction = createFormActions();
...@@ -33,37 +35,32 @@ const AddBills: React.FC<{}> = (props: any) => { ...@@ -33,37 +35,32 @@ const AddBills: React.FC<{}> = (props: any) => {
title: '订单号', title: '订单号',
align: 'center', align: 'center',
dataIndex: 'orderNo', dataIndex: 'orderNo',
key: 'orderNo',
}, },
{ {
title: '订单商品摘要', title: '订单商品摘要',
align: 'center', align: 'center',
dataIndex: 'invoicesAbstract', dataIndex: 'orderThe',
key: 'invoicesAbstract',
}, },
{ {
title: '会员名称', title: '会员名称',
align: 'center', align: 'center',
dataIndex: 'memberName', dataIndex: 'supplyMembersName',
key: 'memberName',
}, },
{ {
title: '下单时间', title: '下单时间',
align: 'center', align: 'center',
dataIndex: 'createTime', dataIndex: 'createTime',
key: 'createTime',
}, },
{ {
title: '订单类型', title: '订单类型',
align: 'center', align: 'center',
dataIndex: 'orderType', dataIndex: 'type',
key: 'orderType', render: text => ORDER_TYPE2[text],
}, },
{ {
title: '订单状态', title: '订单状态',
align: 'center', align: 'center',
dataIndex: 'state', dataIndex: 'externalState',
key: 'state',
}, },
]; ];
...@@ -218,7 +215,8 @@ const AddBills: React.FC<{}> = (props: any) => { ...@@ -218,7 +215,8 @@ const AddBills: React.FC<{}> = (props: any) => {
// 关联单据弹窗 confirm // 关联单据弹窗 confirm
const handleConfirmRelation = () => { const handleConfirmRelation = () => {
console.log('relationRowCtl.selectRow', relationRowCtl.selectRow);
setVisibleRelation(false);
}; };
// 获取关联类型列表数据 // 获取关联类型列表数据
...@@ -296,21 +294,27 @@ const AddBills: React.FC<{}> = (props: any) => { ...@@ -296,21 +294,27 @@ const AddBills: React.FC<{}> = (props: any) => {
cancel={() => setVisibleRelation(false)} cancel={() => setVisibleRelation(false)}
visible={visibleRelation} visible={visibleRelation}
columns={orderColumns} columns={orderColumns}
width={960}
rowSelection={relationRowSelection} rowSelection={relationRowSelection}
fetchTableData={params => fetchRelationList(params)} fetchTableData={params => fetchRelationList(params)}
formilyProps={ formilyProps={
{ {
ctx: { ctx: {
schema: orderBillSchema, schema: orderBillSchema,
components: { Search, Submit } , components: {
Search,
Submit,
DateSelect,
},
effects: ($, actions) => { effects: ($, actions) => {
useStateFilterSearchLinkageEffect( useStateFilterSearchLinkageEffect(
$, $,
actions, actions,
'name', 'search',
FORM_FILTER_PATH, FORM_FILTER_PATH,
); );
} },
inline: false,
} }
} }
} }
...@@ -318,8 +322,8 @@ const AddBills: React.FC<{}> = (props: any) => { ...@@ -318,8 +322,8 @@ const AddBills: React.FC<{}> = (props: any) => {
rowKey: 'id', rowKey: 'id',
onRow: (record) => ({ onRow: (record) => ({
onClick: () => { onClick: () => {
// productRowCtl.setSelectRow([record]); relationRowCtl.setSelectRow([record]);
// productRowCtl.setSelectedRowKeys([record.id]); relationRowCtl.setSelectedRowKeys([record.id]);
}, },
}) })
}} }}
......
import { ISchema } from '@formily/antd'; import { ISchema } from '@formily/antd';
import { FORM_FILTER_PATH } from '@/formSchema/const'; import { FORM_FILTER_PATH } from '@/formSchema/const';
import {
ORDER_TYPE2_INQUIRY,
ORDER_TYPE2_DEMAND,
ORDER_TYPE2_SPOT,
ORDER_TYPE2_CENTRALIZED,
ORDER_TYPE2_POINTS,
ORDER_TYPE2_CHANNEL_DIRECT,
ORDER_TYPE2_CHANNEL_SPOT,
ORDER_TYPE2_CHANNEL_POINTS,
ORDER_TYPE2,
} from '@/constants';
export const billsSchema: ISchema = { export const billsSchema: ISchema = {
type: 'object', type: 'object',
...@@ -468,50 +479,58 @@ export const orderBillSchema: ISchema = { ...@@ -468,50 +479,58 @@ export const orderBillSchema: ISchema = {
[FORM_FILTER_PATH]: { [FORM_FILTER_PATH]: {
type: 'object', type: 'object',
'x-component': 'Mega-Layout', 'x-component': 'Mega-Layout',
visible: false,
'x-component-props': { 'x-component-props': {
inline: true, grid: true,
full: true,
autoRow: true,
columns: 3,
}, },
properties: { properties: {
orderNo: { orderNo: {
type: 'string', type: 'string',
'x-component-props': { 'x-component-props': {
placeholder: '订单号(全部)', placeholder: '订单号(全部)',
allowClear: true,
}, },
}, },
invoicesAbstract: { orderThe: {
type: 'string', type: 'string',
'x-component-props': { 'x-component-props': {
placeholder: '订单摘要(全部)', placeholder: '订单摘要(全部)',
allowClear: true,
}, },
}, },
memberName: { supplyMembersName: {
type: 'string', type: 'string',
'x-component-props': { 'x-component-props': {
placeholder: '会员名称(全部)', placeholder: '会员名称(全部)',
allowClear: true,
}, },
}, },
time: { '[startCreateTime, endCreateTime]': {
type: 'string', type: 'string',
'x-component': 'DateSelect',
'x-component-props': { 'x-component-props': {
placeholder: '下单时间(全部)', placeholder: '下单时间(全部)',
allowClear: true,
}, },
enum: [
{ label: '今天', value: 1 },
{ label: '一周内', value: 2 },
{ label: '一个月内', value: 3 },
{ label: '三个月内', value: 4 },
{ label: '六个月内', value: 5 },
{ label: '一年内', value: 6 },
{ label: '一年前', value: 7 },
],
}, },
state: { type: {
type: 'string', type: 'string',
'x-component-props': { 'x-component-props': {
placeholder: '单据状态(全部)', placeholder: '订单类型(全部)',
allowClear: true,
}, },
enum: [], enum: [
{ label: ORDER_TYPE2[ORDER_TYPE2_INQUIRY], value: ORDER_TYPE2_INQUIRY },
{ label: ORDER_TYPE2[ORDER_TYPE2_DEMAND], value: ORDER_TYPE2_DEMAND },
{ label: ORDER_TYPE2[ORDER_TYPE2_SPOT], value: ORDER_TYPE2_SPOT },
{ label: ORDER_TYPE2[ORDER_TYPE2_CENTRALIZED], value: ORDER_TYPE2_CENTRALIZED },
{ label: ORDER_TYPE2[ORDER_TYPE2_POINTS], value: ORDER_TYPE2_POINTS },
{ label: ORDER_TYPE2[ORDER_TYPE2_CHANNEL_DIRECT], value: ORDER_TYPE2_CHANNEL_DIRECT },
{ label: ORDER_TYPE2[ORDER_TYPE2_CHANNEL_SPOT], value: ORDER_TYPE2_CHANNEL_SPOT },
{ label: ORDER_TYPE2[ORDER_TYPE2_CHANNEL_POINTS], value: ORDER_TYPE2_CHANNEL_POINTS },
],
}, },
submit: { submit: {
'x-component': 'Submit', 'x-component': 'Submit',
......
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