fix(shopDealerOrder): 移除订单编辑中的冗余金额计算逻辑

- 删除了 shopDealerOrderEdit.vue 中基于 payPrice 的自动金额分配
- 删除了 shopDealerOrderEdit2.vue 中重复的金额
This commit is contained in:
2025-10-18 12:24:38 +08:00
parent 78d8b2478a
commit 5a6c1f8ec3
2 changed files with 0 additions and 18 deletions

View File

@@ -286,15 +286,6 @@ watch(
if (visible) { if (visible) {
if (props.data) { if (props.data) {
assignObject(form, props.data); assignObject(form, props.data);
if (props.data.orderPrice && props.data.rate) {
form.secondMoney = (Number(props.data.payPrice) * 0.3).toFixed(2)
if (props.data.thirdUserId && props.data.thirdUserId > 0) {
form.thirdMoney = (Number(props.data.payPrice) * 0.1).toFixed(2)
} else {
form.thirdMoney = (Number(props.data.payPrice) * 0.7).toFixed(2)
}
form.firstMoney = (Number(props.data.payPrice) * 0.6).toFixed(2)
}
isUpdate.value = true; isUpdate.value = true;
} else { } else {
// 重置为默认值 // 重置为默认值

View File

@@ -267,15 +267,6 @@
if (visible) { if (visible) {
if (props.data) { if (props.data) {
assignObject(form, props.data); assignObject(form, props.data);
if(props.data.orderPrice && props.data.rate){
form.firstMoney = (Number(props.data.payPrice) * 0.3).toFixed(2)
if(props.data.thirdUserId && props.data.thirdUserId > 0){
form.secondMoney = (Number(props.data.payPrice) * 0.1).toFixed(2)
}else {
form.secondMoney = (Number(props.data.payPrice) * 0.7).toFixed(2)
}
form.thirdMoney = (Number(props.data.payPrice) * 0.6).toFixed(2)
}
isUpdate.value = true; isUpdate.value = true;
} else { } else {
// 重置为默认值 // 重置为默认值