소스 검색

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

jingbb 10 달 전
부모
커밋
2583f544db

+ 4 - 0
src/views/production/productionTotalOrder/modules/KSOutbound.vue

@@ -66,6 +66,7 @@
   </template>
   
   <script>
+  import alertModal from '../../../../plugins/modal'
   import { JeecgListMixin } from '@/mixins/JeecgListMixin'
   import JEllipsis from '@/components/jeecg/JEllipsis'
   import { httpAction ,getAction,postAction,putAction} from '@/api/manage'
@@ -408,9 +409,12 @@
                 this.$message.warning('请输入框运费、扇运费、本次执行扇数量、本次执行框数量')
             }else{
                 this.loading =true
+                alertModal.loading("执行中,请稍后!")
                 postAction('/productionOrder/madeProductionOrders/outMadeProductionOrdersOutList', {madeProductionOrdersInList:this.selectedRows}).then((res) => {
+                    alertModal.closeLoading();
                     if (res.success) {
                         this.$emit('ok')
+                        this.$message.success('执行成功');
                         this.handleCancel()
                     } else {
                         this.$message.error(res.message);

+ 4 - 0
src/views/production/productionTotalOrder/modules/KSWarehousing.vue

@@ -48,6 +48,7 @@
   </template>
   
   <script>
+  import alertModal from '../../../../plugins/modal'
   import { JeecgListMixin } from '@/mixins/JeecgListMixin'
   import JEllipsis from '@/components/jeecg/JEllipsis'
   import { httpAction ,getAction,postAction,putAction} from '@/api/manage'
@@ -364,9 +365,12 @@
                 this.$message.warning('请输入本次执行扇数量、本次执行框数量')
             }else{
                 this.loading =true
+                alertModal.loading("执行中,请稍后!")
                 postAction('/productionOrder/madeProductionOrders/inMadeProductionOrdersOutList', {madeProductionOrdersInList:this.selectedRows}).then((res) => {
+                    alertModal.closeLoading();
                     if (res.success) {
                         this.$emit('ok')
+                        this.$message.success('执行成功');
                         this.handleCancel()
                     } else {
                         this.$message.error(res.message);

+ 3 - 0
src/views/production/productionTotalOrder/modules/materiaWaring.vue

@@ -48,6 +48,7 @@
   </template>
   
   <script>
+  import alertModal from '../../../../plugins/modal'
   import { JeecgListMixin } from '@/mixins/JeecgListMixin'
   import JEllipsis from '@/components/jeecg/JEllipsis'
   import { httpAction ,getAction,postAction,putAction} from '@/api/manage'
@@ -356,7 +357,9 @@
                 this.$message.warning('请输入本次执行主数量、本次执行辅数量')
             }else{
                 this.loading =true
+                alertModal.loading("执行中,请稍后!")
                 postAction('/productionOrder/madeProductionOrders/syNcMadeProductionOrdersMaterialList', {madeProductionOrdersMaterialList:this.selectedRows}).then((res) => {
+                    alertModal.closeLoading();
                     if (res.success) {
                         this.$emit('ok')
                         this.handleCancel()

+ 3 - 0
src/views/production/productionTotalOrder/modules/productWarehousModel.vue

@@ -40,6 +40,7 @@
   </template>
   
   <script>
+  import alertModal from '../../../../plugins/modal'
   import { JeecgListMixin } from '@/mixins/JeecgListMixin'
   import JEllipsis from '@/components/jeecg/JEllipsis'
   import { httpAction ,getAction,postAction,putAction} from '@/api/manage'
@@ -351,7 +352,9 @@
             }else if(mandatoryField=='0'){
                 this.$message.warning('请输入成品入库数量')
             }else{
+                alertModal.loading("执行中,请稍后!")
                 postAction('/productionOrder/madeProductionOrders/syNcIn', {madeProductionOrdersFinishedList:this.selectedRows}).then((res) => {
+                    alertModal.closeLoading();
                     if (res.success) {
                         this.visible = false
                         this.$emit('ok')