Commit eee7a4108ee2c94cf05c0db310fb0c46db05a1d6

Authored by Min
1 parent 65c63161

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

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