| | |
| | | <!--待报检、待下单--> |
| | | <div class="table"> |
| | | <lims-table :tableData="tableData" :column="column" v-if="tabIndex === 0 || tabIndex === 1" |
| | | :isSelection="true" :handleSelectionChange="selectMethod" |
| | | @pagination="pagination" :height="'calc(100vh - 290px)'" |
| | | :page="page" :tableLoading="tableLoading"></lims-table> |
| | | </div> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import DataLookVisible from "@/components/rawMaterialInspection/dataLookVisible.vue"; |
| | | import DataLookVisible from "@/views/business/materialOrderComponents/materialOrder/dataLookVisible.vue"; |
| | | import { |
| | | addIfsInventoryQuantity, |
| | | advancedGodown, |
| | |
| | | tableData: [], |
| | | tableLoading: false, |
| | | column: [ |
| | | {label: '检验状态', prop: 'inspectStatus'}, |
| | | { |
| | | dataType: 'tag', |
| | | label: '检验状态', |
| | | prop: 'inspectStatus', |
| | | formatData: (params) => { |
| | | if (params == 0) { |
| | | return '检验中' |
| | | } else if (params == 1) { |
| | | return '合格' |
| | | } else if (params == 2) { |
| | | return '不合格' |
| | | } else if (params == 3) { |
| | | return '未下单' |
| | | } else if (params == 4) { |
| | | return '让步放行' |
| | | } else { |
| | | return null |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 0) { |
| | | return 'warning' |
| | | } else if (params == 1) { |
| | | return 'success' |
| | | } else if (params == 2) { |
| | | return 'danger' |
| | | } else if (params == 3) { |
| | | return 'info' |
| | | } else if (params == 4) { |
| | | return '' |
| | | } else { |
| | | return null |
| | | } |
| | | } |
| | | }, |
| | | {label: '订单号', prop: 'orderNo'}, |
| | | {label: '抵达的采购数量', prop: 'qtyArrived',width: '140px',}, |
| | | {label: '批号', prop: 'updateBatchNo'}, |
| | |
| | | if (params == 1) { |
| | | return '过期物料' |
| | | } else { |
| | | return '' |
| | | return null |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 1) { |
| | | return 'info' |
| | | } else { |
| | | return '' |
| | | return null |
| | | } |
| | | } |
| | | }, |
| | |
| | | {label: '报检时间', prop: 'declareDate'}, |
| | | { |
| | | dataType: 'action', |
| | | fixed: 'right', |
| | | label: '操作', |
| | | width: '150px', |
| | | operation: [ |
| | | { |
| | | name: '报检', |
| | |
| | | tableLoading1: false, |
| | | column1: [ |
| | | {label: '委托编号', prop: 'entrustCode'}, |
| | | {label: '检验状态', prop: 'inspectStatus'}, |
| | | { |
| | | dataType: 'tag', |
| | | label: '检验状态', |
| | | prop: 'inspectStatus', |
| | | formatData: (params) => { |
| | | if (params == 0) { |
| | | return '检验中' |
| | | } else if (params == 1) { |
| | | return '合格' |
| | | } else if (params == 2) { |
| | | return '不合格' |
| | | } else if (params == 3) { |
| | | return '未下单' |
| | | } else if (params == 4) { |
| | | return '让步放行' |
| | | } else { |
| | | return null |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 0) { |
| | | return 'warning' |
| | | } else if (params == 1) { |
| | | return 'success' |
| | | } else if (params == 2) { |
| | | return 'danger' |
| | | } else if (params == 3) { |
| | | return 'info' |
| | | } else if (params == 4) { |
| | | return '' |
| | | } else { |
| | | return null |
| | | } |
| | | } |
| | | }, |
| | | {label: '订单号', prop: 'orderNo'}, |
| | | {label: '抵达的采购数量', prop: 'qtyArrived'}, |
| | | {label: '下发时间', prop: 'sendTime'}, |
| | |
| | | if (params == 1) { |
| | | return '过期物料' |
| | | } else { |
| | | return '' |
| | | return null |
| | | } |
| | | }, |
| | | formatType: (params) => { |
| | | if (params == 1) { |
| | | return 'info' |
| | | } else { |
| | | return '' |
| | | return null |
| | | } |
| | | } |
| | | }, |
| | |
| | | dataType: 'action', |
| | | fixed: 'right', |
| | | label: '操作', |
| | | width: '140px', |
| | | operation: [ |
| | | { |
| | | name: '数据查看', |
| | |
| | | }, |
| | | // 数据查看 |
| | | handleDataLook(row) { |
| | | this.dataDialogVisible = true; |
| | | this.dataLookInfo = row |
| | | this.dataDialogVisible = true; |
| | | }, |
| | | // 直接放行 |
| | | goPass (row) { |
| | |
| | | type: 'success', |
| | | message: '放行成功!' |
| | | }); |
| | | this.refresh() |
| | | this.refreshTable() |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | |
| | | type: 'success', |
| | | message: '操作成功!' |
| | | }); |
| | | this.refresh() |
| | | this.refreshTable() |
| | | } |
| | | }) |
| | | }).catch(() => { |
| | |
| | | if (res.code === 200) { |
| | | this.declareDialogSVisible = false |
| | | this.$message.success('报检成功') |
| | | this.refresh() |
| | | this.refreshTable() |
| | | } |
| | | this.submitDeclareLoading = false |
| | | }).catch(err => { |
| | |
| | | if (res.code === 200) { |
| | | this.declareDialogVisible = false |
| | | this.$message.success('报检成功') |
| | | this.refresh() |
| | | this.refreshTable() |
| | | } |
| | | }).catch(err => { |
| | | console.log(err) |
| | |
| | | if (res.code === 200) { |
| | | this.declareDialogVisible = false |
| | | this.$message.success('报检成功') |
| | | this.refresh() |
| | | this.refreshTable() |
| | | } |
| | | }).catch(err => { |
| | | console.log(err) |
| | |
| | | submitDelete () { |
| | | this.deleteLoading = true |
| | | delIfsInventory({id: this.deleteInfo.id}).then(res => { |
| | | if (res.code === 200) { |
| | | this.deleteVisible = false |
| | | this.$message.success('删除成功') |
| | | this.refresh() |
| | | } |
| | | this.refreshTable() |
| | | this.deleteLoading = false |
| | | }).catch(err => { |
| | | console.log(err) |
| | |
| | | openIFS() { |
| | | this.btnLoading = true |
| | | getIfsOrder().then(res => { |
| | | this.refresh() |
| | | this.refreshTable() |
| | | this.btnLoading = false |
| | | }).catch(err => { |
| | | this.btnLoading = false |