Commit cd17f112ae74e633b985d3745636be86572cd911
1 parent
f5675e24
同步劲嘉
Showing
2 changed files
with
14 additions
and
3 deletions
src/mes/common/RunningStatus/index.js
| ... | ... | @@ -26,6 +26,13 @@ const sTypeJson = { |
| 26 | 26 | sType7: ["不正常待机", "red", "redTd"], |
| 27 | 27 | sType8: ["设备保养(协助类)", "blue", "blueTd"], |
| 28 | 28 | sType9: ["设备维修", "blue", "blueTd"], |
| 29 | + sType10: ["设备保养", "blue", "blueTd"], | |
| 30 | + sType11: ["材料异常", "red", "redTd"], | |
| 31 | + sType12: ["工艺异常", "red", "redTd"], | |
| 32 | + sType13: ["其他异常", "red", "redTd"], | |
| 33 | + sType14: ["设备异常", "red", "redTd"], | |
| 34 | + sType15: ["其他类型", "blue", "blueTd"], | |
| 35 | + sType16: ["制程异常", "red", "red"], | |
| 29 | 36 | "": ["其它", "blue", "blueTd"] |
| 30 | 37 | }; |
| 31 | 38 | ... | ... |
src/mes/indexMes/index.js
| ... | ... | @@ -869,11 +869,10 @@ const SystemFunComponent = () => { |
| 869 | 869 | // 调用通用过程 |
| 870 | 870 | const [form] = Form.useForm(); |
| 871 | 871 | const handleProcedureCall = async (params, iFlag) => { |
| 872 | - | |
| 873 | 872 | const extraValues = await new Promise(resolve => { |
| 874 | 873 | form.setFieldsValue({ |
| 875 | 874 | tReportDate: moment(), |
| 876 | - sTeamType: props.app.sShift | |
| 875 | + // sTeamType: props.app.sShift | |
| 877 | 876 | }); |
| 878 | 877 | Modal.confirm({ |
| 879 | 878 | title: "切换手动", |
| ... | ... | @@ -888,7 +887,12 @@ const SystemFunComponent = () => { |
| 888 | 887 | /> |
| 889 | 888 | </Form.Item> |
| 890 | 889 | <Form.Item label="班次" name="sTeamType"> |
| 891 | - <Select placeholder="请选择"> | |
| 890 | + <Select | |
| 891 | + placeholder="请选择" | |
| 892 | + labelInValue | |
| 893 | + // 或者使用defaultValue确保初始显示正确 | |
| 894 | + defaultValue={{ value: props.app.sShift, label: props.app.sShift === 1 || props.app.sShift === '1' ? '白班' : '夜班' }} | |
| 895 | + > | |
| 892 | 896 | <Select.Option value="1">白班</Select.Option> |
| 893 | 897 | <Select.Option value="2">夜班</Select.Option> |
| 894 | 898 | </Select> | ... | ... |