Commit 5dedc92c authored by Bill's avatar Bill

fix: 修复加工能力 新增加工生产通知单参数问题,以及翻译bug

parent fa6b1050
...@@ -76,7 +76,7 @@ const Info = () => { ...@@ -76,7 +76,7 @@ const Info = () => {
</div> </div>
{/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */} {/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */}
<div style={cacheStyle} id="noticeDetails"> <div style={cacheStyle} id="noticeDetails">
<MellowCard title="{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"> <MellowCard title={intl.formatMessage({id: 'handling.detail.noticeDetail'})}>
<Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/> <Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/>
</MellowCard> </MellowCard>
</div> </div>
......
...@@ -19,7 +19,7 @@ export const orderColumns = [ ...@@ -19,7 +19,7 @@ export const orderColumns = [
}, },
{ {
title: `${intl.formatMessage({id: 'handling.purchasing.member'})}`, title: `${intl.formatMessage({id: 'handling.purchasing.member'})}`,
dataIndex: 'memberName' dataIndex: 'buyerMemberName'
}, },
{ {
title: `${intl.formatMessage({id: 'handling.order.time'})}`, title: `${intl.formatMessage({id: 'handling.order.time'})}`,
...@@ -28,24 +28,27 @@ export const orderColumns = [ ...@@ -28,24 +28,27 @@ export const orderColumns = [
}, },
{ {
title: `${intl.formatMessage({id: 'handling.order.statusName'})}`, title: `${intl.formatMessage({id: 'handling.order.statusName'})}`,
dataIndex: 'externalStateName', dataIndex: 'outerStatusName',
}, },
{ {
title: `${intl.formatMessage({id: 'handling.order.type'})}`, title: `${intl.formatMessage({id: 'handling.order.type'})}`,
dataIndex: 'type', dataIndex: 'orderTypeName',
render: (text, record) => { // render: (text, record) => {
// :1.询价采购2.需求采购3.现货采购4.集采5.渠道直采6.渠道现货7.积分兑换8.渠道积分兑换 // // :1.询价采购2.需求采购3.现货采购4.集采5.渠道直采6.渠道现货7.积分兑换8.渠道积分兑换
return ( // return (
<span>{ORDER_TYPE[text] || ''}</span> // <span>{ORDER_TYPE[text] || ''}</span>
) // )
} // }
} }
] ]
export const orderProductColumns = [ export const orderProductColumns = [
{ {
title: `${intl.formatMessage({id: 'handling.assign.add.product.id'})}/${intl.formatMessage({id: 'handling.assign.add.product.name'})}`, title: `${intl.formatMessage({id: 'handling.assign.add.product.id'})}/${intl.formatMessage({id: 'handling.assign.add.product.name'})}`,
dataIndex: 'id' dataIndex: 'id',
render: (text, record) => {
return `${record.orderProductId}/${record.name}`;
}
}, },
{ {
title: `${intl.formatMessage({id: 'handling.assign.add.product.category'})}`, title: `${intl.formatMessage({id: 'handling.assign.add.product.category'})}`,
......
...@@ -471,7 +471,7 @@ const Create = () => { ...@@ -471,7 +471,7 @@ const Create = () => {
const isOrderSource = source === ORDER_SOURCE const isOrderSource = source === ORDER_SOURCE
const productList = isOrderSource ? formActions.getFieldValue('detail.layout1.orderList') : formActions.getFieldValue('detail.layout1.productList'); const productList = isOrderSource ? formActions.getFieldValue('detail.layout1.orderList') : formActions.getFieldValue('detail.layout1.productList');
// const productList = formActions.getFieldValue('detail.layout1.productList'); // const productList = formActions.getFieldValue('detail.layout1.productList');
const { isHasTax, taxRate, processNum, processUnitPrice, enclosure, productProps } = values; const { isHasTax, taxRate = 0, processNum, processUnitPrice, enclosure, productProps } = values;
let shouldShowConfirmMsg = false; let shouldShowConfirmMsg = false;
const newData = productList.map((_item) => { const newData = productList.map((_item) => {
...@@ -561,7 +561,7 @@ const Create = () => { ...@@ -561,7 +561,7 @@ const Create = () => {
onSelect: onSelectChange, onSelect: onSelectChange,
getCheckboxProps: (record: GetOrderCommonEnhancePageResponseDetail['products'][0]) => { getCheckboxProps: (record: GetOrderCommonEnhancePageResponseDetail['products'][0]) => {
return { return {
disabled: record.purchaseCount - record.processNum <= 0, // Column configuration not to be checked disabled: +record.quantity - +record.enhanceCount <= 0, // Column configuration not to be checked
} }
}, },
onSelectAll: async (selected: boolean, selectedRows: GetOrderCommonEnhancePageResponseDetail['products'], changeRows: any[]) => { onSelectAll: async (selected: boolean, selectedRows: GetOrderCommonEnhancePageResponseDetail['products'], changeRows: any[]) => {
...@@ -754,6 +754,7 @@ const Create = () => { ...@@ -754,6 +754,7 @@ const Create = () => {
receiverAddressId, receiverAddressId,
...rest ...rest
} = value; } = value;
console.log(rest);
const formatDeliveryDate = moment(deliveryDate, 'YYYY-MM-DD').valueOf(); const formatDeliveryDate = moment(deliveryDate, 'YYYY-MM-DD').valueOf();
const orderListFormated = orderList?.map((_item) => { const orderListFormated = orderList?.map((_item) => {
...@@ -821,7 +822,7 @@ const Create = () => { ...@@ -821,7 +822,7 @@ const Create = () => {
let restData: RestDataType = {} as RestDataType let restData: RestDataType = {} as RestDataType
if (deliveryType === 1) { if (deliveryType === 1) {
restData = { restData = {
...rest, // ...rest,
receiveAddress, receiveAddress,
receiveUserName, receiveUserName,
receiveUserTel, receiveUserTel,
...@@ -846,6 +847,7 @@ const Create = () => { ...@@ -846,6 +847,7 @@ const Create = () => {
deliveryType, deliveryType,
source, source,
...restData, ...restData,
...rest,
outerTaskType: +processEnumRes.processEnum outerTaskType: +processEnumRes.processEnum
} }
const service = isEdit ? postEnhanceSupplierToBeAddUpdate : postEnhanceSupplierToBeAddAdd const service = isEdit ? postEnhanceSupplierToBeAddUpdate : postEnhanceSupplierToBeAddAdd
......
...@@ -277,15 +277,15 @@ const createSchema: ISchema = { ...@@ -277,15 +277,15 @@ const createSchema: ISchema = {
width: 65, width: 65,
}, },
}, },
mainPic: { // mainPic: {
title: intl.formatMessage({id: 'handling.assign.add.product.img'}), // title: intl.formatMessage({id: 'handling.assign.add.product.img'}),
type: "string", // type: "string",
"x-component": 'ReadOnly', // "x-component": 'ReadOnly',
'x-component-props': { // 'x-component-props': {
isImage: true, // isImage: true,
}, // },
editable: false, // editable: false,
}, // },
name: { name: {
title: intl.formatMessage({id: 'handling.assign.add.product.img'}), title: intl.formatMessage({id: 'handling.assign.add.product.img'}),
type: "string", type: "string",
...@@ -384,15 +384,15 @@ const createSchema: ISchema = { ...@@ -384,15 +384,15 @@ const createSchema: ISchema = {
width: 65, width: 65,
}, },
}, },
mainPic: { // mainPic: {
title: intl.formatMessage({id: 'handling.assign.add.product.img'}), // title: intl.formatMessage({id: 'handling.assign.add.product.img'}),
type: "string", // type: "string",
editable: false, // editable: false,
"x-component": 'ReadOnly', // "x-component": 'ReadOnly',
'x-component-props': { // 'x-component-props': {
isImage: true, // isImage: true,
}, // },
}, // },
name: { name: {
title: intl.formatMessage({id: 'handling.assign.add.product.name'}), title: intl.formatMessage({id: 'handling.assign.add.product.name'}),
type: "string", type: "string",
......
...@@ -118,11 +118,11 @@ export type SubmitDataType = { ...@@ -118,11 +118,11 @@ export type SubmitDataType = {
} }
export type RestDataType = { export type RestDataType = {
processMemberId: number; // processMemberId: number;
processName: string; // processName: string;
processRoleId: number; // processRoleId: number;
// source: 1 | 2 | number & {}; // // source: 1 | 2 | number & {};
summary: string; // summary: string;
receiveAddress?: string, receiveAddress?: string,
receiveUserName?: string, receiveUserName?: string,
receiveUserTel?: string, receiveUserTel?: string,
......
...@@ -176,7 +176,8 @@ const processStock: React.FC<{}> = () => { ...@@ -176,7 +176,8 @@ const processStock: React.FC<{}> = () => {
), ),
[OuterAndInnerStatus.pending_exam_add_process]: ( [OuterAndInnerStatus.pending_exam_add_process]: (
<Popconfirm <Popconfirm
title={intl.formatMessage({id: 'handling.query.processStock.exam.deliverNo'}).replace(/{(.*?)}/, record.deliveryNo)} title={intl.formatMessage({id: 'handling.query.processStock.exam.deliverNo'}, {deliveryNo: record.deliveryNo })}
// title={intl.formatMessage({id: 'handling.query.processStock.exam.deliverNo'}).replace(/{(.*?)}/, record.deliveryNo)}
visible={visibleID === record.id} visible={visibleID === record.id}
placement="left" placement="left"
okText={intl.formatMessage({id: 'common.button.confirm'})} okText={intl.formatMessage({id: 'common.button.confirm'})}
...@@ -203,7 +204,7 @@ const processStock: React.FC<{}> = () => { ...@@ -203,7 +204,7 @@ const processStock: React.FC<{}> = () => {
), ),
[OuterAndInnerStatus.pending_exam_process_in_warehouse]: ( [OuterAndInnerStatus.pending_exam_process_in_warehouse]: (
<Popconfirm <Popconfirm
title={intl.formatMessage({id: 'handling.query.processStock.exam.storageNo'}).replace(/{(.*?)}/, record.storageNo)} title={intl.formatMessage({id: 'handling.query.processStock.exam.storageNo'}, { storageNo: record.storageNo })}
visible={visibleID === record.id} visible={visibleID === record.id}
placement="left" placement="left"
okText={intl.formatMessage({id: 'common.button.confirm'})} okText={intl.formatMessage({id: 'common.button.confirm'})}
......
...@@ -87,7 +87,7 @@ const Info = () => { ...@@ -87,7 +87,7 @@ const Info = () => {
</div> </div>
{/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */} {/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */}
<div style={cacheStyle} id="noticeDetails"> <div style={cacheStyle} id="noticeDetails">
<MellowCard title="{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"> <MellowCard title={intl.formatMessage({id: 'handling.detail.noticeDetail'})}>
<Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/> <Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/>
</MellowCard> </MellowCard>
</div> </div>
......
...@@ -67,7 +67,7 @@ const Info = () => { ...@@ -67,7 +67,7 @@ const Info = () => {
</div> </div>
{/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */} {/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */}
<div style={cacheStyle} id="noticeDetails"> <div style={cacheStyle} id="noticeDetails">
<MellowCard title="{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"> <MellowCard title={intl.formatMessage({id: 'handling.detail.noticeDetail'})}>
<Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/> <Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/>
</MellowCard> </MellowCard>
</div> </div>
......
...@@ -40,7 +40,7 @@ const AllQuery = () => { ...@@ -40,7 +40,7 @@ const AllQuery = () => {
{ {
record.supplierInnerStatus === TO_BE_EXAM_STORAGE && ( record.supplierInnerStatus === TO_BE_EXAM_STORAGE && (
<Popconfirm <Popconfirm
title={intl.formatMessage({id: 'handling.query.processStock.exam.storageNo'}).replace(/{(.*?)}/, record.storageNo)} title={intl.formatMessage({id: 'handling.query.processStock.exam.storageNo'}, { storageNo: record.storageNo })}
placement="left" placement="left"
okText={intl.formatMessage({id: 'common.button.confirm'})} okText={intl.formatMessage({id: 'common.button.confirm'})}
cancelText={intl.formatMessage({id: 'common.button.cancel'})} cancelText={intl.formatMessage({id: 'common.button.cancel'})}
......
...@@ -102,7 +102,7 @@ const Info = () => { ...@@ -102,7 +102,7 @@ const Info = () => {
</div> </div>
{/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */} {/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */}
<div style={cacheStyle} id="noticeDetails"> <div style={cacheStyle} id="noticeDetails">
<MellowCard title="{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"> <MellowCard title={intl.formatMessage({id: 'handling.detail.noticeDetail'})}>
<Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/> <Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/>
</MellowCard> </MellowCard>
</div> </div>
......
...@@ -75,7 +75,7 @@ const Info = () => { ...@@ -75,7 +75,7 @@ const Info = () => {
</div> </div>
{/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */} {/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */}
<div style={cacheStyle} id="noticeDetails"> <div style={cacheStyle} id="noticeDetails">
<MellowCard title="{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"> <MellowCard title={intl.formatMessage({id: 'handling.detail.noticeDetail'})}>
<Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/> <Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/>
</MellowCard> </MellowCard>
</div> </div>
......
...@@ -71,7 +71,7 @@ const Info = () => { ...@@ -71,7 +71,7 @@ const Info = () => {
</div> </div>
{/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */} {/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */}
<div style={cacheStyle} id="noticeDetails"> <div style={cacheStyle} id="noticeDetails">
<MellowCard title="{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"> <MellowCard title={intl.formatMessage({id: 'handling.detail.noticeDetail'})}>
<Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/> <Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/>
</MellowCard> </MellowCard>
</div> </div>
......
...@@ -121,7 +121,7 @@ export const productColumn = [ ...@@ -121,7 +121,7 @@ export const productColumn = [
return ( return (
<div> <div>
{/* <p>{numFormat((purchaseCount))}</p> */} {/* <p>{numFormat((purchaseCount))}</p> */}
<p>{record.unit}</p> <span>{record.unit}</span>
</div> </div>
) )
} }
......
...@@ -82,7 +82,7 @@ const Info = () => { ...@@ -82,7 +82,7 @@ const Info = () => {
</div> </div>
{/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */} {/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */}
<div style={cacheStyle} id="noticeDetails"> <div style={cacheStyle} id="noticeDetails">
<MellowCard title="{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"> <MellowCard title={intl.formatMessage({id: 'handling.detail.noticeDetail'})}>
<Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/> <Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/>
</MellowCard> </MellowCard>
</div> </div>
......
...@@ -60,7 +60,7 @@ const Info = () => { ...@@ -60,7 +60,7 @@ const Info = () => {
</div> </div>
{/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */} {/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */}
<div style={cacheStyle} id="noticeDetails"> <div style={cacheStyle} id="noticeDetails">
<MellowCard title="{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"> <MellowCard title={intl.formatMessage({id: 'handling.detail.noticeDetail'})}>
<Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/> <Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/>
</MellowCard> </MellowCard>
</div> </div>
......
...@@ -75,7 +75,7 @@ const Info = () => { ...@@ -75,7 +75,7 @@ const Info = () => {
</div> </div>
{/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */} {/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */}
<div style={cacheStyle} id="noticeDetails"> <div style={cacheStyle} id="noticeDetails">
<MellowCard title="{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"> <MellowCard title={intl.formatMessage({id: 'handling.detail.noticeDetail'})}>
<Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/> <Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/>
</MellowCard> </MellowCard>
</div> </div>
......
...@@ -146,7 +146,7 @@ const Info = () => { ...@@ -146,7 +146,7 @@ const Info = () => {
</div> </div>
{/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */} {/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */}
<div style={cacheStyle} id="noticeDetails"> <div style={cacheStyle} id="noticeDetails">
<MellowCard title="{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"> <MellowCard title={intl.formatMessage({id: 'handling.detail.noticeDetail'})}>
<Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/> <Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/>
</MellowCard> </MellowCard>
</div> </div>
......
...@@ -75,7 +75,7 @@ const Info = () => { ...@@ -75,7 +75,7 @@ const Info = () => {
</div> </div>
{/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */} {/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */}
<div style={cacheStyle} id="noticeDetails"> <div style={cacheStyle} id="noticeDetails">
<MellowCard title="{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"> <MellowCard title={intl.formatMessage({id: 'handling.detail.noticeDetail'})}>
<Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/> <Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/>
</MellowCard> </MellowCard>
</div> </div>
......
...@@ -130,7 +130,7 @@ const Info = () => { ...@@ -130,7 +130,7 @@ const Info = () => {
</div> </div>
{/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */} {/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */}
<div style={cacheStyle} id="noticeDetails"> <div style={cacheStyle} id="noticeDetails">
<MellowCard title="{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"> <MellowCard title={intl.formatMessage({id: 'handling.detail.noticeDetail'})}>
<Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/> <Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/>
</MellowCard> </MellowCard>
</div> </div>
......
...@@ -104,7 +104,7 @@ const Info = () => { ...@@ -104,7 +104,7 @@ const Info = () => {
</div> </div>
{/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */} {/* {intl.formatMessage({id: 'handling.detail.noticeDetail'})} */}
<div style={cacheStyle} id="noticeDetails"> <div style={cacheStyle} id="noticeDetails">
<MellowCard title="{intl.formatMessage({id: 'handling.detail.noticeDetail'})}"> <MellowCard title={intl.formatMessage({id: 'handling.detail.noticeDetail'})}>
<Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/> <Table rowKey={"id"} dataSource={initialValue?.details} columns={columns}/>
</MellowCard> </MellowCard>
</div> </div>
......
...@@ -51,7 +51,7 @@ const AllQuery = () => { ...@@ -51,7 +51,7 @@ const AllQuery = () => {
{ {
record.processInnerStatus === PENDING_VERIFY_PROCESS_DELIVERY && ( record.processInnerStatus === PENDING_VERIFY_PROCESS_DELIVERY && (
<Popconfirm <Popconfirm
title={intl.formatMessage({id: 'handling.query.processStock.exam.deliverNo'}).replace(/{deliveryNo}/, record.deliverNo)} title={intl.formatMessage({id: 'handling.query.processStock.exam.deliverNo'}, {deliveryNo: record.deliveryNo })}
// visible={visibleID === record.id} // visible={visibleID === record.id}
placement="left" placement="left"
okText={intl.formatMessage({id: 'common.button.confirm'})} okText={intl.formatMessage({id: 'common.button.confirm'})}
......
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