| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="approval-dialog-approve" v-if="type === 'approve'"> |
| | | <div class="approval-dialog-approve" v-if="type == 'approve'"> |
| | | <el-row :span="24"> |
| | | <el-col :span="12"> |
| | | <div class="status"> |
| | |
| | | </div> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="handleClose">取 消</el-button> |
| | | <el-button type="primary" @click="handleApprove" v-if="type === 'approve'">确认</el-button> |
| | | <el-button type="primary" @click="handleApprove" v-if="type == 'approve'">确认</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </template> |
| | |
| | | }, |
| | | computed: { |
| | | dialogTitle() { |
| | | return this.type === "approve" ? "审核项目检测项、检验包" : "项目检测项、检验包详情"; |
| | | return this.type == "approve" ? "审核项目检测项、检验包" : "项目检测项、检验包详情"; |
| | | }, |
| | | }, |
| | | watch: { |
| | |
| | | if (res.status == 2 || res.status == 3) { |
| | | processData.push({ |
| | | type: |
| | | res.status === 2 |
| | | res.status == 2 |
| | | ? "primary" |
| | | : res.status === 3 |
| | | : res.status == 3 |
| | | ? "danger" |
| | | : "warning", |
| | | mode: "list", |
| | |
| | | { |
| | | label: "审核结果:", |
| | | value: |
| | | res.status === 2 |
| | | res.status == 2 |
| | | ? "通过" |
| | | : res.status === 3 |
| | | : res.status == 3 |
| | | ? "驳回" |
| | | : "待审批", |
| | | }, |
| | |
| | | const params = { |
| | | id: this.data.id, |
| | | auditRemark: this.remark, |
| | | auditStatus: this.status === '1' ? 2 : 3 |
| | | auditStatus: this.status == '1' ? 2 : 3 |
| | | }; |
| | | detailAuditReport(params).then(res => { |
| | | if (res) { |