|
|
|
@ -113,7 +113,7 @@ |
|
|
|
class="customer-a" |
|
|
|
:style="(isRowStatus(scope.row, ['Draft']) || isRowStatus(scope.row, ['Confirmed'])) ? 'margin-left: 3px;' : ''" |
|
|
|
@click="editInspectionRequest(scope.row)">编辑</a> |
|
|
|
<a v-if="isRowStatus(scope.row, ['Audited', 'Scheduled'])" |
|
|
|
<a v-if="isRowStatus(scope.row, ['Confirmed', 'Audited', 'Scheduled'])" |
|
|
|
class="customer-a" |
|
|
|
:style="(isRowStatus(scope.row, ['Draft']) || isRowStatus(scope.row, ['Confirmed'])) ? 'margin-left: 3px;' : ''" |
|
|
|
@click="applyChangeRequest(scope.row)">申请变更</a> |
|
|
|
@ -3698,10 +3698,10 @@ export default { |
|
|
|
this.openEditInspectionDialog(row) |
|
|
|
}, |
|
|
|
|
|
|
|
// 申请变更(已下达/已排程) - rqrq |
|
|
|
// 申请变更(待审核/已下达直接退回草稿;已排程进入变更审批)- rqrq |
|
|
|
applyChangeRequest (row) { |
|
|
|
if (!this.isRowStatus(row, ['Audited', 'Scheduled'])) { |
|
|
|
this.$message.warning('只有已下达或已排程状态允许申请变更') |
|
|
|
if (!this.isRowStatus(row, ['Confirmed', 'Audited', 'Scheduled'])) { |
|
|
|
this.$message.warning('只有待审核、已下达或已排程状态允许申请变更') |
|
|
|
return |
|
|
|
} |
|
|
|
const isScheduled = this.isRowStatus(row, ['Scheduled']) |
|
|
|
@ -3714,7 +3714,7 @@ export default { |
|
|
|
this.applyChangeDialogVisible = true |
|
|
|
return |
|
|
|
} |
|
|
|
const tipText = '已下达申请单申请变更后将回到【草稿】,是否继续?' |
|
|
|
const tipText = `${this.isRowStatus(row, ['Confirmed']) ? '待审核' : '已下达'}申请单申请变更后将回到【草稿】,是否继续?` |
|
|
|
this.$confirm(tipText, '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
|