Commit e1c332b0 by chenwq

冗余代码

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