| | |
| | | :table-loading="loading" @current-change="currentChange" @refresh-change="refreshChange" |
| | | @on-load="onLoad" @search-change="searchChange" @size-change="sizeChange"> |
| | | <template #menu-left> |
| | | <el-button v-if="hasAddBtnPermission()&&activeTab!='WAIT_AUDIT'" type="primary" icon="el-icon-plus"@click="handleAdd" >新建工单</el-button> |
| | | <el-button v-if="hasAddBtnPermission()&&activeTab!='WAIT_AUDIT'" type="primary" icon="el-icon-plus" @click="handleAdd" >新建工单</el-button> |
| | | <el-button type="success" plain icon="el-icon-download" @click="exportData">导出</el-button> |
| | | </template> |
| | | |
| | | <template #menu="{ row }"> |
| | | <div v-if="row.status == 1 && userInfo.user_id != row.create_user"> |
| | | <div v-if="row.status == 1"> |
| | | <el-button v-if="hasPaddingBtnPermission()" type="text" icon="el-icon-view" @click="handleViewDetail(row)">审核</el-button> |
| | | <el-button type="text" icon="el-icon-view" @click="handleViewDetail(row)">详情</el-button> |
| | | |
| | | </div> |
| | | |
| | | <div v-if="userInfo.user_id == row.create_user"> |
| | | <div v-if="userInfo.user_id == row.create_user || hasRecallPaddingBtnPermission()"> |
| | | <!--待审核状态--> |
| | | <div v-if="row.status == 1"> |
| | | <el-button type="text" icon="el-icon-warning-outline" |
| | | @click="orderLogRecall(row.id)">撤回</el-button> |
| | | <el-button type="text" icon="el-icon-view" |
| | | @click="handleViewDetail(row)">详情</el-button> |
| | | </div> |
| | | </div> |
| | | <!--已驳回--> |
| | | <div v-if="row.status == 2"> |
| | | <el-button type="text" icon="el-icon-warning-outline" |
| | | @click="rejectDetail(row.id)">驳回原因</el-button> |
| | | <el-button type="text" icon="el-icon-view" @click="handleViewDetail(row)">详情</el-button> |
| | | </div> |
| | | <!--草稿--> |
| | | <div v-if="row.status == 0 && userInfo.user_id == row.create_user"> |
| | |
| | | <el-button type="text" icon="el-icon-delete" |
| | | @click="deleteOrderLog(row.id)">删除</el-button> |
| | | </div> |
| | | |
| | | <div v-if="row.status == 3 || row.status == 1 || row.status == 2"> |
| | | |
| | | <el-button type="text" icon="el-icon-view" @click="handleViewDetail(row)">详情</el-button> |
| | | </div> |
| | | |
| | | </template> |
| | | <template #status="{ row }"> |
| | |
| | | </el-dialog> |
| | | |
| | | <!-- 工单详情对话框 --> |
| | | <el-dialog v-model="detailVisible" title="工单详情" width="70%" :close-on-click-modal="false" @close="resetForm"> |
| | | <el-form :model="form" ref="form" label-width="100px"> |
| | | <el-dialog v-model="detailVisible" title="工单详情" width="70%" :close-on-click-modal="false" @close="resetForm" > |
| | | <el-form :model="form" ref="testform" label-width="100px"> |
| | | <div class="custom-steps-container"> |
| | | <!-- 标题行 --> |
| | | <div class="steps-titles"> |
| | |
| | | this.page.pageSize = pageSize |
| | | }, |
| | | async submitForm(status) { |
| | | console.log(this.$refs.testform, '111111') |
| | | |
| | | this.$refs.testform.validate(async valid => { |
| | | |
| | | if (valid) { |
| | |
| | | console.log('权限检查:', this.permission); |
| | | return this.permission && this.permission.order_log_review === true; |
| | | }, |
| | | hasRecallPaddingBtnPermission() { |
| | | // undefined 或 false 都返回 false,只有 true 返回 true |
| | | console.log('权限检查:', this.permission); |
| | | return this.permission && this.permission.order_log_recall === true; |
| | | }, |
| | | //自己点发布 |
| | | userPublishPush(id) { |
| | | this.$confirm('确定发布吗?', '提示', { |