Commit a2e636e0 by 杨北旺

修改bug

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