Commit c2658055 by caoyanzhi

update: 奥莱抵金券

parent 47b58111
......@@ -51,7 +51,7 @@ const initForm = {
useDescript: '不可与其他卡券叠加使用,详询门店',
// shelfIds: [],
verificationType: 0,
cardDenomination: 0,
cardDenomination: undefined,
proNoList: [],
discount_amount_upper_limit: 0,
goods_discounts_number_upper_limit: 0,
......@@ -463,7 +463,7 @@ export default {
this.selectedStoreList = [];
this.originStoreList = [...this.form.costStoreList];
}
if (this.isEdit || this.isCopy) {
if (this.isEdit) {
this.storeUuid = this.storeUuidCache;
}
},
......@@ -537,7 +537,6 @@ export default {
.then(res => {
const { importId, importCount, importSuccessCount, importDuplicateCount, costStoreList } = res.result;
if (res.errorCode != 0) return;
this.storeUuid = '';
this.importCost.costStoreList = costStoreList;
if (importCount == importSuccessCount) {
this.$message.success(`${importSuccessCount}条数据上传成功`);
......@@ -562,7 +561,15 @@ export default {
onSaveImportCost() {
if (this.isAdd || this.isCopy) {
// 新建卡券导入的数据覆盖之前的数据
this.originStoreList = this.importCost.costStoreList;
if (this.storeMode == 1) {
this.storeUuid = '';
setTimeout(() => {
this.$refs.storeSelector.resetSelector(5);
this.originStoreList = this.importCost.costStoreList;
}, 20);
} else {
this.originStoreList = this.importCost.costStoreList;
}
}
this.importCost.visible = false;
},
......
......@@ -97,7 +97,7 @@
<i class="iconfont icon-QuestionCircleOutlined"></i>
</el-tooltip>
</template>
<dm-store-selector class="card-store-selector" :uuid.sync="storeUuid" :default-all="false" :options="[5]" :store-type-disabled="isEdit && form.costValueType == 0" @optionsChange="onOptionsChange" @store-change="onStoreChange"></dm-store-selector>
<dm-store-selector class="card-store-selector" ref="storeSelector" :uuid.sync="storeUuid" :default-all="false" :options="[5]" :store-type-disabled="isEdit && form.costValueType == 0" @optionsChange="onOptionsChange" @store-change="onStoreChange"></dm-store-selector>
<div v-if="form.costValueProportionFlag == 1" class="cost-box">
<div v-if="form.costValueType == 0" class="fixed-cost">
<el-form-item label="成本比例" prop="costValueProportion" label-width="85px"><el-input-number v-model="form.costValueProportion" :disabled="isEdit || isInfo" :min="0" :max="100" :precision="0" :controls="false" style="margin-right: 10px; width: 130px" placeholder="请输入成本比例"></el-input-number>%</el-form-item>
......
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