|
@@ -207,7 +207,7 @@
|
|
|
// 禁用货位产品
|
|
|
enableShelfProduct(){
|
|
|
const _this = this
|
|
|
- const isEnable = this.nowData&&this.nowData.shelfProductApiEntity&&this.nowData.shelfProductApiEntity.enableFlag==1
|
|
|
+ const isEnable = this.nowData&&this.nowData.shelfProductApiEntity&&this.nowData.shelfProductApiEntity.enableFlag==1 || this.nowData.enableFlag
|
|
|
if(isEnable){
|
|
|
clzConfirm({
|
|
|
title: '提示',
|
|
@@ -225,8 +225,9 @@
|
|
|
},
|
|
|
enableFun(isEnable){
|
|
|
const _this = this
|
|
|
+ const shelfProductSn = this.nowData.shelfProductApiEntity.shelfProductSn||this.nowData.shelfProductSn
|
|
|
_this.spinning = true
|
|
|
- shelfProductEnable({ shelfSn: this.nowData.shelfSn, shelfProductSn: this.nowData.shelfProductApiEntity.shelfProductSn, enableFlag: isEnable ? 0 : 1 }).then(res => {
|
|
|
+ shelfProductEnable({ shelfSn: this.nowData.shelfSn, shelfProductSn: shelfProductSn, enableFlag: isEnable ? 0 : 1 }).then(res => {
|
|
|
if (res.status == 200) {
|
|
|
uni.showToast({
|
|
|
icon: "none",
|