| | |
| | | <u-button type="primary" |
| | | size="small" |
| | | class="action-btn" |
| | | :disabled="item.inspectState" |
| | | :disabled="!!item.inspectState" |
| | | @click.stop="startInspection(item)"> |
| | | 编辑 |
| | | </u-button> |
| | |
| | | <u-button type="success" |
| | | size="small" |
| | | class="action-btn" |
| | | :disabled="item.inspectState" |
| | | :disabled="!!item.inspectState" |
| | | @click.stop="submitInspection(item)"> |
| | | 提交 |
| | | </u-button> |
| | |
| | | <u-button type="warning" |
| | | size="small" |
| | | class="action-btn" |
| | | :disabled="item.inspectState || item.checkName !== ''" |
| | | :disabled="!!item.inspectState || item.checkName !== ''" |
| | | @click.stop="assignInspector(item)"> |
| | | 分配检验员 |
| | | </u-button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view v-else-if="tableLoading" |
| | | class="loading-wrap"> |
| | | <up-loading-icon mode="circle" /> |
| | | <text class="loading-text">加载中...</text> |
| | | </view> |
| | | <view v-else |
| | | class="no-data"> |
| | |
| | | })); |
| | | }); |
| | | |
| | | // 返回上一页 |
| | | // 返回上一页(消息通知直接进入等无上级页面时兜底回工作台) |
| | | const goBack = () => { |
| | | uni.navigateBack(); |
| | | const pages = getCurrentPages(); |
| | | if (pages.length > 1) { |
| | | uni.navigateBack(); |
| | | return; |
| | | } |
| | | uni.reLaunch({ url: "/pages/works" }); |
| | | }; |
| | | |
| | | // 格式化日期时间 |
| | |
| | | }; |
| | | |
| | | onMounted(() => { |
| | | getList(); |
| | | getUserList(); |
| | | }); |
| | | |
| | |
| | | text-align: center; |
| | | } |
| | | |
| | | // 加载状态 |
| | | .loading-wrap { |
| | | padding: 60px 20px; |
| | | display: flex; |
| | | flex-direction: column; |
| | | align-items: center; |
| | | gap: 12px; |
| | | } |
| | | |
| | | .loading-text { |
| | | font-size: 14px; |
| | | color: #909399; |
| | | } |
| | | |
| | | // 浮动按钮 |
| | | .fab-button { |
| | | position: fixed; |