Commit 6fbf5227 by zhangquan

优化

1 parent 9b1e8b5e
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
</div> </div>
<div> <div>
<span style="color: #666666;">服务说明:</span> <span style="color: #666666;">服务说明:</span>
<span>{{ formObj.introduction }}</span> <span>{{ formObj.introduction || '--' }}</span>
</div> </div>
</div> </div>
</glsx-combi-form> </glsx-combi-form>
...@@ -286,7 +286,6 @@ export default { ...@@ -286,7 +286,6 @@ export default {
introduction: '' introduction: ''
}, },
saleMerchantList: [], saleMerchantList: [],
goodsList: [],
myRule: { myRule: {
selectBtnSlot: [ selectBtnSlot: [
{ {
...@@ -370,7 +369,11 @@ export default { ...@@ -370,7 +369,11 @@ export default {
], ],
optionId: 'confId', optionId: 'confId',
optionLabel: 'confName', optionLabel: 'confName',
isDisabled: false isDisabled: false,
handleRadioChange: (e)=>{
this.expressInfoFormData = e==2 ? selfGoodsExpreeCol : defaultExpreeCol
this.clearDataFn()
}
}, },
{ {
label: '选择商品', label: '选择商品',
...@@ -439,12 +442,6 @@ export default { ...@@ -439,12 +442,6 @@ export default {
}, },
deep: true deep: true
}, },
'formObj.goodsSource':{
handler(nVal, oVal) {
this.expressInfoFormData = nVal==2 ? selfGoodsExpreeCol : defaultExpreeCol
},
deep: true
}
}, },
created() { created() {
this.getCategory() this.getCategory()
...@@ -469,6 +466,22 @@ export default { ...@@ -469,6 +466,22 @@ export default {
} }
}, },
methods: { methods: {
clearDataFn(){
this.formObj = {
...this.formObj,
smartcarlifeInfoId : '', //自营和智享的id字段不一致
goodsName: '',
goodsImage : '',
coverList: [],
minSellPrice : '',
retailPrice: '',
goodsVideo: '',
goodsType: '2',
expressFee: '',
introduction: ''
}
this.saleMerchantList = []
},
// 上传视频 // 上传视频
handleVideoChange(e) { handleVideoChange(e) {
let file = e.srcElement.files[0] let file = e.srcElement.files[0]
...@@ -664,6 +677,7 @@ export default { ...@@ -664,6 +677,7 @@ export default {
categoryName: res.associationClassifySecondName, categoryName: res.associationClassifySecondName,
id: res.associationClassifySecondId id: res.associationClassifySecondId
} }
this.expressInfoFormData = res.goodsSource==2 ? selfGoodsExpreeCol : defaultExpreeCol
this.formObj.goodsType = '2' //1配置升级, 2车主优选 this.formObj.goodsType = '2' //1配置升级, 2车主优选
this.formObj.coverList =res.goodsImage ? [res.goodsImage] : [] this.formObj.coverList =res.goodsImage ? [res.goodsImage] : []
this.formObj.styleBImgList = res.styleBImg ? [res.styleBImg] : [] this.formObj.styleBImgList = res.styleBImg ? [res.styleBImg] : []
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!