| | |
| | | reload(); |
| | | } |
| | | |
| | | /** |
| | | * @description: 自定义编辑方法,跳转到高级页面 |
| | | * @param {Fn} args |
| | | * @param {*} params |
| | | * @return {*} |
| | | */ |
| | | export function rsnGrpEdit(args: Fn[], params: {}) { |
| | | const param = { CODE: params['record']['RSNG_CODE'], ID: params['record']['ID'], Name: 'BAS_REASON', Title: `编辑不良原因组:${params['record']['RSNG_CODE']}`, pCode: 'RSNG_CODE', IsID: false }; |
| | | args[5](`/BAS_REASON/High/${encodeURI(JSON.stringify(param))}`); |
| | | } |
| | | |
| | | export const rsGrpactionColumn: BasicColumn = { |
| | | width: 180, |
| | | title: '操作', |
| | |
| | | onClick: () => {}, |
| | | }, |
| | | ]; |
| | | |
| | | /** |
| | | * @description: 自定义删除方法 |
| | | * @param {Fn} args |
| | | * @param {*} params |
| | | * @return {*} |
| | | */ |
| | | export function rsnGrpDel(args: Fn[], params: {}) { |
| | | if (!isNullOrEmpty(params['data'])) { |
| | | var _data = params['data'].value.filter((item) => item['ID'] != params['record']['ID']); |
| | | params['data'].value = _data; |
| | | args[6]({ |
| | | dataSource: [], |
| | | }); |
| | | args[6]({ |
| | | dataSource: params['data'], |
| | | }); |
| | | args[1](); |
| | | }else{ |
| | | DeleteEntity(params['record'], params['entityName']).then((action) => { |
| | | if (action.IsSuccessed) { |
| | | args[1](); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * @description: 自定义明细表中编辑返回方法 |
| | |
| | | ], |
| | | tableName: 'BAS_REASON_GRP', |
| | | rowKey: 'RSNG_CODE', |
| | | searchInfo: {TABLE_NAME: 'BAS_REASON_GRP'} |
| | | }); |
| | | } |
| | | |
| | |
| | | span: 8, |
| | | }, |
| | | }, |
| | | { |
| | | label: 'ID', |
| | | field: 'ID', |
| | | component: 'Input', |
| | | colProps: { |
| | | span: 8, |
| | | }, |
| | | show: false, |
| | | }, |
| | | ]; |
| | | |
| | | /** |