| | |
| | | <template #menu="{ row }"> |
| | | <div class="menu-custom-box"> |
| | | <div v-if="row.status == 1"> |
| | | <el-button v-if="hasPaddingBtnPermission()" type="text" icon="el-icon-view" |
| | | @click="handleViewDetail(row)">审核</el-button> |
| | | <el-button class="audit-btn" v-if="hasPaddingBtnPermission()" type="text" |
| | | icon="el-icon-view" @click="handleViewDetail(row)">审核</el-button> |
| | | </div> |
| | | |
| | | <div |
| | | v-if="(userInfo.user_id == row.create_user || hasRecallPaddingBtnPermission()) && row.status == 1"> |
| | | <!--待审核状态--> |
| | | <el-button type="text" icon="el-icon-warning" |
| | | <el-button class="withdraw-btn" type="text" icon="el-icon-warning" |
| | | @click="orderLogRecall(row.id)">撤回</el-button> |
| | | </div> |
| | | <!--已驳回--> |
| | | <div v-if="row.status == 2"> |
| | | <el-button type="text" icon="el-icon-warning" |
| | | <el-button class="reject-reason-btn" type="text" icon="el-icon-warning" |
| | | @click="rejectDetail(row.id)">驳回原因</el-button> |
| | | </div> |
| | | <!--草稿--> |
| | | <div v-if="row.status == 0 && userInfo.user_id == row.create_user"> |
| | | <el-button type="text" icon="el-icon-edit-outline" |
| | | <el-button class="edit-btn" type="text" icon="el-icon-edit-outline" |
| | | @click="handleViewDetail(row)">编辑</el-button> |
| | | <el-button type="text" icon="el-icon-position" |
| | | <el-button class="publish-btn" type="text" icon="el-icon-position" |
| | | @click="userPublishPush(row.id)">发布</el-button> |
| | | <el-button type="text" icon="el-icon-delete" |
| | | <el-button class="delete-btn" 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" |
| | | <el-button class="detail-btn" type="text" icon="el-icon-view" |
| | | @click="handleViewDetail(row)">详情</el-button> |
| | | </div> |
| | | </div> |
| | |
| | | { |
| | | label: '工单周期频次', |
| | | prop: '', |
| | | width: 140, |
| | | width: 110, |
| | | formatter: row => this.formatCycleTime(row), |
| | | html: true, |
| | | ellipsis: true, |
| | |
| | | } |
| | | }, |
| | | formatCycleTime (row) { |
| | | return `${row.begin_time} ~ <br/> |
| | | ${row.end_time} ${row.rep_rule_val}` |
| | | return `${row.cycle_time_value}` |
| | | }, |
| | | |
| | | async fetchTableData () { |
| | |
| | | &>div { |
| | | flex: 1; |
| | | } |
| | | |
| | | .audit-btn { |
| | | color: #1BA0FF; |
| | | } |
| | | |
| | | .withdraw-btn { |
| | | color: #FF5D9E; |
| | | } |
| | | |
| | | .reject-reason-btn { |
| | | color: #FF6A00; |
| | | } |
| | | .edit-btn { |
| | | color: #00B187; |
| | | } |
| | | |
| | | .publish-btn { |
| | | color: #5E00FF; |
| | | } |
| | | |
| | | .delete-btn { |
| | | color: #FE0202; |
| | | } |
| | | |
| | | .detail-btn { |
| | | color: #1F4AFF; |
| | | } |
| | | } |
| | | } |
| | | |