|
|
|
@ -209,6 +209,31 @@
|
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="无理由退款(天):"> |
|
|
|
|
<div class="acea-row"> |
|
|
|
|
<el-input-number v-model="formValidate.config.withoutReason"></el-input-number> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="价保(天):" > |
|
|
|
|
<div class="acea-row"> |
|
|
|
|
<el-input-number v-model="formValidate.config.confirmed"></el-input-number> |
|
|
|
|
</div> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="无理由退款图标:" prop="image"> |
|
|
|
|
<single-pic v-model="formValidate.config.withoutReasonPic" type="image" :num="1" :width="150" :height="150" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
|
|
|
|
|
<el-col :span="12"> |
|
|
|
|
<el-form-item label="价保图标:" prop="image"> |
|
|
|
|
<single-pic v-model="formValidate.config.confirmedPic" type="image" :num="1" :width="150" :height="150" /> |
|
|
|
|
</el-form-item> |
|
|
|
|
</el-col> |
|
|
|
|
</el-row> |
|
|
|
|
<el-row> |
|
|
|
|
<el-col :span="24"> |
|
|
|
@ -491,6 +516,12 @@ export default {
|
|
|
|
|
id: 0, |
|
|
|
|
spec_type: 0, |
|
|
|
|
temp_id: '', |
|
|
|
|
config:{ |
|
|
|
|
withoutReason:null, |
|
|
|
|
withoutReasonPic:'', |
|
|
|
|
confirmed:null, |
|
|
|
|
confirmedPic:'', |
|
|
|
|
}, |
|
|
|
|
attrs: [], |
|
|
|
|
items: [ |
|
|
|
|
{ |
|
|
|
@ -738,18 +769,26 @@ export default {
|
|
|
|
|
size: 999, |
|
|
|
|
sort: 'id,desc' |
|
|
|
|
}).then(data => { |
|
|
|
|
console.log('dara', data); |
|
|
|
|
// console.log('dara', data); |
|
|
|
|
that.brandList=data.content |
|
|
|
|
//若为编辑,应初始化一下品牌 |
|
|
|
|
}), |
|
|
|
|
//查询商品规格和分类 |
|
|
|
|
getInfo(id).then(async res => { |
|
|
|
|
let data = res.productInfo; |
|
|
|
|
console.log('data:'+data,res) |
|
|
|
|
if(data){ |
|
|
|
|
console.log('data11111',data) |
|
|
|
|
let cate_id = parseInt(data.cate_id) || 0; |
|
|
|
|
let brand_id = parseInt(data.brand_id) || 0; |
|
|
|
|
this.attrs = data.items || []; |
|
|
|
|
if (data.config==undefined){ |
|
|
|
|
data['config']={ |
|
|
|
|
withoutReason:null, |
|
|
|
|
withoutReasonPic:'', |
|
|
|
|
confirmed:null, |
|
|
|
|
confirmedPic:'', |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
that.formValidate = data; |
|
|
|
|
that.formValidate.cate_id = cate_id; |
|
|
|
|
that.formValidate.brand_id = brand_id; |
|
|
|
|