Browse Source

生产总订单-生产出入库页签

jingbb 1 year ago
parent
commit
12e742046c

+ 13 - 0
src/views/production/productionTotalOrder/modules/productionTotalOrderAdd.vue

@@ -205,8 +205,21 @@
                     this.$refs.material.delecteCopyRow()
                 }else if(prop =='委外保存'){
                     this.changeEdit()
+                }else if(prop=='生产出入库页签'){
+                    this.generateList()
                 }
             },
+            generateList(){
+                getAction('/productionOrder/madeProductionOrders/createTabs',{id:this.form.id}).then(res=>{
+                    if(res.success){
+                       this.$message.success('执行成功!');
+                       this.getOutboundData(this.form.id)
+                       this.getWarehousingData(this.form.id)
+                    }else{
+                      this.$message.error(res.message);
+                    }
+                })
+            },
             handleOk(){
                 var madeProductionOrdersPage = this.form
                 madeProductionOrdersPage.madeProductionOrdersFinishedList = this.$refs.productDetails.dataSource