s
王震
2023-11-02 a20489fcb197b876a0570b1aa9e3bd0994c722a0
s
已修改2个文件
34 ■■■■ 文件已修改
src/views/common/ztt-table.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/quality/processconfiguration/index.vue 31 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/common/ztt-table.vue
@@ -959,8 +959,9 @@
          arr.push(this.paramArr[i])
        }
      }
      this.dataListLoading = false
      return this.doCallback(this.ajaxFun, arr, selectedId)
      this.dataListLoading = false
    },
    doCallback(fn, args, selectedId) {
      return fn
src/views/quality/processconfiguration/index.vue
@@ -76,7 +76,7 @@
      // WayIdea:'',
      UserId:{},
      type:'',
      ajaxFun: UnqualifiedList,
      ajaxFun: UnqualifiedList,pullInsUnapi,AuditSuggestion,
      addOrUpdateVisible: false,
      multipleSelection: [],
      typeOptions: [],
@@ -324,6 +324,7 @@
  },
  computed: {
    ...mapGetters(['permissions'])
  },
  created() {
    // this.getType()
@@ -331,24 +332,17 @@
  methods: {
    //审核结果
    AuditResult(row){
      console.log(row);
      this.UserId = row.id
      this.type = row.type
      this.dialogVisible = true;
      console.log(row.type);
      // setTimeout(() => {
            //         if (this.type === 原材料检验) {
            //             return
            //         } else
      //     if (this.type === 产品检验) {
            //         }
            //     }, 100)
    },
    WaySure(){
      AuditSuggestion({id:this.UserId,way:this.checkList}).then(
        res =>{
          this.checkList = null
          this.WayIdea = null
          this.$refs.processconfiguration.refreshData()
          ;})
      this.dialogVisible = false
    },
@@ -357,6 +351,7 @@
      console.log(row.id);
       pullInsUnapi({id:row.id}).then(res =>{
        console.log(res);
        this.$refs.processconfiguration.refreshData()
       })
    },
   
@@ -382,23 +377,9 @@
            return "<span style='color:#34BD66;'></span>"
        }
    }, 
    // materialTypeList(row, column, cellValue){
    //         if(cellValue != undefined || cellValue != null){
    //             if(cellValue == 原材料检验){
    //                 return "<span style='color:#E84738;'>原材料检验</span>"
    //             }
    //             if(cellValue == 过程检验){
    //               return "<span style='color:#34BD66;'>过程检验</span>"
    //             }
    //             if(cellValue == 质量检验){
    //               return "<span style='color:#34BD66;'>质量检验</span>"
    //             }
    //         }
    //     },
    // 获取数据列表
    getData() {
      this.$refs.processconfiguration.getDataList()
      // this.$refs.processconfiguration.getDataList()
    },
    handleSelectionChange(val) {
      // 多行选中