licp
2024-12-25 7d3b5f5314493a77d520dc4ae53db8ca03b57ada
历史记录也不能编辑删除
已修改4个文件
88 ■■■■ 文件已修改
src/components/view/a7-sample-disposal.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/a7-sample-registration.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/a8-external-document-confirmation-records.vue 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/a8-periodic-document-review-records.vue 19 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/view/a7-sample-disposal.vue
@@ -206,7 +206,7 @@
  name: "SampleDisposal",
  data() {
    return {
      activeName:'填写',
      activeName:'历史记录',
      title:'新增',
      addDialogVisible:false,
      addLoading:false,
@@ -299,12 +299,18 @@
            id: 'handleAdd0',
            font: '修改',
            type: 'text',
            method: 'handleAdd0'
            method: 'handleAdd0',
            disabFun: (row, index) => {
                          return !this.addPower||this.currentInfo.examineState=='通过'
            }
          },{
            id: 'delete',
            font: '删除',
            type: 'text',
            method: 'doDiy'
            method: 'doDiy',
            disabFun: (row, index) => {
                          return !this.addPower||this.currentInfo.examineState=='通过'
            }
          }],
          tagField: {},
          selectField: {},
@@ -325,6 +331,17 @@
      addPower:false,
    };
  },
  watch: {
    'activeName' (val1, val2) {
      if(val1=='填写'){
        this.componentData0.do.forEach((item)=>{
          item.disabFun = (row, index) => {
            return !this.addPower||this.currentInfo.examineState=='通过'
          }
        })
      }
    }
  },
  mounted() {
    this.entityCopy = this.HaveJson(this.componentData.entity);
    this.getCustomPageList()
src/components/view/a7-sample-registration.vue
@@ -232,7 +232,7 @@
  name: "SampleDisposal",
  data() {
    return {
      activeName:'填写',
      activeName:'历史记录',
      title:'新增',
      addDialogVisible:false,
      addLoading:false,
@@ -325,12 +325,18 @@
            id: 'handleAdd0',
            font: '修改',
            type: 'text',
            method: 'handleAdd0'
            method: 'handleAdd0',
            disabFun:(row, index) => {
              return !this.addPower||this.currentInfo.examineState=='通过'
            }
          },{
            id: 'delete',
            font: '删除',
            type: 'text',
            method: 'doDiy'
            method: 'doDiy',
            disabFun:(row, index) => {
              return !this.addPower||this.currentInfo.examineState=='通过'
            }
          }],
          tagField: {},
          selectField: {},
@@ -351,6 +357,17 @@
      addPower:true,
    };
  },
  watch: {
    'activeName' (val1, val2) {
      if(val1=='填写'){
        this.componentData0.do.forEach((item)=>{
          item.disabFun = (row, index) => {
            return !this.addPower||this.currentInfo.examineState=='通过'
          }
        })
      }
    }
  },
  mounted() {
    this.entityCopy = this.HaveJson(this.componentData.entity);
    this.getCustomPageList()
src/components/view/a8-external-document-confirmation-records.vue
@@ -69,7 +69,7 @@
  data(){
    return{
      title0:'查看',
      activeName:'填写',
      activeName:'历史记录',
      lookDialogVisible:false,
      noCheckLoading:false,
      checkLoading:false,
@@ -141,12 +141,18 @@
            id: 'update',
            font: '修改',
            type: 'text',
            method: 'doDiy'
            method: 'doDiy',
            disabFun:(row, index) => {
              return !this.addPower||!!this.currentInfo.ratifyUserName
            }
          },{
            id: 'delete',
            font: '删除',
            type: 'text',
            method: 'doDiy'
            method: 'doDiy',
            disabFun:(row, index) => {
              return !this.addPower||!!this.currentInfo.ratifyUserName
            }
          }],
          tagField: {},
          selectField: {},
@@ -176,6 +182,17 @@
      return this.javaApi +this.$api.manageRecordTotal.exportManageRecordVerify
    }
  },
  watch: {
    'activeName' (val1, val2) {
      if(val1=='填写'){
        this.componentData0.do.forEach((item)=>{
          item.disabFun = (row, index) => {
            return !this.addPower||!!this.currentInfo.ratifyUserName
          }
        })
      }
    }
  },
  mounted() {
    this.entityCopy = this.HaveJson(this.componentData.entity);
    this.getPower()
src/components/view/a8-periodic-document-review-records.vue
@@ -161,7 +161,7 @@
  },
  data() {
    return {
      activeName:'填写',
      activeName:'历史记录',
      title0:'新增',
      addPower:true,
      outPower:true,
@@ -189,12 +189,18 @@
          font: '删除',
          type: 'text',
          method: 'doDiy',
          disabFun:(row, index) => {
            return !this.addPower||!!this.currentInfo.ratifyUserName
          }
        }, {
          id: 'handleEdit',
          font: '修改',
          type: 'text',
          method: 'handleEdit',
          field:[],
          disabFun:(row, index) => {
            return !this.addPower||!!this.currentInfo.ratifyUserName
          }
        }],
        tagField: {
          // documentType:{
@@ -295,6 +301,17 @@
      return this.javaApi +this.$api.manageRecordIntervals.exportInManageRecordIntervals
    }
  },
  watch: {
    'activeName' (val1, val2) {
      if(val1=='填写'){
        this.componentData.do.forEach((item)=>{
          item.disabFun = (row, index) => {
            return !this.addPower||!!this.currentInfo.ratifyUserName
          }
        })
      }
    }
  },
  mounted() {
    this.entityCopy = this.HaveJson(this.componentData.entity);
    this.entityCopy0 = this.HaveJson(this.componentData0.entity);