shizi 1 месяц назад
Родитель
Сommit
158e7f620a

+ 395 - 0
04-新项目源码_source/项目源码/cloudhis-pr/src/pages/common/DictPickerModal.jsx

@@ -0,0 +1,395 @@
+/*
+ * Creater:     Auto-generated (dict-picker-unify)
+ * CreateDate:  2026-08-03
+ * Describe:   通用字典弹窗选择器(dict-picker-unify 改造)
+ *
+ * 背景:从 DrugListEditor 改名+重写。原来 DrugListEditor 写死了:
+ *   - API code = '03050303'
+ *   - 搜索固定参数 dicType='C', orderTypeCode='D'
+ *   - 弹窗表格列:编码 / 名称 / 规格 / 单位
+ * 现在所有这些都从 props 配置读取,组件对业务字段名零感知。
+ *
+ * 用法:在 DynamicRenderingForm.jsx::getInput 中检测 typeCode === 'DictPicker' 时渲染本组件
+ *
+ * Props (来自 Antd Form getFieldDecorator + formData 配置):
+ *   - apiCode:       远端搜索 API code(来自 item.className)
+ *   - searchKey:     入参搜索字段名(来自 item.linkCode,如 'descripts')
+ *   - valueField:    选项 value 取哪个字段(默认 'code',来自 methodName.valueindex)
+ *   - labelField:    选项 label 取哪个字段(默认 'descripts',来自 methodName.descindex)
+ *   - fixedParams:   搜索时附带的固定参数对象(来自 methodName.fixedparams)
+ *   - placeholder:   占位文案(来自 item.placeholder)
+ *   - detailItem:    预留扩展:明细字段名(来自 item.doubt)
+ *   - disabled:      是否禁用
+ *   - value / onChange: Antd Form 双向(value 是 code 字符串数组,onChange(newArray))
+ *
+ * 后端协议:
+ *   - onChange 传出 string[](code 数组),由 DynamicRenderingForm 视 form 配置 join 成字符串
+ *   - 后端 SaveDrugListForConfig 已支持 string 与 object[] 两种入参
+ *   - 后端 GetChargeLimitItemData 返回 { total, rows, columns }:columns 是弹窗列定义
+ */
+
+import React, { Component } from 'react';
+import { Input, Button, Modal, Table, Checkbox, message, Tag, Empty, Spin } from 'antd';
+import { $http } from 'containers/config/https';
+
+class DictPickerModal extends Component {
+  constructor(props) {
+    super(props);
+    this.state = {
+      modalVisible: false,
+      searchValue: '',
+      loading: false,
+      searchResults: [],     // API 返回的搜索结果(rows)
+      columnsFromApi: [],    // API 返回的列定义
+      selectedMap: {},       // code -> option(包含所有列字段)
+      selectedOrder: [],     // 保持用户选择顺序的 code 数组
+    };
+  }
+
+  componentDidMount() {
+    this.syncFromValue(this.props.value);
+  }
+
+  componentDidUpdate(prevProps) {
+    if (this.props.value !== prevProps.value) {
+      this.syncFromValue(this.props.value);
+    }
+  }
+
+  // 从外部 value (code 字符串数组) 同步 selectedOrder
+  // 若 value 是对象数组(兼容后端返回的 {code,...} 数组),提取 code
+  syncFromValue = (value) => {
+    const codes = this._extractCodes(value);
+    this.setState(prev => {
+      const nextMap = { ...prev.selectedMap };
+      const nextOrder = [...prev.selectedOrder];
+      codes.forEach(code => {
+        if (!nextMap[code]) {
+          nextMap[code] = { [this.props.valueField || 'code']: code };
+        }
+        if (!nextOrder.includes(code)) {
+          nextOrder.push(code);
+        }
+      });
+      return {
+        selectedMap: nextMap,
+        selectedOrder: nextOrder.filter(c => codes.includes(c)),
+      };
+    });
+  };
+
+  // value 兼容三种形态:string[]、object[]、逗号分隔字符串
+  _extractCodes = (value) => {
+    if (Array.isArray(value)) {
+      return value.map(v => {
+        if (typeof v === 'string') return v;
+        if (v && typeof v === 'object') return v[this.props.valueField || 'code'];
+        return '';
+      }).filter(Boolean);
+    }
+    if (typeof value === 'string' && value) {
+      return value.split(',').map(s => s.trim()).filter(Boolean);
+    }
+    return [];
+  };
+
+  openModal = () => {
+    if (this.props.disabled) return;
+    this.setState({ modalVisible: true, searchValue: '', searchResults: [], columnsFromApi: [] });
+  };
+
+  handleSearchInputChange = (e) => {
+    this.setState({ searchValue: e.target.value });
+  };
+
+  handleSearchKeyDown = (e) => {
+    if (e.keyCode === 13) this.doSearch(this.state.searchValue);
+  };
+
+  handleSearch = () => this.doSearch(this.state.searchValue);
+
+  doSearch = (value) => {
+    const q = (value || '').trim();
+    if (!q) {
+      message.warning('请输入搜索关键字');
+      return;
+    }
+    if (!this.props.apiCode) {
+      message.error('DictPickerModal 缺少 apiCode 配置');
+      return;
+    }
+    this.setState({ loading: true });
+    const searchKey = this.props.searchKey || 'descripts';
+    const paramsObj = { ...(this.props.fixedParams || {}), [searchKey]: q };
+    $http.post('urlS', this, {
+      code: this.props.apiCode,
+      data: { params: [paramsObj] },
+      success: (res) => {
+        if (res && res.errorCode === '0') {
+          // 兼容 result.rows / result.data / result 三种返回
+          const dataArr = (res?.result && Array.isArray(res.result.rows)) ? res.result.rows
+            : (res?.result && Array.isArray(res.result.data)) ? res.result.data
+              : (res?.result && Array.isArray(res.result)) ? res.result
+                : [];
+          const columnsFromApi = (res?.result && Array.isArray(res.result.columns)) ? res.result.columns : [];
+          this.setState(prev => {
+            const nextMap = { ...prev.selectedMap };
+            dataArr.forEach(opt => {
+              if (opt) {
+                const codeVal = opt[this.props.valueField || 'code'];
+                if (codeVal) {
+                  nextMap[codeVal] = { ...(prev.selectedMap[codeVal] || {}), ...opt };
+                }
+              }
+            });
+            return {
+              searchResults: dataArr,
+              columnsFromApi,
+              selectedMap: nextMap,
+              loading: false,
+            };
+          });
+        } else {
+          this.setState({ loading: false });
+          message.error(res?.errorMessage || '搜索失败');
+        }
+      },
+      error: () => {
+        this.setState({ loading: false });
+        message.error('网络错误');
+      }
+    });
+  };
+
+  // 把 columnsFromApi 转换成 Antd Table columns(前置 checkbox 列 + 数据列)
+  _buildTableColumns = () => {
+    const { columnsFromApi, selectedOrder } = this.state;
+    const labelField = this.props.labelField || 'descripts';
+    const allCodes = this.state.searchResults.map(o => o[this.props.valueField || 'code']);
+    const checkboxCol = {
+      title: (
+        <Checkbox
+          indeterminate={
+            this.state.searchResults.length > 0 &&
+            this.state.searchResults.some(o => selectedOrder.includes(o[this.props.valueField || 'code'])) &&
+            !this.state.searchResults.every(o => selectedOrder.includes(o[this.props.valueField || 'code']))
+          }
+          checked={
+            this.state.searchResults.length > 0 &&
+            this.state.searchResults.every(o => selectedOrder.includes(o[this.props.valueField || 'code']))
+          }
+          onChange={this.toggleAll}
+        />
+      ),
+      dataIndex: '_check',
+      width: 50,
+      render: (_, record) => {
+        const codeVal = record[this.props.valueField || 'code'];
+        return (
+          <Checkbox
+            checked={selectedOrder.includes(codeVal)}
+            onChange={() => this.toggleRow(codeVal)}
+          />
+        );
+      },
+    };
+    const dataCols = (columnsFromApi.length > 0 ? columnsFromApi : [
+      { key: 'code', title: '编码', width: 140 },
+      { key: labelField, title: '名称', ellipsis: true },
+    ]).map(c => ({
+      title: c.title,
+      dataIndex: c.key,
+      width: c.width,
+      ellipsis: c.ellipsis,
+      render: (val, record) => {
+        if (c.key === 'code' || c.key === this.props.valueField) {
+          // 值字段:完整显示
+          return val;
+        }
+        return val;
+      },
+    }));
+    return [checkboxCol, ...dataCols];
+  };
+
+  toggleRow = (code) => {
+    this.setState(prev => {
+      const nextMap = { ...prev.selectedMap };
+      const nextOrder = [...prev.selectedOrder];
+      if (nextOrder.includes(code)) {
+        return { selectedMap: nextMap, selectedOrder: nextOrder.filter(c => c !== code) };
+      }
+      if (!nextMap[code]) {
+        const opt = prev.searchResults.find(o => o[this.props.valueField || 'code'] === code);
+        if (opt) nextMap[code] = opt;
+      }
+      nextOrder.push(code);
+      return { selectedMap: nextMap, selectedOrder: nextOrder };
+    });
+  };
+
+  toggleAll = () => {
+    this.setState(prev => {
+      const valueField = this.props.valueField || 'code';
+      const allCodes = prev.searchResults.map(o => o[valueField]);
+      const allSelected = allCodes.length > 0 && allCodes.every(c => prev.selectedOrder.includes(c));
+      if (allSelected) {
+        return { selectedOrder: prev.selectedOrder.filter(c => !allCodes.includes(c)) };
+      }
+      const nextOrder = [...prev.selectedOrder];
+      const nextMap = { ...prev.selectedMap };
+      allCodes.forEach(code => {
+        if (!nextMap[code]) {
+          const opt = prev.searchResults.find(o => o[valueField] === code);
+          if (opt) nextMap[code] = opt;
+        }
+        if (!nextOrder.includes(code)) nextOrder.push(code);
+      });
+      return { selectedMap: nextMap, selectedOrder: nextOrder };
+    });
+  };
+
+  removeSelected = (code) => {
+    this.setState(prev => ({
+      selectedOrder: prev.selectedOrder.filter(c => c !== code),
+    }));
+  };
+
+  clearAll = () => {
+    this.setState({ selectedOrder: [] });
+  };
+
+  // 把 array 传给 form(Antd Form 自动 setFieldsValue)
+  // 传出 string[](code 数组),DynamicRenderingForm 视 form 配置 join 成字符串
+  handleConfirm = () => {
+    const { selectedOrder } = this.state;
+    this.props.onChange && this.props.onChange(selectedOrder);
+    this.setState({ modalVisible: false });
+  };
+
+  handleCancel = () => {
+    this.setState({ modalVisible: false, searchResults: [], columnsFromApi: [] });
+  };
+
+  render() {
+    const { value, disabled, placeholder } = this.props;
+    const { modalVisible, searchValue, searchResults, selectedMap, selectedOrder, loading } = this.state;
+
+    const codes = this._extractCodes(value);
+    const codeSet = new Set(codes);
+    const valueField = this.props.valueField || 'code';
+    const labelField = this.props.labelField || 'descripts';
+
+    // 渲染 tag 预览:优先用 selectedMap[code][labelField]
+    const previewText = codes.length === 0
+      ? <span style={{ color: '#bfbfbf' }}>{placeholder || '点击右侧「选择」按钮添加'}</span>
+      : codes.map((c, i) => {
+          const opt = selectedMap[c];
+          const label = opt && opt[labelField] ? opt[labelField] : '';
+          const text = label ? `${label} (${c})` : c;
+          return (
+            <Tag key={c + '_' + i} color="blue" style={{ marginBottom: 4 }}>
+              {text}
+            </Tag>
+          );
+        });
+
+    const tableColumns = this._buildTableColumns();
+    const tableDataSource = searchResults.map(o => ({ ...o, key: o[valueField] }));
+
+    return (
+      <div>
+        <div style={{ display: 'flex', alignItems: 'flex-start', gap: 8 }}>
+          <div
+            style={{
+              flex: 1,
+              minHeight: 32,
+              padding: '4px 11px',
+              border: '1px solid #d9d9d9',
+              borderRadius: 4,
+              background: disabled ? '#f5f5f5' : '#fff',
+              cursor: disabled ? 'not-allowed' : 'default',
+              lineHeight: '24px',
+            }}
+            onClick={!disabled ? this.openModal : undefined}
+          >
+            {codes.length === 0
+              ? <span style={{ color: '#bfbfbf' }}>{placeholder || '点击右侧「选择」按钮添加'}</span>
+              : previewText
+            }
+          </div>
+          <Button
+            type="primary"
+            onClick={this.openModal}
+            disabled={disabled}
+          >
+            选择 {codes.length > 0 && `(${codes.length})`}
+          </Button>
+        </div>
+
+        <Modal
+          title={`选择${selectedOrder.length > 0 ? ` (已选 ${selectedOrder.length})` : ''}`}
+          visible={modalVisible}
+          onCancel={this.handleCancel}
+          onOk={this.handleConfirm}
+          width={900}
+          okText="确认"
+          cancelText="取消"
+          destroyOnClose
+        >
+          <div style={{ marginBottom: 12, display: 'flex', gap: 8 }}>
+            <Input
+              placeholder={`输入关键字搜索(按 ${this.props.searchKey || 'descripts'} 匹配)`}
+              value={searchValue}
+              onChange={this.handleSearchInputChange}
+              onKeyDown={this.handleSearchKeyDown}
+              allowClear
+              style={{ width: 360 }}
+            />
+            <Button type="primary" onClick={this.handleSearch} loading={loading}>搜索</Button>
+            <Button onClick={this.clearAll} disabled={selectedOrder.length === 0}>清空已选</Button>
+          </div>
+
+          <Spin spinning={loading}>
+            {searchResults.length > 0 ? (
+              <Table
+                rowKey={valueField}
+                size="small"
+                columns={tableColumns}
+                dataSource={tableDataSource}
+                pagination={false}
+                scroll={{ y: 320 }}
+              />
+            ) : (
+              <Empty description="输入关键字搜索" />
+            )}
+          </Spin>
+
+          {selectedOrder.length > 0 && (
+            <div style={{ marginTop: 12, padding: 8, background: '#fafafa', borderRadius: 4, maxHeight: 100, overflowY: 'auto' }}>
+              <div style={{ marginBottom: 4, color: '#666', fontSize: 12 }}>已选(点击移除):</div>
+              {selectedOrder.map((c, i) => {
+                const opt = selectedMap[c];
+                const label = opt && opt[labelField] ? opt[labelField] : '';
+                const text = label ? `${label} (${c})` : c;
+                return (
+                  <Tag
+                    key={c + '_sel_' + i}
+                    color="blue"
+                    closable
+                    onClose={(e) => { e.preventDefault(); this.removeSelected(c); }}
+                    style={{ marginBottom: 4 }}
+                  >
+                    {text}
+                  </Tag>
+                );
+              })}
+            </div>
+          )}
+        </Modal>
+      </div>
+    );
+  }
+}
+
+export default DictPickerModal;

