Commit 151a7446 authored by XieZhiXiong's avatar XieZhiXiong

完善新增流程

parent b82fa9c8
...@@ -49,9 +49,8 @@ const Relevance = props => { ...@@ -49,9 +49,8 @@ const Relevance = props => {
useEffect(() => { useEffect(() => {
// Table 只能缓存 keys // Table 只能缓存 keys
const rowKeys = value.map(item => item[tableRowKey]); const rowKeys = value.map(item => item[tableRowKey]);
console.log('rowKeys', rowKeys)
rowCtl.setSelectedRowKeys(rowKeys); rowCtl.setSelectedRowKeys(rowKeys);
}, [props.value]); }, [props.value, tableProps.rowKey]);
const handleConfirm = () => { const handleConfirm = () => {
const rows = rowCtl.selectRow; const rows = rowCtl.selectRow;
......
...@@ -181,6 +181,8 @@ const AddMember: React.FC<any> = props => { ...@@ -181,6 +181,8 @@ const AddMember: React.FC<any> = props => {
areas: filtered, areas: filtered,
remark, remark,
detail: rest, detail: rest,
}, {
timeout: 0,
}).then(res => { }).then(res => {
if (res.code !== 1000) { if (res.code !== 1000) {
return; return;
...@@ -212,6 +214,8 @@ const AddMember: React.FC<any> = props => { ...@@ -212,6 +214,8 @@ const AddMember: React.FC<any> = props => {
areas: filtered, areas: filtered,
remark, remark,
detail: rest, detail: rest,
}, {
timeout: 0,
}).then(res => { }).then(res => {
if (res.code !== 1000) { if (res.code !== 1000) {
return; return;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2020-09-16 15:16:47 * @Date: 2020-09-16 15:16:47
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2020-09-24 14:58:10 * @LastEditTime: 2020-09-24 16:02:02
* @Description: 联动逻辑相关 * @Description: 联动逻辑相关
*/ */
import { FormEffectHooks, FormPath } from '@formily/antd'; import { FormEffectHooks, FormPath } from '@formily/antd';
...@@ -288,6 +288,7 @@ export const useBusinessEffects = (context, actions) => { ...@@ -288,6 +288,7 @@ export const useBusinessEffects = (context, actions) => {
} }
linkage.value('relevanceInvoices', undefined); linkage.value('relevanceInvoices', undefined);
linkage.value('invoicesDetailsRequests', []);
linkage.enum('relevanceInvoices', newEnum); linkage.enum('relevanceInvoices', newEnum);
const orderNoVal = getFieldValue('orderNo'); const orderNoVal = getFieldValue('orderNo');
......
...@@ -42,7 +42,11 @@ const { ...@@ -42,7 +42,11 @@ const {
} = FormEffectHooks; } = FormEffectHooks;
const AddBills: React.FC<{}> = (props: any) => { const AddBills: React.FC<{}> = (props: any) => {
const { pageStatus, preview, id } = usePageStatus(); const {
pageStatus,
preview,
id,
} = usePageStatus();
const [visible, setVisible] = useState(false); const [visible, setVisible] = useState(false);
const [productRowSelection, productRowCtl] = useRowSelectionTable({ type: 'checkbox' }); const [productRowSelection, productRowCtl] = useRowSelectionTable({ type: 'checkbox' });
const [billInfo, setBillInfo] = useState(null); const [billInfo, setBillInfo] = useState(null);
...@@ -124,11 +128,6 @@ const AddBills: React.FC<{}> = (props: any) => { ...@@ -124,11 +128,6 @@ const AddBills: React.FC<{}> = (props: any) => {
...rest, ...rest,
invoicesTypeId: 'S001', invoicesTypeId: 'S001',
}); });
console.log({
transactionTime: transactionTime ? moment(transactionTime) : moment(),
orderNo: orderNo ? [{ orderNo }] : [],
...rest,
})
}).finally(() => { }).finally(() => {
setInfoLoading(false); setInfoLoading(false);
}); });
......
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