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