|
|
@ -62,9 +62,9 @@ export default { |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
async init(){ |
|
|
|
var res=await request("/api/goods/units",{ |
|
|
|
var res=await request("/common/api/dict/queryDictItemByDictCode",{ |
|
|
|
method:"post", |
|
|
|
params:{code:'mass_units'} |
|
|
|
params:{dictCode:'mass_units'} |
|
|
|
}) |
|
|
|
if(res.statu){ |
|
|
|
this.fields.massUnits.columns=[res.data.map(v=>({label:v.text,value:v.value}))] |
|
|
@ -76,9 +76,9 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
var res=await request("/api/goods/units",{ |
|
|
|
var res=await request("/common/api/dict/queryDictItemByDictCode",{ |
|
|
|
method:"post", |
|
|
|
params:{code:'goods_type'} |
|
|
|
params:{dictCode:'goods_type'} |
|
|
|
}) |
|
|
|
if(res.statu){ |
|
|
|
this.fields.goodsType.columns=[res.data.map(v=>({label:v.text,value:v.value}))] |
|
|
@ -90,7 +90,7 @@ export default { |
|
|
|
}) |
|
|
|
} |
|
|
|
|
|
|
|
var res=await request("/api/goods/categoryValue",{ |
|
|
|
var res=await request("/common/api/dict/categoryValue",{ |
|
|
|
method:"post", |
|
|
|
params:{code:'B04'} |
|
|
|
}) |
|
|
|