Commit e0ae125d20e2f256162d34c06ed87646ef6378c6
1 parent
0745d912
1.生产执行增加机台呼叫,呼叫/回收新托盘列表为历史记录和执行状态,每条记录后加撤销按钮,右上角按钮为新增申请,点击弹框
Showing
2 changed files
with
54 additions
and
3 deletions
src/components/Common/CommonTable/index.js
| ... | ... | @@ -3945,6 +3945,8 @@ class CommonTableRc extends React.Component { |
| 3945 | 3945 | }) |
| 3946 | 3946 | : ""} |
| 3947 | 3947 | {props.choosePlate()} |
| 3948 | + {props.chooseNewcallmaterialTask()} | |
| 3949 | + {props.chooseNewemptytrayTask()} | |
| 3948 | 3950 | </div> |
| 3949 | 3951 | </div> |
| 3950 | 3952 | ), |
| ... | ... | @@ -9158,8 +9160,55 @@ const useCommonTableEvent = props => { |
| 9158 | 9160 | </Button> |
| 9159 | 9161 | ); |
| 9160 | 9162 | }; |
| 9161 | - addState = { ...addState, choosePlate }; | |
| 9162 | 9163 | |
| 9164 | + const chooseNewcallmaterialTask = () => { | |
| 9165 | + if (props.name !== "callmaterial") return ""; | |
| 9166 | + | |
| 9167 | + const btnConfig = props.config?.gdsconfigformslave?.find(item => item.sControlName === "newcallmaterialTask"); | |
| 9168 | + if (!btnConfig) return ""; | |
| 9169 | + | |
| 9170 | + const { showName } = btnConfig; | |
| 9171 | + | |
| 9172 | + return ( | |
| 9173 | + <Button | |
| 9174 | + type="primary" | |
| 9175 | + size="large" | |
| 9176 | + onClick={() => { | |
| 9177 | + props.parentProps.onExecInstructSet({ | |
| 9178 | + btnConfig, | |
| 9179 | + }); | |
| 9180 | + }} | |
| 9181 | + > | |
| 9182 | + {showName} | |
| 9183 | + </Button> | |
| 9184 | + ); | |
| 9185 | + }; | |
| 9186 | + | |
| 9187 | + const chooseNewemptytrayTask = () => { | |
| 9188 | + if (props.name !== "emptytray") return ""; | |
| 9189 | + | |
| 9190 | + const btnConfig = props.config?.gdsconfigformslave?.find(item => item.sControlName === "newemptytrayTask"); | |
| 9191 | + if (!btnConfig) return ""; | |
| 9192 | + | |
| 9193 | + const { showName } = btnConfig; | |
| 9194 | + | |
| 9195 | + return ( | |
| 9196 | + <Button | |
| 9197 | + type="primary" | |
| 9198 | + size="large" | |
| 9199 | + onClick={() => { | |
| 9200 | + props.parentProps.onExecInstructSet({ | |
| 9201 | + btnConfig, | |
| 9202 | + }); | |
| 9203 | + }} | |
| 9204 | + > | |
| 9205 | + {showName} | |
| 9206 | + </Button> | |
| 9207 | + ); | |
| 9208 | + }; | |
| 9209 | + addState = { ...addState, choosePlate }; | |
| 9210 | + addState = { ...addState, chooseNewcallmaterialTask }; | |
| 9211 | + addState = { ...addState, chooseNewemptytrayTask }; | |
| 9163 | 9212 | // 复制数据到下一行 |
| 9164 | 9213 | const handleCopyToNextLine = ({ index, sName, isAll }) => { |
| 9165 | 9214 | const { data = [], name } = props; | ... | ... |
src/mes/productionExec/productionExecMain/index.js
| ... | ... | @@ -599,7 +599,7 @@ const ProductionExecContentByType = props => { |
| 599 | 599 | message.warning("未获取到iInterface字段!"); |
| 600 | 600 | return ""; |
| 601 | 601 | } |
| 602 | - const type0 = | |
| 602 | + const type0 = | |
| 603 | 603 | props.workOrderInfoData?.[0]?.bZZ |
| 604 | 604 | ? "type10" |
| 605 | 605 | : "type0"; |
| ... | ... | @@ -761,7 +761,9 @@ const ProductionExecContent0 = props => { |
| 761 | 761 | "palletBatchMaterial", |
| 762 | 762 | "workerOrderBatchMaterial", |
| 763 | 763 | "plateInfo", |
| 764 | - "jpfpbtable0" | |
| 764 | + "jpfpbtable0", | |
| 765 | + 'callmaterial', | |
| 766 | + 'emptytray' | |
| 765 | 767 | ]; |
| 766 | 768 | const formDataNew = props.formData.filter( |
| 767 | 769 | item => item.sGrd && btnTableList.includes(item.sGrd) | ... | ... |