Pārlūkot izejas kodu

生产总订单-增加等待状态

jingbb 10 mēneši atpakaļ
vecāks
revīzija
fd173a5c9c

+ 5 - 1
src/views/production/productionTotalOrder/modules/productionTotalOrderAdd.vue

@@ -126,7 +126,7 @@
     </a-modal>
   </template>
   <script>
-  
+      import alertModal from '../../../../plugins/modal'
       import { FormTypes } from '@/utils/JEditableTableUtil'
       import { JEditableTableModelMixin } from '@/mixins/JEditableTableModelMixin'
       import productDetails from './productDetails'
@@ -247,7 +247,9 @@
                             madeProductionOrdersPage.madeProductionOrdersOutList = this.$refs.SurplusMaterials.form.dataSource
                             this.loading = true
                             if(this.defaultMethod=='add'){
+                                alertModal.loading("执行中,请稍后!")
                                 postAction('/productionOrder/madeProductionOrders/add', madeProductionOrdersPage).then((res) => {
+                                    alertModal.closeLoading();
                                     if (res.success) {
                                         this.$message.success('添加成功!');
                                         this.$emit('ok')
@@ -259,7 +261,9 @@
                                     this.loading = false
                                 })
                             }else{
+                                alertModal.loading("执行中,请稍后!")
                                 postAction('/productionOrder/madeProductionOrders/edit', madeProductionOrdersPage).then((res) => {
+                                    alertModal.closeLoading();
                                     if (res.success) {
                                         this.$emit('ok')
                                         this.handleCancel()