|
|
@@ -25,7 +25,8 @@
|
|
|
|
|
|
<!--审核模块 暂未进行任何修改版本-->
|
|
|
<el-button type="primary" size="mini" style="margin-left:10px; margin-top: -4px;" @click="auditorshow"
|
|
|
- v-if="permissions[permissionscode.srapprove] && service_flag == 'editsource'" :disabled="samplesForm.AuditorStatus != 0">审核</el-button>
|
|
|
+ v-if="permissions[permissionscode.srapprove] && service_flag == 'editsource'"
|
|
|
+ :disabled="samplesForm.AuditorStatus != 0 || !author_flag">审核</el-button>
|
|
|
<!--审核模块结束-->
|
|
|
|
|
|
<el-button type="primary" style="margin-left: 8px" class="el-button--mini" @click="savedata"
|
|
|
@@ -285,6 +286,7 @@
|
|
|
SuccessStatus: 1,
|
|
|
AuditorRemark: ''
|
|
|
},
|
|
|
+ author_flag: false,
|
|
|
extendForm: {},
|
|
|
sampeunitlist: [],
|
|
|
genuslist: [],
|
|
|
@@ -351,8 +353,24 @@
|
|
|
_this.getProjectlist()
|
|
|
_this.getDictOptions()
|
|
|
_this.getPermissions()
|
|
|
+ _this.getAnimalInfo()
|
|
|
},
|
|
|
methods: {
|
|
|
+ getAnimalInfo(ServiceId) {
|
|
|
+ let _this = this
|
|
|
+ // request
|
|
|
+ _this.$axios.get('/samplessource/getanimalinfo/' + _this.ServiceId, {})
|
|
|
+ .then(res => {
|
|
|
+ _this.samplesForm = res.data.items
|
|
|
+ if (_this.authUser.Profile.Id != res.data.items.CreateUserId) {
|
|
|
+ _this.author_flag = true
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch(err => {
|
|
|
+ // handle error
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
savedata() {
|
|
|
if (this.pid == 'addsource' || this.pid <= '0') {
|
|
|
this.trueInnerNo()
|