Commit 594797e2 by caoyanzhi

update: 礼品列表调整库存

parent 47627387
......@@ -749,6 +749,7 @@
<dm-form-bottom>
<el-button
type="primary"
v-loading="submitLoading"
@click="submitGoodsForm('giftForm')"
size="small"
:disabled="$route.meta.type=='info'"
......@@ -2183,6 +2184,7 @@ export default {
// 保存
async submitGoodsForm(form) {
if (this.submitLoading) return;
this.giftForm.detailDescription = this.$refs.tinymceWrap.tinymceHtml;
let giftImageUrls = [];
let giftImageFiledCodes = [];
......@@ -2321,9 +2323,13 @@ export default {
this.$message.error('请选择配送方式');
return false;
}
this.submitLoading = true;
const data = await this.$refs.visibleSetting.submit()
if(!data) return false;
if(!data) {
this.submitLoading = false;
return false;
}
this.$refs[form].validate(valid => {
if (valid) {
if(this.submitLadderList) {
......@@ -2407,10 +2413,10 @@ export default {
if (this.isDifferentialPricing) {
this.confirmDetail(params);
} else {
this.submitLoading = true;
this.saveDeatail(params);
}
} else {
this.submitLoading = false;
return false;
}
});
......@@ -2424,7 +2430,6 @@ export default {
dangerouslyUseHTMLString: true,
confirmButtonText: '保存'
}).then(() => {
this.submitLoading = true;
this.saveDeatail(params);
});
},
......
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