| | |
| | | <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, |