Browse Source

type:style

commit:获取分类字典
master
孙家正 2 years ago
parent
commit
0b558cf9e9
  1. 2
      pages/massif/add_transaction.vue
  2. 2
      pages/massif/pestType.vue
  3. 2
      pages/massif/plant_plan.vue
  4. 2
      pages/stock/prodWarehouse.vue

2
pages/massif/add_transaction.vue

@ -149,7 +149,7 @@ export default {
//
var res = await request("/common/api/dict/categoryValue",{
method:"post",
params:{code:"B08"}
data:{code:"B08"}
})
if(res.statu){
this.buyerType.list=res.data

2
pages/massif/pestType.vue

@ -161,7 +161,7 @@ export default {
async init(){
var res=await request("/common/api/dict/categoryValue",{
method:"post",
params:{code:"B09"}
data:{code:"B09"}
})
if(res.statu){
this.cropList=res.data.map(v=>({...v,children:v?.children?.length>0?v.children:[{label:"全部",value:v.pest.map(v=>({name:v.label,id:v.id}))}]}))

2
pages/massif/plant_plan.vue

@ -106,7 +106,7 @@ export default {
async init(){
var res=await request("/common/api/dict/categoryValue",{
method:"post",
params:{code:"B06"}
data:{code:"B06"}
})
if(res.statu){
this.fields.plantType.columns=[res.data]

2
pages/stock/prodWarehouse.vue

@ -101,7 +101,7 @@ export default {
//
var res=await request("/common/api/dict/categoryValue",{
method:"post",
params:{code:"B06"}
data:{code:"B06"}
})
if(res.statu){
this.fields.detailType.columns=[res.data]

Loading…
Cancel
Save