|
|
@ -32,7 +32,7 @@ import request from '@/common/request.js' |
|
|
|
warehouseAddress:{label:"仓库位置",type:"textarea"}, |
|
|
|
warehouseVolume:{label:"仓库容量(㎡)", type:"digit",placeholder:"请输入仓库容量"}, |
|
|
|
goodsType:{label:"存储物品类型",type:"select",columns:[],value:[]}, |
|
|
|
warehouseType:{label:"仓库类型",type:"select",columns:[],value:[]}, |
|
|
|
// warehouseType:{label:"仓库类型",type:"select",columns:[],value:[]}, |
|
|
|
// contactPeople:{label:"基地管理员", disabled:this.$store.getters['userInfo'].roleCode=="baseAdmin"}, |
|
|
|
// contactNumber:{label:"管理员联系方式", disabled:this.$store.getters['userInfo'].roleCode=="baseAdmin"}, |
|
|
|
warehousePic:{label:"仓库图片",type:"upImg",num:3}, |
|
|
@ -43,7 +43,7 @@ import request from '@/common/request.js' |
|
|
|
warehouseAddress:"", |
|
|
|
warehouseVolume:"", |
|
|
|
goodsType:'', |
|
|
|
warehouseType:"", |
|
|
|
// warehouseType:"", |
|
|
|
// contactPeople:"", |
|
|
|
// contactNumber:"", |
|
|
|
warehousePic:[], |
|
|
@ -55,7 +55,7 @@ import request from '@/common/request.js' |
|
|
|
warehouseAddress:{required:true, message:"仓库位置必填!", trigger:["blur","change"]}, |
|
|
|
warehouseVolume:{required:true, message:"仓库容量必填!", type:"number", trigger:["blur","change"]}, |
|
|
|
goodsType:{required:true, message:"存储物品类型必填!", trigger:["blur","change"]}, |
|
|
|
warehouseType:{required:true, message:"仓库类型必选!", trigger:["blur","change"]}, |
|
|
|
// warehouseType:{required:true, message:"仓库类型必选!", trigger:["blur","change"]}, |
|
|
|
// contactPeople:{required:true, message:"基地管理员必填!", trigger:["blur","change"]}, |
|
|
|
// contactNumber:{required:true, validator(rule,val,call){ |
|
|
|
// if(!val)call(new Error("管理员联系方式必填!")); |
|
|
@ -77,7 +77,7 @@ import request from '@/common/request.js' |
|
|
|
if(e){ |
|
|
|
this.formData=e |
|
|
|
this.fields.warehousePic.value=e.warehousePic.join(',') |
|
|
|
this.fields.warehouseType.value=[e.warehouseType] |
|
|
|
// this.fields.warehouseType.value=[e.warehouseType] |
|
|
|
this.fields.goodsType.value=[e.goodsType] |
|
|
|
}else if(this.$store.getters['userInfo'].roleCode=="base_admin"){ |
|
|
|
// this.formData.contactPeople=this.$store.getters['userInfo'].realname |
|
|
@ -93,7 +93,7 @@ import request from '@/common/request.js' |
|
|
|
params:{dictCode: "warehouse_type"} |
|
|
|
}) |
|
|
|
if(res.statu){ |
|
|
|
this.fields.warehouseType.columns=[res.data] |
|
|
|
// this.fields.warehouseType.columns=[res.data] |
|
|
|
}else{ |
|
|
|
uni.showModal({ |
|
|
|
title:"提示", |
|
|
|