Commit 151a7446 authored by XieZhiXiong's avatar XieZhiXiong

完善新增流程

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