Ben Lin
2024-09-11 08f1b081e006f0f3b83bcbdf47f4ef494e18450b
包装规则更新,保存修改,重量范围
已修改8个文件
已添加2个文件
519 ■■■■ 文件已修改
src/api/tigerapi/mes/mesApi.ts 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/tigerapi/mes/pkgrule.ts 24 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/tigerapi/mes/router.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/tigerapi/model/mesModel.ts 185 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/icons/Collection.svg 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tigerprojects/bas/checkrule/checkrule.data.ts 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tigerprojects/system/lowcode/entityts/BAS_PKG_DTL.ts 252 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tigerprojects/system/lowcode/entityts/BAS_PKG_RULE.ts 19 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tigerprojects/system/lowcode/entityts/MES_SHIFT_SYS.ts 24 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/tigerprojects/system/lowcode/high/dtl.vue 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/api/tigerapi/mes/mesApi.ts
@@ -4,7 +4,7 @@
 * @version: 
 * @Date: 2024-04-27 15:54:50
 * @LastEditors: Ben Lin
 * @LastEditTime: 2024-08-04 18:03:42
 * @LastEditTime: 2024-09-11 00:20:02
 */
export enum mesApi {
  GetRoute = '/MES/GetRoute',
@@ -17,6 +17,7 @@
  SaveRoute = '/MES/SaveRoute',
  DeleteRoute = '/MES/DeleteRoute',
  SaveMesWo = '/MES/SaveMesWo',
  SaveBasPkgRule = '/MES/SaveBasPkgRule',
  DeleteMesWo = '/MES/DeleteMesWo',
  SaveMesWs = '/MES/SaveMesWs',
  DeleteMesWs = '/MES/DeleteMesWs',
src/api/tigerapi/mes/pkgrule.ts
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,24 @@
/*
 * @Description: åŒ…装规则
 * @Author: Ben Lin
 * @version:
 * @Date: 2024-09-11 00:14:59
 * @LastEditors: Ben Lin
 * @LastEditTime: 2024-09-11 00:35:31
 */
import { BizBasPkgRuleInput } from "../model/mesModel";
import { genAction } from "../system";
import { mesApi } from "./mesApi";
import { defHttp } from "/@/utils/http/axios";
export const SaveBasPkgRule = async (params: BizBasPkgRuleInput) => {
  const data = await defHttp.post(
    { url: mesApi.SaveBasPkgRule, params: genAction('', params) },
    {
      errorMessageMode: 'none',
      isTransformResponse: false,
    },
  );
  return data;
};
src/api/tigerapi/mes/router.ts
@@ -5,6 +5,7 @@
import { mesApi } from './mesApi';
import { useUserStore } from '/@/store/modules/user';
import { DelProdRotInput, DelWoRotInput, RoutePageListGetResultModel, RoutelistPageParams } from '../model/mesModel';
import { buildUUID } from '/@/utils/uuid';
/**
 * @description: èŽ·å–å·¥è‰ºè·¯çº¿åˆ—è¡¨
src/api/tigerapi/model/mesModel.ts
@@ -270,25 +270,25 @@
}
export interface BAS_DEFECT {
    ID: string;
    CREATE_TIME: Date;
    CREATE_USER: string;
    UPDATE_TIME: Date;
    UPDATE_USER: string;
    GHOST_ROW: boolean;
    AUTH_ORG: string;
    AUTH_PROD: string;
    AUTH_WH: string;
    DFT_CODE: string;
    DFT_NAME: string;
    DFTG_CODE: string;
    DFT_LEVEL: number;
    REMARK: string;
  ID: string;
  CREATE_TIME: Date;
  CREATE_USER: string;
  UPDATE_TIME: Date;
  UPDATE_USER: string;
  GHOST_ROW: boolean;
  AUTH_ORG: string;
  AUTH_PROD: string;
  AUTH_WH: string;
  DFT_CODE: string;
  DFT_NAME: string;
  DFTG_CODE: string;
  DFT_LEVEL: number;
  REMARK: string;
}
export interface SaveWoBatchInput {
    Wo: BIZ_MES_WO;
    WoBatch: BIZ_MES_WO_BATCH;
  Wo: BIZ_MES_WO;
  WoBatch: BIZ_MES_WO_BATCH;
}
export type OperPageListGetResultModel = BasicFetchResult<OperListItem>;
@@ -320,59 +320,59 @@
}
export interface BAS_LABEL_VAR_WO {
    ID: string;
    CREATE_TIME: Date;
    CREATE_USER: string;
    UPDATE_TIME: Date;
    UPDATE_USER: string;
    GHOST_ROW: boolean;
    AUTH_ORG: string;
    AUTH_PROD: string;
    AUTH_WH: string;
    LABEL_ID: string;
    VAR_NAME: string;
    VAR_VALUE: string;
    REMARK: string;
    LABEL_VIEW_PATH: string;
    WORK_ORDER: string;
    CUST_CODE: string;
    PROD_CODE: string;
  ID: string;
  CREATE_TIME: Date;
  CREATE_USER: string;
  UPDATE_TIME: Date;
  UPDATE_USER: string;
  GHOST_ROW: boolean;
  AUTH_ORG: string;
  AUTH_PROD: string;
  AUTH_WH: string;
  LABEL_ID: string;
  VAR_NAME: string;
  VAR_VALUE: string;
  REMARK: string;
  LABEL_VIEW_PATH: string;
  WORK_ORDER: string;
  CUST_CODE: string;
  PROD_CODE: string;
}
export interface BAS_LABEL_TEMP {
    ID: string;
    CREATE_TIME: Date;
    CREATE_USER: string;
    UPDATE_TIME: Date;
    UPDATE_USER: string;
    GHOST_ROW: boolean;
    AUTH_ORG: string;
    AUTH_PROD: string;
    AUTH_WH: string;
    LABEL_CODE: string;
    LABEL_NAME: string;
    TEMP_TYPE: number;
    TEMP_PATH: string;
    CUST_CODE: string;
    PROD_CODE: string;
    REMARK: string;
  ID: string;
  CREATE_TIME: Date;
  CREATE_USER: string;
  UPDATE_TIME: Date;
  UPDATE_USER: string;
  GHOST_ROW: boolean;
  AUTH_ORG: string;
  AUTH_PROD: string;
  AUTH_WH: string;
  LABEL_CODE: string;
  LABEL_NAME: string;
  TEMP_TYPE: number;
  TEMP_PATH: string;
  CUST_CODE: string;
  PROD_CODE: string;
  REMARK: string;
}
export interface BAS_LABEL_VAR {
    ID: string;
    CREATE_TIME: Date;
    CREATE_USER: string;
    UPDATE_TIME: Date;
    UPDATE_USER: string;
    GHOST_ROW: boolean;
    AUTH_ORG: string;
    AUTH_PROD: string;
    AUTH_WH: string;
    LABEL_ID: string;
    VAR_NAME: string;
    VAR_TYPE: number;
    VAR_VALUE: string;
    REMARK: string;
  ID: string;
  CREATE_TIME: Date;
  CREATE_USER: string;
  UPDATE_TIME: Date;
  UPDATE_USER: string;
  GHOST_ROW: boolean;
  AUTH_ORG: string;
  AUTH_PROD: string;
  AUTH_WH: string;
  LABEL_ID: string;
  VAR_NAME: string;
  VAR_TYPE: number;
  VAR_VALUE: string;
  REMARK: string;
}
export interface BasLabelTempInput {
@@ -380,3 +380,62 @@
  LabelVars: BAS_LABEL_VAR[];
  LabelVarWos: BAS_LABEL_VAR_WO[];
}
export interface BAS_PKG_RULE {
  ID: string;
  CREATE_TIME: Date;
  CREATE_USER: string;
  UPDATE_TIME: Date;
  UPDATE_USER: string;
  GHOST_ROW: boolean;
  AUTH_ORG: string;
  AUTH_PROD: string;
  AUTH_WH: string;
  RULE_CODE: string;
  RULE_NAME: string;
  IS_ACTIVE: string;
  REMARK: string;
}
export interface BAS_PKG_DTL {
    ID: string;
    CREATE_TIME: Date;
    CREATE_USER: string;
    UPDATE_TIME: Date;
    UPDATE_USER: string;
    GHOST_ROW: boolean;
    AUTH_ORG: string;
    AUTH_PROD: string;
    AUTH_WH: string;
    PKG_RULE_ID: string;
    PKG_CODE: string;
    PKG_LEVEL: number;
    PKG_QTY: number;
    LABEL_CODE: string;
    REMARK: string;
}
export interface BAS_PKG_PROD {
  ID: string;
  CREATE_TIME: Date;
  CREATE_USER: string;
  UPDATE_TIME: Date;
  UPDATE_USER: string;
  GHOST_ROW: boolean;
  AUTH_ORG: string;
  AUTH_PROD: string;
  AUTH_WH: string;
  PKG_RULE_ID: string;
  ITEM_CODE: string;
  MIN_WEIGHT: number;
  MIN_UNIT: string;
  MAX_WEIGHT: number;
  MAX_UNIT: string;
  REMARK: string;
}
export interface BizBasPkgRuleInput {
  PkgRule: BAS_PKG_RULE;
  PkgDtl: BAS_PKG_DTL[];
  PkgProd: BAS_PKG_PROD[];
}
src/assets/icons/Collection.svg
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1724571813913" class="icon" viewBox="0 0 1139 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="79424" xmlns:xlink="http://www.w3.org/1999/xlink" width="222.4609375" height="200"><path d="M1137.834714 172.991567a54.677861 54.677861 0 0 0-10.495264-47.048392A57.923232 57.923232 0 0 0 1079.645779 113.872672h-112.601094V46.535965C967.044685 20.876656 938.671411 0 903.845353 0h-669.950885C198.992494 0 170.809008 20.876656 170.809008 46.535965V113.872672H56.936336v0.512427c-31.941284 2.315411-56.936336 22.148235-56.936336 46.30822V977.407099c0 24.141006 24.919136 43.97383 56.936336 46.308219v0.227746h1025.423408a108.501677 108.501677 0 0 0 44.998684-22.774535 41.145992 41.145992 0 0 0 10.514244-34.313631zM227.157001 56.936336h683.406839v739.508108H227.157001z" fill="#079610" p-id="79425"></path><path d="M824.589973 625.730331H316.471133c-26.171736 0-32.036178 12.73476-32.036178 28.468168s5.807506 28.468168 32.036178 28.468168h508.11884c26.171736 0 28.733871-12.73476 28.733871-28.468168s-2.562135-28.468168-28.733871-28.468168z" fill="#079610" p-id="79426"></path><path d="M356.535335 403.868409l189.616977 165.115374a40.045223 40.045223 0 0 0 44.543194 0l189.673913-164.982523a29.606895 29.606895 0 0 0 13.588805-34.161801 43.005912 43.005912 0 0 0-34.161801-25.146882 58.986044 58.986044 0 0 0-46.422093 10.001816l-87.302381 72.119359V205.597109c0-19.339375-30.897452-34.920953-57.050209-34.920953s-57.18306 15.638514-57.18306 34.920953v221.083792l-88.175405-72.119359a60.162728 60.162728 0 0 0-65.875341 0.854045 28.75285 28.75285 0 0 0-1.252599 48.452822z" fill="#079610" p-id="79427"></path></svg>
src/views/tigerprojects/bas/checkrule/checkrule.data.ts
@@ -552,7 +552,7 @@
      };
    },
    rules: [
      {
      {
        required: true,
        // @ts-ignore
        validator: async (rule, value) => {
src/views/tigerprojects/system/lowcode/entityts/BAS_PKG_DTL.ts
@@ -4,7 +4,7 @@
 * @version:
 * @Date: 2024-06-19 20:34:27
 * @LastEditors: Ben Lin
 * @LastEditTime: 2024-07-06 23:15:08
 * @LastEditTime: 2024-09-11 00:47:09
 */
import { Ref, ref } from 'vue';
@@ -13,6 +13,9 @@
import { isNullOrEmpty, isNullOrUnDef } from '/@/utils/is';
import { useDrawer } from '/@/components/Drawer';
import { EditOperation, Search, custDel } from '../data';
import { dateUtil } from '/@/utils/dateUtil';
import { SaveBasPkgRule } from '/@/api/tigerapi/mes/pkgrule';
import { BAS_PKG_RULE } from '/@/api/tigerapi/model/mesModel';
function _default(): any[] {
  const ActionColumn: BasicColumn = {
@@ -57,22 +60,36 @@
     * @param {*} u
     * @return {*}
     */
    EditOperation: (data: Ref<any[]>, d, u, item) => {
    EditOperation: (data: Ref<any[]>, d, u, name) => {
      //更新
      var _data = data.value[item].map((item) => {
        if (item['ID'] == d.ID)
          return {
            ...item,
            PKG_CODE: d.PKG_CODE,
            PKG_NAME: d.PKG_NAME,
            PKG_LEVEL: d.PKG_LEVEL,
            PKG_QTY: d.PKG_QTY,
            LABEL_CODE: d.LABEL_CODE,
            REMARK: d.REMARK,
          };
      var _data = data.value[name].map((item) => {
        if (item['ID'] == d.ID) {
          if (name == 'BAS_PKG_DTL') {
            return {
              ...item,
              PKG_CODE: d.PKG_CODE,
              PKG_NAME: d.PKG_NAME,
              PKG_LEVEL: d.PKG_LEVEL,
              PKG_QTY: d.PKG_QTY,
              LABEL_CODE: d.LABEL_CODE,
              REMARK: d.REMARK,
            };
          }
          if (name == 'BAS_PKG_PROD') {
            return {
              ...item,
              ITEM_CODE: d.ITEM_CODE,
              MIN_WEIGHT: d.MIN_WEIGHT,
              MIN_UNIT: d.MIN_UNIT,
              MAX_WEIGHT: d.MAX_WEIGHT,
              MAX_UNIT: d.MAX_UNIT,
              REMARK: d.REMARK,
            };
          }
        }
        return item;
      });
      EditOperation(data, d, u, item, _data);
      EditOperation(data, d, u, name, _data);
    },
    /**
     * @description: é«˜çº§è¡¨å•和详情页面返回主页面的url
@@ -197,6 +214,9 @@
        {
          BAS_PKG_DTL: useDrawer(),
        },
        {
          BAS_PKG_PROD: useDrawer(),
        },
      ];
    },
    /**
@@ -229,6 +249,28 @@
            fixed: 'right',
          }, //自定义操作列
        }),
        BAS_PKG_PROD: useTable({
          title: '列表信息',
          dataSource: data.value['BAS_PKG_PROD'],
          columns: baseColumns['BAS_PKG_PROD'],
          formConfig: {
            labelWidth: 140,
            schemas: searchForms['BAS_PKG_PROD'],
            submitFunc: () => Search('BAS_PKG_PROD', data, args[0]), //自定义查询提交按钮的方法,触发查询提交事件
          },
          useSearchForm: true,
          showTableSetting: false,
          bordered: true,
          canResize: true,
          showIndexColumn: false,
          actionColumn: {
            width: 130,
            title: '操作',
            dataIndex: 'action',
            slots: { customRender: 'action' },
            fixed: 'right',
          }, //自定义操作列
        }),
      };
    },
    /**
@@ -245,6 +287,8 @@
            data = d.data.value[d.type];
          }
          break;
        case 'BAS_PKG_PROD':
          break;
      }
      return data;
    },
@@ -259,11 +303,27 @@
        pageContent: '这里可以添加和修改包装规则和包装信息。',
        tableTitle: {
          BAS_PKG_DTL: '包装信息管理',
          BAS_PKG_PROD: '称重范围管理',
        },
      };
    },
    GetUseForm: () => {
      return {};
    },
    /**
     * @description: æäº¤æ‰€æœ‰
     * @return {*}
     */
    SubmitAll: (data: Ref<any[]>, keyFieldValues: Ref<{}>, ...args) => {
      SaveBasPkgRule({
        PkgDtl: data.value['BAS_PKG_DTL'],
        PkgProd: data.value['BAS_PKG_PROD'],
        PkgRule: {} as unknown as BAS_PKG_RULE
      }).then((action) => {
        if (action.IsSuccessed) {
          args[0]();
        }
      });
    },
  };
@@ -317,6 +377,16 @@
        },
      },
    ] as FormSchema[],
    BAS_PKG_PROD: [
      {
        field: 'ITEM_CODE',
        label: '物料编码',
        component: 'Input',
        colProps: {
          span: 8,
        },
      },
    ] as FormSchema[],
  };
  const baseColumns = {
@@ -348,6 +418,49 @@
      {
        title: '包装数量',
        dataIndex: 'PKG_QTY',
      },
      {
        title: '标签模板',
        dataIndex: 'LABEL_CODE',
      },
      {
        title: '包装规则ID',
        dataIndex: 'PKG_RULE_ID',
        ifShow: false,
      },
      {
        title: '备注',
        dataIndex: 'REMARK',
      },
      {
        title: '更新时间',
        dataIndex: 'UPDATE_TIME',
      },
      {
        title: '更新人',
        dataIndex: 'UPDATE_USER',
      },
    ] as BasicColumn[],
    BAS_PKG_PROD: [
      {
        title: '物料编码',
        dataIndex: 'ITEM_CODE',
      },
      {
        title: '称重下限',
        dataIndex: 'MIN_WEIGHT',
      },
      {
        title: '称重下限单位',
        dataIndex: 'MIN_UNIT',
      },
      {
        title: '称重上限',
        dataIndex: 'MAX_WEIGHT',
      },
      {
        title: '称重上限单位',
        dataIndex: 'MAX_UNIT',
      },
      {
        title: '包装规则ID',
@@ -391,10 +504,12 @@
          span: 24,
        },
        componentProps: ({ formModel }) => {
          formModel.PKG_LEVEL =
            _data['BAS_PKG_DTL'].reduce((max, item) => {
              return max < Number(item.PKG_LEVEL) ? Number(item.PKG_LEVEL) : max;
            }, 0) + 1;
          if (isNullOrEmpty(formModel.PKG_LEVEL) || Number(formModel.PKG_LEVEL) == 0) {
            formModel.PKG_LEVEL =
              _data['BAS_PKG_DTL'].reduce((max, item) => {
                return max < Number(item.PKG_LEVEL) ? Number(item.PKG_LEVEL) : max;
              }, 0) + 1;
          }
          return {
            onChange: (e) => {},
          };
@@ -444,6 +559,24 @@
        },
      },
      {
        field: 'LABEL_CODE',
        label: '模板编码',
        component: 'Input',
        show: true,
        // required: true,
        colProps: {
          span: 22,
        },
      },
      {
        field: 'BAS_LABEL_TEMP1PSelect_0', //按低代码配置的规则,实体名+序号+PSelect_0,序号用来区分多个的时候,PSelect_0这是个固定后缀
        label: '1',
        defaultValue: 'BAS_LABEL_TEMP',
        component: 'Input',
        colProps: { span: 2 },
        colSlot: 'BAS_LABEL_TEMP1add', //按低代码配置的规则,实体名+序号+add,序号用来区分多个的时候,add这是个固定后缀
      },
      {
        label: '包装名称',
        field: 'PKG_NAME',
        component: 'Input',
@@ -470,6 +603,89 @@
        show: false,
      },
    ] as FormSchema[],
    BAS_PKG_PROD: [
      {
        label: '包装规则ID',
        field: 'PKG_RULE_ID',
        component: 'Input',
        colProps: {
          span: 24,
        },
        dynamicDisabled: ({ values }) => {
          return true;
        },
      },
      {
        label: '物料编码',
        field: 'ITEM_CODE',
        component: 'Input',
        required: true,
        colProps: {
          span: 22,
        },
      },
      {
        field: 'BAS_ITEM1PSelect_0', //按低代码配置的规则,实体名+序号+PSelect_0,序号用来区分多个的时候,PSelect_0这是个固定后缀
        label: '1',
        defaultValue: 'BAS_ITEM',
        component: 'Input',
        colProps: { span: 2 },
        colSlot: 'BAS_ITEM1add', //按低代码配置的规则,实体名+序号+add,序号用来区分多个的时候,add这是个固定后缀
      },
      {
        label: '称重下限',
        field: 'MIN_WEIGHT',
        component: 'Input',
        required: true,
        colProps: {
          span: 24,
        },
      },
      {
        label: '称重下限单位',
        field: 'MIN_UNIT',
        required: true,
        component: 'Input',
        colProps: {
          span: 24,
        },
      },
      {
        label: '称重上限',
        field: 'MAX_WEIGHT',
        required: true,
        component: 'Input',
        colProps: {
          span: 24,
        },
      },
      {
        label: '称重上限单位',
        field: 'MAX_UNIT',
        required: true,
        component: 'Input',
        colProps: {
          span: 24,
        },
      },
      {
        label: '备注',
        field: 'REMARK',
        component: 'Input',
        colProps: {
          span: 24,
        },
      },
      {
        label: 'ID',
        field: 'ID',
        component: 'Input',
        colProps: {
          span: 24,
        },
        show: false,
      },
    ] as FormSchema[],
  };
  return [methods, ActionColumn];
