Commit 9c1079bc authored by wzy's avatar wzy

fix: 进销存bug修改

parent ab6b380b
...@@ -37,9 +37,10 @@ ...@@ -37,9 +37,10 @@
.ant-row { .ant-row {
.ant-col-2 { .ant-col-2 {
.ant-btn { .ant-btn {
position: absolute; // position: absolute;
top: 0; // top: 0;
right: 0; // right: 0;
margin-bottom: 8px;
} }
} }
} }
......
...@@ -77,7 +77,7 @@ export const useFormDetail = () => { ...@@ -77,7 +77,7 @@ export const useFormDetail = () => {
FormEffectHooks.onFieldValueChange$(element).subscribe(state => { FormEffectHooks.onFieldValueChange$(element).subscribe(state => {
// 过滤出title字符串 // 过滤出title字符串
const _graphKeys = Object.keys(ctx.getFormGraph()) const _graphKeys = Object.keys(ctx.getFormGraph())
const _hasKeyIndex = _graphKeys.findIndex(item => item.indexOf('products') !== -1) const _hasKeyIndex = _graphKeys.findIndex(item => item.indexOf(element) !== -1)
if(_hasKeyIndex >= 0) { if(_hasKeyIndex >= 0) {
setCountAmountMap(() => ({ setCountAmountMap(() => ({
...countAmountMap, ...countAmountMap,
......
...@@ -350,6 +350,7 @@ ...@@ -350,6 +350,7 @@
.ant-btn-link { .ant-btn-link {
white-space: normal !important; white-space: normal !important;
padding-left: unset !important;
} }
......
...@@ -332,6 +332,9 @@ const BillsForm: React.FC<BillsFormProps> = ({ ...@@ -332,6 +332,9 @@ const BillsForm: React.FC<BillsFormProps> = ({
}); });
// 注入表单完成进度 // 注入表单完成进度
formContext.useAttachmentChangeForContext(actions); formContext.useAttachmentChangeForContext(actions);
formContext.useAnchorCountChangeForContext(actions, [
'invoicesDetailsDTOList',
]);
}} }}
onSubmit={handleSubmit} onSubmit={handleSubmit}
actions={addSchemaAction} actions={addSchemaAction}
......
...@@ -176,6 +176,7 @@ const DocumentDetail: ISchema = { ...@@ -176,6 +176,7 @@ const DocumentDetail: ISchema = {
'x-component-props': { 'x-component-props': {
id: 'DocumentDetail', id: 'DocumentDetail',
title: intl.formatMessage({id: 'stockSellStorage.danjumingxi'}), title: intl.formatMessage({id: 'stockSellStorage.danjumingxi'}),
showTotal: true,
}, },
properties: { properties: {
MEGA_LAYOUT2: { MEGA_LAYOUT2: {
......
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