修改
This commit is contained in:
parent
86db5cb75e
commit
845b4e285e
@ -73,6 +73,17 @@ export default {
|
||||
label: "是",
|
||||
},
|
||||
],
|
||||
integraloption: [
|
||||
{
|
||||
value: 0,
|
||||
label: "否",
|
||||
},
|
||||
{
|
||||
value: 1,
|
||||
label: "是",
|
||||
},
|
||||
],
|
||||
value:"",
|
||||
// goodAttributeDetailsLists:[],
|
||||
goodDetailsLists: [],
|
||||
ids: [],
|
||||
@ -217,6 +228,9 @@ export default {
|
||||
goodsPrice: "",
|
||||
goodsStock: "",
|
||||
sort: null,
|
||||
integralExchangeCount:null,
|
||||
integralExchangeFlag:null,
|
||||
integralExchangeSill:null,
|
||||
idd: this.idd,
|
||||
};
|
||||
this.goodDetailsLists.push(obj);
|
||||
@ -317,6 +331,9 @@ export default {
|
||||
attributePitureUrl: "",
|
||||
goodsPrice: "",
|
||||
goodsStock: "",
|
||||
integralExchangeCount:null,
|
||||
integralExchangeFlag:null,
|
||||
integralExchangeSill:null,
|
||||
sort: null,
|
||||
idd: 9999999,
|
||||
}, ];
|
||||
@ -360,6 +377,9 @@ export default {
|
||||
attributePitureUrl: "",
|
||||
goodsPrice: "",
|
||||
goodsStock: "",
|
||||
integralExchangeCount:null,
|
||||
integralExchangeFlag:null,
|
||||
integralExchangeSill:null,
|
||||
sort: null,
|
||||
idd: 9999999,
|
||||
}, ];
|
||||
@ -387,6 +407,16 @@ export default {
|
||||
console.log(this.goodDetailsLists);
|
||||
this.form.goodAttributeDetailsLists = [];
|
||||
this.form.goodDetailsLists = this.goodDetailsLists;
|
||||
if (!this.form.goodDetailsLists.integralExchangeFlag) {
|
||||
this.form.goodDetailsLists.integralExchangeFlag = null
|
||||
}
|
||||
if (this.form.goodDetailsLists.integralExchangeSill=="") {
|
||||
this.form.goodDetailsLists.integralExchangeSill = null
|
||||
|
||||
}
|
||||
if (this.form.goodDetailsLists.integralExchangeCount == "") {
|
||||
this.form.goodDetailsLists.integralExchangeCount = null
|
||||
}
|
||||
console.log(this.form);
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
|
||||
@ -260,6 +260,42 @@
|
||||
></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="积分兑换标识" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-select
|
||||
v-model.number="scope.row.integralExchangeFlag"
|
||||
placeholder="请选择积分兑换标识"
|
||||
clearable
|
||||
>
|
||||
<el-option
|
||||
v-for="item in integraloption"
|
||||
:key="item.value"
|
||||
:label="item.label"
|
||||
:value="item.value"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="积分兑换门槛值" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model.number="scope.row.integralExchangeSill"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
placeholder="积分兑换门槛值"
|
||||
maxLength="10"
|
||||
></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="积分兑换商品数量" align="center">
|
||||
<template slot-scope="scope">
|
||||
<el-input
|
||||
v-model.number="scope.row.integralExchangeCount"
|
||||
oninput="value=value.replace(/[^\d]/g,'')"
|
||||
placeholder="积分兑换商品数量"
|
||||
maxLength="10"
|
||||
></el-input>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="商品属性图片" align="center" width="300">
|
||||
<template slot-scope="scope">
|
||||
<stationAcatar
|
||||
|
||||
Loading…
Reference in New Issue
Block a user