|
|
@@ -228,31 +228,36 @@
|
|
|
return this.$message.warning('请先新增一条在制品数据!');
|
|
|
}
|
|
|
|
|
|
- // this.loading = this.$loading({
|
|
|
- // lock: true,
|
|
|
- // text: '加载中',
|
|
|
- // background: 'rgba(0, 0, 0, 0.7)'
|
|
|
- // });
|
|
|
+ this.loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '加载中',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ });
|
|
|
pleaseEntrustSaveDetail(this.goodsList)
|
|
|
.then((res) => {
|
|
|
- // this.loading.close();
|
|
|
+ this.loading.close();
|
|
|
this.$message.success('发货成功');
|
|
|
this.$emit('done');
|
|
|
this.visible = false;
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- // this.loading.close();
|
|
|
+ this.loading.close();
|
|
|
});
|
|
|
} else if (this.type == 'receipt') {
|
|
|
+ this.loading = this.$loading({
|
|
|
+ lock: true,
|
|
|
+ text: '加载中',
|
|
|
+ background: 'rgba(0, 0, 0, 0.7)'
|
|
|
+ });
|
|
|
pleaseTReceiveGoods(this.goodsList)
|
|
|
.then((res) => {
|
|
|
- // this.loading.close();
|
|
|
+ this.loading.close();
|
|
|
this.$message.success('收货成功');
|
|
|
this.$emit('done');
|
|
|
this.visible = false;
|
|
|
})
|
|
|
.catch(() => {
|
|
|
- // this.loading.close();
|
|
|
+ this.loading.close();
|
|
|
});
|
|
|
}
|
|
|
},
|