Browse Source

添加防重

master
shenzhouyu 4 weeks ago
parent
commit
8015d5db64
  1. 6
      src/views/modules/orderIssure/newSoIssueNotify.vue
  2. 5
      src/views/modules/poOrder/newPoIssueNotify.vue

6
src/views/modules/orderIssure/newSoIssueNotify.vue

@ -1896,6 +1896,12 @@ export default {
this.$message.warning('该OrderNo的数据已添加过,请先删除再添加!') this.$message.warning('该OrderNo的数据已添加过,请先删除再添加!')
return false return false
} }
//
if (this.seqNoModalLoading) {
console.log("正在加载中,防重复提交");
return;
}
this.seqNoModalLoading = true this.seqNoModalLoading = true
getShopOrderAndMaterialByShoporder(this.seqNoData) getShopOrderAndMaterialByShoporder(this.seqNoData)
.then(({ data }) => { .then(({ data }) => {

5
src/views/modules/poOrder/newPoIssueNotify.vue

@ -1758,6 +1758,11 @@ export default {
this.$message.warning('该OrderNo的数据已添加过,请先删除再添加!') this.$message.warning('该OrderNo的数据已添加过,请先删除再添加!')
return false return false
} }
if (this.seqNoModalLoading) {
console.log("正在加载中,防重复提交");
return;
}
this.seqNoModalLoading = true this.seqNoModalLoading = true
let params = { let params = {
site: this.$store.state.user.site, site: this.$store.state.user.site,

Loading…
Cancel
Save