|
|
@ -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(){ |
|
|
|