src/views/tigerprojects/system/lowcode/entityts/BAS_PKG_RULE.ts
@@ -4,7 +4,7 @@
 * @version:
 * @Date: 2024-06-19 20:34:27
 * @LastEditors: Ben Lin
 * @LastEditTime: 2024-07-06 23:26:47
 * @LastEditTime: 2024-09-10 23:49:55
 */
import { ActionItem, BasicColumn } from '/@/components/Table';
@@ -43,11 +43,18 @@
          drawers: [
            {
              name: 'BAS_PKG_DTL', //实际的实体名
              dataType: 'V_BAS_PKG_DTL', //如果这里给了值,则会替换name的实体名去查义数据库
              dataType: 'V_BAS_PKG_DTL', //如果这里给了值,则会替换name的实体名去查询数据库
              code: 'PKG_RULE_ID',
              type: 'one',
              keyName: 'BAS_PKG_DTL',
              order: 'PKG_LEVEL',
            },
            {
              name: 'BAS_PKG_PROD', //实际的实体名
              code: 'PKG_RULE_ID',
              type: 'one',
              keyName: 'BAS_PKG_PROD',
              order: 'ITEM_CODE',
            },
          ], //drawers是右边弹出增改侧框的名字列表
        },
@@ -85,6 +92,7 @@
      Title: `编辑包装规则:${params['record']['RULE_CODE']}`,
      IsExist: 'RULE_CODE',
      IsID: true,
      crudColSlots: {BAS_PKG_DTL:['BAS_LABEL_TEMP1add'], BAS_PKG_PROD:['BAS_ITEM1add']} /* å¢žåˆ æ”¹è¡¨å•字段的插槽列表,一般用于弹出选择框按钮 */,
      drawers: [
        {
          name: 'BAS_PKG_DTL',
@@ -94,6 +102,13 @@
          keyName: 'BAS_PKG_DTL',
          order: 'PKG_LEVEL',
        },
        {
          name: 'BAS_PKG_PROD', //实际的实体名
          code: 'PKG_RULE_ID',
          type: 'one',
          keyName: 'BAS_PKG_DTL',
          order: 'ITEM_CODE',
        },
      ], //drawers是右边弹出增改侧框的名字列表
    };
    // å°†å¯¹è±¡è½¬æ¢ä¸ºJSON字符串并保存到sessionStorage
