Commit e5c9b1f5 by 胡悦
2 parents 20607d42 8d5ffa18
...@@ -133,6 +133,7 @@ export default { ...@@ -133,6 +133,7 @@ export default {
couponName: '', couponName: '',
useChannel: '1', useChannel: '1',
effectiveType: '3', effectiveType: '3',
effectiveTime: [],
effectiveDays: '', effectiveDays: '',
useBarriers: '1', useBarriers: '1',
full: '', full: '',
......
...@@ -367,7 +367,12 @@ export default { ...@@ -367,7 +367,12 @@ export default {
}) })
}, },
handleImgDown(src) { handleImgDown(src) {
window.open(src) // window.open(src)
var a = document.createElement('a')
a.setAttribute('href', src)
a.setAttribute('target', '_blank')
document.body.appendChild(a)
a.click()
}, },
// 图片删除 // 图片删除
handleImgDelete(attrName, subIndex) { handleImgDelete(attrName, subIndex) {
......
...@@ -648,7 +648,12 @@ export default { ...@@ -648,7 +648,12 @@ export default {
handleExport(row) { handleExport(row) {
var params = this.getParams() var params = this.getParams()
this.$apis.orderManage.orderExportApi(params).then(res => { this.$apis.orderManage.orderExportApi(params).then(res => {
window.open(res) // window.open(res)
var a = document.createElement('a')
a.setAttribute('href', res)
a.setAttribute('target', '_blank')
document.body.appendChild(a)
a.click()
}) })
}, },
......
...@@ -237,7 +237,7 @@ export default { ...@@ -237,7 +237,7 @@ export default {
watch: { watch: {
'editForm.activityPrice'(newValue, oldValue) { 'editForm.activityPrice'(newValue, oldValue) {
this.editForm.activityPrice = limitPrice(newValue, oldValue, 5, 2, 0, this.selectedProInfo.retailPrice / 100) this.editForm.activityPrice = limitPrice(newValue, oldValue, 5, 2, 0, (this.selectedProInfo.retailPrice / 100).toFixed(2))
}, },
'editForm.goodsStock'(newValue, oldValue) { 'editForm.goodsStock'(newValue, oldValue) {
this.editForm.goodsStock = limitPrice(newValue, oldValue, 5, 0, 0, this.selectedProInfo.goodsStock) this.editForm.goodsStock = limitPrice(newValue, oldValue, 5, 0, 0, this.selectedProInfo.goodsStock)
...@@ -455,9 +455,8 @@ export default { ...@@ -455,9 +455,8 @@ export default {
getCouponInfoParams() { getCouponInfoParams() {
var _this = this var _this = this
var param = this.editForm var param = this.$common.utils.deepClone(this.editForm)
// param.activityPrice = (param.activityPrice*100).toFixed(2) //存的分,需乘100 param.activityPrice = (param.activityPrice * 100).toFixed(0) //存的分,需乘100
param.activityPrice = param.activityPrice * 100 //存的分,需乘100
if (this.routeInfo.id) { if (this.routeInfo.id) {
param.id = this.routeInfo.id param.id = this.routeInfo.id
} }
...@@ -473,8 +472,7 @@ export default { ...@@ -473,8 +472,7 @@ export default {
param.specificationDetailList = [] param.specificationDetailList = []
this.nameToValSpecsList.forEach(function(item) { this.nameToValSpecsList.forEach(function(item) {
var obj = { var obj = {
// retailPrice : (item.activityPrice*100).toFixed(0), //存的分,需乘100 retailPrice: (item.activityPrice * 100).toFixed(0), //存的分,需乘100
retailPrice: item.activityPrice * 100, //存的分,需乘100
stock: item.goodsStock, stock: item.goodsStock,
specificationData: item.specificationData, specificationData: item.specificationData,
specificationKey: item.specificationKey specificationKey: item.specificationKey
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!