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