|
@ -28,7 +28,7 @@ import request from '@/common/request.js' |
|
|
return{ |
|
|
return{ |
|
|
fields:{ |
|
|
fields:{ |
|
|
warehouseName:{label:"仓库名称"}, |
|
|
warehouseName:{label:"仓库名称"}, |
|
|
warehouseAddress:{label:"仓库位置"}, |
|
|
warehouseAddress:{label:"仓库位置",type:"textarea"}, |
|
|
warehouseVolume:{label:"仓库容量(㎡)", type:"digit",placeholder:"请输入仓库容量"}, |
|
|
warehouseVolume:{label:"仓库容量(㎡)", type:"digit",placeholder:"请输入仓库容量"}, |
|
|
warehouseType:{label:"仓库类型",type:"select",columns:[[{label:"标签1",value:1},{label:"标签2",value:2}]],value:[]}, |
|
|
warehouseType:{label:"仓库类型",type:"select",columns:[[{label:"标签1",value:1},{label:"标签2",value:2}]],value:[]}, |
|
|
contactPeople:{label:"基地管理员"}, |
|
|
contactPeople:{label:"基地管理员"}, |
|
@ -36,12 +36,12 @@ import request from '@/common/request.js' |
|
|
warehousePic:{label:"仓库图片",type:"upImg",num:3}, |
|
|
warehousePic:{label:"仓库图片",type:"upImg",num:3}, |
|
|
}, |
|
|
}, |
|
|
formData:{ |
|
|
formData:{ |
|
|
warehouseName:"5号仓库", |
|
|
warehouseName:"", |
|
|
warehouseAddress:"昆明五华区", |
|
|
warehouseAddress:"", |
|
|
warehouseVolume:"32", |
|
|
warehouseVolume:"", |
|
|
warehouseType:"", |
|
|
warehouseType:"", |
|
|
contactPeople:"小明", |
|
|
contactPeople:"", |
|
|
contactNumber:"13752000000", |
|
|
contactNumber:"", |
|
|
warehousePic:[], |
|
|
warehousePic:[], |
|
|
baseId: this.$store.state.plantBaseInfoId, |
|
|
baseId: this.$store.state.plantBaseInfoId, |
|
|
}, |
|
|
}, |
|
@ -73,9 +73,12 @@ import request from '@/common/request.js' |
|
|
}, |
|
|
}, |
|
|
methods:{ |
|
|
methods:{ |
|
|
async init(){ |
|
|
async init(){ |
|
|
var res=await request("/api/WarehouseManageApi/queryWarehouseType") |
|
|
var res=await request("/common/api/dict/queryDictItemByDictCode",{ |
|
|
|
|
|
method:"post", |
|
|
|
|
|
params:{dictCode: "warehouse_type"} |
|
|
|
|
|
}) |
|
|
if(res.statu){ |
|
|
if(res.statu){ |
|
|
this.fields.warehouseType.columns=[res.data.map(v=>({label:v,value:v}))] |
|
|
this.fields.warehouseType.columns=[res.data] |
|
|
}else{ |
|
|
}else{ |
|
|
uni.showModal({ |
|
|
uni.showModal({ |
|
|
title:"提示", |
|
|
title:"提示", |
|
|