Commit e1c332b0 by chenwq

冗余代码

1 parent 22b1b1fb
...@@ -870,10 +870,6 @@ export default { ...@@ -870,10 +870,6 @@ export default {
}, },
deep: true deep: true
}, },
// 规格
specificationDetailList(newValue, oldValue) {
console.log(newValue, '规格--')
},
// 零售价 // 零售价
'editForm.retailPrice'(newValue, oldValue) { 'editForm.retailPrice'(newValue, oldValue) {
this.editForm.retailPrice = limitPrice(newValue, oldValue, 5, 2) this.editForm.retailPrice = limitPrice(newValue, oldValue, 5, 2)
...@@ -906,7 +902,6 @@ export default { ...@@ -906,7 +902,6 @@ export default {
'editForm.relatedCouponId'(newValue, oldValue) { 'editForm.relatedCouponId'(newValue, oldValue) {
let inx = this.externalFormList[2].editFormData.findIndex(val => val.name == 'deliveryType') let inx = this.externalFormList[2].editFormData.findIndex(val => val.name == 'deliveryType')
this.externalFormList[2].editFormData[inx].optionList.find(k => k.confId == 2).isDisabled = !!newValue this.externalFormList[2].editFormData[inx].optionList.find(k => k.confId == 2).isDisabled = !!newValue
// console.log(this.associationList)
if (newValue) { if (newValue) {
this.editForm.deliveryType = 1 this.editForm.deliveryType = 1
this.editForm.goodsStock = this.associationList[0].residueAmount + '' this.editForm.goodsStock = this.associationList[0].residueAmount + ''
...@@ -930,7 +925,6 @@ export default { ...@@ -930,7 +925,6 @@ export default {
this.$refs.merchantTableRef[0].tableHeightValues = '400px' this.$refs.merchantTableRef[0].tableHeightValues = '400px'
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft this.footerWidth = document.documentElement.clientWidth - this.footerLeft
// console.log(this.routeInfo)
this.getBaseDate().then(() => { this.getBaseDate().then(() => {
this.getOptionsList(0, 'editFormData', false) this.getOptionsList(0, 'editFormData', false)
}) })
...@@ -945,7 +939,6 @@ export default { ...@@ -945,7 +939,6 @@ export default {
//业务类型请求 //业务类型请求
businessGetBusinessTypeById() { businessGetBusinessTypeById() {
this.$apis.proManage.getBusinessTypeByIdApi({}).then(res => { this.$apis.proManage.getBusinessTypeByIdApi({}).then(res => {
// console.log('res', res)
var idx = this.externalFormList[0].editFormData.findIndex(subItem => subItem.name == 'businessType') var idx = this.externalFormList[0].editFormData.findIndex(subItem => subItem.name == 'businessType')
this.externalFormList[0].editFormData[idx].businessTypeList = res this.externalFormList[0].editFormData[idx].businessTypeList = res
}) })
...@@ -1298,7 +1291,6 @@ export default { ...@@ -1298,7 +1291,6 @@ export default {
curSpeceNameList: curSpeceNameList curSpeceNameList: curSpeceNameList
} }
this.spescEditForm = status == 2 ? this.$common.utils.deepClone(targetItem) : { specificationName: '', specificationValueList: [] } this.spescEditForm = status == 2 ? this.$common.utils.deepClone(targetItem) : { specificationName: '', specificationValueList: [] }
// console.log(this.spescEditForm)
this.handleSpescClose() this.handleSpescClose()
}, },
...@@ -1337,7 +1329,6 @@ export default { ...@@ -1337,7 +1329,6 @@ export default {
// 获取商品信息 // 获取商品信息
getInfo() { getInfo() {
this.$apis.proManage.getProInfoApi({ id: this.routeInfo.id }).then(res => { this.$apis.proManage.getProInfoApi({ id: this.routeInfo.id }).then(res => {
// console.log('res', res)
this.editForm = { this.editForm = {
...res, ...res,
goodsVideo: res.goodsVideo || '', goodsVideo: res.goodsVideo || '',
...@@ -1356,7 +1347,6 @@ export default { ...@@ -1356,7 +1347,6 @@ export default {
businessType: [] businessType: []
} }
this.editForm.businessType = this.editForm.businessTypeList.filter(item => item.isChoose == 1).map(item => item.businessType) this.editForm.businessType = this.editForm.businessTypeList.filter(item => item.isChoose == 1).map(item => item.businessType)
console.log(this.editForm)
if (res.relatedCoupon) { if (res.relatedCoupon) {
this.editForm.relatedCouponId = res.relatedCoupon.id this.editForm.relatedCouponId = res.relatedCoupon.id
this.editForm.relatedCouponName = res.relatedCoupon.couponName this.editForm.relatedCouponName = res.relatedCoupon.couponName
...@@ -1387,7 +1377,6 @@ export default { ...@@ -1387,7 +1377,6 @@ export default {
this.handleTypeChange(this.editForm.deliveryType) this.handleTypeChange(this.editForm.deliveryType)
this.handleTakeTypeChange(this.editForm.takeType) this.handleTakeTypeChange(this.editForm.takeType)
this.getWechatImgList() this.getWechatImgList()
// console.log(this.editForm)
this.$nextTick(() => { this.$nextTick(() => {
this.editStatus = false this.editStatus = false
}) })
...@@ -1470,7 +1459,6 @@ export default { ...@@ -1470,7 +1459,6 @@ export default {
}, },
// 图片-描述-end // 图片-描述-end
handleConfirm() { handleConfirm() {
console.log(this.editForm)
var isJump = false var isJump = false
this.submitted = true this.submitted = true
for (var i = 0; i < this.externalFormList.length; i++) { for (var i = 0; i < this.externalFormList.length; i++) {
...@@ -1515,7 +1503,6 @@ export default { ...@@ -1515,7 +1503,6 @@ export default {
var list = this.externalFormList[0].editFormData[idx].businessTypeList var list = this.externalFormList[0].editFormData[idx].businessTypeList
params.businessTypeList = [] params.businessTypeList = []
this.editForm.businessType.forEach(item => { this.editForm.businessType.forEach(item => {
console.log(item)
params.businessTypeList.push(list.find(k => k.businessType == item)) params.businessTypeList.push(list.find(k => k.businessType == item))
}) })
} }
...@@ -1573,9 +1560,7 @@ export default { ...@@ -1573,9 +1560,7 @@ export default {
deleteAttrList.forEach(item => { deleteAttrList.forEach(item => {
delete params[item] delete params[item]
}) })
console.log(params)
this.$apis.proManage.insertOrUpdateProApi(params).then(res => { this.$apis.proManage.insertOrUpdateProApi(params).then(res => {
// console.log('res',res);
this.$message({ this.$message({
message: res.code == '0' ? '操作成功' : res.message, message: res.code == '0' ? '操作成功' : res.message,
type: res.code == '0' ? 'success' : 'error' type: res.code == '0' ? 'success' : 'error'
...@@ -1614,12 +1599,10 @@ export default { ...@@ -1614,12 +1599,10 @@ export default {
let pageSize = Number(this.$refs.coupon[0].page.pageSize) let pageSize = Number(this.$refs.coupon[0].page.pageSize)
let pageNum = Number(this.$refs.coupon[0].page.pageNum) let pageNum = Number(this.$refs.coupon[0].page.pageNum)
let sum = pageSize * (pageNum - 1) let sum = pageSize * (pageNum - 1)
// console.log(pageSize,pageNum);
this.$refs.coupon[0].data.forEach(val => { this.$refs.coupon[0].data.forEach(val => {
if (num <= pageSize) val.num = ++num if (num <= pageSize) val.num = ++num
if (pageNum > 1) val.num = ++sum if (pageNum > 1) val.num = ++sum
}) })
// console.log('this.$refs.coupon',this.$refs.coupon[0])
//接收到的数据为空 //接收到的数据为空
this.templateSelection = this.$refs.coupon[0].data this.templateSelection = this.$refs.coupon[0].data
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!