update: 细节优化

This commit is contained in:
admin 2024-05-21 15:28:03 +08:00
parent a761ecbeba
commit aea5e834d0
3 changed files with 27 additions and 4 deletions

View File

@ -315,7 +315,15 @@ const startSave = (v: boolean) => {
SupplierApi.updateSupplierUser({ ...model1.formData, delCard: v }).then(
(res) => {
if (res.code === 200) {
uni.navigateBack();
// uni.navigateBack();
uni.navigateBack({
delta: 1,
success: (res) => {
uni.$emit("pricingParams", {
name: model1.formData.name
});
},
});
}
}
);

View File

@ -775,9 +775,7 @@ onLoad((option) => {
title: "编辑信息",
});
}
});
onShow(() => {
if (model1.order.id) {
ReceiveApi.getDetailById({ id: model1.order.id }).then((res) => {
if (res.code === 200) {
@ -812,7 +810,17 @@ onShow(() => {
}
});
}
})
uni.$on("pricingParams", (data) => {
model1.order.userName = data.name
});
});
onShow(() => {});
onUnmounted(() => {
uni.$off("pricingParams", () => {});
});
</script>
<style lang="scss" scoped>
.c-card {

View File

@ -561,6 +561,13 @@ const save = () => {
}
check().then((res) => {
if (res) {
if (!model1.order.paymentMethodName && model1.scaleStatusBtnType === ScaleStatusBtnType.ShipmentPay) {
uni.showToast({
title: "请选择结算方式",
icon: "none",
});
return
}
startSave();
}
});