提交 b2212cb5 authored 作者: huaxinzhu's avatar huaxinzhu

资产优化;商品保存失败,数据还原(非除以100)

上级 5715125e
......@@ -3,6 +3,7 @@
<el-card class="box-card">
<p class="card-header-tip">
提现状态:<span class="pay-status">{{ payStatusFormatter(withdrawInfo.pay_status) }}</span>
<!-- 提现状态:<strong>{{ payStatusFormatter(withdrawInfo.pay_status) }}</strong>-->
<span>如果您是电子发票,则不用填写快递公司和单号信息,需上传电子发票图片,同时将电子发票发送至电子邮箱,查看</span>
<span class="checked-email-rule" @click="isViewSendRuleDialog = true">【电子邮箱及发票发送格式】</span>
</p>
......@@ -81,7 +82,7 @@
<p><span class="span-title spe-1">附件:</span>电子发票</p>
</div>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="isViewSendRuleDialog = false" >取 消</el-button>
<el-button type="primary" @click="isViewSendRuleDialog = false" size="small">关 闭</el-button>
</span>
</el-dialog>
......@@ -174,12 +175,12 @@
:preview-src-list="viewInvoiceForm.invoiceImgList">
</el-image>
</div>
<div class="textTip">最多上传一张图片,仅限jpg/png格式,大小限制在500kb以内</div>
<!-- <div class="textTip">最多上传一张图片,仅限jpg/png格式,大小限制在500kb以内</div>-->
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button type="primary" @click="isViewInvoiceAgainDialog = false" size="small">确 定</el-button>
<el-button type="primary" @click="isViewInvoiceAgainDialog = false" size="small">关 闭</el-button>
</span>
</el-dialog>
......@@ -288,6 +289,7 @@
//debugger
if (res.code == 1) {
if(res.data) {
this.$message({type:'success',message:'导出成功'});
const aLink = document.createElement('a');
aLink.href = res.data;
//aLink.download = '订单.xls'; //下载的文件名
......@@ -525,6 +527,7 @@
color: #333333;
padding: 0 15px;
margin-bottom: 0;
overflow: hidden;
}
.pay-status {
margin: 0 10px;
......
......@@ -380,7 +380,7 @@
urlObj.url = res.data.image_url;
this.goodsImgFileList.push(urlObj);
this.goodsImgFileList.forEach(item=> {
//this.goodsInfoForm.imgs.push(item.url)
this.goodsInfoForm.imgs.push(item.url)
})
this.$message({type:'success',message:'图片上传成功'});
// 只清除一次,不浪费哦
......
......@@ -318,7 +318,9 @@ export default {
});
},
// 如果保存失败,将乘以100的价格还原
/**如果保存失败,将乘以100的价格还原
* 当多规格数据时候,才调用
* */
priceReduce() {
// debugger
if(this.parameterdata.pamTableList && this.parameterdata.pamTableList.length > 0) {
......@@ -336,20 +338,21 @@ export default {
item[0].sl_price = item[0].sl_price / 100;
}
})
}else {
if(this.singleSpecTable[0].js_price) {
this.singleSpecTable[0].js_price = this.singleSpecTable[0].js_price / 100
}
if(this.singleSpecTable[0].price) {
this.singleSpecTable[0].price = this.singleSpecTable[0].price / 100
}
if(this.singleSpecTable[0].sc_price) {
this.singleSpecTable[0].sc_price = this.singleSpecTable[0].sc_price / 100
}
if(this.singleSpecTable[0].sl_price) {
this.singleSpecTable[0].sl_price = this.singleSpecTable[0].sl_price / 100
}
}
// else {
// if(this.singleSpecTable[0].js_price) {
// this.singleSpecTable[0].js_price = this.singleSpecTable[0].js_price / 100
// }
// if(this.singleSpecTable[0].price) {
// this.singleSpecTable[0].price = this.singleSpecTable[0].price / 100
// }
// if(this.singleSpecTable[0].sc_price) {
// this.singleSpecTable[0].sc_price = this.singleSpecTable[0].sc_price / 100
// }
// if(this.singleSpecTable[0].sl_price) {
// this.singleSpecTable[0].sl_price = this.singleSpecTable[0].sl_price / 100
// }
// }
},
// 删除 单个规格的图片
......
......@@ -596,7 +596,8 @@
query: { goodsStatus: goodsStatus }
});
} else {
//this.$refs.goodsparameter.priceReduce()
// 如果保存失败,将价格还原,仅处理 多规格数据
this.$refs.goodsparameter.priceReduce()
let msg = res.message ? res.message : '编辑失败'
this.$message({type: 'error', message: msg});
}
......@@ -619,8 +620,8 @@
query: { goodsStatus: goodsStatus }
});
}else {
// 如果保存失败,将价格还原
//this.$refs.goodsparameter.priceReduce()
// 如果保存失败,将价格还原,仅处理 多规格数据
this.$refs.goodsparameter.priceReduce()
let msg = res.message ? res.message : '新增失败'
this.$message({type: 'error', message: msg});
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论