+ 82 - 4
04-新项目源码_source/项目源码/cloudhis-pr/src/pages/common/DynamicRenderingForm.jsx

@@ -16,6 +16,7 @@ import moment from 'moment';
 import PublicModalTable from './PublicModalTable';
 import RangeDatePicker from 'components/rangePicker/index';
 import FindPatients from 'pages/registercard/FindPatients';
+import DictPickerModal from './DictPickerModal';
 import PublicFormDataMaintenance from './PublicFormDataMaintenance';
 import FileOnlinePreview from './FileOnlinePreview';
 import ColorPickup from 'pages/emr/component/ColorPickup';
@@ -216,9 +217,8 @@ class DynamicRenderingForm extends Component {
       }
       this.setState({ rangeParams, uploadFileLists });
       let values = this.getDataIndexValues();
-      // setTimeout(() => {
+      // dict-picker-unify: drugList 转换逻辑已删除(原 split '\n' 处理由 DictPickerModal 自处理)
       this.setFieldsValue(this.formDataConversion({ ...values }));
-      // }, 300)
     }
   };
 
@@ -257,7 +257,11 @@ class DynamicRenderingForm extends Component {
   setFieldsValue = (values, callback = null) => {
     try {
       this.props.form && this.props.form?.setFieldsValue({ ...values }, () => {
-        callback && typeof (callback) === 'function' && callback();
+        if (callback === 'patSearchBtn') { // 人员检索
+          this.handlePatientQuery();
+        } else if (callback && typeof (callback) === 'function') {
+          callback();
+        }
       });
     } catch (error) {
       console.log(error);
@@ -407,6 +411,8 @@ class DynamicRenderingForm extends Component {
             }
             filterFormData[i].defaultValue = checkDefaultArr;
           }
+          // dict-picker-unify: drugList SelectBox 远端搜索钩子删除
+          // (改由 DictPickerModal 自处理,组件对业务字段零感知)
           if (filterFormData[i] && filterFormData[i].typeCode === 'SearchSelect' && className) { // 回车搜索列表展示
             let baseRecord = filterFormData[i];
             filterFormData[i].valueindex = baseRecord?.descindex || 'descripts'; // 显示在界面上的值 -> 对应下拉数据返回的描述
@@ -568,6 +574,10 @@ class DynamicRenderingForm extends Component {
     }
   };
 
+  // dict-picker-unify: handleDrugListRemoteSearch 已删除(改由 DictPickerModal 自处理)
+  // 原方法因读 result.data 而非 result.rows 已是死代码,且混入 SelectBox 公共路径
+
+
   // 获取远程搜索下拉数据
   fetchCharge = (value, record, callback) => {
     // console.log('record', record)
@@ -1432,14 +1442,16 @@ class DynamicRenderingForm extends Component {
             >
               <Icon type={iconType} style={{ color: '#8c8c8c', marginRight: 8, fontSize: 16 }} />
               <span
+                onClick={() => this.handleFilePreview(file, 'onlineImg')}
                 style={{
                   flex: 1,
                   overflow: 'hidden',
                   textOverflow: 'ellipsis',
                   whiteSpace: 'nowrap',
                   color: '#262626',
+                  cursor: 'pointer',
                 }}
-                title={file.name || file.fileName || file.filePath || ''}
+                title="点击预览"
               >
                 {file.name || file.fileName || file.filePath || '未命名文件'}
               </span>
@@ -1524,20 +1536,68 @@ class DynamicRenderingForm extends Component {
           })}
         </Select>
       )
+    } else if (item.typeCode === 'DictPicker') {
+      // dict-picker-unify: 通用弹窗字典选择器(替代原 DrugListEditor 硬编码)
+      // 全部参数从 formData item 读取:apiCode/className, searchKey/linkCode, valueField/descindex,
+      //   labelField/descindex, fixedParams/fixedparams 段, placeholder, disabled
+      const methodKv = Util.getObjByUrlStr(item.methodName || '');
+      const fixedParamsStr = methodKv.fixedparams || '';
+      const fixedParams = {};
+      if (fixedParamsStr) {
+        fixedParamsStr.split(',').forEach(kv => {
+          const idx = kv.indexOf('=');
+          if (idx > 0) fixedParams[kv.slice(0, idx)] = kv.slice(idx + 1);
+        });
+      }
+      return (
+        <DictPickerModal
+          apiCode={item.className}
+          searchKey={item.linkCode}
+          valueField={methodKv.valueindex || 'code'}
+          labelField={methodKv.descindex || 'descripts'}
+          fixedParams={fixedParams}
+          placeholder={item.placeholder}
+          detailItem={item.doubt}
+          disabled={item.disabled === 'Y'}
+        />
+      )
     } else if (item.typeCode === 'Select' || item.typeCode === 'SelectBox' || item?.typeCode === 'MultipleSelect') { // 下拉框
       let valueFieldName = item?.valueindex || (item && 'methodName' in item && item.methodName && item.methodName.indexOf('valueindex') > -1 ? Util.getValueByUrlStr(item.methodName, 'valueindex') : 'id');
       let labelFieldName = item?.descindex || (item && 'methodName' in item && item.methodName && item.methodName.indexOf('descindex') > -1 ? Util.getValueByUrlStr(item.methodName, 'descindex') : 'descripts');
+      // D5a-1: drugList 远端搜索模式 — onSearch 已被注册时,关本地 filter 用后端结果
+      const isRemoteSearch = !!(item && item.onSearch && (item.linkCode || item.className));
       return (
         <Select
           allowClear={item?.className?.indexOf('allowClear:N') > -1 || item?.methodName?.indexOf('allowClear:N') > -1 || item?.allowClear === 'N' || item?.allowClear === false ? false : true}
           showSearch
           optionFilterProp="seachprop"
+          filterOption={isRemoteSearch ? false : true} // D5a-1: 远端搜索模式关本地过滤
           mode={(item?.typeCode === 'SelectBox' || item?.typeCode === 'MultipleSelect') ? 'multiple' : (item && item.mode ? item.mode : null)} // mode="multiple" 多选
+          optionLabelProp="children" // D5a-1: tag 显示 descripts(Option children),不是 value(code)
           placeholder={item.placeholder ? (item.placeholder !== 'none' ? item.placeholder : '') : '请选择'}
           ref={item.onRef || (item.isEnterJump === 'Y' || isEnterJump === 'Y' ? (ref) => this.handleFormItemRef(ref, item.dataIndex) : null)}
           style={{ width: item && item.width ? (item.width + 'px') : '100%', paddingLeft: 'inputPaddingLeft' in item && item.inputPaddingLeft ? item.inputPaddingLeft : '' }}
           className={item?.inputClass || ''}
           disabled={item.disabled === 'Y' ? true : false}
+          loading={isRemoteSearch ? (item.loading === 'Y' || item.loading === true ? true : false) : false} // D5a-1: 远端搜索 loading
+          onSearch={isRemoteSearch ? (v) => {
+            // D5a-1: Enter-触发模式 — onSearch 只暂存搜索词,不真正调接口
+            // 避免每键调接口(用户体验:等用户输入完再按回车)
+            const target = this.state.filterFormData[index];
+            if (target) target._pendingSearch = v;
+          } : undefined}
+          onInputKeyDown={isRemoteSearch ? (e) => {
+            // D5a-1: 按下回车才触发远端搜索
+            if (e && e.keyCode === 13) {
+              const target = this.state.filterFormData[index];
+              const pending = target && target._pendingSearch;
+              if (pending && String(pending).trim()) {
+                item.onSearch(pending);
+                if (target) target._pendingSearch = '';
+              }
+            }
+          } : undefined}
+
           onFocus={item && 'onFocus' in item ? item.onFocus : ( // 下拉框获取焦点时拉去下拉数据
             item && 'linkCode' in item && item.linkCode && (item?.optionSource === 'focus' || item?.className?.indexOf('optionSource:focus') > -1) ? (
               () => this.handleSelectFocus(item)
@@ -1709,6 +1769,10 @@ class DynamicRenderingForm extends Component {
     } else if (item.typeCode === 'Radio' || item.typeCode === 'RadioGroup' || item.typeCode === 'RadioBox') { // 单选框
       return (
         <Radio.Group
+          // large | default | small
+          size={item?.radioSize || 'default'}
+          // outline | solid
+          buttonStyle={item?.buttonStyle || item?.radioStyle || 'outline'}
           disabled={item.disabled === 'Y' ? true : false}
           onChange={item && item.changeCallBack ? (e) => this.handleChangeCallBack(item.changeCallBack, item.callBackResult, e.target.value, item.dataIndex, item) : (item.isEnterJump === 'Y' || isEnterJump === 'Y' ? () => this.handleFormItemPressEnter(item, index) : null)}
         >
@@ -2184,6 +2248,18 @@ class DynamicRenderingForm extends Component {
       return { error: true, errorMessage: '文件上传中,请等待文件上传完成再保存!' };
     };
     let values = this.formDataFormatConversion(this.props.form.getFieldsValue(), isGetDesc);
+    // dict-picker-unify: DictPicker 提交时把 array join 回逗号串
+    // 后端 SaveDrugListForConfig 期望 string("code1,code2"),不是 array
+    for (let i = 0; i < this.state.filterFormData.length; i++) {
+      // 不要影响其它多选
+      if (this.state.filterFormData[i]?.typeCode === 'DictPicker') {
+        const di = this.state.filterFormData[i].dataIndex;
+        if (Array.isArray(values[di])) {
+          values[di] = values[di].join(',');
+        }
+      }
+    }
+
     return { ...values, ...rangeParams, ...otherInfo };
   };
 
@@ -2298,6 +2374,7 @@ class DynamicRenderingForm extends Component {
               let valueFieldName = filterFormData[i]?.valueindex || (filterFormData[i] && 'methodName' in filterFormData[i] && filterFormData[i].methodName && filterFormData[i].methodName.indexOf('valueindex') > -1 ? Util.getValueByUrlStr(filterFormData[i].methodName, 'valueindex') : 'id');
               let labelFieldName = filterFormData[i]?.descindex || (filterFormData[i] && 'methodName' in filterFormData[i] && filterFormData[i].methodName && filterFormData[i].methodName.indexOf('descindex') > -1 ? Util.getValueByUrlStr(filterFormData[i].methodName, 'descindex') : 'descripts');
               fieldsValues[descCode] = Util.returnDataCccordingToAttributes(filterFormData[i].detailItem, fieldsValues[keys], valueFieldName)?.[labelFieldName] || nullVal;
+              // dict-picker-unify: drugList join 逻辑已迁移到 getFieldsValue(用 typeCode==='DictPicker' 判断)
             }
           }
         }
@@ -2333,6 +2410,7 @@ class DynamicRenderingForm extends Component {
               fieldsValues[keys] = fieldsValues[keys] && typeof (fieldsValues[keys]) === 'number' ? String(fieldsValues[keys]) : fieldsValues[keys];
             } else if (filterFormData[i].typeCode === 'Upload' || filterFormData[i].typeCode === 'UploadFile' || filterFormData[i].typeCode === 'UploadImg') { // 上传
               fieldsValues[keys] = fieldsValues[keys] && Array.isArray(fieldsValues[keys]) ? Util.customDeepCopy(fieldsValues[keys]) : [];
+              // dict-picker-unify: drugList string→array 转换已删除(后端 GetChargeLimitedConfig 直接返回对象数组)
             }
           }
         }