| | |
| | | scope.row.insState == 5 || |
| | | scope.row.insState == 3 || |
| | | (scope.row.userName && !scope.row.userName.includes(nickName)) |
| | | )" @click="handleConnect(scope.row)">交接</el-button> |
| | | )" @click="handleConnect(scope.row)" v-if="tabIndex != 0">交接</el-button> |
| | | <el-button type="text" size="small" @click="viewInspectInfo(scope.row)">原始记录</el-button> |
| | | <el-popover placement="bottom" trigger="hover" style="margin-left: 6px"> |
| | | <template #reference> |
| | |
| | | <i class="el-icon-document"></i> |
| | | 车间附件查看 |
| | | </el-button> |
| | | <el-dialog :visible.sync="fileDialogVisible" title="附件查看" width="80%"> |
| | | <fileList :currentNo="addObj.workShopId" v-if="fileDialogVisible" /> |
| | | </el-dialog> |
| | | </el-form-item> |
| | | </el-form> |
| | | </div> |
| | | <el-button type="text" @click="handleFileDialog" v-show="active != 1"> |
| | | <i class="el-icon-document"></i> |
| | | 车间附件查看 |
| | | </el-button> |
| | | <el-dialog :visible.sync="fileDialogVisible" title="附件查看" width="80%"> |
| | | <fileList :currentNo="addObj.workShopId" v-if="fileDialogVisible" :isLook="true" /> |
| | | </el-dialog> |
| | | <div style="margin-bottom: 6px;margin-top: 6px"> |
| | | <el-button v-show="active == 1" :disabled="sampleList.length === 2" size="small" type="primary" |
| | | @click="handleSplitCountNum">拆分</el-button> |
| | |
| | | <el-table-column label="分配人员" prop="checkUserId"> |
| | | <template slot-scope="scope"> |
| | | <el-select v-model="scope.row.checkUserId" clearable filterable placeholder="请选择" size="small" |
| | | style="width: 100%;"> |
| | | style="width: 100%;" :disabled="scope.row.insResult !== null"> |
| | | <el-option v-for="(item, i) in personList" :key="i + 'gbnm.'" :label="item.label" :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | |
| | | <el-upload ref='upload' :action="fileAction" :auto-upload="true" :before-upload="fileBeforeUpload" |
| | | :data="{ id: currentId }" :headers="uploadHeader" :on-error="onError" :on-success="handleSuccessUp" |
| | | :show-file-list="false" accept='.jpg,.jpeg,.png,.gif,.doc,.docx,.xls,.xlsx,.ppt,.pptx,.pdf,.zip,.rar' |
| | | style="width: 80px !important;"> |
| | | style="width: 80px !important;" v-if="!isLook"> |
| | | <el-button size="small" style="height: 38px" type="primary">附件上传</el-button> |
| | | </el-upload> |
| | | </div> |
| | |
| | | limsTable, |
| | | filePreview, |
| | | }, |
| | | props: ['currentId'], |
| | | props: { |
| | | currentId: { |
| | | type: String, |
| | | default: '' |
| | | }, |
| | | isLook: { |
| | | type: Boolean, |
| | | default: false |
| | | } |
| | | }, |
| | | computed: { |
| | | fileAction() { |
| | | return this.javaApi + '/workShop/uploadFile' |
| | |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | this.delete(row); |
| | | }, |
| | | showHide: (row) => { |
| | | return !this.isLook |
| | | } |
| | | }, |
| | | { |
| | | name: '预览', |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | console.log('预览文件信息:', row) |
| | | this.currentInfo = row |
| | | this.lookDialogVisible = true |
| | | } |