Commit 6b68e3b581df1e042e31707d7a8c6c8e5e69764b

Authored by Min
1 parent 1c7d254d

1.修改下料表格的产量字段的时,调用指令集必须等指令集执行成功才将下料,打印按钮回置

src/components/Common/CommonComponent/index.js
... ... @@ -326,7 +326,7 @@ export default class CommonComponent extends Component {
326 326 }
327 327  
328 328 const { name, record, onQuickFieldUpdate, showConfig } = this.props;
329   -
  329 +
330 330 // 定义需要在弹窗中特殊处理的字段列表
331 331 const modalFields = [
332 332 'dAdvanceReportQty',
... ... @@ -334,7 +334,7 @@ export default class CommonComponent extends Component {
334 334 'dAdvanceMadeUpFei',
335 335 'iAdvanceLaminatingPaper'
336 336 ];
337   -
  337 +
338 338 // 判断是否是特定字段并且在模态框中,如果是,就不调用 onQuickFieldUpdate
339 339 const isInModal = event?.target ? this.bInModal(event.target) : false;
340 340 console.log('字段:', showConfig?.sName, '是否在弹窗中:', isInModal);
... ...
src/components/Common/CommonTable/index.js
... ... @@ -4742,7 +4742,7 @@ class CommonTableRc extends React.Component {
4742 4742 >
4743 4743 {tableBtnsConfig.map(config => {
4744 4744 const { showName, btnBgColor, sDefault: str } = config;
4745   - const disabled = props.getBtnDisabled({
  4745 + let disabled = props.getBtnDisabled({
4746 4746 str,
4747 4747 defaultValue: false,
4748 4748 record
... ... @@ -4755,7 +4755,13 @@ class CommonTableRc extends React.Component {
4755 4755 ) {
4756 4756 bLoading = true;
4757 4757 }
4758   - return (
  4758 + if( !disabled && window.instructSetLock &&
  4759 + ((config.sControlName === 'BtnEventBlanking' && config.showName === '下料') ||
  4760 + (config.sControlName === 'BtnPrint1' && config.showName === '标条') )
  4761 + ) {
  4762 + disabled = true;
  4763 + }
  4764 + return (
4759 4765 <Button
4760 4766 disabled={disabled}
4761 4767 size="large"
... ...