Commit 6fbf5227 by zhangquan

优化

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