|
@@ -1,7 +1,10 @@
|
|
|
<template>
|
|
|
<view class="content flex flex_column">
|
|
|
<u-navbar back-text="编辑货位" :border-bottom="false">
|
|
|
- <view slot='right' style="padding: 0 30upx;" @click="enableShelfProduct" v-if="type=='edit'&&nowData&&nowData.shelfProductApiEntity&&!nowData.shelfProductApiEntity.qty">
|
|
|
+ <view slot='right'
|
|
|
+ style="padding: 0 30upx;"
|
|
|
+ @click="enableShelfProduct"
|
|
|
+ v-if="type=='edit'&&nowData&&nowData.shelfProductApiEntity&&(!nowData.shelfProductApiEntity.qty||(nowData.shelfProductApiEntity.enableFlag==0&&nowData.shelfProductApiEntity.qty))">
|
|
|
<text :style="{color:nowData&&nowData.shelfProductApiEntity.enableFlag==1?$config('errorColor'):$config('primaryColor')}">{{nowData&&nowData.shelfProductApiEntity.enableFlag==1?'禁用':'启用'}}</text>
|
|
|
</view>
|
|
|
</u-navbar>
|