|
@@ -24,7 +24,10 @@
|
|
style="width:320px"
|
|
style="width:320px"
|
|
required
|
|
required
|
|
>
|
|
>
|
|
- <el-input v-model.trim="promotion.promotionName" :disabled='edit'></el-input>
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model.trim="promotion.promotionName"
|
|
|
|
+ :disabled="edit"
|
|
|
|
+ ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<!--促销描述-->
|
|
<!--促销描述-->
|
|
@@ -34,7 +37,10 @@
|
|
style="width:320px"
|
|
style="width:320px"
|
|
required
|
|
required
|
|
>
|
|
>
|
|
- <el-input v-model.trim="promotion.promotionInfo" :disabled='edit'></el-input>
|
|
|
|
|
|
+ <el-input
|
|
|
|
+ v-model.trim="promotion.promotionInfo"
|
|
|
|
+ :disabled="edit"
|
|
|
|
+ ></el-input>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<!--促销店铺-->
|
|
<!--促销店铺-->
|
|
@@ -43,7 +49,7 @@
|
|
prop="promotionStore"
|
|
prop="promotionStore"
|
|
required
|
|
required
|
|
>
|
|
>
|
|
- <el-select v-model="promotion.promotionStore" :disabled='edit'>
|
|
|
|
|
|
+ <el-select v-model="promotion.promotionStore" :disabled="edit">
|
|
<el-option
|
|
<el-option
|
|
:key="index"
|
|
:key="index"
|
|
v-for="(item, index) in storeList"
|
|
v-for="(item, index) in storeList"
|
|
@@ -60,7 +66,7 @@
|
|
required
|
|
required
|
|
>
|
|
>
|
|
<el-date-picker
|
|
<el-date-picker
|
|
- :disabled='edit'
|
|
|
|
|
|
+ :disabled="edit"
|
|
type="datetime"
|
|
type="datetime"
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
@@ -75,7 +81,7 @@
|
|
required
|
|
required
|
|
>
|
|
>
|
|
<el-date-picker
|
|
<el-date-picker
|
|
- :disabled='edit'
|
|
|
|
|
|
+ :disabled="edit"
|
|
type="datetime"
|
|
type="datetime"
|
|
placeholder="选择日期"
|
|
placeholder="选择日期"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
@@ -90,7 +96,7 @@
|
|
required
|
|
required
|
|
>
|
|
>
|
|
<el-input-number
|
|
<el-input-number
|
|
- :disabled='edit'
|
|
|
|
|
|
+ :disabled="edit"
|
|
v-model="promotion.participateNum"
|
|
v-model="promotion.participateNum"
|
|
:min="1"
|
|
:min="1"
|
|
controls-position="right"
|
|
controls-position="right"
|
|
@@ -99,15 +105,19 @@
|
|
|
|
|
|
<!--是否互斥-->
|
|
<!--是否互斥-->
|
|
<el-form-item :label="$t('label.mutual')" prop="mutual" required>
|
|
<el-form-item :label="$t('label.mutual')" prop="mutual" required>
|
|
- <el-radio-group v-model="promotion.mutual" :disabled='edit'>
|
|
|
|
|
|
+ <el-radio-group v-model="promotion.mutual" :disabled="edit">
|
|
<el-radio :label="true">{{ $t("yes") }}</el-radio>
|
|
<el-radio :label="true">{{ $t("yes") }}</el-radio>
|
|
<el-radio :label="false">{{ $t("no") }}</el-radio>
|
|
<el-radio :label="false">{{ $t("no") }}</el-radio>
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
|
|
|
<!--是否可叠加,只有当互斥的时候才能选择-->
|
|
<!--是否可叠加,只有当互斥的时候才能选择-->
|
|
- <el-form-item v-if="this.promotion.mutual == true" :label="$t('label.isSuperposition')"
|
|
|
|
- prop="isSuperposition" required>
|
|
|
|
|
|
+ <el-form-item
|
|
|
|
+ v-if="this.promotion.mutual == true"
|
|
|
|
+ :label="$t('label.isSuperposition')"
|
|
|
|
+ prop="isSuperposition"
|
|
|
|
+ required
|
|
|
|
+ >
|
|
<el-radio-group v-model="promotion.isSuperposition">
|
|
<el-radio-group v-model="promotion.isSuperposition">
|
|
<el-radio :label="true">{{ $t("yes") }}</el-radio>
|
|
<el-radio :label="true">{{ $t("yes") }}</el-radio>
|
|
<el-radio :label="false">{{ $t("no") }}</el-radio>
|
|
<el-radio :label="false">{{ $t("no") }}</el-radio>
|
|
@@ -121,7 +131,7 @@
|
|
required
|
|
required
|
|
>
|
|
>
|
|
<el-input-number
|
|
<el-input-number
|
|
- :disabled='edit'
|
|
|
|
|
|
+ :disabled="edit"
|
|
v-model="promotion.participateWeight"
|
|
v-model="promotion.participateWeight"
|
|
controls-position="right"
|
|
controls-position="right"
|
|
></el-input-number>
|
|
></el-input-number>
|
|
@@ -136,7 +146,7 @@
|
|
<el-select
|
|
<el-select
|
|
v-model="promotion.participateType"
|
|
v-model="promotion.participateType"
|
|
@change="handleChangeParticipateType"
|
|
@change="handleChangeParticipateType"
|
|
- :disabled='edit'
|
|
|
|
|
|
+ :disabled="edit"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
:key="index"
|
|
:key="index"
|
|
@@ -154,7 +164,7 @@
|
|
v-if="promotion.participateType !== 'gift_all'"
|
|
v-if="promotion.participateType !== 'gift_all'"
|
|
required
|
|
required
|
|
>
|
|
>
|
|
- <el-select v-model="promotion.conditionType" :disabled='edit'>
|
|
|
|
|
|
+ <el-select v-model="promotion.conditionType" :disabled="edit">
|
|
<el-option
|
|
<el-option
|
|
:key="index"
|
|
:key="index"
|
|
v-for="(item, index) in conditionTypeArr"
|
|
v-for="(item, index) in conditionTypeArr"
|
|
@@ -174,7 +184,7 @@
|
|
promotion.participateType !== 'gift_all'
|
|
promotion.participateType !== 'gift_all'
|
|
"
|
|
"
|
|
required
|
|
required
|
|
- :disabled='edit'
|
|
|
|
|
|
+ :disabled="edit"
|
|
>
|
|
>
|
|
<el-input-number
|
|
<el-input-number
|
|
v-if="promotion.participateType === 'gift_money'"
|
|
v-if="promotion.participateType === 'gift_money'"
|
|
@@ -183,18 +193,18 @@
|
|
:precision="4"
|
|
:precision="4"
|
|
:step="1"
|
|
:step="1"
|
|
controls-position="right"
|
|
controls-position="right"
|
|
- :disabled='edit'
|
|
|
|
|
|
+ :disabled="edit"
|
|
/>
|
|
/>
|
|
<el-input-number
|
|
<el-input-number
|
|
v-if="promotion.participateType === 'gift_qty'"
|
|
v-if="promotion.participateType === 'gift_qty'"
|
|
v-model="promotion.conditionValue"
|
|
v-model="promotion.conditionValue"
|
|
controls-position="right"
|
|
controls-position="right"
|
|
- :disabled='edit'
|
|
|
|
|
|
+ :disabled="edit"
|
|
/>
|
|
/>
|
|
<el-select
|
|
<el-select
|
|
v-if="promotion.participateType === 'gift_consumer'"
|
|
v-if="promotion.participateType === 'gift_consumer'"
|
|
v-model="promotion.conditionValue"
|
|
v-model="promotion.conditionValue"
|
|
- :disabled='edit'
|
|
|
|
|
|
+ :disabled="edit"
|
|
>
|
|
>
|
|
<el-option
|
|
<el-option
|
|
:key="index"
|
|
:key="index"
|
|
@@ -211,7 +221,7 @@
|
|
prop="goodsRelation"
|
|
prop="goodsRelation"
|
|
required
|
|
required
|
|
>
|
|
>
|
|
- <el-select v-model="promotion.goodsRelation" :disabled='edit'>
|
|
|
|
|
|
+ <el-select v-model="promotion.goodsRelation" :disabled="edit">
|
|
<el-option
|
|
<el-option
|
|
:key="index"
|
|
:key="index"
|
|
v-for="(item, index) in $t('label.goodsRelationArr')"
|
|
v-for="(item, index) in $t('label.goodsRelationArr')"
|
|
@@ -227,7 +237,7 @@
|
|
prop="goodsScope"
|
|
prop="goodsScope"
|
|
required
|
|
required
|
|
>
|
|
>
|
|
- <el-select v-model="promotion.goodsScope" :disabled='edit'>
|
|
|
|
|
|
+ <el-select v-model="promotion.goodsScope" :disabled="edit">
|
|
<el-option
|
|
<el-option
|
|
:key="index"
|
|
:key="index"
|
|
v-for="(item, index) in $t('label.goodsScopeArr')"
|
|
v-for="(item, index) in $t('label.goodsScopeArr')"
|
|
@@ -243,7 +253,7 @@
|
|
prop="giftRelation"
|
|
prop="giftRelation"
|
|
required
|
|
required
|
|
>
|
|
>
|
|
- <el-select v-model="promotion.giftRelation" :disabled='edit'>
|
|
|
|
|
|
+ <el-select v-model="promotion.giftRelation" :disabled="edit">
|
|
<el-option
|
|
<el-option
|
|
:key="index"
|
|
:key="index"
|
|
v-for="(item, index) in $t('label.giftRelationArr')"
|
|
v-for="(item, index) in $t('label.giftRelationArr')"
|
|
@@ -268,7 +278,7 @@
|
|
type="primary"
|
|
type="primary"
|
|
@click="handleSaveOrUpdate"
|
|
@click="handleSaveOrUpdate"
|
|
v-if="promotion.promotionStatus !== 1"
|
|
v-if="promotion.promotionStatus !== 1"
|
|
- :disabled='edit'
|
|
|
|
|
|
+ :disabled="edit"
|
|
>{{ $t("view.confirm") }}
|
|
>{{ $t("view.confirm") }}
|
|
</el-button>
|
|
</el-button>
|
|
</template>
|
|
</template>
|
|
@@ -314,9 +324,9 @@ export default {
|
|
conditionValue: "",
|
|
conditionValue: "",
|
|
goodsRelation: "",
|
|
goodsRelation: "",
|
|
goodsScope: "",
|
|
goodsScope: "",
|
|
- giftRelation: "",
|
|
|
|
|
|
+ giftRelation: ""
|
|
},
|
|
},
|
|
- edit:true,
|
|
|
|
|
|
+ edit: true,
|
|
storeList: [],
|
|
storeList: [],
|
|
noDataText: "加载中",
|
|
noDataText: "加载中",
|
|
baseRule: {
|
|
baseRule: {
|
|
@@ -353,7 +363,7 @@ export default {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
},
|
|
},
|
|
- async showDialog(id,edit) {
|
|
|
|
|
|
+ async showDialog(id, edit) {
|
|
this.edit = !edit;
|
|
this.edit = !edit;
|
|
await this.getStoreList();
|
|
await this.getStoreList();
|
|
if (id) {
|
|
if (id) {
|