You need to sign in before continuing.

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