常熟吴彦祖 4 days ago
parent
commit
8507ea01cd
  1. 39
      src/views/modules/automatedWarehouse/palletMergeQuery.vue

39
src/views/modules/automatedWarehouse/palletMergeQuery.vue

@ -292,23 +292,30 @@ export default {
}
this.submitLoading = true
// - rqrq
submitPalletMerge(this.selectedRows).then(({ data }) => {
if (data && data.code === 0) {
this.$message({
message: '提交成功',
type: 'success',
duration: 1500
})
// - rqrq
this.searchTable()
} else {
this.$alert(data.msg || '提交失败', '错误', { confirmButtonText: '确定' })
}
this.$confirm(`确定进行[合托]操作?`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
// - rqrq
submitPalletMerge(this.selectedRows).then(({data}) => {
if (data && data.code === 0) {
this.$message({
message: '提交成功',
type: 'success',
duration: 1500
})
// - rqrq
this.searchTable()
} else {
this.$alert(data.msg || '提交失败', '错误', {confirmButtonText: '确定'})
}
}).catch(() => {
this.$message.error('提交失败')
}).finally(() => {
this.submitLoading = false
})
}).catch(() => {
this.$message.error('提交失败')
}).finally(() => {
this.submitLoading = false
})
}

Loading…
Cancel
Save