Commit b736e7ac by 王志慧

commit

1 parent 0576db63
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<div slot="merchantTable" :style="{ width: `calc(100% - ${defaultLabelWidth} )` }"> <div slot="merchantTable" :style="{ width: `calc(100% - ${defaultLabelWidth} )` }">
<div class="table-title"> <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> </div>
<GLTable ref="warehousListRef" :hasPage="false" :tableParams="tableParams" :tableData="editForm.merchantList"> <GLTable ref="warehousListRef" :hasPage="false" :tableParams="tableParams" :tableData="editForm.merchantList">
<span slot="customBtn" slot-scope="scope"> <span slot="customBtn" slot-scope="scope">
...@@ -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) {
...@@ -127,7 +127,7 @@ export default { ...@@ -127,7 +127,7 @@ export default {
'editForm.warningValue'(newValue, oldValue) { 'editForm.warningValue'(newValue, oldValue) {
this.editForm.warningValue = limitPrice(newValue, oldValue, 6, 2) this.editForm.warningValue = limitPrice(newValue, oldValue, 6, 2)
}, },
// 库存预警上限 // 库存预警上限
'editForm.warningValueMax'(newValue, oldValue) { 'editForm.warningValueMax'(newValue, oldValue) {
this.editForm.warningValueMax = limitPrice(newValue, oldValue, 6, 2) this.editForm.warningValueMax = limitPrice(newValue, oldValue, 6, 2)
}, },
...@@ -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!