Commit 85c96719 by caoyanzhi

update: 奥莱抵金券

parent 6c9d76f4
......@@ -869,9 +869,9 @@ export default {
this.form.costValueProportionFlag = card.costValueProportionFlag || 0; // 卡券成本比例 1:开 0:关
this.form.costValueType = card.costValueType || 0; //成本费用0固定成本1门店成本
this.form.costValueProportion = card.costValueProportion; //成本比例
this.form.costStoreList = (this.isEdit || this.isInfo || this.isCopy) && Array.isArray(card.costStoreList) ? card.costStoreList : [];
this.form.costStoreList = (this.isEdit || this.isInfo || this.isCopy) && card.storeWidgetKey && Array.isArray(card.costStoreList) ? card.costStoreList : [];
this.originStoreList = this.form.costStoreList;
if (this.isCopy) {
if (this.isCopy && card.storeWidgetKey) {
this.onStoreChange(card.storeWidgetKey);
}
}
......@@ -1084,7 +1084,7 @@ export default {
if (this.form.cardType == 3) {
if (this.form.costValueProportionFlag == 1) {
if (!this.storeUuid || (!(this.isEdit && this.storeMode == 0) && (!Array.isArray(this.originStoreList) || this.originStoreList.length == 0))) {
if (!(this.isEdit && this.storeMode == 0) && (!Array.isArray(this.originStoreList) || this.originStoreList.length == 0)) {
this.$tips({ type: 'warning', message: '请选择卡券适用门店' });
const body = document.getElementsByClassName('dm-layout-page')[0];
toTop(body, this.$refs.useStore.$el.offsetTop - body.offsetTop);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment