报废审核
This commit is contained in:
		
							parent
							
								
									ddb12fab13
								
							
						
					
					
						commit
						63f9f062f7
					
				| 
						 | 
					@ -135,6 +135,16 @@
 | 
				
			||||||
        prop="scrapReason"
 | 
					        prop="scrapReason"
 | 
				
			||||||
        :show-overflow-tooltip="true"
 | 
					        :show-overflow-tooltip="true"
 | 
				
			||||||
      />
 | 
					      />
 | 
				
			||||||
 | 
					      <el-table-column
 | 
				
			||||||
 | 
					        label="损坏原因"
 | 
				
			||||||
 | 
					        align="center"
 | 
				
			||||||
 | 
					        prop="scrapType"
 | 
				
			||||||
 | 
					        :show-overflow-tooltip="true"
 | 
				
			||||||
 | 
					      >
 | 
				
			||||||
 | 
					        <template slot-scope="{ row }">
 | 
				
			||||||
 | 
					          {{ row.scrapType == 0 ? '自然损坏' : '人为损坏' }}
 | 
				
			||||||
 | 
					        </template>
 | 
				
			||||||
 | 
					      </el-table-column>
 | 
				
			||||||
      <el-table-column
 | 
					      <el-table-column
 | 
				
			||||||
        label="附件"
 | 
					        label="附件"
 | 
				
			||||||
        align="center"
 | 
					        align="center"
 | 
				
			||||||
| 
						 | 
					@ -357,12 +367,15 @@ export default {
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
      } else { 
 | 
					      } else { 
 | 
				
			||||||
        batchPassApi({'scrapApplyDetailsList':this.passTemp}).then((response) => {
 | 
					        // 二次确认
 | 
				
			||||||
          if (response.code == 200) {
 | 
					        this.$modal.confirm("是否确认通过所选择的数据项?").then(() => {
 | 
				
			||||||
            this.$modal.msgSuccess("通过成功");
 | 
					          batchPassApi({'scrapApplyDetailsList':this.passTemp}).then((response) => {
 | 
				
			||||||
          }
 | 
					            if (response.code == 200) {
 | 
				
			||||||
          this.getTaskInfo();
 | 
					              this.$modal.msgSuccess("通过成功");
 | 
				
			||||||
        });
 | 
					            }
 | 
				
			||||||
 | 
					            this.getTaskInfo();
 | 
				
			||||||
 | 
					          })
 | 
				
			||||||
 | 
					        })
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
    //多个驳回
 | 
					    //多个驳回
 | 
				
			||||||
| 
						 | 
					@ -374,12 +387,14 @@ export default {
 | 
				
			||||||
        });
 | 
					        });
 | 
				
			||||||
        return;
 | 
					        return;
 | 
				
			||||||
      } else {
 | 
					      } else {
 | 
				
			||||||
        batchRejectApi({'scrapApplyDetailsList':this.failTemp}).then((response) => {
 | 
					        this.$modal.confirm("是否确认驳回所选择的数据项?").then(() => {
 | 
				
			||||||
          if (response.code == 200) {
 | 
					          batchRejectApi({'scrapApplyDetailsList':this.failTemp}).then((response) => {
 | 
				
			||||||
            this.$modal.msgSuccess("驳回成功");
 | 
					            if (response.code == 200) {
 | 
				
			||||||
          }
 | 
					              this.$modal.msgSuccess("驳回成功");
 | 
				
			||||||
          this.getTaskInfo();
 | 
					            }
 | 
				
			||||||
        });
 | 
					            this.getTaskInfo();
 | 
				
			||||||
 | 
					          })
 | 
				
			||||||
 | 
					        })
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    },
 | 
					    },
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue