{
style={{
position: "absolute",
left: "0px",
- width: `${(dWlcd * (clientWidth - 100)) / dWlcd}px`,
- fontSize: `${size || 11}px`,
+ width: `${(dWlcd * (clientWidth - 50)) / (dWlcd + 60)}px`,
+ fontSize: "11px",
textAlign: "center",
height: "30px",
- bottom: `-${80}px`,
+ bottom: `-${100}px`,
lineHeight: "30px",
}}
>
@@ -284,7 +255,7 @@ const BoxShowImgMaterial = props => {
display: "inline-block",
}}
>
- 材料利用率:
+ {MaterialUtilizationRate}:
{
style={{
position: "absolute",
top: "0",
- right: "-80px",
- height: `${dWlkd * scaleY}px`,
- lineHeight: `${dWlkd * scaleY}px`,
- fontSize: `${size || 11}px`,
+ right: "15px",
+ height: `${(dWlkd * scaleY)}px`,
+ lineHeight: `${(dWlkd * scaleY)}px`,
+ fontSize: "11px",
textAlign: "center",
width: "30px",
}}
@@ -339,7 +310,7 @@ const BoxShowImgMaterial = props => {
position: "absolute",
top: "5px",
left: "15px",
- height: `${dWlkd * scaleY * 0.3}px`,
+ height: `${((dWlkd * scaleY)) * 0.3}px`,
backgroundColor: "#333",
width: "1px",
}}
@@ -347,8 +318,6 @@ const BoxShowImgMaterial = props => {
{dWlkd}
@@ -366,7 +335,7 @@ const BoxShowImgMaterial = props => {
position: "absolute",
bottom: "5px",
left: "15px",
- height: `${dWlkd * scaleY * 0.3}px`,
+ height: `${((dWlkd * scaleY)) * 0.3}px`,
backgroundColor: "#333",
width: "1px",
}}
diff --git a/src/components/QuickQuote/index.jsx b/src/components/QuickQuote/index.jsx
index f6ac77f..073dc17 100644
--- a/src/components/QuickQuote/index.jsx
+++ b/src/components/QuickQuote/index.jsx
@@ -467,7 +467,7 @@ const QuickQuoteEvent = props => {
slaveData[saveIndex] = {
...slaveData[saveIndex],
sMachineStyle: materialStyleLength + "*" + materialStyleWidth,
- dMachineQty: slaveData[saveIndex].dProductQty ? slaveData[saveIndex].dProductQty : masterData.dProductQty,
+ dMachineQty: masterData.sBillNo && slaveData[saveIndex].dMachineQty ? slaveData[saveIndex].dMachineQty : slaveData[saveIndex].dProductQty ? slaveData[saveIndex].dProductQty : masterData.dProductQty,
};
if (sFieldName === "dWlcd" || sFieldName === "dWlkd") {
const horizontalBoxes = Math.floor(slaveData[saveIndex]?.dWlkd / Number(slaveData[saveIndex]?.dMachineWidth));
@@ -475,12 +475,13 @@ const QuickQuoteEvent = props => {
const newDMaterialsKQty = horizontalBoxes * verticalBoxes;
slaveData[saveIndex] = {
...slaveData[saveIndex],
- dMachineQty: Math.floor(slaveData[saveIndex].dMachineQty / slaveData[saveIndex].dSinglePQty),
+ dMachineQty: masterData.sBillNo && slaveData[saveIndex].dMachineQty ? slaveData[saveIndex].dMachineQty : Math.floor(slaveData[saveIndex].dMachineQty / slaveData[saveIndex].dSinglePQty),
dMaterialsKQty: newDMaterialsKQty,
newMaterialLength: sFieldName === "dWlcd" ? changeValue[sFieldName] : slaveData[saveIndex]?.dWlcd,
newMaterialWidth: sFieldName === "dWlkd" ? changeValue[sFieldName] : slaveData[saveIndex]?.dWlkd,
materialLength: sFieldName === "dWlcd" ? changeValue[sFieldName] : slaveData[saveIndex]?.dWlcd,
materialWidth: sFieldName === "dWlkd" ? changeValue[sFieldName] : slaveData[saveIndex]?.dWlkd,
+ sMaterialsStyle: `${ sFieldName === "dWlcd" ? changeValue[sFieldName] : slaveData[saveIndex]?.dWlcd || 0}*${sFieldName === "dWlkd" ? changeValue[sFieldName] : slaveData[saveIndex]?.dWlkd|| 0}`,
};
}
@@ -996,6 +997,7 @@ const QuickQuoteEvent = props => {
newCopyTo.slave = commonUtils.isEmptyArr(slaveData) ? {} : slaveData[0];
for (let i = 0; i < partsNewInfo.length; i++) {
const partInfo = partsNewInfo[i];
+ console.log("🚀 ~ QuickQuoteEvent ~ partInfo:", partInfo)
const iIndex = i;
const partsDataRow = {};
for (const child of Object.keys(partInfo)) {
@@ -1035,6 +1037,7 @@ const QuickQuoteEvent = props => {
materialDataRow.sControlId = partsDataRow.sId;
// materialDataRow.sSlaveId = ' ';
materialDataRow.dMaterialsKQty = partsDataRow.iNumberofMaterial;
+ materialDataRow.sMaterialsStyle = partsDataRow.sMaterialsStyle;
const models = "Materials";
materialDataRow = await props.onMaterialsChange(materialDataRow, sModelsId, masterData, [], "dAuxiliaryQty", app, token, models);
materialDataRow = commonBusiness.getCalculateAllMoney(app, models, "dAuxiliaryQty", masterData, materialDataRow);
@@ -1065,8 +1068,9 @@ const QuickQuoteEvent = props => {
processPrintDataRow.sParentId = masterData.sId;
processPrintDataRow.sControlId = partsDataRow.sId;
// processPrintDataRow.sSlaveId = ' ';
- processPrintDataRow.sColorSerialMemo = JSON.stringify([{ sId: partInfo.sColorId, sName: partInfo.sColor, dColor: partInfo.iColor }]);
-
+ const iSpecialColor = partInfo.iSpecialColor !== undefined ? partInfo.iSpecialColor : partInfo.partInfoiSpecialColor;
+ processPrintDataRow.sColorSerialMemo = JSON.stringify([{ sId: partInfo.sColorId, sName: partInfo.sColor, dColor: partInfo.iColor, iSpecialColor }]);
+
processData.push(processPrintDataRow);
// 配套工序
if (bProcessAssort) {
@@ -2367,6 +2371,7 @@ const BoxComponent = props => {
// 查找符合条件的索引
const { selectedNode } = props.state;
const index = slaveData?.findIndex(x => x.sTreeNodeName === selectedNode.showName && x.sBoxModel === props.boxModel);
+
if (index !== undefined && index !== -1) {
// 计算开数
// 获取原始对象并创建一个新的对象进行更新
@@ -2389,10 +2394,10 @@ const BoxComponent = props => {
).toFixed(2)
),
// dWlcd: selectedNode.sTypeKey === 'juantong' ? Math.floor(dProductQty / dSinglePQty * ( length/ 1000)) : dWlcd,
- dWlcd: dWlcd,
- dWlkd: dWlkd,
+ dWlcd: sBillNo ? slaveData[index]?.dWlcd : dWlcd,
+ dWlkd: sBillNo ? slaveData[index]?.dWlkd : dWlkd,
dAuxiliaryQty: Math.floor((dProductQty / dSinglePQty) * (length / 1000)),
- dMachineQty: Math.floor(dProductQty / dSinglePQty),
+ dMachineQty: sBillNo && slaveData[index].dMachineQty ? slaveData[index].dMachineQty : Math.floor(dProductQty / dSinglePQty),
dSinglePQty: dSinglePQty,
dMaterialsKQty: dMaterialsKQty,
scale: scale,
@@ -3243,6 +3248,8 @@ const ManyComponent = props => {
},
fixedHeight: 145,
};
+ const pricingInProgress = commonFunc.showLocalMessage(props, "sNuclearPricing", "核价中");
+ const progress = commonFunc.showLocalMessage(props, "progress", "进度");
return (
@@ -3295,7 +3302,7 @@ const ManyComponent = props => {
{BtnPriceDetails}