Commit 0c86c5c5c78cdda35e8341f689d9df9e906028b6
1 parent
ddee6076
暂停不要填原因;
Showing
1 changed file
with
11 additions
and
11 deletions
src/mes/scheduledTasks/machineTasks/index.js
| ... | ... | @@ -834,7 +834,7 @@ const TaskConfirmModal = props => { |
| 834 | 834 | title={<span style={{ fontSize: 22 }}>提示!</span>} |
| 835 | 835 | open={taskConfirmModalVisible} |
| 836 | 836 | width={500} |
| 837 | - height={370} | |
| 837 | + height={250} | |
| 838 | 838 | className="mesCommonModal" |
| 839 | 839 | footer={ |
| 840 | 840 | <Space> |
| ... | ... | @@ -844,10 +844,10 @@ const TaskConfirmModal = props => { |
| 844 | 844 | type="primary" |
| 845 | 845 | className={styles.btnZt} |
| 846 | 846 | onClick={() => { |
| 847 | - if (!pauseValue.trim()) { | |
| 848 | - message.warning("请先输入暂停原因!"); | |
| 849 | - return; | |
| 850 | - } | |
| 847 | + // if (!pauseValue.trim()) { | |
| 848 | + // message.warning("请先输入暂停原因!"); | |
| 849 | + // return; | |
| 850 | + // } | |
| 851 | 851 | props.pauseCallback(pauseValue.trim()); |
| 852 | 852 | }} |
| 853 | 853 | > |
| ... | ... | @@ -875,10 +875,10 @@ const TaskConfirmModal = props => { |
| 875 | 875 | type="primary" |
| 876 | 876 | className={styles.btnZt} |
| 877 | 877 | onClick={() => { |
| 878 | - if (!pauseValue.trim()) { | |
| 879 | - message.warning("请先输入暂停原因!"); | |
| 880 | - return; | |
| 881 | - } | |
| 878 | + // if (!pauseValue.trim()) { | |
| 879 | + // message.warning("请先输入暂停原因!"); | |
| 880 | + // return; | |
| 881 | + // } | |
| 882 | 882 | if (props.itemClickRef.current?.data) |
| 883 | 883 | props.onTableBtnClick({ |
| 884 | 884 | ...(props.itemClickRef.current?.data || {}), |
| ... | ... | @@ -897,7 +897,7 @@ const TaskConfirmModal = props => { |
| 897 | 897 | onCancel={handleClose} |
| 898 | 898 | > |
| 899 | 899 | <div className={styles.taskConfirmModal}>{taskConfirmModalMsg}</div> |
| 900 | - <div className={styles.pauseReason}> | |
| 900 | + {/* <div className={styles.pauseReason}> | |
| 901 | 901 | <div className={styles.pauseTitle}>暂停原因</div> |
| 902 | 902 | <Input.TextArea |
| 903 | 903 | placeholder="请输入暂停原因" |
| ... | ... | @@ -906,7 +906,7 @@ const TaskConfirmModal = props => { |
| 906 | 906 | value={pauseValue} |
| 907 | 907 | onChange={e => setPauseValue(e.target.value)} |
| 908 | 908 | /> |
| 909 | - </div> | |
| 909 | + </div> */} | |
| 910 | 910 | </Modal> |
| 911 | 911 | ); |
| 912 | 912 | }; | ... | ... |