Selaa lähdekoodia

试剂每日质控子表组件加权限控制

cyy 1 kuukausi sitten
vanhempi
sitoutus
2c2d519eea

+ 1 - 0
src/views/component/qualityControl/qualityControlChildTab.vue

@@ -543,6 +543,7 @@ export default {
   mounted() {
   mounted() {
     const { first = '' } = this.$store.getters.level
     const { first = '' } = this.$store.getters.level
     const { deptList = [] } = this.$store.getters || {}
     const { deptList = [] } = this.$store.getters || {}
+    this.disabled = this.readonly
   },
   },
   methods: {
   methods: {
     handleSelectionChange(val) {
     handleSelectionChange(val) {

+ 8 - 1
src/views/component/qualityControl/qualityControlChildTabTwo.vue

@@ -143,7 +143,13 @@
                     <el-radio label="Y">Y</el-radio>
                     <el-radio label="Y">Y</el-radio>
                     <el-radio label="N">N</el-radio>
                     <el-radio label="N">N</el-radio>
                   </el-radio-group>
                   </el-radio-group>
-                  <span v-else>{{ row[item.val[i]] || '/' }}</span>
+                  <span v-else>{{
+                    reagentData.find(
+                      (m) =>
+                        m.leiXing === field.name &&
+                        m.tianXieLeiXing === 'result'
+                    )[em] || '/'
+                  }}</span>
                 </div>
                 </div>
               </div>
               </div>
               <div v-if="lastShow" class="lastRow">
               <div v-if="lastShow" class="lastRow">
@@ -350,6 +356,7 @@ export default {
   mounted() {
   mounted() {
     const { first = '' } = this.$store.getters.level
     const { first = '' } = this.$store.getters.level
     const { deptList = [] } = this.$store.getters || {}
     const { deptList = [] } = this.$store.getters || {}
+    this.disabled = this.readonly
     // if (this.$refs.component_1qyrt3ireagent) {
     // if (this.$refs.component_1qyrt3ireagent) {
     //   console.log(this.$refs.component_1qyrt3ireagent, 'rrrr')
     //   console.log(this.$refs.component_1qyrt3ireagent, 'rrrr')