| | |
| | | import { createVNode, render, h, reactive } from 'vue'; |
| | | import { ElDialog, ElForm, ElFormItem, ElSelect, ElOption, ElButton, ElMessage, ElLoading } from 'element-plus'; |
| | | import gridHeader from './extend/CrossAreaRelocationDialog.vue' |
| | | import gridBody from './extend/BatchOutboundByExcel.vue' |
| | | let extension = { |
| | | components: { |
| | | //æ¥è¯¢ç颿©å±ç»ä»¶ |
| | | gridHeader: '', |
| | | gridBody: '', |
| | | gridHeader: gridHeader, |
| | | gridBody: gridBody, |
| | | gridFooter: '', |
| | | //æ°å»ºãç¼è¾å¼¹åºæ¡æ©å±ç»ä»¶ |
| | | modelHeader: '', |
| | |
| | | methods: { |
| | | //ä¸é¢è¿äºæ¹æ³å¯ä»¥ä¿çä¹å¯ä»¥å é¤ |
| | | onInit() { |
| | | let BatchOutboundByExcelBtn = this.buttons.find(x => x.value === 'BatchOutboundByExcel'); |
| | | if (BatchOutboundByExcelBtn) { |
| | | // éåæé®ç¹å»äºä»¶ |
| | | BatchOutboundByExcelBtn.onClick = function () { |
| | | this.$refs.gridBody.open(); |
| | | }; |
| | | } |
| | | // let InOrder = this.buttons.find(x => x.value == 'StockOutbound'); |
| | | // if (InOrder) { |
| | | // InOrder.onClick = function () { |
| | |
| | | }); |
| | | } |
| | | } |
| | | var SelectStockAreaIn = this.buttons.find(x => x.value == "SelectStockAreaIn"); |
| | | if (SelectStockAreaIn != null) { |
| | | SelectStockAreaIn.onClick = () => { |
| | | let rows = this.$refs.table.getSelected(); |
| | | if (rows.length == 0) { |
| | | return this.$message.error("请å
éæ©éè¦ç§»åºçæ°æ®ï¼"); |
| | | } |
| | | this.$refs.gridHeader.open(); |
| | | } |
| | | } |
| | | }, |
| | | onInited() { |
| | | //æ¡æ¶åå§åé
ç½®å |