|
|
@@ -21,6 +21,11 @@
|
|
|
<image class="function-icon" :src="iconSrc('store')" mode="aspectFit" />
|
|
|
<text class="function-text function-text--overlay function-text--sm">切换门店</text>
|
|
|
</view>
|
|
|
+ <view class="function-item function-item--overlay"
|
|
|
+ @click="pageTo({ url: '/admin/staff/list'})">
|
|
|
+ <image class="function-icon" :src="iconSrc('staff')" mode="aspectFit" />
|
|
|
+ <text class="function-text function-text--overlay function-text--sm">我的员工</text>
|
|
|
+ </view>
|
|
|
<view class="function-item function-item--overlay"
|
|
|
@click="pageTo({ url: '/admin/shop/add?id=' + loginInfo.shopId })">
|
|
|
<image class="function-icon" :src="iconSrc('stock-my-address')" mode="aspectFit" />
|
|
|
@@ -30,14 +35,11 @@
|
|
|
<image class="function-icon" :src="iconSrc('stock-purchase-stats')" mode="aspectFit" />
|
|
|
<text class="function-text function-text--overlay function-text--sm">采购统计</text>
|
|
|
</view>
|
|
|
- <view class="function-item function-item--overlay" @click="goMore()">
|
|
|
- <image class="function-icon" :src="iconSrc('stock-deleted-wholesaler')" mode="aspectFit" />
|
|
|
- <text class="function-text function-text--overlay function-text--sm">已删商家</text>
|
|
|
- </view>
|
|
|
- <view class="function-item function-item--overlay" @click="getMall()">
|
|
|
- <image class="function-icon" :src="iconSrc('open-shop')" mode="aspectFit" />
|
|
|
- <text class="function-text function-text--overlay function-text--sm">零售商城</text>
|
|
|
+ <view class="function-item function-item--overlay" @click="openWorkbenchMore()">
|
|
|
+ <image class="function-icon" :src="iconSrc('stock-more-features')" mode="aspectFit" />
|
|
|
+ <text class="function-text function-text--overlay function-text--sm">更多操作</text>
|
|
|
</view>
|
|
|
+
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
|
@@ -213,6 +215,33 @@
|
|
|
</view>
|
|
|
</uni-popup>
|
|
|
|
|
|
+ <!-- 工作台更多操作:零售商城、已删商家 -->
|
|
|
+ <uni-popup ref="workbenchMorePopup" background-color="transparent" type="center" :animation="true" class="ghs-more-popup">
|
|
|
+ <view class="ghs-more-card">
|
|
|
+ <view class="ghs-more-header">
|
|
|
+ <text class="ghs-more-title">更多操作</text>
|
|
|
+ <text class="ghs-more-subtitle">请选择功能</text>
|
|
|
+ </view>
|
|
|
+ <view class="ghs-more-body">
|
|
|
+ <view class="ghs-more-row ghs-more-row--primary" @click="goMallFromMore()">
|
|
|
+ <text class="ghs-more-row__label">零售商城</text>
|
|
|
+ <text class="ghs-more-row__arrow">›</text>
|
|
|
+ </view>
|
|
|
+ <view class="ghs-more-row" @click="goDeletedWholesaler()">
|
|
|
+ <text class="ghs-more-row__label">已删商家</text>
|
|
|
+ <text class="ghs-more-row__arrow">›</text>
|
|
|
+ </view>
|
|
|
+ <view class="ghs-more-row" @click="goDimissionFromMore()">
|
|
|
+ <text class="ghs-more-row__label">申请离职</text>
|
|
|
+ <text class="ghs-more-row__arrow">›</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="ghs-more-footer">
|
|
|
+ <view class="ghs-more-cancel" @click="closeWorkbenchMore()">取消</view>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ </uni-popup>
|
|
|
+
|
|
|
<!-- 多供货商提示弹框 -->
|
|
|
<uni-popup ref="supplierNoticePopup" background-color="#fff" type="center" :animation="true"
|
|
|
class="supplier-notice-popup">
|
|
|
@@ -438,9 +467,29 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- goMore() {
|
|
|
+ /** 打开工作台更多操作弹框 */
|
|
|
+ openWorkbenchMore() {
|
|
|
+ this.$refs.workbenchMorePopup.open('center')
|
|
|
+ },
|
|
|
+ /** 关闭工作台更多操作弹框 */
|
|
|
+ closeWorkbenchMore() {
|
|
|
+ this.$refs.workbenchMorePopup.close()
|
|
|
+ },
|
|
|
+ /** 更多操作:跳转已删商家 */
|
|
|
+ goDeletedWholesaler() {
|
|
|
+ this.closeWorkbenchMore()
|
|
|
this.$util.pageTo({ url: '/pagesPurchase/pb' })
|
|
|
},
|
|
|
+ /** 更多操作:跳转零售商城 */
|
|
|
+ goMallFromMore() {
|
|
|
+ this.closeWorkbenchMore()
|
|
|
+ this.getMall()
|
|
|
+ },
|
|
|
+ /** 更多操作:跳转申请离职 */
|
|
|
+ goDimissionFromMore() {
|
|
|
+ this.closeWorkbenchMore()
|
|
|
+ this.$util.pageTo({ url: '/admin/staff/dimission' })
|
|
|
+ },
|
|
|
getMall(){
|
|
|
this.$util.pageTo({ url: '/pagesPurchase/open' })
|
|
|
},
|