Commit ceac9bda by 前端

fixed

1 parent 37f73344
......@@ -106,7 +106,9 @@ const orderManageStatusList = [
// { confId: '8', confName: '已核销' },
{ confId: '9', confName: '售后中' },
{ confId: '10', confName: '售后完成' },
{ confId: '11', confName: '待审批' }
{ confId: '11', confName: '待审批' },
{ confId: '13', confName: '待发货' },
{ confId: '14', confName: '已收货' }
]
const afterSaleStatusList = [
{ confId: '1', confName: '待审核' },
......
......@@ -534,7 +534,7 @@ export default {
limitPurchaseFlag: 1,
limitPurchaseNumber: '',
subscribe: 1,
ghExclusiveFlag: 2,
ghExclusiveFlag: 1,
// 活动配置
customerServiceFlag: 3,
customerServiceName: '',
......@@ -1245,23 +1245,19 @@ export default {
// },
// deep: true
// },
// 'editForm.ghExclusiveFlag'(val) {
// const disableObj = ['configEditFormData']
// const disableValue = ['活动大图']
// let disabledStatus = false
// if (val == 2) {
// disabledStatus = true
// } else {
// disabledStatus = false
// }
// disableObj.forEach(attr => {
// this.changeFormAttr(attr, 'isDisabled', disableValue, disabledStatus)
// })
// this.$nextTick(() => {
// document.querySelector('.w-e-text').setAttribute('contenteditable', !disabledStatus)
// })
// this.isDisabledGH = disabledStatus
// },
'editForm.ghExclusiveFlag'(val) {
const formObj = ['projuctEditFormData']
const hideValue = ['couponList', 'goodsList', 'activityPrice', 'goodsStock'] //'couponListBlock'
let hideStatus = false
if (val == 2) {
hideStatus = true
} else {
hideStatus = false
}
formObj.forEach(attr => {
this.setNameHide(attr, hideValue, hideStatus)
})
},
'editForm.merchantId'() {
if (this.loading) {
......@@ -1433,9 +1429,11 @@ export default {
this.recoveryTotalPrice()
this.recoveryGiftList()
},
setNameHide(name) {
var idx = this.projuctEditFormData.findIndex(item => item.name == name)
this.projuctEditFormData[idx].isHide = !this.selectedGoodsList.length
setNameHide(formName, name, status) {
name.forEach(i => {
var idx = this[formName].findIndex(item => item.name == i)
this[formName][idx].isHide = status
})
},
handleGoodsConfirm(selectedData) {
this.$refs.editFormRef.$refs[this.editChildRef].clearValidate('goodsList')
......@@ -2149,7 +2147,7 @@ export default {
return list
},
handlePrev() {
this.step--
this.editForm.ghExclusiveFlag == 2 ? (this.step -= 2) : this.step--
},
//验证表单
validManyForm(formName) {
......@@ -2171,7 +2169,7 @@ export default {
if (this.step == 1) {
if (this.editForm.playingType == 1 || this.editForm.playingType == 4) return this.$message.error('请选择正确的营销玩法')
Promise.all([this.validManyForm('markingEditFormRef'), this.validManyForm('palyEditFormRef')]).then(res => {
this.step++
this.editForm.ghExclusiveFlag == 2 ? (this.step += 2) : this.step++
})
}
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!