|
@@ -91,7 +91,7 @@
|
|
|
import { getToken } from "@/utils/auth";
|
|
|
import {
|
|
|
bottleList,
|
|
|
- getLoginUser, googsListGoogs,
|
|
|
+ getLoginUser, getValidApply, googsListGoogs,
|
|
|
subjectList,
|
|
|
useAgsApplyAdd,
|
|
|
useAgsApplyAnew,
|
|
@@ -257,6 +257,22 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
this.$set(this.form,"subjectId",e);
|
|
|
+ //校验实验室的准入资格
|
|
|
+ this.getValidApply();
|
|
|
+ },
|
|
|
+ //校验实验室的准入资格
|
|
|
+ getValidApply(){
|
|
|
+ let _this = this;
|
|
|
+ let obj={
|
|
|
+ userId:_this.form.applyUserid,
|
|
|
+ subjectId:_this.form.subjectId
|
|
|
+ }
|
|
|
+ getValidApply(obj).then(res => {
|
|
|
+ if(res.data.length<=0){
|
|
|
+ this.$message.error('请先申请('+this.form.location+')实验室准入资格!');
|
|
|
+ this.form.location='';
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
//上传
|
|
|
handleAvatarSuccess(res, file) {
|