Commit b736e7ac by 王志慧

commit

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