|
|
@ -214,6 +214,15 @@ export default { |
|
|
sampleAndToolingCostUsd: this.sumPreviewCost(sampleCostUsd, this.toCostNumber(row.toolingCostUsd)) |
|
|
sampleAndToolingCostUsd: this.sumPreviewCost(sampleCostUsd, this.toCostNumber(row.toolingCostUsd)) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
// 人民币单价只预览人民币样品费,不改美元样品费和模具合计。
|
|
|
|
|
|
if (editingProp === 'tpRmbKct') { |
|
|
|
|
|
const qty = this.getRowSampleQty(row) |
|
|
|
|
|
return { |
|
|
|
|
|
sampleCostRmb: normalized.value == null || qty == null |
|
|
|
|
|
? null |
|
|
|
|
|
: this.roundCost(normalized.value * qty / 1000) |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
if (editingProp === 'toolingCostCn') { |
|
|
if (editingProp === 'toolingCostCn') { |
|
|
const toolingCostUsd = normalized.value == null || rate == null |
|
|
const toolingCostUsd = normalized.value == null || rate == null |
|
|
? null |
|
|
? null |
|
|
@ -238,6 +247,9 @@ export default { |
|
|
if (columnProp === 'sampleCostUsd') { |
|
|
if (columnProp === 'sampleCostUsd') { |
|
|
return '修改 TP 时按 TP(KCT/USD) × Sample Qty / 1000 计算' |
|
|
return '修改 TP 时按 TP(KCT/USD) × Sample Qty / 1000 计算' |
|
|
} |
|
|
} |
|
|
|
|
|
if (columnProp === 'sampleCostRmb') { |
|
|
|
|
|
return '修改 TP 时按 TP(RMB/KCT) × Sample Qty / 1000 计算' |
|
|
|
|
|
} |
|
|
if (columnProp === 'toolingCostUsd') { |
|
|
if (columnProp === 'toolingCostUsd') { |
|
|
return `修改 Tooling cost/CN 时按人民币 / ${rateText}` |
|
|
return `修改 Tooling cost/CN 时按人民币 / ${rateText}` |
|
|
} |
|
|
} |
|
|
@ -462,6 +474,7 @@ export default { |
|
|
trackingId: row.trackingId, |
|
|
trackingId: row.trackingId, |
|
|
customizedForMasAls: this.isBlankValue(row.customizedForMasAls) ? null : String(row.customizedForMasAls).trim(), |
|
|
customizedForMasAls: this.isBlankValue(row.customizedForMasAls) ? null : String(row.customizedForMasAls).trim(), |
|
|
tpKctUsd: this.toCostNumber(row.tpKctUsd), |
|
|
tpKctUsd: this.toCostNumber(row.tpKctUsd), |
|
|
|
|
|
tpRmbKct: this.toCostNumber(row.tpRmbKct), |
|
|
toolingCostCn: this.toCostNumber(row.toolingCostCn), |
|
|
toolingCostCn: this.toCostNumber(row.toolingCostCn), |
|
|
sampleCostFromFnCn: this.toCostNumber(row.sampleCostFromFnCn), |
|
|
sampleCostFromFnCn: this.toCostNumber(row.sampleCostFromFnCn), |
|
|
updateBy: this.$store.state.user.name |
|
|
updateBy: this.$store.state.user.name |
|
|
@ -494,9 +507,11 @@ export default { |
|
|
const fields = [ |
|
|
const fields = [ |
|
|
'customizedForMasAls', |
|
|
'customizedForMasAls', |
|
|
'tpKctUsd', |
|
|
'tpKctUsd', |
|
|
|
|
|
'tpRmbKct', |
|
|
'toolingCostCn', |
|
|
'toolingCostCn', |
|
|
'sampleCostFromFnCn', |
|
|
'sampleCostFromFnCn', |
|
|
'sampleCostUsd', |
|
|
'sampleCostUsd', |
|
|
|
|
|
'sampleCostRmb', |
|
|
'toolingCostUsd', |
|
|
'toolingCostUsd', |
|
|
'sampleAndToolingCostUsd', |
|
|
'sampleAndToolingCostUsd', |
|
|
'sampleCostFromFnUsd' |
|
|
'sampleCostFromFnUsd' |
|
|
|