Commit 3e2346f13e086dfe52dea6013e8bb7b1f045db4e

Authored by zhangzzzz
1 parent 1ddd7464

修改报价参数传参;

src/components/QuickQuote/index.jsx
... ... @@ -768,6 +768,8 @@ const QuickQuoteEvent = props => {
768 768 const sBackendParams = process.sBackendParams || [];
769 769 if (sBackendParams.length) {
770 770 const sQuoParams = sBackendParams.map(item => ({
  771 + sParamKey: item.sParamKey,
  772 + sParamKeyNew: item.sParamKeyNew,
771 773 sParamName: item.sParam,
772 774 sParamValue: item.value !== undefined ? item.value : "",
773 775 bSelfCbx: !(item.value === "" || item.value === undefined),
... ... @@ -2495,7 +2497,8 @@ const BackendParamsExtraComponent = props => {
2495 2497  
2496 2498 const viewConfigs = backendParamsConfig.map((item, index) => ({
2497 2499 ...item,
2498   - sName: item.sFieldName || `sParams${index}`,
  2500 + sName0: `sParams${index + 1}`,
  2501 + sName: item.sFieldName || `sParams${index + 1}`,
2499 2502 showName: item.sParam,
2500 2503 sDropDownType: item.sParamDropDown ? "sql" : "",
2501 2504 iColValue: 4,
... ... @@ -2515,7 +2518,7 @@ const BackendParamsExtraComponent = props => {
2515 2518 tableName: `sBackendParams${boxModel}`,
2516 2519 getSqlDropDownData: (...args) => {
2517 2520 const showConfig = args[2];
2518   - const { sParamDropDown = "", sName } = showConfig;
  2521 + const { sParamDropDown = "", sName0, sName } = showConfig;
2519 2522 const dropDownData = sParamDropDown.split(",");
2520 2523 if (dropDownData?.length) {
2521 2524 return {
... ... @@ -2524,6 +2527,8 @@ const BackendParamsExtraComponent = props => {
2524 2527 value: item,
2525 2528 sParam: showConfig.sParam,
2526 2529 [sName]: item,
  2530 + sParamKey: sName0,
  2531 + sParamKeyNew: sName,
2527 2532 })),
2528 2533 totalPageCount: 1,
2529 2534 currentPageNo: 1,
... ... @@ -2544,6 +2549,8 @@ const BackendParamsExtraComponent = props => {
2544 2549 value: changeValue[sFieldName],
2545 2550 sParam: showConfig.sParam,
2546 2551 [sFieldName]: changeValue[sFieldName],
  2552 + sParamKey: showConfig.sName0,
  2553 + sParamKeyNew: sFieldName,
2547 2554 };
2548 2555 const { sParam } = dropDownDataSelected;
2549 2556 const { sBackendParams = [] } = slaveData[iIndex].sBackProcessData[iIndex1];
... ...