Commit ceac9bda by 前端

fixed

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