src/views/tigerprojects/system/lowcode/entityts/MES_SHIFT_SYS.ts
@@ -43,7 +43,13 @@
          IsID: false, //是否带过去侧边框的是ID,false就是CODE,true是ID
          ifSave: false,
          drawers: [
            { name: 'MES_SHIFT', code: 'SFTS_CODE', type: 'one', keyName: 'MES_SHIFT', order: 'SFT_CODE' },
            {
              name: 'MES_SHIFT',
              code: 'SFTS_CODE',
              type: 'one',
              keyName: 'MES_SHIFT',
              order: 'SFT_CODE',
            },
            {
              name: 'MES_SHIFT_PRD',
              code: 'SFT_CODE',
@@ -139,8 +145,20 @@
      IsID: false, //是否带过去侧边框的是ID,false就是CODE,true是ID
      ifSave: false,
      drawers: [
        { name: 'MES_SHIFT', code: 'SFTS_CODE', type: 'one', keyName: 'MES_SHIFT', order: 'SFT_CODE' }, //type: one-表示需要code: 'SFTS_CODE'只要唯一值
        { name: 'MES_SHIFT_PRD', code: 'SFT_CODE', type: 'all', keyName: 'MES_SHIFT', order: 'SFT_CODE,SEQ' }, //type: all-表示需要code: 'SFT_CODE'所有的值,keyName:表示需要所有值的code的实体名
        {
          name: 'MES_SHIFT',
          code: 'SFTS_CODE',
          type: 'one',
          keyName: 'MES_SHIFT',
          order: 'SFT_CODE',
        }, //type: one-表示需要code: 'SFTS_CODE'只要唯一值
        {
          name: 'MES_SHIFT_PRD',
          code: 'SFT_CODE',
          type: 'all',
          keyName: 'MES_SHIFT',
          order: 'SFT_CODE,SEQ',
        }, //type: all-表示需要code: 'SFT_CODE'所有的值,keyName:表示需要所有值的code的实体名
      ], //drawers是右边弹出增改侧框的名字列表
    };
    // å°†å¯¹è±¡è½¬æ¢ä¸ºJSON字符串并保存到sessionStorage
src/views/tigerprojects/system/lowcode/high/dtl.vue
@@ -181,7 +181,9 @@
      dtlSlots,
      useModalData,
      useFormData,
      crudColSlots: props.crudColSlots,
      crudColSlots: isNullOrUnDef(objParams.value['crudColSlots'])
        ? {}
        : objParams.value['crudColSlots'][item['name']],
      data,
      name: item.name, //drawers列表里面的name,表示是哪一个实体,也就是高级表单中表格的名字
      keyName: item.keyName,
@@ -275,7 +277,9 @@
        ifSave: objParams.value['ifSave'],
        entityName: item['name'], //props.entityName,
        // formJson: GetCrudForm(item, data), //获取增删改表单字段
        crudColSlots: props.crudColSlots,
        crudColSlots: isNullOrUnDef(objParams.value['crudColSlots'])
          ? {}
          : objParams.value['crudColSlots'][item['name']],
        keyFieldValues: keyFieldValues.value,
        data,
        name: item['name'], //drawers列表里面的name,表示是哪一个实体,也就是高级表单中表格的名字