Browse Source

feat: [表单管理] [麻精药] 权限修改

master
memorylkf 4 days ago
parent
commit
4f9744119b
4 changed files with 27 additions and 11 deletions
  1. +15
    -5
      src/views/business/form/drug/comp/tbbdList.vue
  2. +4
    -2
      src/views/business/study/comp/syff.vue
  3. +4
    -2
      src/views/business/study/comp/syj.vue
  4. +4
    -2
      src/views/business/study/comp/tbbd.vue

+ 15
- 5
src/views/business/form/drug/comp/tbbdList.vue View File

@ -118,19 +118,19 @@
$t('page.business.study.studyFormFill.jq') }}</el-button> $t('page.business.study.studyFormFill.jq') }}</el-button>
<!-- 更换归属人 --> <!-- 更换归属人 -->
<el-button type="text" <el-button type="text"
v-if="scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 7"
v-if="(scope.row.bdzt === 1 || scope.row.bdzt === 3 || scope.row.bdzt === 5 || scope.row.bdzt === 7) && checkRole(['bz'])"
@click="ghgsr(scope.row)" v-hasPermi="['business:drugFormFill:ghgsr']">{{ @click="ghgsr(scope.row)" v-hasPermi="['business:drugFormFill:ghgsr']">{{
$t('page.business.study.studyFormFill.ghgsr') }}</el-button> $t('page.business.study.studyFormFill.ghgsr') }}</el-button>
<!-- 审阅 --> <!-- 审阅 -->
<el-button type="text" v-if="scope.row.bdzt === 5 || scope.row.bdzt === 7" @click="sy(scope.row)"
<el-button type="text" v-if="(scope.row.bdzt === 5 || scope.row.bdzt === 7) && (isQa || checkRole(['bz']))" @click="sy(scope.row)"
v-hasPermi="['business:drugFormFill:sy']">{{ v-hasPermi="['business:drugFormFill:sy']">{{
$t('page.business.study.studyFormFill.sy') }}</el-button> $t('page.business.study.studyFormFill.sy') }}</el-button>
<!-- 废止 --> <!-- 废止 -->
<el-button type="text" v-if="scope.row.bdzt === 1" @click="fz(scope.row)"
<el-button type="text" v-if="scope.row.bdzt === 1 && id==scope.row.userId" @click="fz(scope.row)"
v-hasPermi="['business:drugFormFill:fz']">{{ v-hasPermi="['business:drugFormFill:fz']">{{
$t('page.business.study.studyFormFill.fz') }}</el-button> $t('page.business.study.studyFormFill.fz') }}</el-button>
<!-- 确认废止 --> <!-- 确认废止 -->
<el-button type="text" v-if="scope.row.bdzt === 9" @click="qrfz(scope.row)"
<el-button type="text" v-if="scope.row.bdzt === 9 && checkRole(['bz'])" @click="qrfz(scope.row)"
v-hasPermi="['business:drugFormFill:qrfz']">{{ v-hasPermi="['business:drugFormFill:qrfz']">{{
$t('page.business.study.studyFormFill.qrfz') }}</el-button> $t('page.business.study.studyFormFill.qrfz') }}</el-button>
<!-- 观察 --> <!-- 观察 -->
@ -169,6 +169,8 @@
</template> </template>
<script> <script>
import { studySubject_isQa } from "@/api/business/study/studySubject"
import { checkPermi, checkRole } from "@/utils/permission";
import { studyFormFill_list } from '@/api/business/study/studyFormFill' import { studyFormFill_list } from '@/api/business/study/studyFormFill'
import Bj from "@/views/business/study/comp/tbbd/Bj"; import Bj from "@/views/business/study/comp/tbbd/Bj";
import Xq from "@/views/business/study/comp/tbbd/Xq"; import Xq from "@/views/business/study/comp/tbbd/Xq";
@ -214,6 +216,7 @@ export default {
components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog }, components: { Ghgsr, Fh, Fz, Bj, Xq, Qrfz, Sy, Jq, Gc, SelectDeptUser, SelectDeptUserDialog },
data() { data() {
return { return {
isQa:false,
leader: null, leader: null,
showFh: false, showFh: false,
showAudit: false, showAudit: false,
@ -243,8 +246,15 @@ export default {
currentRow: null currentRow: null
} }
}, },
created() { },
created() {this.getIsQa() },
methods: { methods: {
checkPermi,
checkRole,
getIsQa() {
studySubject_isQa().then(response => {
this.isQa=response.data
})
},
ghgsr(row) { ghgsr(row) {
this.currentRow = row this.currentRow = row
this.$refs.selectDeptUserDialog.show(null, null) this.$refs.selectDeptUserDialog.show(null, null)

+ 4
- 2
src/views/business/study/comp/syff.vue View File

@ -27,7 +27,7 @@ export default {
immediate: true, immediate: true,
deep:true, deep:true,
handler(v) { handler(v) {
this.studyInfo = v
this.studyInfo = _.merge({studySubjectId:''},v)
}, },
}, },
}, },
@ -37,7 +37,9 @@ export default {
data() { data() {
return { return {
showDetail:false, showDetail:false,
studyInfo:{}
studyInfo:{
studySubjectId:''
}
} }
}, },
created() {}, created() {},

+ 4
- 2
src/views/business/study/comp/syj.vue View File

@ -28,7 +28,7 @@ export default {
deep: true, deep: true,
immediate: true, immediate: true,
handler(v) { handler(v) {
this.studyInfo = v
this.studyInfo = _.merge({studySubjectId:''},v)
}, },
}, },
}, },
@ -38,7 +38,9 @@ export default {
data() { data() {
return { return {
showDetail: false, showDetail: false,
studyInfo: {}
studyInfo:{
studySubjectId:''
}
} }
}, },
created() { }, created() { },

+ 4
- 2
src/views/business/study/comp/tbbd.vue View File

@ -27,7 +27,7 @@ export default {
immediate: true, immediate: true,
deep:true, deep:true,
handler(v) { handler(v) {
this.studyInfo = v
this.studyInfo = _.merge({studySubjectId:''},v)
}, },
}, },
}, },
@ -37,7 +37,9 @@ export default {
data() { data() {
return { return {
showDetail:false, showDetail:false,
studyInfo:{}
studyInfo:{
studySubjectId:''
}
} }
}, },
created() {}, created() {},

Loading…
Cancel
Save