remove customer package
This commit is contained in:
@@ -51,7 +51,7 @@
|
||||
</div>
|
||||
</t-form-item>
|
||||
</t-form>
|
||||
<div v-else class="empty" v-text="'暂无可履约明细,请返回订单详情或客户套餐详情检查'" />
|
||||
<div v-else class="empty" v-text="'暂无可履约明细,请返回订单详情检查'" />
|
||||
<t-form class="form" label-align="left" label-width="6rem">
|
||||
<t-form-item label="履约时间" content-align="right">
|
||||
<t-button
|
||||
@@ -124,7 +124,7 @@ const canFulfillByPayment = computed(() => order.value?.paymentStatus === "PAID"
|
||||
async function loadData(): Promise<void> {
|
||||
const salesOrderId = String(route.query.salesOrderId || "");
|
||||
if (!salesOrderId) {
|
||||
Message.warning("请从订单详情或客户套餐详情进入履约创建");
|
||||
Message.warning("请从订单详情进入履约创建");
|
||||
await router.replace("/management/order-fulfillments");
|
||||
return;
|
||||
}
|
||||
@@ -169,7 +169,7 @@ function buildAttachments(): Partial<Attachment>[] {
|
||||
|
||||
function validate(): boolean {
|
||||
if (!order.value?.id) {
|
||||
Message.warning("请从订单详情或客户套餐详情进入履约创建");
|
||||
Message.warning("请从订单详情进入履约创建");
|
||||
return false;
|
||||
}
|
||||
if (order.value.status !== "ACTIVE") {
|
||||
|
||||
@@ -63,11 +63,11 @@ const actions = computed<NavBarAction[]>(() => [
|
||||
action: toSalesOrderList
|
||||
},
|
||||
{
|
||||
key: "by-package",
|
||||
text: "通过套餐创建",
|
||||
key: "by-package-order",
|
||||
text: "通过套餐订单创建",
|
||||
icon: "gift",
|
||||
theme: "primary",
|
||||
action: toCustomerPackageList
|
||||
action: toPackageOrderList
|
||||
}
|
||||
]);
|
||||
const status = ref<"ALL" | GaoFulfillmentStatus>(getInitialStatus(route.query.status));
|
||||
@@ -163,11 +163,20 @@ async function toDetail(item: OrderFulfillment): Promise<void> {
|
||||
}
|
||||
|
||||
async function toSalesOrderList(): Promise<void> {
|
||||
await router.push({ name: "SalesOrderList" });
|
||||
await router.push({
|
||||
name: "SalesOrderList",
|
||||
query: { transitionDepth: String(getCurrentRouteDepth() + 1) }
|
||||
});
|
||||
}
|
||||
|
||||
async function toCustomerPackageList(): Promise<void> {
|
||||
await router.push({ name: "CustomerPackageList" });
|
||||
async function toPackageOrderList(): Promise<void> {
|
||||
await router.push({
|
||||
name: "SalesOrderList",
|
||||
query: {
|
||||
orderType: "PACKAGE",
|
||||
transitionDepth: String(getCurrentRouteDepth() + 1)
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function getCurrentRouteDepth(): number {
|
||||
|
||||
Reference in New Issue
Block a user