|
@@ -136,6 +136,7 @@
|
|
|
type="primary"
|
|
|
text="盘点"
|
|
|
:customStyle="customBtnStyle"
|
|
|
+ :disabled="!isEdit"
|
|
|
@click="handleCheck(item)"
|
|
|
class="action-btn"
|
|
|
></u-button>
|
|
@@ -143,6 +144,7 @@
|
|
|
v-else
|
|
|
type="primary"
|
|
|
text="重新盘点"
|
|
|
+ :disabled="!isEdit"
|
|
|
:customStyle="customBtnStyle"
|
|
|
@click="handleCheck(item)"
|
|
|
class="action-btn"
|
|
@@ -164,17 +166,6 @@
|
|
|
v-if="item.status === 4"
|
|
|
>
|
|
|
</u-tag>
|
|
|
- <!-- <u-button
|
|
|
- type="warning"
|
|
|
- text="盘亏"
|
|
|
- v-if="
|
|
|
- getGoodsInventoryStatusInfo(item.inventory, item.newInventory)
|
|
|
- .value === 3
|
|
|
- "
|
|
|
- :customStyle="customBtnStyle"
|
|
|
- plain
|
|
|
- class="action-btn action-btn-secondary"
|
|
|
- ></u-button> -->
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 加载更多 -->
|
|
@@ -284,6 +275,9 @@ export default {
|
|
|
100
|
|
|
);
|
|
|
},
|
|
|
+ isEdit() {
|
|
|
+ return this.pageType === "1";
|
|
|
+ },
|
|
|
...mapGetters(["userInfo"]),
|
|
|
},
|
|
|
onLoad(opt) {
|