Browse Source

完善出库申请管理--增加重推功能

master
yunuo970428 2 years ago
parent
commit
73d47aae57
  1. 23
      anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqing.vue

23
anrui-buscenter/anrui-buscenter-ui/src/views/chukuguanli/chukubanli/chukushenqing.vue

@ -404,12 +404,23 @@ export default {
//
toPush() {
if (this.sids.length === 1) {
ckxstz({ ckSid: this.sids[0] }).then((resp) => {
if (resp.success) {
this.$message({ showClose: true, type: 'success', message: '重推成功' })
this.getList()
}
})
if (this.multipleSelection[0].nodeState === '已办结') {
const loading = this.$loading({
lock: true,
text: 'Loading',
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
})
ckxstz({ ckSid: this.sids[0] }).then((resp) => {
loading.close()
if (resp.success) {
this.$message({ showClose: true, type: 'success', message: '重推成功' })
this.getList()
}
})
} else {
this.$message({ showClose: true, type: 'error', message: '请选择状态为已办结的记录进行重推操作' })
}
} else {
this.$message({ showClose: true, type: 'error', message: '请选择一条记录进行重推操作' })
}

Loading…
Cancel
Save