update: 结算部分优化

This commit is contained in:
admin 2024-05-31 14:30:23 +08:00
parent b4f15aeb8b
commit 4b4c39ae5a
6 changed files with 27 additions and 11 deletions

View File

@ -19,8 +19,8 @@ const props = withDefaults(
}
);
const navbarRect = reactive({
height: 32,
top: 28,
height: 42,
top: 48,
safeHeight: 500,
});
const getSafeHeight = () => {

View File

@ -67,8 +67,8 @@ const props = withDefaults(
);
const navbarRect = reactive({
height: 32,
top: 28,
height: 42,
top: 48,
msgCount: 10,
});
onMounted(() => {

View File

@ -15,8 +15,8 @@
</template>
<script setup lang="ts">
const navbarRect = reactive({
height: 32,
top: 28,
height: 42,
top: 48,
msgCount: 10,
});

View File

@ -169,8 +169,8 @@ import pinia from "@/store";
const store = useMemberStore(pinia);
const navbarRect = reactive({
height: 32,
top: 28,
height: 42,
top: 48,
safeHeight: 500,
});

View File

@ -436,7 +436,16 @@ onLoad((option) => {
state.order[item.enName] = state.order["totalPrice"];
}
} else {
item.num = state.order[item.enName as string];
if (item.enName === 'buckleMiscellaneous') {
if (state.order[item.enName as string]) {
item.num = state.order[item.enName as string];
} else {
item.num = 0
}
} else {
item.num = state.order[item.enName as string];
}
}
});
}

View File

@ -113,7 +113,14 @@ const handleClear = (item: any) => {
};
const isShowFormItem = (item: any) => {
if (model1.scaleStatusBtnType === ScaleStatusBtnType.ShipmentPay) {
return true;
if (
model1.order.deliveryMethod === 1 &&
["freight", "incidentals"].indexOf(item.key) > -1
) {
return false;
} else {
return true;
}
} else {
return (
item.key !== "paymentMethodName" &&