Commit cd17f112ae74e633b985d3745636be86572cd911

Authored by qmj
1 parent f5675e24

同步劲嘉

src/mes/common/RunningStatus/index.js
@@ -26,6 +26,13 @@ const sTypeJson = { @@ -26,6 +26,13 @@ const sTypeJson = {
26 sType7: ["不正常待机", "red", "redTd"], 26 sType7: ["不正常待机", "red", "redTd"],
27 sType8: ["设备保养(协助类)", "blue", "blueTd"], 27 sType8: ["设备保养(协助类)", "blue", "blueTd"],
28 sType9: ["设备维修", "blue", "blueTd"], 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 "": ["其它", "blue", "blueTd"] 36 "": ["其它", "blue", "blueTd"]
30 }; 37 };
31 38
src/mes/indexMes/index.js
@@ -869,11 +869,10 @@ const SystemFunComponent = () => { @@ -869,11 +869,10 @@ const SystemFunComponent = () => {
869 // 调用通用过程 869 // 调用通用过程
870 const [form] = Form.useForm(); 870 const [form] = Form.useForm();
871 const handleProcedureCall = async (params, iFlag) => { 871 const handleProcedureCall = async (params, iFlag) => {
872 -  
873 const extraValues = await new Promise(resolve => { 872 const extraValues = await new Promise(resolve => {
874 form.setFieldsValue({ 873 form.setFieldsValue({
875 tReportDate: moment(), 874 tReportDate: moment(),
876 - sTeamType: props.app.sShift 875 + // sTeamType: props.app.sShift
877 }); 876 });
878 Modal.confirm({ 877 Modal.confirm({
879 title: "切换手动", 878 title: "切换手动",
@@ -888,7 +887,12 @@ const SystemFunComponent = () => { @@ -888,7 +887,12 @@ const SystemFunComponent = () => {
888 /> 887 />
889 </Form.Item> 888 </Form.Item>
890 <Form.Item label="班次" name="sTeamType"> 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 <Select.Option value="1">白班</Select.Option> 896 <Select.Option value="1">白班</Select.Option>
893 <Select.Option value="2">夜班</Select.Option> 897 <Select.Option value="2">夜班</Select.Option>
894 </Select> 898 </Select>