Browse Source

新增地块 基地、企业管理员 默认负责人

master
邓宏 2 years ago
parent
commit
b814067c2d
  1. 8
      pages/massif/plant_plan.vue

8
pages/massif/plant_plan.vue

@ -46,7 +46,7 @@ export default {
{label:"普通",value:'4'},
]},
plantBatch:{label:"种植批次号",btnText:"生成",btnFun:()=>this.formData.plantBatch=`ZZ${new Date().format('yyyyMMdd')}${new Date().getTime()}`},
principal:{label:"负责人"},
principal:{label:"负责人",disabled:/^baseAdmin$|^companyAdmin$/.test(this.$store.getters.userInfo.roleCode)},
principalId:{label:"负责人身份证"},
productIntroduce:{label:"产品介绍",type:"textarea"},
},
@ -94,7 +94,11 @@ export default {
await this.init()
options.plotId && (this.formData.plotId=options.plotId)
options.id && this.getDetail(options.id)
if(options.id){
this.getDetail(options.id)
}else if(/^baseAdmin$|^companyAdmin$/.test(this.$store.getters.userInfo.roleCode)){
this.formData.principal=this.$store.getters.userInfo.realname
}
},
methods:{
async init(){

Loading…
Cancel
Save