Browse Source

去除仓库类型

master
孙家正 2 years ago
parent
commit
fbbb225eae
  1. 10
      pages/warehouse/info.vue

10
pages/warehouse/info.vue

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

Loading…
Cancel
Save