Commit b736e7ac by 王志慧

commit

1 parent 0576db63
......@@ -16,7 +16,7 @@
<div slot="merchantTable" :style="{ width: `calc(100% - ${defaultLabelWidth} )` }">
<div class="table-title">
使用门店列表
<el-button type="primary" plain @click="handleRelateStoreClose(scope)">{{ editForm.merchantList.length ? '更换门店' : '选择门店' }}</el-button>
<el-button type="primary" plain @click="handleRelateStoreClose(scope)">{{ editForm.merchantList.length ? '更换门店' : '选择门店' }}</el-button>
</div>
<GLTable ref="warehousListRef" :hasPage="false" :tableParams="tableParams" :tableData="editForm.merchantList">
<span slot="customBtn" slot-scope="scope">
......@@ -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) {
......@@ -127,7 +127,7 @@ export default {
'editForm.warningValue'(newValue, oldValue) {
this.editForm.warningValue = limitPrice(newValue, oldValue, 6, 2)
},
// 库存预警上限
// 库存预警上限
'editForm.warningValueMax'(newValue, oldValue) {
this.editForm.warningValueMax = limitPrice(newValue, oldValue, 6, 2)
},
......@@ -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!