| | |
| | | <!--å¾
æ¥æ£ãå¾
ä¸å--> |
| | | <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.deleteVisible = false |
| | | this.$message.success('å 餿å') |
| | | 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 |