t-button in navbar
This commit is contained in:
@@ -331,34 +331,3 @@ html.theme-dark body {
|
||||
transform: translate3d(0, 0, 0);
|
||||
}
|
||||
|
||||
.nav-action {
|
||||
font: inherit;
|
||||
color: var(--td-brand-color);
|
||||
border: 0;
|
||||
cursor: pointer;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
|
||||
&.nav-action-icon {
|
||||
color: var(--td-text-color-primary, #333);
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
&.danger {
|
||||
color: var(--td-error-color);
|
||||
}
|
||||
|
||||
&.nav-action-prominent {
|
||||
color: var(--td-brand-color, #0052d9);
|
||||
padding: .25rem .5rem;
|
||||
font-size: .95rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
&:disabled {
|
||||
color: var(--td-text-color-disabled);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7,15 +7,15 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="canUseAi"
|
||||
class="nav-history"
|
||||
type="button"
|
||||
:disabled="aiChatPanelRef?.isBusy"
|
||||
@click="aiChatPanelRef?.openConversationList()"
|
||||
>
|
||||
历史
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="历史"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-if="canUseAi" class="ai-chat-page">
|
||||
@@ -58,18 +58,6 @@ function startNewConversation(): void {
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
.nav-history {
|
||||
color: var(--td-brand-color);
|
||||
border: none;
|
||||
padding: 0;
|
||||
background: transparent;
|
||||
}
|
||||
|
||||
.nav-history:disabled {
|
||||
color: var(--td-text-color-disabled);
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.ai-chat-page {
|
||||
height: 100%;
|
||||
overflow: hidden;
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="customer?.id && userStore.hasPermissions(permissionCodes.customer.update)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="toEdit"
|
||||
>
|
||||
编辑
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="编辑"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div
|
||||
|
||||
@@ -7,15 +7,15 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
:disabled="isCustomerBound"
|
||||
@click="doSubmit"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="savePermissionCode" class="customer-edit">
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
class="nav-action"
|
||||
type="button"
|
||||
<t-button
|
||||
@click="toInviteRank"
|
||||
>
|
||||
排行
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="排行"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="canUpdate"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="toEdit"
|
||||
>
|
||||
编辑
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="编辑"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="saveEventItem"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="pageAccess" class="event-edit">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="canUpdateRecord"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="toEdit"
|
||||
>
|
||||
编辑
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="编辑"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.eventRecord.read" class="event-record-detail">
|
||||
|
||||
@@ -7,13 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(pageAccess)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="submitRecord"
|
||||
v-text="saveButtonText"
|
||||
></button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
:content="saveButtonText"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="pageAccess" class="registration-record-edit">
|
||||
|
||||
@@ -7,7 +7,13 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button class="nav-action" type="button" @click="saveSort">保存</button>
|
||||
<t-button
|
||||
@click="saveSort"
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.event.update" class="registration-event-sort">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="canUpdate"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="toEdit"
|
||||
>
|
||||
编辑
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="编辑"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.customerFollowUpReminder.read" class="follow-up-reminder-detail">
|
||||
|
||||
@@ -7,12 +7,13 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
class="nav-action"
|
||||
type="button"
|
||||
<t-button
|
||||
@click="save"
|
||||
v-text="isEditMode ? '保存' : '提交'"
|
||||
></button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
:content="isEditMode ? '保存' : '提交'"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="pageAccess" class="follow-up-reminder-edit">
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
class="nav-action"
|
||||
type="button"
|
||||
<t-button
|
||||
@click="save"
|
||||
>
|
||||
提交
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="提交"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.orderFulfillment.create" class="fulfillment-create">
|
||||
|
||||
@@ -8,9 +8,14 @@
|
||||
@left-click="handleBack"
|
||||
>
|
||||
<template #right>
|
||||
<button class="nav-action nav-action-prominent" type="button" :disabled="isSaving || isStockChecking || sourceOrderLoading" @click="save">
|
||||
<span v-text="isSaving ? '提交中' : '提交'" />
|
||||
</button>
|
||||
<t-button
|
||||
:disabled="isSaving || isStockChecking || sourceOrderLoading"
|
||||
@click="save"
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
:content="isSaving ? '提交中' : '提交'"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<main v-can="permissionCodes.orderFulfillment.create" class="page-content scroll column content">
|
||||
|
||||
@@ -7,12 +7,13 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
class="nav-action"
|
||||
type="button"
|
||||
<t-button
|
||||
@click="saveNotification"
|
||||
v-text="scheduleAtText ? '提交' : '发送'"
|
||||
></button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
:content="scheduleAtText ? '提交' : '发送'"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="corePermissionCodes.notify.create" class="notify-management-create">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="detail?.id && canDeleteNotify"
|
||||
class="nav-action danger"
|
||||
type="button"
|
||||
@click="confirmDelete"
|
||||
>
|
||||
删除
|
||||
</button>
|
||||
theme="danger"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="删除"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="corePermissionCodes.notify.read" class="notify-detail">
|
||||
|
||||
@@ -8,7 +8,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button v-if="canReadNotify && canCreateNotify" class="nav-action" type="button" @click="toCreate">新建</button>
|
||||
<t-button
|
||||
v-if="canReadNotify && canCreateNotify"
|
||||
@click="toCreate"
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="新建"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<main v-can="corePermissionCodes.notify.read" class="page-content scroll list">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="detail?.id"
|
||||
class="nav-action danger"
|
||||
type="button"
|
||||
@click="confirmDelete"
|
||||
>
|
||||
删除
|
||||
</button>
|
||||
theme="danger"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="删除"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="corePermissionCodes.notify.read" class="notify-detail">
|
||||
|
||||
@@ -8,14 +8,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="canReadNotify && 0 < unreadCount"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="markAllRead"
|
||||
>
|
||||
全部已读
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="全部已读"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<main v-can="corePermissionCodes.notify.read" class="page-content scroll list">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="canUpdate"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="toEdit"
|
||||
>
|
||||
编辑
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="编辑"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.packageConfig.read" class="package-config-detail">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="save"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="savePermissionCode" class="package-config-edit">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(permissionCodes.customerPackage.create)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="submitRecord"
|
||||
>
|
||||
提交
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="提交"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.customerPackage.create" class="package-purchase">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="canEditActiveRole && canUpdateRolePermission"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="savePermissionList"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div
|
||||
|
||||
@@ -7,15 +7,15 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="hasSavePermission"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
:disabled="!canSaveBaseInfo"
|
||||
@click="saveBaseInfo"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="pageAccess" class="role-edit">
|
||||
|
||||
@@ -8,14 +8,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="canCreateRole"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="toCreate"
|
||||
>
|
||||
添加
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="添加"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<main v-can="{ value: [corePermissionCodes.role.read, corePermissionCodes.permission.read], mode: 'and' }" class="page-content scroll list">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="canEditActiveRole && canUpdateRolePermission"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="savePermissionList"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
class="nav-action"
|
||||
type="button"
|
||||
<t-button
|
||||
@click="save"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.pointRedeemSku.manage" class="redeem-sku-edit">
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
class="nav-action"
|
||||
type="button"
|
||||
<t-button
|
||||
@click="save"
|
||||
>
|
||||
兑换
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="兑换"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.pointRedemption.create" class="redemption-create">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="rule?.id && canUpdate"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="toEdit"
|
||||
>
|
||||
编辑
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="编辑"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.pointRule.read" class="point-rule-detail">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="saveRule"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="pageAccess" class="point-rule-edit">
|
||||
|
||||
@@ -7,7 +7,13 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button class="nav-action" type="button" @click="saveSort">保存</button>
|
||||
<t-button
|
||||
@click="saveSort"
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.pointRule.update" class="point-rule-sort">
|
||||
|
||||
@@ -7,14 +7,15 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
class="nav-action nav-action-icon"
|
||||
type="button"
|
||||
<t-button
|
||||
aria-label="刷新"
|
||||
@click="reload"
|
||||
theme="default"
|
||||
variant="text"
|
||||
size="small"
|
||||
>
|
||||
<t-icon name="refresh" size="1.25rem" />
|
||||
</button>
|
||||
</t-button>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.stat.read" class="gao-chart-page order-data-charts">
|
||||
|
||||
@@ -7,7 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button v-if="userStore.hasPermissions(permissionCodes.productCategory.update)" class="nav-action" type="button" @click="saveSort">保存</button>
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(permissionCodes.productCategory.update)"
|
||||
@click="saveSort"
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.productCategory.update" class="product-category-rank">
|
||||
|
||||
@@ -7,14 +7,15 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
class="nav-action nav-action-icon"
|
||||
type="button"
|
||||
<t-button
|
||||
aria-label="刷新"
|
||||
@click="reload"
|
||||
theme="default"
|
||||
variant="text"
|
||||
size="small"
|
||||
>
|
||||
<t-icon name="refresh" size="1.25rem" />
|
||||
</button>
|
||||
</t-button>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.stat.read" class="gao-chart-page product-data-charts">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="save"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="savePermissionCode" class="product-edit">
|
||||
|
||||
@@ -7,14 +7,15 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(permissionCodes.productStock.create)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
:disabled="!canSubmit"
|
||||
@click="submit"
|
||||
v-text="isSaving ? '提交中' : '提交'"
|
||||
></button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
:content="isSaving ? '提交中' : '提交'"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.productStock.create" class="product-stock-batch-configure">
|
||||
|
||||
@@ -8,15 +8,15 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="canReadAndCreate"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
:disabled="!canContinue"
|
||||
@click="toConfigure"
|
||||
>
|
||||
下一步
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="下一步"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<main v-can="permissionCodes.productStock.create" class="page-content scroll list">
|
||||
|
||||
@@ -8,14 +8,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="canBatchIn"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="openBatchIn"
|
||||
>
|
||||
批量入库
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="批量入库"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<main ref="productStockListRef" v-can="permissionCodes.productStock.read" class="page-content scroll list">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(permissionCodes.fund.revoke)"
|
||||
class="nav-action danger"
|
||||
type="button"
|
||||
@click="save"
|
||||
>
|
||||
提交
|
||||
</button>
|
||||
theme="danger"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="提交"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.fund.revoke" class="package-operation-edit">
|
||||
|
||||
@@ -7,12 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(permissionCodes.salesOrder.cancel)"
|
||||
class="nav-action danger"
|
||||
type="button"
|
||||
@click="save"
|
||||
>确认</button>
|
||||
theme="danger"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="确认"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.salesOrder.cancel" class="sales-order-operation">
|
||||
|
||||
@@ -7,12 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(permissionCodes.fund.refund)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="save"
|
||||
>提交</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="提交"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.fund.refund" class="sales-order-operation">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(permissionCodes.fundReceive.create)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="save"
|
||||
>
|
||||
提交
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="提交"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.fundReceive.create" class="sales-order-operation">
|
||||
|
||||
@@ -7,12 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(permissionCodes.fund.refund)"
|
||||
class="nav-action danger"
|
||||
type="button"
|
||||
@click="save"
|
||||
>提交</button>
|
||||
theme="danger"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="提交"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.fund.refund" class="sales-order-operation">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="article?.id && canUpdate && !isDeleting"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="toEdit"
|
||||
>
|
||||
编辑
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="编辑"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.storeDiary.read" class="store-diary-detail">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="save"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="pageAccess" class="store-diary-edit">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="doSave"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="savePermissionCode" class="store-edit">
|
||||
|
||||
@@ -7,7 +7,13 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button class="nav-action" type="button" @click="saveSort">保存</button>
|
||||
<t-button
|
||||
@click="saveSort"
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="permissionCodes.store.update" class="store-sort">
|
||||
|
||||
@@ -12,9 +12,15 @@
|
||||
:max-count="99"
|
||||
:show-zero="false"
|
||||
>
|
||||
<button class="nav-action nav-action-icon" type="button" aria-label="通知" @click="router.push('/notify')">
|
||||
<t-button
|
||||
aria-label="通知"
|
||||
@click="router.push('/notify')"
|
||||
theme="default"
|
||||
variant="text"
|
||||
size="small"
|
||||
>
|
||||
<t-icon name="notification" size="1.25rem" />
|
||||
</button>
|
||||
</t-button>
|
||||
</t-badge>
|
||||
</template>
|
||||
</t-navbar>
|
||||
|
||||
@@ -1,14 +1,15 @@
|
||||
<template>
|
||||
<t-navbar fixed :z-index="20" title="门店">
|
||||
<template #right>
|
||||
<button
|
||||
class="nav-action nav-action-icon"
|
||||
type="button"
|
||||
<t-button
|
||||
aria-label="刷新"
|
||||
@click="refreshCharts"
|
||||
theme="default"
|
||||
variant="text"
|
||||
size="small"
|
||||
>
|
||||
<t-icon name="refresh" size="1.25rem" />
|
||||
</button>
|
||||
</t-button>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<main class="page-content scroll column store-tab">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="currentUser && userStore.hasPermissions(permissionCodes.user.update)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="toEdit"
|
||||
>
|
||||
编辑
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="编辑"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(savePermissionCode)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="saveUser"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="savePermissionCode" class="user-edit">
|
||||
|
||||
@@ -7,13 +7,13 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
class="nav-action"
|
||||
type="button"
|
||||
<t-button
|
||||
@click="saveProfile"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div class="profile-page">
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
@left-click="$router.back()"
|
||||
>
|
||||
<template #right>
|
||||
<button
|
||||
<t-button
|
||||
v-if="userStore.hasPermissions(corePermissionCodes.userRole.create) && userStore.hasPermissions(corePermissionCodes.userRole.delete)"
|
||||
class="nav-action"
|
||||
type="button"
|
||||
@click="saveRoleList"
|
||||
>
|
||||
保存
|
||||
</button>
|
||||
theme="primary"
|
||||
variant="text"
|
||||
size="small"
|
||||
content="保存"
|
||||
/>
|
||||
</template>
|
||||
</t-navbar>
|
||||
<div v-can="corePermissionCodes.userRole.read" class="user-role-assign">
|
||||
|
||||
Reference in New Issue
Block a user