Commit a2e636e0 by 杨北旺

修改bug

1 parent 6db15120
......@@ -593,7 +593,11 @@ export default {
,
closeDialog() {
if (!this.merchantDialogVisible && !this.formObj.smartcarlifeInfoId) {
return this.$message.error('请先选择商品')
return this.$message({
message: '请选择商品',
type: 'error',
customClass: 'message-Z-zinde'
})
}
this.merchantDialogVisible = !this.merchantDialogVisible
}
......
......@@ -374,6 +374,12 @@ export default {
name: 'marketPrice',
type: 'showTxt',
isHide: true
},
{
label: '库存',
name: 'goodsStock',
type: 'showTxt',
isHide: true
}
// {
// label: '颜色',
......@@ -690,9 +696,9 @@ export default {
this.expressInfoFormData = e == 2 ? selfGoodsExpreeCol : defaultExpreeColFn(this)
this.goodsFormData.forEach(item => {
item.isHide = (item.name == 'retailPrice' || item.name == 'minSellPrice') && (e == 2 || e == 4)
if ((item.name == 'marketPrice' || item.name == 'sellPrice' || item.name == 'goodsSkuName') && e == 4) {
if ((item.name == 'marketPrice' || item.name == 'sellPrice' || item.name == 'goodsSkuName' || item.name=='goodsStock') && e == 4) {
item.isHide = false
} else if ((item.name == 'marketPrice' || item.name == 'sellPrice' || item.name == 'goodsSkuName') && e != 4) {
} else if ((item.name == 'marketPrice' || item.name == 'sellPrice' || item.name == 'goodsSkuName' || item.name=='goodsStock') && e != 4) {
item.isHide = true
} else if (e == 4 && item.name == 'goodsName') {
item.isHide = true
......@@ -876,7 +882,7 @@ export default {
}
},
setYzhGoodsInfo(e) {
const { goodsSkuName, goodsImgUrl, goodsSkuCode, marketPrice, sellPrice } = e
const { goodsSkuName, goodsImgUrl, goodsSkuCode, marketPrice, sellPrice,goodsStock } = e
this.formObj = {
...this.formObj,
goodsSource: 4,
......@@ -889,7 +895,8 @@ export default {
marketPrice,
sellPrice,
coverList: [goodsImgUrl],
smartcarlifeInfoId: e.id
smartcarlifeInfoId: e.id,
goodsStock
}
},
confirmDialog(e) {
......
......@@ -292,7 +292,7 @@ export default {
startSellPrice: '',
endSellPrice: '',
startDiffPrice: '',
endDiffPrice: '',
endDiffPrice: ''
}
}
},
......@@ -366,14 +366,14 @@ export default {
goodsName: '',
discoverGoodsId: '',
goodsType: '',
shelvesStatus:'',
shelvesStatus: ''
}
this.yzhSearchForm = {
categoryCode: [],
startSellPrice: '',
endSellPrice: '',
startDiffPrice: '',
endDiffPrice: '',
endDiffPrice: ''
}
this.resetTable()
},
......@@ -415,7 +415,12 @@ export default {
},
handleConfirm() {
if (Object.keys(this.curInfo).length) this.$emit('handleGoodsConfirm', this.curInfo)
else this.$message.error('请选择商品')
else
this.$message({
message: '请选择商品',
type: 'error',
customClass: 'message-Z-zinde'
})
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!