zouyu
2026-05-11 c863d53a225feffb018e35b4453c1e977eaeca81
src/views/business/unpass/index-manage.vue
@@ -134,6 +134,7 @@
                  :unPassDialog="unPassDialog"></UnPassDialog>
    <OAProcess ref="OAProcess"
               :OAProcess="OAProcess"
               :isOldData="isOldData"
               @closeOAProcess="closeOAProcess"
               v-if="OAProcess"></OAProcess>
  </div>
@@ -152,7 +153,7 @@
    OAProcess,
    UnPassDialog,
  },
  dicts: ['material_prop_type','oa_workflow_state'],
  dicts: ['material_prop_type','oa_workflow_state','categories_no_conformities','attribution_no_conformities'],
  data() {
    return {
      lotBatchNo:null,
@@ -385,22 +386,22 @@
          width: "100px",
          dataType: "tag",
          formatData: (params) => {
            if (params == 0) {
              return "一类不合格";
            } else if(params == 1) {
              return "二类不合格";
            } else {
              return null
            }
            let label = null
            this.dict.type.categories_no_conformities.forEach(item=>{
              if(item.raw.dictValue==params){
                label = item.raw.dictLabel
              }
            })
            return label
          },
          formatType: (params) => {
            if (params == 0) {
              return "warning";
            } else if(params == 1) {
              return "info";
            } else {
              return "null";
            }
            let type = null
            this.dict.type.categories_no_conformities.forEach(item=>{
              if(item.raw.dictValue==params){
                type =  item.raw.listClass
              }
            })
            return type
          },
        },
        { label: '供应商编码', prop: 'supplierId',width:'140' },
@@ -411,22 +412,22 @@
          width: "120px",
          dataType: "tag",
          formatData: (params) => {
            if (params == 0) {
              return "检测不合格";
            } else if(params == 1) {
              return "生产反馈不合格";
            } else {
              return null
            }
            let label = params
            this.dict.type.attribution_no_conformities.forEach(item=>{
              if(item.raw.dictValue==params){
                label = item.raw.dictLabel
              }
            })
            return label
          },
          formatType: (params) => {
            if (params == 0) {
              return "danger";
            } else if(params == 1) {
              return "warning";
            } else {
              return "null";
            }
            let type = null
            this.dict.type.attribution_no_conformities.forEach(item=>{
              if(item.raw.dictValue==params){
                type = item.raw.listClass
              }
            })
            return type
          },
        },
        { label: '不合格描述', prop: 'unqualifiedDesc',width: "160px" },
@@ -481,7 +482,8 @@
      submitOALoading: false, // OA流程弹框提交按钮loading
      deleteVisible: false, // OA流程删除弹框
      cancelOALoading: false, // OA流程删除弹框提交按钮loading
      exportLoading:false
      exportLoading:false,
      isOldData: true,//是否是旧数据
    };
  },
  mounted() {
@@ -668,6 +670,7 @@
    // 查看OA流程
    OAView (row) {
      this.OAProcess = true
      this.isOldData = row.isOldData
      this.$nextTick(() => {
        this.$refs.OAProcess.getInfo(row.handlerId,row?row.unqualifiedDesc:"")
      })