Commit 984e0fd317bae9e9ae11da9b887b14bae818b33f

Authored by 陈鑫涛
2 parents 1cd17970 f22cad38

Merge branch 'main' of http://git.xlyprint.cn/zhangz/xlyUmi into main

src/components/QuickQuote/index.jsx
@@ -1185,6 +1185,19 @@ const QuickQuoteEvent = props => { @@ -1185,6 +1185,19 @@ const QuickQuoteEvent = props => {
1185 addState.slaveSelectedRowKeys = [slaveData[0].sId]; 1185 addState.slaveSelectedRowKeys = [slaveData[0].sId];
1186 } 1186 }
1187 1187
  1188 + const { sPrintConfig = {}, downAbleConfigs = [], finishedConfigs = [] } = state;
  1189 + const processConfigs = [sPrintConfig, ...downAbleConfigs, ...finishedConfigs];
  1190 +
  1191 + const configOrderMap = {};
  1192 + processConfigs.forEach((config, index) => {
  1193 + configOrderMap[config.sId] = index;
  1194 + });
  1195 +
  1196 + processData.sort((a, b) => {
  1197 + return configOrderMap[a.sProcessClassifyId] - configOrderMap[b.sProcessClassifyId];
  1198 + });
  1199 + processData = processData.map((item, index) => ({ ...item, iOrder: index + 1 }));
  1200 +
1188 const newState = { 1201 const newState = {
1189 materialsConfig, 1202 materialsConfig,
1190 masterData: { ...masterData1, ...masterData }, 1203 masterData: { ...masterData1, ...masterData },
@@ -3154,7 +3167,7 @@ const BoxModelSelectedModal = props => { @@ -3154,7 +3167,7 @@ const BoxModelSelectedModal = props => {
3154 switcherIcon={<FolderFilled style={{ color: "#f7cc4f", fontSize: 20 }} />} 3167 switcherIcon={<FolderFilled style={{ color: "#f7cc4f", fontSize: 20 }} />}
3155 ></Tree.TreeNode> 3168 ></Tree.TreeNode>
3156 )), 3169 )),
3157 - [boxTypeList.length] 3170 + [boxTypeList.length, boxData.length]
3158 ); 3171 );
3159 const getSvgProps = svg => { 3172 const getSvgProps = svg => {
3160 if (!svg) return; 3173 if (!svg) return;
@@ -3222,8 +3235,8 @@ const BoxModelSelectedModal = props =&gt; { @@ -3222,8 +3235,8 @@ const BoxModelSelectedModal = props =&gt; {
3222 const noImage = commonFunc.showLocalMessage(props, "ImpositionInformation", "暂无图片"); 3235 const noImage = commonFunc.showLocalMessage(props, "ImpositionInformation", "暂无图片");
3223 let btnSelectTitle = commonFunc.showLocalMessage(props, "BtnSelect", "选择"); 3236 let btnSelectTitle = commonFunc.showLocalMessage(props, "BtnSelect", "选择");
3224 const sLanguage = props.app?.userinfo?.sLanguage; 3237 const sLanguage = props.app?.userinfo?.sLanguage;
3225 - if(sLanguage === 'sEnglish') {  
3226 - btnSelectTitle = 'BtnSelect'; 3238 + if (sLanguage === "sEnglish") {
  3239 + btnSelectTitle = "BtnSelect";
3227 } 3240 }
3228 const tableProps = { 3241 const tableProps = {
3229 ...commonBusiness.getTableTypes("box", { 3242 ...commonBusiness.getTableTypes("box", {
@@ -3373,7 +3386,7 @@ const BackendParamsExtraComponent = props =&gt; { @@ -3373,7 +3386,7 @@ const BackendParamsExtraComponent = props =&gt; {
3373 if (dropDownData?.length) { 3386 if (dropDownData?.length) {
3374 return { 3387 return {
3375 dropDownData: dropDownData.map(item => ({ 3388 dropDownData: dropDownData.map(item => ({
3376 - sId: commonUtils.createSid(), 3389 + sId: item,
3377 value: item, 3390 value: item,
3378 sParam: showConfig.sParam, 3391 sParam: showConfig.sParam,
3379 [sName]: item, 3392 [sName]: item,