Commit eee7a4108ee2c94cf05c0db310fb0c46db05a1d6

Authored by Min
1 parent 65c63161

1.处理btnRepair确定时进行必填校验

src/components/Common/SlaveMemo.js
... ... @@ -11,6 +11,7 @@ import ShowType from './CommonComponent';/* 通用方法 */
11 11 import AntdDraggableModal from '../Common/AntdDraggableModal';
12 12 import moment from 'moment';
13 13 import * as commonFunc from "@/components/Common/commonFunc";
  14 +import * as commonBusiness from '@/components/Common/commonBusiness'; /* 单据业务功能 */
14 15  
15 16 const { TextArea } = Input;
16 17 const FormItem = Form.Item;
... ... @@ -64,6 +65,12 @@ export default class SlaveMemo extends Component {
64 65  
65 66 let valueKey = '';
66 67 if (commonUtils.isNotEmptyArr(slaveMemoConfig) && commonUtils.isNotEmptyObject(masterData)) {
  68 + const newConfig = {
  69 + gdsconfigformslave :slaveMemoConfig
  70 + }
  71 + if (!commonBusiness.validateTable(newConfig, [masterData], this.props)) {
  72 + return;
  73 + }
67 74 // eslint-disable-next-line array-callback-return
68 75 slaveMemoConfig.map((item) => {
69 76 /**
... ...