Commit 3e2346f13e086dfe52dea6013e8bb7b1f045db4e

Authored by zhangzzzz
1 parent 1ddd7464

修改报价参数传参;

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