update: 细节优化
This commit is contained in:
parent
a761ecbeba
commit
aea5e834d0
|
@ -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
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
}
|
||||
);
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue