diff --git a/src/api/oms/emisWarehouseIn.js b/src/api/oms/emisWarehouseIn.js index bacd866..acbe764 100644 --- a/src/api/oms/emisWarehouseIn.js +++ b/src/api/oms/emisWarehouseIn.js @@ -50,3 +50,14 @@ export function delEmisWarehouseIn(id) { method: 'delete' }) } + +//根据进仓单编号查询进仓单详情 +export function getWarehouseInDetail(query) { + return request({ + url: '/oms2c/emisWarehouseIn/getWarehouseInDetail', + method: 'get', + params: { + inNo: query.inNo + } + }) +} \ No newline at end of file diff --git a/src/views/oms/orderCheck/OrderWarehouseInList.vue b/src/views/oms/orderCheck/OrderWarehouseInList.vue index 318b729..a6d25e1 100644 --- a/src/views/oms/orderCheck/OrderWarehouseInList.vue +++ b/src/views/oms/orderCheck/OrderWarehouseInList.vue @@ -4,10 +4,10 @@
- + - - + +
@@ -30,6 +30,8 @@ export default { return { activeTab:'billList', billTabs:[], + selectInNo:null, + openViewForm:false, }; }, created() { @@ -39,27 +41,36 @@ export default { }, onSelectBill(item) { - let old=this.billTabs.find(mItem=>mItem.settleBillNo==item.settleBillNo); - if(old){ - this.activeTab=item.settleBillNo; - }else{ - this.billTabs.push(item); - this.activeTab=item.settleBillNo; - } + this.selectInNo=item.inNo; + this.openViewForm=true; + this.activeTab='wsInView'; }, - removeTab(targetName) { - - var self=this; + removeTab(targetName) { + if (targetName == 'wsInPanel') { + this.showWsInPanel = false; + this.activeTab = "billList"; + } + else if (targetName == 'wsInView') { + this.openViewForm = false; + this.activeTab = "billList"; + } + else { + var self = this; let tabs = self.billTabs; - self.billTabs = tabs.filter(tab => tab.settleBillNo !== targetName); - if(self.billTabs.length>0){ - this.activeTab=self.billTabs[self.billTabs.length-1].settleBillNo; - }else{ - this.activeTab="billList"; + self.billTabs = tabs.filter(tab => tab.inNo !== targetName); + if (self.billTabs.length > 0) { + this.activeTab = self.billTabs[self.billTabs.length - 1].inNo; + } else { + this.activeTab = "billList"; } + } }, - + onStockIn(inNo) { + this.selectInNo = inNo; + this.showWsInPanel = true; + this.activeTab = 'wsInPanel'; + }, } }; diff --git a/src/views/oms/orderCheck/WarehouseInBatchPanel.vue b/src/views/oms/orderCheck/WarehouseInBatchPanel.vue index 2727de3..b9ad4b1 100644 --- a/src/views/oms/orderCheck/WarehouseInBatchPanel.vue +++ b/src/views/oms/orderCheck/WarehouseInBatchPanel.vue @@ -1,311 +1,86 @@ diff --git a/src/views/oms/orderCheck/WarehouseInPanel.vue b/src/views/oms/orderCheck/WarehouseInPanel.vue index 2ee5c0c..995e15f 100644 --- a/src/views/oms/orderCheck/WarehouseInPanel.vue +++ b/src/views/oms/orderCheck/WarehouseInPanel.vue @@ -249,6 +249,7 @@ export default { daterangeCreateTime: [], // 更新站点时间范围 daterangeUpdateTime: [], + currentSelectOrder:null, // 查询参数 queryParams: { pageNum: 1, @@ -329,7 +330,7 @@ export default { this.selectionList=selection; if(this.selectionList&&this.selectionList.length>0){ - // this.currentSelectOrder=this.selectionList[0]; + this.currentSelectOrder=this.selectionList[0]; } }, @@ -358,7 +359,7 @@ export default { // this.id=row.id; // this.titleView="查看"; // this.openView=true; - this.$emit("onSelect",row); + this.$emit("onSelect",this.currentSelectOrder); // this.router.push({ path: '/oms2c/emisWarehouseIn/viewDetail', query: { id: row.id }}) }, handleFormChanged(){