| | |
| | | |
| | | <!-- 操作按钮区 --> |
| | | <view class="action-buttons" v-if="this.current"> |
| | | <button class="secondary-btn" @click="openPermissionModal">权限管理</button> |
| | | <button v-if="hasEmergencyPermission" class="secondary-btn" @click="handleEmergencyRelease">紧急放行</button> |
| | | <button v-if="hasEmergencyPermission" class="secondary-btn" @click="handleWithdraw">撤回</button> |
| | | <button class="secondary-btn" @click="handleEmergencyRelease">紧急放行</button> |
| | | <button class="secondary-btn" @click="handleWithdraw">撤回</button> |
| | | <button class="secondary-btn" @click="getInspectionItems">获取检验项目</button> |
| | | </view> |
| | | <!-- 权限分配模态框 --> |
| | | <view v-if="permissionModalVisible" class="overlay"> |
| | | <view class="popup"> |
| | | <h3>权限分配</h3> |
| | | <form> |
| | | <view class="form-group"> |
| | | <label class="form-label">分配权限的账号:</label> |
| | | <input class="form-input" type="text" v-model="permissionAccount" /> |
| | | </view> |
| | | </form> |
| | | <button class="updateBut" @click="savePermission">保存</button> |
| | | <button @click="permissionModalVisible = false">取消</button> |
| | | </view> |
| | | </view> |
| | | |
| | | </view> |
| | | |
| | | |
| | | |
| | | <!-- 检验项目表格 --> |
| | |
| | | emergency:'', |
| | | permissionModalVisible: false, |
| | | permissionAccount: '', |
| | | hasEmergencyPermission: false |
| | | hasEmergencyPermission: false, |
| | | showPopup: false, |
| | | |
| | | }, |
| | | tableData: [], |
| | | remarksPopup: false, |
| | |
| | | onLoad(options) { |
| | | //options中包含了url附带的参数 |
| | | let params = options; |
| | | |
| | | |
| | | |
| | | |
| | | if (params["id"]) { |
| | | this.formData.id = params["id"]; |
| | | this.formData.releaseNo = params["releaseNo"]; |
| | | this.formData.lotNo = params["lotNo"]; |
| | | this.msgId = params["msgId"]; |
| | | this.emergency = params["emergency"] |
| | | this.meom = params["meom"] |
| | | |
| | | if (params["current"] === 'A') { |
| | | this.current = true; |