Commit b736e7ac by 王志慧

commit

1 parent 0576db63
......@@ -109,7 +109,7 @@ export default {
},
// 售价
'editForm.sellPrice'(newValue, oldValue) {
this.editForm.sellPrice = limitPrice(newValue, oldValue, 6, 2,)
this.editForm.sellPrice = limitPrice(newValue, oldValue, 6, 2)
},
// 最低售价
'editForm.minSellPrice'(newValue, oldValue) {
......@@ -117,7 +117,7 @@ export default {
},
// 赠送成本
'editForm.giftCost'(newValue, oldValue) {
this.editForm.giftCost = limitPrice(newValue, oldValue, 6, 2)? limitPrice(newValue, oldValue, 6, 2):this.editForm.giftCost
this.editForm.giftCost = limitPrice(newValue, oldValue, 6, 2) ? limitPrice(newValue, oldValue, 6, 2) : this.editForm.giftCost
},
// 产品成本
'editForm.productCost'(newValue, oldValue) {
......@@ -148,7 +148,7 @@ export default {
methods: {
keyDown() {
document.onkeydown = function () {
document.onkeydown = function() {
var evt = window.event || arguments[0]
if (evt && evt.keyCode == 13) {
if (typeof evt.cancelBubble != 'undefined') evt.cancelBubble = true
......@@ -196,7 +196,7 @@ export default {
},
// 产品类型改变
handleCheckChange(val, attr) {
let baseAttrList = ['赠送成本/元',]
let baseAttrList = ['赠送成本/元']
let upAttrList = ['售价/元', '最低售价/元', '产品成本/元']
switch (attr) {
case 'baseProductFlag':
......@@ -215,7 +215,7 @@ export default {
minSellPrice: '',
productCost: '',
warningValue: '',
warningValueMax:'',
warningValueMax: '',
giftCost: '',
warrantyPeriod: ''
}
......@@ -249,8 +249,8 @@ export default {
type: 'warning',
callback: action => {
if (action == 'confirm') {
var idx = this.editForm.merchantList.findIndex(item => item.merchantNo == obj.scope.merchantNo)
this.editForm.merchantList.splice(idx, 1)
var idx = this.editForm.merchantList.findIndex(item => item.merchantId == obj.scope.merchantId)
this.editForm.merchantList.splice(idx--, 1)
}
}
})
......@@ -292,7 +292,7 @@ export default {
.then(() => {
this.cancelJump()
})
.catch(() => { })
.catch(() => {})
} else {
this.cancelJump()
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!