Commit 17ca63a5 by 前端

Merge branch 'wuwx_dev_v2.0.0' into 'v2.0.0'

Wuwx dev v2.0.0

See merge request !81
2 parents 6b28b0a0 93f094a6
......@@ -369,7 +369,9 @@ export default {
let goodHtmlIndex = this.editFormData.findIndex(item => item.name == 'goods')
let proTableIndex = this.editFormData.findIndex(item => item.addHtml == 'proTable')
this.editFormData[goodHtmlIndex].isHide = newValue != 1
this.editForm.directionalFlag = '1'
if (this.routeInfo.addOrEdit != 3) {
this.editForm.directionalFlag = '1'
}
if (newValue == 1) {
if (this.editForm.goodsRefList.length) {
this.editFormData[proTableIndex].isHide = false
......
......@@ -11,11 +11,11 @@
<div v-for="(item, index) in externalFormList" :key="index">
<p class="edit-title">{{ item.title }}</p>
<glsx-combi-form class="edit-form-container m-b-60" ref="editFormRef" :labelWidth="labelWidth" :isEdit="isEdit" defaultWidth="320px" :isBlock="true" :formRef="item.editChildRef" :formObj="editForm" :formData="item.editFormData" :formRules="item.editRule" @handleImgDelete="handleFormImgDelete">
<!-- <template slot="businessType" slot-scope="scope">
<template slot="businessType" slot-scope="scope">
<el-checkbox-group v-model="editForm.businessType">
<el-checkbox :disabled="routeInfo.addOrEdit == 3" v-for="value in scope.scope.businessTypeList" :key="value.businessType" :label="value.businessType">{{ value.businessTypeName }}</el-checkbox>
</el-checkbox-group>
</template> -->
</template>
<template slot="describeBtn">
<el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button>
<span class="edit-tips m-l-20">最多可添加10张图片</span>
......@@ -551,15 +551,15 @@ export default {
})
}
},
// {
// label: '业务类型',
// name: 'businessType',
// addHtml: 'businessType',
// optionId: 'confId',
// optionLabel: 'confName',
// isDisabled: false,
// businessTypeList: []
// },
{
label: '业务类型',
name: 'businessType',
addHtml: 'businessType',
optionId: 'confId',
optionLabel: 'confName',
isDisabled: false,
businessTypeList: []
},
{
label: '商品分类',
name: 'classifyIdList',
......@@ -609,11 +609,6 @@ export default {
name: '',
addHtml: 'association'
}
// {
// label: '',
// name: '',
// addHtml: 'associationInput'
// }
]
},
{
......@@ -820,7 +815,6 @@ export default {
this.externalFormList[2].editFormData[inx].optionList.map(val => {
if (val.confId == 2) return (val.isDisabled = false)
})
// this.editForm.deliveryType = 2
this.handleTypeChange(this.editForm.deliveryType)
}
this.associationRadio = newValue
......@@ -829,7 +823,7 @@ export default {
created() {
this.routeInfo = this.$route.query
// this.businessGetBusinessTypeById()
this.businessGetBusinessTypeById()
},
mounted() {
......@@ -850,13 +844,13 @@ export default {
methods: {
//业务类型请求
// 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
// })
// },
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
})
},
del() {
this.editForm.relatedCouponId = ''
this.editForm.relatedCouponName = ''
......@@ -1383,18 +1377,18 @@ export default {
params.id = this.routeInfo.id
}
// 业务类型
// params.businessTypeList = params.businessType
// if (!params.businessTypeList) {
// delete params.businessTypeList
// } else {
// var idx = this.externalFormList[0].editFormData.findIndex(subItem => subItem.name == 'businessType')
// 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))
// })
// }
params.businessTypeList = params.businessType
if (!params.businessTypeList) {
delete params.businessTypeList
} else {
var idx = this.externalFormList[0].editFormData.findIndex(subItem => subItem.name == 'businessType')
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))
})
}
// 描述
params.goodsDescList = []
this.editForm.descImgList.forEach(item => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!