| | |
| | | count += a.name.length; |
| | | } |
| | | }); |
| | | this.btnWidth = count * 18 + 60 + "px"; |
| | | return count * 18 + 60 + "px"; |
| | | this.btnWidth = count * 15 + 60 + "px"; |
| | | return count * 15 + 60 + "px"; |
| | | }, |
| | | getTitleWidth(row) { |
| | | if (row.label.includes('时间') || row.label.includes('编号') || row.label.includes('样品名称') || row.label.includes('零件')) { |
| | |
| | | iconFn(row) { |
| | | if (row.name === "编辑" || row.name === "修改") { |
| | | return "el-icon-edit"; |
| | | } else if (row.name === "删除") { |
| | | return "el-icon-delete"; |
| | | } else if (row.name === "查看") { |
| | | return "el-icon-view"; |
| | | } else { |
| | |
| | | </div> |
| | | <div style="line-height: 30px;"> |
| | | <el-button size="small" type="primary" icon="el-icon-plus" |
| | | @click="addDialogVisible = true, addInfo = {}, file = null">文件作废申请</el-button> |
| | | @click="addDialogVisible = true, addInfo = {}">文件作废申请</el-button> |
| | | <el-button :loading="outLoading" size="small" type="primary" @click="handleOut">导出</el-button> |
| | | </div> |
| | | </div> |
| | |
| | | <div class="table-tab"> |
| | | <div> |
| | | <ul class="tab"> |
| | | <li :class="{ active: tabIndex === 0 }" @click="handleTab(0)">待下单</li> |
| | | <li :class="{ active: tabIndex === 1 }" @click="handleTab(1)">检验中</li> |
| | | <li :class="{ active: tabIndex === 2 }" @click="handleTab(2)">已检验</li> |
| | | <li :class="{ active: tabIndex === 4 }" @click="handleTab(4)">季度检验</li> |
| | | <li :class="{ active: tabIndex === 0 }" v-if="checkPermi(['get:raw:await'])" @click="handleTab(0)">待下单</li> |
| | | <li :class="{ active: tabIndex === 1 }" v-if="checkPermi(['get:raw:testing'])" @click="handleTab(1)">检验中</li> |
| | | <li :class="{ active: tabIndex === 2 }" v-if="checkPermi(['get:raw:check'])" @click="handleTab(2)">已检验</li> |
| | | <li :class="{ active: tabIndex === 4 }" v-if="checkPermi(['get:raw:quarterCheck'])" @click="handleTab(4)">季度检验</li> |
| | | <li :class="{ active: tabIndex === 3 }" v-if="checkPermi(['get:Ifs:ByAll'])" @click="handleTab(3)">全部</li> |
| | | </ul> |
| | | </div> |
| | |
| | | <!--待下单--> |
| | | <div class="table"> |
| | | <lims-table :tableData="tableData" :column="column" v-if="tabIndex === 0" @pagination="pagination" |
| | | ref="tableData" |
| | | :rowClassName="changeRowClass" :height="'calc(100vh - 290px)'" key="tableData" :page="page" |
| | | :tableLoading="tableLoading"></lims-table> |
| | | ref="tableData" :rowClassName="changeRowClass" :height="'calc(100vh - 290px)'" |
| | | key="tableData" :page="page" :tableLoading="tableLoading"></lims-table> |
| | | </div> |
| | | <!--检验中--> |
| | | <div class="table"> |
| | |
| | | disabled: (row) => { |
| | | return row.isQuarter == 0 |
| | | }, |
| | | showHide: (row) => { |
| | | return this.checkPermi([ |
| | | "get:raw:check:operation", |
| | | ]); |
| | | }, |
| | | }, |
| | | { |
| | | name: '数据查看', |
| | |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | this.handleFileLook(row); |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | name: '报告下载', |
| | | type: 'text', |
| | | clickFun: (row) => { |
| | | this.download(row); |
| | | }, |
| | | } |
| | | }, |
| | | { |
| | | name: '原始记录', |
| | |
| | | disabled: (row) => { |
| | | return row.inspectStatus != 2 |
| | | }, |
| | | showHide: (row) => { |
| | | return this.checkPermi([ |
| | | "get:raw:check:operation", |
| | | ]); |
| | | }, |
| | | }, |
| | | { |
| | | name: '季度撤销', |
| | |
| | | }, |
| | | disabled: (row) => { |
| | | return row.quarterOrderId == null || row.quarterReportId != null |
| | | }, |
| | | showHide: (row) => { |
| | | return this.checkPermi([ |
| | | "get:raw:check:operation", |
| | | ]); |
| | | }, |
| | | }, |
| | | ] |
| | |
| | | } |
| | | ], |
| | | more: false, |
| | | tabIndex: 0, |
| | | tabIndex: '', |
| | | multipleSelection: [], |
| | | active: 0, //1:下单,2:查看 |
| | | orderType: 0, //0:原材料下单,1:季度检验下单 |
| | |
| | | ...mapGetters(['nickName']) |
| | | }, |
| | | mounted() { |
| | | if (this.checkPermi(['get:raw:await'])) { |
| | | this.tabIndex = 0 |
| | | } else { |
| | | this.tabIndex = 2 |
| | | } |
| | | this.refreshTable() |
| | | }, |
| | | activated () { |
| | |
| | | inspectorList.push(this.nickName) |
| | | this.InspectInfoDialog = false |
| | | this.$router.push({ |
| | | path: "/inspectionTask/inspection", |
| | | name: "Inspection", |
| | | query: { |
| | | sonLaboratory: '原材料', |
| | | state: 3, |
| | |
| | | inspectorList.push(this.nickName) |
| | | this.InspectInfoDialog = false |
| | | this.$router.push({ |
| | | path: "/inspectionTask/inspection", |
| | | name: "Inspection", |
| | | query: { |
| | | sonLaboratory: '原材料', |
| | | state: 3, |