Commit fc5a11b0 by 王志慧

feat:适用范围修改

1 parent 83354f28
...@@ -97,6 +97,16 @@ export default { ...@@ -97,6 +97,16 @@ export default {
url: url, url: url,
loading: true, loading: true,
selectedSum: 0, selectedSum: 0,
scopeApplication: [
{
confId: '1',
confName: '旗下所有店通用'
},
{
confId: '2',
confName: '旗下品牌店通用'
}
],
orderShow: ['service', 'cash', 'discount', 'exchange'], orderShow: ['service', 'cash', 'discount', 'exchange'],
numToCoupon: { numToCoupon: {
2: 'discount', 2: 'discount',
...@@ -150,9 +160,15 @@ export default { ...@@ -150,9 +160,15 @@ export default {
addHtml: 'effectiveType' addHtml: 'effectiveType'
}, },
{ {
label: '使用限制', label: '适用范围',
prop: 'useType', name: 'scopeApplication',
addHtml: 'useType' formatter: cellValue => {
var scopeApplication = '-'
if (cellValue.scopeApplication) {
scopeApplication = this.scopeApplication.find(item => item.confId == cellValue.scopeApplication).confName
}
return scopeApplication
}
}, },
{ {
label: '剩余库存', label: '剩余库存',
...@@ -300,7 +316,7 @@ export default { ...@@ -300,7 +316,7 @@ export default {
recoverySelected() { recoverySelected() {
// 翻页,去掉已选项 // 翻页,去掉已选项
var selectedData = this.$refs[this.activeName + 'Ref'].mutiSelectArr.list var selectedData = this.$refs[this.activeName + 'Ref'].mutiSelectArr.list
console.log(selectedData,'4444444444444444') console.log(selectedData, '4444444444444444')
var deleteList = [] var deleteList = []
this.addSelected() this.addSelected()
if (selectedData) { if (selectedData) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!