| | |
| | | arr.push(this.paramArr[i]) |
| | | } |
| | | } |
| | | this.dataListLoading = false |
| | | |
| | | return this.doCallback(this.ajaxFun, arr, selectedId) |
| | | this.dataListLoading = false |
| | | }, |
| | | doCallback(fn, args, selectedId) { |
| | | return fn |
| | |
| | | // WayIdea:'', |
| | | UserId:{}, |
| | | type:'', |
| | | ajaxFun: UnqualifiedList, |
| | | ajaxFun: UnqualifiedList,pullInsUnapi,AuditSuggestion, |
| | | addOrUpdateVisible: false, |
| | | multipleSelection: [], |
| | | typeOptions: [], |
| | |
| | | }, |
| | | computed: { |
| | | ...mapGetters(['permissions']) |
| | | |
| | | }, |
| | | created() { |
| | | // this.getType() |
| | |
| | | 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 |
| | | }, |
| | |
| | | console.log(row.id); |
| | | pullInsUnapi({id:row.id}).then(res =>{ |
| | | console.log(res); |
| | | this.$refs.processconfiguration.refreshData() |
| | | }) |
| | | }, |
| | | |
| | |
| | | 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) { |
| | | // 多行选中 |