Commit 7f023b82 by caoyanzhi

update: 成本金额调整

parent feeb1e19
......@@ -1200,19 +1200,19 @@ export default {
card.costValueProportion = this.form.costValueProportion; //成本比例
card.costValueProportionFlag = this.form.costValueProportionFlag;
if (card.costValueType == 0) {
card.costValue = typeof this.form.costValueProportion == 'number' && typeof this.form.cardDenomination == 'number' ? this.form.costValueProportion * this.form.cardDenomination : 0; //成本
card.costValue = typeof this.form.costValueProportion == 'number' && typeof this.form.cardDenomination == 'number' ? (this.form.costValueProportion * this.form.cardDenomination) / 100 : 0; //成本
card.costStoreList = [];
}
if (card.costValueType == 1) {
card.costValue = undefined;
if (this.isEdit) {
card.costStoreList = this.selectedStoreList.map(el => {
el.costValue = typeof this.form.cardDenomination == 'number' && typeof el.costValueProportion == 'number' ? this.form.cardDenomination * el.costValueProportion : 0;
el.costValue = typeof this.form.cardDenomination == 'number' && typeof el.costValueProportion == 'number' ? (this.form.cardDenomination * el.costValueProportion) / 100 : 0;
return el;
});
} else if (this.isAdd || this.isCopy) {
card.costStoreList = this.originStoreList.map(el => {
el.costValue = typeof this.form.cardDenomination == 'number' && typeof el.costValueProportion == 'number' ? this.form.cardDenomination * el.costValueProportion : 0;
el.costValue = typeof this.form.cardDenomination == 'number' && typeof el.costValueProportion == 'number' ? (this.form.cardDenomination * el.costValueProportion) / 100 : 0;
return el;
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment