Browse Source

完善入库--确认增加二次确认

master
yunuo970428 2 years ago
parent
commit
16c91ea58e
  1. 41
      anrui-scm/anrui-scm-ui/src/views/ruzhang/ruzhangguanli/ruzhangAdd.vue

41
anrui-scm/anrui-scm-ui/src/views/ruzhang/ruzhangguanli/ruzhangAdd.vue

@ -908,24 +908,31 @@ export default {
hint1 = 0
})
} else {
this.$refs['form_obj'].validate(valid => {
if (valid) {
this.submitdisabled = true
req.confirmRZ(this.formobj).then((res) => {
if (res.success) {
this.$message({
showClose: true,
type: 'success',
message: '提交成功'
})
this.handleReturn('true')
} else {
const tip = '请再次确认录入信息,提交后将直接推送金蝶数据!'
this.$confirm(tip, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
this.$refs['form_obj'].validate(valid => {
if (valid) {
this.submitdisabled = true
req.confirmRZ(this.formobj).then((res) => {
if (res.success) {
this.$message({
showClose: true,
type: 'success',
message: '提交成功'
})
this.handleReturn('true')
} else {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
}
}).catch(() => {
this.submitdisabled = false
})
}
})
}
})
})
}
},

Loading…
Cancel
Save