| | |
| | | <div class="table-tab"> |
| | | <div> |
| | | <ul class="tab"> |
| | | <li v-for="(m, i) in tabList" :key="m.value" :class="{ active: m.value === tabIndex }" |
| | | @click="handleTab(m)"> |
| | | {{ m.label }}</li> |
| | | <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 === 3 }" v-if="checkPermi(['get:Ifs:ByAll'])" @click="handleTab(3)">全部</li> |
| | | </ul> |
| | | </div> |
| | | <div> |
| | |
| | | concessionRelease, |
| | | getIfsByAll, |
| | | getIfsByOver, |
| | | getIfsByQuarter, |
| | | getIfsByStateOne, |
| | | rawAllExport, |
| | | rawOrderRelease, |
| | |
| | | // 待下单查询 |
| | | getPurchaseOrderList() { |
| | | this.tableLoading = true |
| | | const params = { ...this.entity, isInspect: 1, state: 0 } |
| | | const params = { ...this.entity, isInspect: 1, state: 0, ...this.page } |
| | | getWarehouseSubmit(params).then(res => { |
| | | this.tableLoading = false |
| | | if (res.code === 200) { |
| | |
| | | // 检验中查询 |
| | | getIfsByStateOneList() { |
| | | this.tableLoading1 = true |
| | | const params = { ...this.entity, orderState: 1, state: 1 } |
| | | const params = { ...this.entity, orderState: 1, state: 1, ...this.page1 } |
| | | getIfsByStateOne(params).then(res => { |
| | | this.tableLoading1 = false |
| | | if (res.code === 200) { |
| | |
| | | // 已检验查询 |
| | | getIfsByOverList() { |
| | | this.tableLoading2 = true |
| | | const params = { ...this.entity, orderState: 4, state: 2 } |
| | | if(null != this.entity.date){ |
| | | this.entity.beginDeclareDate = this.entity.date[0] |
| | | this.entity.endDeclareDate = this.entity.date[1] |
| | | } else { |
| | | this.entity.beginDeclareDate = '' |
| | | this.entity.endDeclareDate = '' |
| | | } |
| | | const params = { ...this.entity, orderState: 4, state: 2, ...this.page2 } |
| | | getIfsByOver(params).then(res => { |
| | | this.tableLoading2 = false |
| | | if (res.code === 200) { |
| | |
| | | // 查询季度检验 |
| | | getIfsByQuarterList() { |
| | | this.tableLoading4 = true |
| | | const params = { ...this.entity } |
| | | getIfsByOver(params).then(res => { |
| | | if(null != this.entity.date){ |
| | | this.entity.beginDeclareDate = this.entity.date[0] |
| | | this.entity.endDeclareDate = this.entity.date[1] |
| | | } else { |
| | | this.entity.beginDeclareDate = '' |
| | | this.entity.endDeclareDate = '' |
| | | } |
| | | const params = { ...this.entity, ...this.page4 } |
| | | getIfsByQuarter(params).then(res => { |
| | | this.tableLoading4 = false |
| | | if (res.code === 200) { |
| | | this.tableData4 = res.data.records |
| | |
| | | // 全部 |
| | | getIfsByAllList() { |
| | | this.tableLoading3 = true |
| | | const params = { ...this.entity, isInspect: 1 } |
| | | if(null != this.entity.date){ |
| | | this.entity.beginDeclareDate = this.entity.date[0] |
| | | this.entity.endDeclareDate = this.entity.date[1] |
| | | } else { |
| | | this.entity.beginDeclareDate = '' |
| | | this.entity.endDeclareDate = '' |
| | | } |
| | | const params = { ...this.entity, isInspect: 1, ...this.page3 } |
| | | getIfsByAll(params).then(res => { |
| | | this.tableLoading3 = false |
| | | if (res.code === 200) { |
| | |
| | | }, |
| | | // 切换下单tab表格 |
| | | handleTab(m) { |
| | | this.tabIndex = m.value; |
| | | this.tabIndex = m; |
| | | this.refreshTable() |
| | | }, |
| | | // 表格选择方法 |