# `Fun_get_show_config_witd40` (function)

> 根据传入的字段，字段名称，组装显示JSON配置


- **Type:** FUNCTION
- **Returns:** `longtext`
- **Deterministic:** NO
- **SQL data access:** CONTAINS SQL

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sName` | `varchar(50)` |
| 2 | IN | `showName` | `varchar(50)` |
| 3 | IN | `iOrder` | `int` |
| 4 | IN | `sBrId` | `varchar(50)` |
| 5 | IN | `sSuId` | `varchar(50)` |
| 6 | IN | `sParentId` | `varchar(50)` |
| 7 | IN | `sLoginId` | `varchar(50)` |
| 8 | IN | `bVisible` | `int` |
| 9 | IN | `bSum` | `int` |

## Body

_Body is not pre-cached. To inspect: `mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE FUNCTION `Fun_get_show_config_witd40`'`._

## Narrative

**Business context:** Dynamic-report column-config builder ("动态配置返回函数" family) — narrow-width (`iFitWidth=65`) plain-cell variant without dropdown / colorTerms. Used in dynamic-grid reports for short numeric / code columns.

**What it does:** returns a `JSON_OBJECT` column-config block; same key set as `_hz` but with `iFitWidth=65`, `bMergeCell=false`. NULL-safe defaults via `IFNULL`.

**Invocation:** called by `Sp_EquipmentOutput_Machine`, `Sp_EquipmentOutput_Machine_YH`, `Sp_Manufacture_CapacityStatistics`. Source dir also shows `Sp_SalaryReport` uses it. Reached from each report's button-click flow under 生产管理 / 工资.
