Commit cdd7bd09 by wangql

新增代金券适用商品项调整到面值之上

1 parent 10d3920c
...@@ -73,8 +73,8 @@ ...@@ -73,8 +73,8 @@
</template> </template>
<!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 --> <!-- 新增时并且为指定商品时显示,编辑或者查看时也显示 -->
<div slot="proTable" class="select-pro"> <div slot="proTable" class="select-pro">
<div style="height:70px" v-if="editForm.goodsRefList.length"></div> <!-- <div style="height:70px" v-if="editForm.goodsRefList.length"></div> -->
<GLTable v-show="editForm.goodsRefList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.goodsRefList" style="padding-left:10px;padding-right:10px"> <GLTable v-show="editForm.goodsRefList.length" :hasPage="false" :tableParams="tableParams" :tableData="editForm.goodsRefList" style="padding-left:10px;width:70vw;max-height:350px;overflow: auto;">
<template slot="goodsImage" slot-scope="scope"> <template slot="goodsImage" slot-scope="scope">
<img class="img-60" :src="scope.scope.goodsImage" /> <img class="img-60" :src="scope.scope.goodsImage" />
</template> </template>
...@@ -199,17 +199,6 @@ export default { ...@@ -199,17 +199,6 @@ export default {
addHtml: 'useBarriersHtml' addHtml: 'useBarriersHtml'
}, },
{ {
label: '面值',
name: 'denomination',
addHtml: 'denominationHtml'
},
{
label: '库存',
name: 'stock',
width: '150px',
type: 'input'
},
{
label: '适用商品', label: '适用商品',
name: 'goods', name: 'goods',
addHtml: 'goodsHtml', addHtml: 'goodsHtml',
...@@ -222,6 +211,17 @@ export default { ...@@ -222,6 +211,17 @@ export default {
isHide: true isHide: true
}, },
{ {
label: '面值',
name: 'denomination',
addHtml: 'denominationHtml'
},
{
label: '库存',
name: 'stock',
width: '150px',
type: 'input'
},
{
label: '使用说明', label: '使用说明',
name: 'useDescription', name: 'useDescription',
addHtml: 'useDescriptionHtml' addHtml: 'useDescriptionHtml'
...@@ -282,27 +282,27 @@ export default { ...@@ -282,27 +282,27 @@ export default {
}, },
'editForm.useChannel'(newValue, oldValue) { 'editForm.useChannel'(newValue, oldValue) {
if (newValue == 1) { if (newValue == 1) {
this.editFormData[6].isHide = false this.editFormData[4].isHide = false
if (this.editForm.goodsRefList.length) { if (this.editForm.goodsRefList.length) {
this.editFormData[7].isHide = false this.editFormData[5].isHide = false
} }
} else { } else {
this.editForm.useBarriers = '1' this.editForm.useBarriers = '1'
this.editForm.full = '' this.editForm.full = ''
this.editFormData[6].isHide = true this.editFormData[4].isHide = true
this.editFormData[7].isHide = true this.editFormData[5].isHide = true
} }
}, },
'editForm.goods'(newValue, oldValue) { 'editForm.goods'(newValue, oldValue) {
if (newValue == 1) { if (newValue == 1) {
//全部商品 //全部商品
this.minPirce = this.minPirceForAll this.minPirce = this.minPirceForAll
this.editFormData[7].isHide = true this.editFormData[5].isHide = true
} else { } else {
//指定商品 //指定商品
this.minPirce = this.minPirceForPart this.minPirce = this.minPirceForPart
if (this.editForm.goodsRefList.length) { if (this.editForm.goodsRefList.length) {
this.editFormData[7].isHide = false this.editFormData[5].isHide = false
} }
} }
if (this.editForm.denomination && this.minPirce && this.editForm.denomination * 100 > this.minPirce) { if (this.editForm.denomination && this.minPirce && this.editForm.denomination * 100 > this.minPirce) {
...@@ -314,9 +314,9 @@ export default { ...@@ -314,9 +314,9 @@ export default {
'editForm.goodsRefList'(newValue, oldValue) { 'editForm.goodsRefList'(newValue, oldValue) {
if (newValue.length) { if (newValue.length) {
this.editFormData[7].isHide = false this.editFormData[5].isHide = false
} else { } else {
this.editFormData[7].isHide = true this.editFormData[5].isHide = true
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!