添加分类id
parent
c71da0b437
commit
b61f5e47df
|
@ -159,10 +159,10 @@
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<Upload ref="upload" :show-upload-list="false" :default-file-list="baseInfoForm.goodsGalleryFiles"
|
<Upload ref="upload" :show-upload-list="false" :default-file-list="baseInfoForm.goodsGalleryFiles"
|
||||||
:on-success="handleSuccessGoodsPicture" :format="['jpg', 'jpeg', 'png']"
|
:on-success="handleSuccessGoodsPicture" :format="['jpg', 'jpeg', 'png']"
|
||||||
:on-format-error="handleFormatError" :on-exceeded-size="handleMaxSize"
|
:on-format-error="handleFormatError" :on-exceeded-size="handleMaxSize"
|
||||||
:before-upload="handleBeforeUploadGoodsPicture" multiple type="drag" :action="uploadFileUrl"
|
:before-upload="handleBeforeUploadGoodsPicture" multiple type="drag" :action="uploadFileUrl"
|
||||||
:headers="accessToken" style="display: inline-block;margin-left:10px;">
|
:headers="accessToken" style="display: inline-block;margin-left:10px;">
|
||||||
<div style="width: 80px; height: 80px; line-height: 80px">
|
<div style="width: 80px; height: 80px; line-height: 80px">
|
||||||
<Icon type="ios-camera" size="20"></Icon>
|
<Icon type="ios-camera" size="20"></Icon>
|
||||||
</div>
|
</div>
|
||||||
|
@ -183,9 +183,9 @@
|
||||||
<Card :bordered="true">
|
<Card :bordered="true">
|
||||||
<FormItem label="规格名:" class="sku-item-content-name">
|
<FormItem label="规格名:" class="sku-item-content-name">
|
||||||
<AutoComplete style="width: 150px" v-model="item.name" :maxlength="30"
|
<AutoComplete style="width: 150px" v-model="item.name" :maxlength="30"
|
||||||
placeholder="请输入规格项名称"
|
placeholder="请输入规格项名称"
|
||||||
:filter-method="filterMethod" :data="skuData"
|
:filter-method="filterMethod" :data="skuData"
|
||||||
@on-change="editSkuItem">
|
@on-change="editSkuItem">
|
||||||
</AutoComplete>
|
</AutoComplete>
|
||||||
<Button type="error" style="margin-left: 10px" @click="handleCloseSkuItem($index)">删除
|
<Button type="error" style="margin-left: 10px" @click="handleCloseSkuItem($index)">删除
|
||||||
</Button>
|
</Button>
|
||||||
|
@ -441,7 +441,7 @@ export default {
|
||||||
editor,
|
editor,
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
selectGoodsType: { // 选择商品类型
|
selectGoodsType: {
|
||||||
handler(val) {
|
handler(val) {
|
||||||
if (val && this.baseInfoForm.goodsType) {
|
if (val && this.baseInfoForm.goodsType) {
|
||||||
this.goodsTypeWay.forEach((item) => {
|
this.goodsTypeWay.forEach((item) => {
|
||||||
|
@ -836,6 +836,7 @@ export default {
|
||||||
* @value 参数选项值
|
* @value 参数选项值
|
||||||
*/
|
*/
|
||||||
selectParams(paramsGroup, groupIndex, params, paramsIndex, value) {
|
selectParams(paramsGroup, groupIndex, params, paramsIndex, value) {
|
||||||
|
console.log(params.id);
|
||||||
if (!this.baseInfoForm.goodsParamsDTOList[groupIndex]) {
|
if (!this.baseInfoForm.goodsParamsDTOList[groupIndex]) {
|
||||||
this.baseInfoForm.goodsParamsDTOList[groupIndex] = {
|
this.baseInfoForm.goodsParamsDTOList[groupIndex] = {
|
||||||
groupId:'',
|
groupId:'',
|
||||||
|
@ -850,10 +851,11 @@ export default {
|
||||||
//参数详细为空,则赋予
|
//参数详细为空,则赋予
|
||||||
if (!this.baseInfoForm.goodsParamsDTOList[groupIndex].goodsParamsItemDTOList[paramsIndex]) {
|
if (!this.baseInfoForm.goodsParamsDTOList[groupIndex].goodsParamsItemDTOList[paramsIndex]) {
|
||||||
this.baseInfoForm.goodsParamsDTOList[groupIndex].goodsParamsItemDTOList[paramsIndex]={
|
this.baseInfoForm.goodsParamsDTOList[groupIndex].goodsParamsItemDTOList[paramsIndex]={
|
||||||
paramName:'',
|
paramName: '',
|
||||||
paramValue:'',
|
paramValue: '',
|
||||||
isIndex:'',
|
isIndex: '',
|
||||||
required:'',
|
required: '',
|
||||||
|
paramId: ''
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.baseInfoForm.goodsParamsDTOList[groupIndex].goodsParamsItemDTOList[paramsIndex]={
|
this.baseInfoForm.goodsParamsDTOList[groupIndex].goodsParamsItemDTOList[paramsIndex]={
|
||||||
|
@ -861,7 +863,9 @@ export default {
|
||||||
paramValue: value,
|
paramValue: value,
|
||||||
isIndex: params.isIndex,
|
isIndex: params.isIndex,
|
||||||
required: params.required,
|
required: params.required,
|
||||||
|
paramId: params.id
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
// 编辑sku图片
|
// 编辑sku图片
|
||||||
|
|
Loading…
Reference in New Issue