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 { ...@@ -369,7 +369,9 @@ export default {
let goodHtmlIndex = this.editFormData.findIndex(item => item.name == 'goods') let goodHtmlIndex = this.editFormData.findIndex(item => item.name == 'goods')
let proTableIndex = this.editFormData.findIndex(item => item.addHtml == 'proTable') let proTableIndex = this.editFormData.findIndex(item => item.addHtml == 'proTable')
this.editFormData[goodHtmlIndex].isHide = newValue != 1 this.editFormData[goodHtmlIndex].isHide = newValue != 1
this.editForm.directionalFlag = '1' if (this.routeInfo.addOrEdit != 3) {
this.editForm.directionalFlag = '1'
}
if (newValue == 1) { if (newValue == 1) {
if (this.editForm.goodsRefList.length) { if (this.editForm.goodsRefList.length) {
this.editFormData[proTableIndex].isHide = false this.editFormData[proTableIndex].isHide = false
......
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
<div v-for="(item, index) in externalFormList" :key="index"> <div v-for="(item, index) in externalFormList" :key="index">
<p class="edit-title">{{ item.title }}</p> <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"> <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-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 :disabled="routeInfo.addOrEdit == 3" v-for="value in scope.scope.businessTypeList" :key="value.businessType" :label="value.businessType">{{ value.businessTypeName }}</el-checkbox>
</el-checkbox-group> </el-checkbox-group>
</template> --> </template>
<template slot="describeBtn"> <template slot="describeBtn">
<el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button> <el-button :disabled="isDisabled" type="default" @click="handleDescribeImgAdd">+添加图片</el-button>
<span class="edit-tips m-l-20">最多可添加10张图片</span> <span class="edit-tips m-l-20">最多可添加10张图片</span>
...@@ -551,15 +551,15 @@ export default { ...@@ -551,15 +551,15 @@ export default {
}) })
} }
}, },
// { {
// label: '业务类型', label: '业务类型',
// name: 'businessType', name: 'businessType',
// addHtml: 'businessType', addHtml: 'businessType',
// optionId: 'confId', optionId: 'confId',
// optionLabel: 'confName', optionLabel: 'confName',
// isDisabled: false, isDisabled: false,
// businessTypeList: [] businessTypeList: []
// }, },
{ {
label: '商品分类', label: '商品分类',
name: 'classifyIdList', name: 'classifyIdList',
...@@ -609,11 +609,6 @@ export default { ...@@ -609,11 +609,6 @@ export default {
name: '', name: '',
addHtml: 'association' addHtml: 'association'
} }
// {
// label: '',
// name: '',
// addHtml: 'associationInput'
// }
] ]
}, },
{ {
...@@ -820,7 +815,6 @@ export default { ...@@ -820,7 +815,6 @@ export default {
this.externalFormList[2].editFormData[inx].optionList.map(val => { this.externalFormList[2].editFormData[inx].optionList.map(val => {
if (val.confId == 2) return (val.isDisabled = false) if (val.confId == 2) return (val.isDisabled = false)
}) })
// this.editForm.deliveryType = 2
this.handleTypeChange(this.editForm.deliveryType) this.handleTypeChange(this.editForm.deliveryType)
} }
this.associationRadio = newValue this.associationRadio = newValue
...@@ -829,7 +823,7 @@ export default { ...@@ -829,7 +823,7 @@ export default {
created() { created() {
this.routeInfo = this.$route.query this.routeInfo = this.$route.query
// this.businessGetBusinessTypeById() this.businessGetBusinessTypeById()
}, },
mounted() { mounted() {
...@@ -850,13 +844,13 @@ export default { ...@@ -850,13 +844,13 @@ export default {
methods: { methods: {
//业务类型请求 //业务类型请求
// businessGetBusinessTypeById() { businessGetBusinessTypeById() {
// this.$apis.proManage.getBusinessTypeByIdApi({}).then(res => { this.$apis.proManage.getBusinessTypeByIdApi({}).then(res => {
// console.log('res', 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
// }) })
// }, },
del() { del() {
this.editForm.relatedCouponId = '' this.editForm.relatedCouponId = ''
this.editForm.relatedCouponName = '' this.editForm.relatedCouponName = ''
...@@ -1383,18 +1377,18 @@ export default { ...@@ -1383,18 +1377,18 @@ export default {
params.id = this.routeInfo.id params.id = this.routeInfo.id
} }
// 业务类型 // 业务类型
// params.businessTypeList = params.businessType params.businessTypeList = params.businessType
// if (!params.businessTypeList) { if (!params.businessTypeList) {
// delete params.businessTypeList delete params.businessTypeList
// } else { } else {
// var idx = this.externalFormList[0].editFormData.findIndex(subItem => subItem.name == 'businessType') var idx = this.externalFormList[0].editFormData.findIndex(subItem => subItem.name == 'businessType')
// 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) console.log(item)
// params.businessTypeList.push(list.find(k => k.businessType == item)) params.businessTypeList.push(list.find(k => k.businessType == item))
// }) })
// } }
// 描述 // 描述
params.goodsDescList = [] params.goodsDescList = []
this.editForm.descImgList.forEach(item => { 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!