Commit d1adef5b04e1d9f91d0396b04b09a03a3a36d72f

Authored by Min
1 parent a345d7b2

1.补充弹窗翻译

src/mes/productionExec/noticeModal/index.js
@@ -268,6 +268,13 @@ const firstNoticeModal = _props => { @@ -268,6 +268,13 @@ const firstNoticeModal = _props => {
268 }; 268 };
269 const firstNotice = commonFunc.showLocalMessage(props, 'firstNotice', '首签样通知'); 269 const firstNotice = commonFunc.showLocalMessage(props, 'firstNotice', '首签样通知');
270 const firstNoticeList = commonFunc.showLocalMessage(props, 'firstNoticeList', '版材消耗登记'); 270 const firstNoticeList = commonFunc.showLocalMessage(props, 'firstNoticeList', '版材消耗登记');
  271 + const employeeNameIdTitle = commonFunc.showLocalMessage(props, 'employeeName', '员工名称/工号');
  272 + const btnAll = commonFunc.showLocalMessage(props, 'btnAll', '全部');
  273 + const btnSearch = commonFunc.showLocalMessage(props, 'BtnSearch', '查询');
  274 + const BtnCancel = commonFunc.showLocalMessage(props, 'BtnCancel', '取消');
  275 + const selectRecipient = commonFunc.showLocalMessage(props, 'selectRecipient', '请先选择接收人!');
  276 + const btnSend = commonFunc.showLocalMessage(props, 'btnSend', '确认');
  277 +
271 return ( 278 return (
272 <Modal 279 <Modal
273 title={firstNotice} 280 title={firstNotice}
@@ -303,11 +310,11 @@ const firstNoticeModal = _props =&gt; { @@ -303,11 +310,11 @@ const firstNoticeModal = _props =&gt; {
303 setFilterEmployeeName(""); 310 setFilterEmployeeName("");
304 }} 311 }}
305 > 312 >
306 - 全 部 313 + {btnAll}
307 </Button> 314 </Button>
308 <Input 315 <Input
309 size="large" 316 size="large"
310 - placeholder="员工名称/工号" 317 + placeholder={employeeNameIdTitle}
311 style={{ border: "1px solid #AAA", borderRadius: 5 }} 318 style={{ border: "1px solid #AAA", borderRadius: 5 }}
312 value={employeeName} 319 value={employeeName}
313 onChange={e => { 320 onChange={e => {
@@ -321,7 +328,7 @@ const firstNoticeModal = _props =&gt; { @@ -321,7 +328,7 @@ const firstNoticeModal = _props =&gt; {
321 setFilterEmployeeName(employeeName); 328 setFilterEmployeeName(employeeName);
322 }} 329 }}
323 > 330 >
324 - 查 询 331 + {btnSearch}
325 </Button> 332 </Button>
326 </div> 333 </div>
327 </div> 334 </div>
@@ -336,14 +343,14 @@ const firstNoticeModal = _props =&gt; { @@ -336,14 +343,14 @@ const firstNoticeModal = _props =&gt; {
336 onClick={() => props.setModalShow(false)} 343 onClick={() => props.setModalShow(false)}
337 style={{ background: "#ff7800", "border-color": "#ff7800" }} 344 style={{ background: "#ff7800", "border-color": "#ff7800" }}
338 > 345 >
339 - 取 消 346 + {BtnCancel}
340 </Button> 347 </Button>
341 <Button 348 <Button
342 size="large" 349 size="large"
343 type="primary" 350 type="primary"
344 onClick={() => { 351 onClick={() => {
345 if (commonUtils.isEmptyObject(tablePropsCollect.data)) { 352 if (commonUtils.isEmptyObject(tablePropsCollect.data)) {
346 - message.info("请先选择接收人!"); 353 + message.info(selectRecipient);
347 return; 354 return;
348 } 355 }
349 356
@@ -360,7 +367,7 @@ const firstNoticeModal = _props =&gt; { @@ -360,7 +367,7 @@ const firstNoticeModal = _props =&gt; {
360 }); 367 });
361 }} 368 }}
362 > 369 >
363 - 发 送 370 + {btnSend}
364 </Button> 371 </Button>
365 </div> 372 </div>
366 </div> 373 </div>