Commit 48492225d2b813baad10cdd01114f79b45e01027

Authored by chenxt
1 parent 18e50f00

手工机台

src/components/Common/CommonComponent/index.js
@@ -3051,7 +3051,7 @@ export default class CommonComponent extends Component { @@ -3051,7 +3051,7 @@ export default class CommonComponent extends Component {
3051 /* 页面输出 */ 3051 /* 页面输出 */
3052 const className = iColValue === 24 ? 'input24' : iColValue === 18 ? 'input18' : iColValue === 12 ? 'input12' : 'changeClassName'; 3052 const className = iColValue === 24 ? 'input24' : iColValue === 18 ? 'input18' : iColValue === 12 ? 'input12' : 'changeClassName';
3053 const mesInputBlue = enabled && !this.props.bNoMesBlue && this.firstDataIndex !== 'b'; 3053 const mesInputBlue = enabled && !this.props.bNoMesBlue && this.firstDataIndex !== 'b';
3054 - const {bManual = false} = this.props?.app?.userinfo 3054 + const {bManual = false} = this.props?.app?.userinfo || {}
3055 return ( 3055 return (
3056 <div ref={this.myRef} className={`${className} ${mesInputBlue ? "mesInputBlue" : ""}`} style={componentStyle}> 3056 <div ref={this.myRef} className={`${className} ${mesInputBlue ? "mesInputBlue" : ""}`} style={componentStyle}>
3057 {mesInputBlue ? <div className={`mesInputBlueBg ${bManual ? 'manualOverride' : ''}`} /> : ''} 3057 {mesInputBlue ? <div className={`mesInputBlueBg ${bManual ? 'manualOverride' : ''}`} /> : ''}
src/components/Common/CommonTable/index.js
@@ -12283,7 +12283,7 @@ const useGetTableBtnOprSetting = props =&gt; { @@ -12283,7 +12283,7 @@ const useGetTableBtnOprSetting = props =&gt; {
12283 props.parentProps.onExecInstructSet({ 12283 props.parentProps.onExecInstructSet({
12284 btnConfig: { 12284 btnConfig: {
12285 ...btnsConfig, 12285 ...btnsConfig,
12286 - sInstruct: btnsConfig.sButtonParam 12286 + sInstruct: btnsConfig.sInstruct
12287 }, 12287 },
12288 nextProps: { 12288 nextProps: {
12289 ...props 12289 ...props
@@ -12307,7 +12307,7 @@ const useGetTableBtnOprSetting = props =&gt; { @@ -12307,7 +12307,7 @@ const useGetTableBtnOprSetting = props =&gt; {
12307 } else if (btnType.includes("del")) { 12307 } else if (btnType.includes("del")) {
12308 if (bManual) { 12308 if (bManual) {
12309 resultTemp.mesDel = params => { 12309 resultTemp.mesDel = params => {
12310 - const { record } = params; 12310 + const { record, tableName } = params;
12311 const { sDefault: str } = btnTableDelConfig; 12311 const { sDefault: str } = btnTableDelConfig;
12312 let disabled = props.getBtnDisabled({ 12312 let disabled = props.getBtnDisabled({
12313 str, 12313 str,
@@ -12328,14 +12328,18 @@ const useGetTableBtnOprSetting = props =&gt; { @@ -12328,14 +12328,18 @@ const useGetTableBtnOprSetting = props =&gt; {
12328 const btnsConfig = 12328 const btnsConfig =
12329 gdsconfigformslave.find( 12329 gdsconfigformslave.find(
12330 item => item.sControlName?.toLowerCase().includes("btnenventdel") 12330 item => item.sControlName?.toLowerCase().includes("btnenventdel")
12331 - ) || {}; 12331 + ) || {};
12332 props.parentProps.onExecInstructSet({ 12332 props.parentProps.onExecInstructSet({
12333 btnConfig: { 12333 btnConfig: {
12334 ...btnsConfig, 12334 ...btnsConfig,
12335 - sInstruct: btnsConfig.sButtonParam 12335 + sInstruct: btnsConfig.sInstruct
  12336 + },
  12337 + tableLineParams: {
  12338 + ...params
12336 }, 12339 },
12337 nextProps: { 12340 nextProps: {
12338 - ...props 12341 + ...props,
  12342 + [`${tableName}SelectedRowKeys`]: [record.sId]
12339 } 12343 }
12340 }); 12344 });
12341 }} 12345 }}
@@ -12404,7 +12408,7 @@ const useGetTableBtnOprSetting = props =&gt; { @@ -12404,7 +12408,7 @@ const useGetTableBtnOprSetting = props =&gt; {
12404 props.parentProps.onExecInstructSet({ 12408 props.parentProps.onExecInstructSet({
12405 btnConfig: { 12409 btnConfig: {
12406 ...btnsConfig, 12410 ...btnsConfig,
12407 - sInstruct: btnsConfig.sButtonParam 12411 + sInstruct: btnsConfig.sInstruct
12408 }, 12412 },
12409 nextProps: { 12413 nextProps: {
12410 ...props 12414 ...props
src/mes/teamInfo/index.js
@@ -33,7 +33,7 @@ const teamInfoSid = &quot;17086669370007136849817837261000&quot;; @@ -33,7 +33,7 @@ const teamInfoSid = &quot;17086669370007136849817837261000&quot;;
33 let loginInfo = {}; 33 let loginInfo = {};
34 // 业务层 34 // 业务层
35 const useTeamInfoEvent = props => { 35 const useTeamInfoEvent = props => {
36 - const { formData, mesRefresh = true} = props; 36 + const { formData, mesRefresh = true } = props;
37 useEffect( 37 useEffect(
38 async () => { 38 async () => {
39 if (commonUtils.isNotEmptyArr(formData) && mesRefresh) { 39 if (commonUtils.isNotEmptyArr(formData) && mesRefresh) {
@@ -494,11 +494,7 @@ const TeamInfo = baseProps =&gt; { @@ -494,11 +494,7 @@ const TeamInfo = baseProps =&gt; {
494 const foremanConfig = props.slaveConfig?.gdsconfigformslave.find(item => item.sName === 'sForemanName') || {}; 494 const foremanConfig = props.slaveConfig?.gdsconfigformslave.find(item => item.sName === 'sForemanName') || {};
495 const ipqcConfig = props.slaveConfig?.gdsconfigformslave.find(item => item.sName === "sIpqcName") || {}; 495 const ipqcConfig = props.slaveConfig?.gdsconfigformslave.find(item => item.sName === "sIpqcName") || {};
496 496
497 - let faceProps = {  
498 - ...props,  
499 - faceModal,  
500 - setFaceModal  
501 - }; 497 +
502 498
503 const operationBarProps = { 499 const operationBarProps = {
504 ...props, 500 ...props,
@@ -508,6 +504,12 @@ const TeamInfo = baseProps =&gt; { @@ -508,6 +504,12 @@ const TeamInfo = baseProps =&gt; {
508 const tableHeight = bManual ? "calc(88vh - 80px)" : "calc(25vh - 80px)"; 504 const tableHeight = bManual ? "calc(88vh - 80px)" : "calc(25vh - 80px)";
509 let bManualTableProps 505 let bManualTableProps
510 let bManualSlaveTableProps 506 let bManualSlaveTableProps
  507 + let faceProps = {
  508 + ...props,
  509 + faceModal,
  510 + setFaceModal,
  511 +
  512 + };
511 if (bManual) { 513 if (bManual) {
512 const tableBaseProps = commonBusiness.getTableTypes("slave", props); 514 const tableBaseProps = commonBusiness.getTableTypes("slave", props);
513 const slaveTableBaseProps = commonBusiness.getTableTypes("slave1", props); 515 const slaveTableBaseProps = commonBusiness.getTableTypes("slave1", props);
@@ -519,12 +521,15 @@ const TeamInfo = baseProps =&gt; { @@ -519,12 +521,15 @@ const TeamInfo = baseProps =&gt; {
519 } 521 }
520 bManualSlaveTableProps = { 522 bManualSlaveTableProps = {
521 ...slaveTableBaseProps, 523 ...slaveTableBaseProps,
522 - data: slaveTableBaseProps?.data?.filter(item=>item.sParentId === bManualTableProps.selectedRowKeys?.[0]), 524 + data: slaveTableBaseProps?.data?.filter(item => item.sParentId === bManualTableProps.selectedRowKeys?.[0]),
523 fixedHeight: "calc(50vh - 126px)" 525 fixedHeight: "calc(50vh - 126px)"
524 - 526 + }
  527 + faceProps = {
  528 + ...faceProps,
  529 + gdsconfigformslave: slaveTableBaseProps?.config?.gdsconfigformslave,
525 } 530 }
526 } 531 }
527 - 532 +
528 const handleSave = (props) => { 533 const handleSave = (props) => {
529 props.onExecInstructSet({ 534 props.onExecInstructSet({
530 btnConfig: { 535 btnConfig: {
@@ -592,7 +597,7 @@ const TeamInfo = baseProps =&gt; { @@ -592,7 +597,7 @@ const TeamInfo = baseProps =&gt; {
592 <Button 597 <Button
593 type="primary" 598 type="primary"
594 onClick={() => { 599 onClick={() => {
595 - 600 +
596 if (props.masterData && !props.masterData.length) { 601 if (props.masterData && !props.masterData.length) {
597 return message.warning('请先添加一条班组信息!') 602 return message.warning('请先添加一条班组信息!')
598 } 603 }
@@ -757,7 +762,7 @@ const TeamInfo = baseProps =&gt; { @@ -757,7 +762,7 @@ const TeamInfo = baseProps =&gt; {
757 762
758 // 人脸登录弹窗 763 // 人脸登录弹窗
759 const FaceLoginModal = props => { 764 const FaceLoginModal = props => {
760 - const { faceModal, setFaceModal } = props; 765 + const { faceModal, setFaceModal, gdsconfigformslave } = props;
761 if (!faceModal) return ""; 766 if (!faceModal) return "";
762 767
763 // 人脸登录成功回调 768 // 人脸登录成功回调
@@ -765,14 +770,28 @@ const FaceLoginModal = props =&gt; { @@ -765,14 +770,28 @@ const FaceLoginModal = props =&gt; {
765 const { sSubsidiaryId: sId, sEmployeeNo } = e.dataset.rows[0]; 770 const { sSubsidiaryId: sId, sEmployeeNo } = e.dataset.rows[0];
766 // ZY023 771 // ZY023
767 const { slave1Data = [] } = props 772 const { slave1Data = [] } = props
768 - const faceData = {... e.dataset.rows[0],handleType:'add', sParentId: props.slaveSelectedRowKeys?.[0] || ''}; 773 + const faceData = { ...e.dataset.rows[0], handleType: 'add', sParentId: props.slaveSelectedRowKeys?.[0] || '' };
769 const list = [ 774 const list = [
770 ...slave1Data, 775 ...slave1Data,
771 faceData, 776 faceData,
772 - 777 +
773 ] 778 ]
774 props.onSaveState({ slave1Data: list }); 779 props.onSaveState({ slave1Data: list });
  780 + const btnsConfig =
  781 + gdsconfigformslave.find(
  782 + item => item.sControlName?.toLowerCase().includes("btnenventinsertwork")
  783 + ) || {};
  784 + props.onExecInstructSet({
  785 + btnConfig: {
  786 + ...btnsConfig,
  787 + sInstruct: btnsConfig.sInstruct
  788 + },
  789 + nextProps: {
  790 + ...props,
  791 + }
  792 + });
775 setFaceModal(false) 793 setFaceModal(false)
  794 +
776 // handleSubmit(value); 795 // handleSubmit(value);
777 }; 796 };
778 797