Browse Source

车辆外采流程办理

zhanglei
yxt_djz 3 years ago
parent
commit
712b1bd63f
  1. 71
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplication.vue
  2. 3
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue
  3. 6
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue

71
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplication.vue

@ -217,44 +217,51 @@ export default {
})*/ })*/
}, },
doDel(row) { doDel(row) {
if (this.multipleSelection.length === 0) { if (this.multipleSelection.length === 0) {
this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' }) this.$message({ showClose: true, type: 'error', message: '请选择至少一条记录进行删除操作' })
return return
} }
const _this = this const _this = this
const sids = [] const sids = []
this.multipleSelection.forEach(row => { this.multipleSelection.forEach(row => {
sids.push(row.sid) if(row.nodeState==''||(row.nodeState!=''&&row.nodeState=='外采申请')){
}) sids.push(row.sid)
const tip = '请确认是否删除所选 ' + this.multipleSelection.length + ' 条记录?' }else{
this.$confirm(tip, '提示', { alert('已经发起的审批业务数据不能进行删除。');
confirmButtonText: '确定', sids = [];
cancelButtonText: '取消', }
type: 'warning' })
}) const tip = '请确认是否删除所选 ' + this.multipleSelection.length + ' 条记录?'
.then(() => { this.$confirm(tip, '提示', {
const loading = this.$loading({ confirmButtonText: '确定',
lock: true, cancelButtonText: '取消',
text: 'Loading', type: 'warning'
spinner: 'el-icon-loading', })
background: 'rgba(0, 0, 0, 0.7)' .then(() => {
}) const loading = this.$loading({
req lock: true,
.delBySids(sids) text: 'Loading',
.then(resp => { spinner: 'el-icon-loading',
loading.close() background: 'rgba(0, 0, 0, 0.7)'
if (resp.success) { })
_this.$message({ type: 'success', message: resp.msg, showClose: true }) req
_this.loadList() .delBySids(sids)
} else { .then(resp => {
// resp.code loading.close()
} if (resp.success) {
}) _this.$message({ type: 'success', message: resp.msg, showClose: true })
.catch(e => { this.queryParams.current = 1
loading.close() _this.loadList()
}) } else {
}) // resp.code
.catch(() => {}) }
})
.catch(e => {
loading.close()
})
})
.catch(() => {})
}, },
doImport(row) { doImport(row) {
// //

3
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue

@ -362,8 +362,11 @@ export default {
.doSubmit(this.formobj) .doSubmit(this.formobj)
.then(resp => { .then(resp => {
this.submitdisabled = false this.submitdisabled = false
console.log(resp);
if (resp.success) { if (resp.success) {
// //
this.$message({ showClose: true, type: 'success', message: resp.msg })
this.handleReturn('true')
} else { } else {
// resp.code // resp.code
} }

6
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue

@ -249,7 +249,9 @@ export default {
}, },
/** 同意任务 */ /** 同意任务 */
handleAgree() { handleAgree() {
this.agreeList.comment = "同意"; this.comment console.log(this)
console.log(parent.parent)
/* this.agreeList.comment = ""; this.comment
req.agreeTask(this.agreeList).then((response) => { req.agreeTask(this.agreeList).then((response) => {
if (response.code === '200') { if (response.code === '200') {
this.$notify({ this.$notify({
@ -267,7 +269,7 @@ export default {
duration: 2000 duration: 2000
}) })
} }
}) })*/
}, },
/** 驳回任务 */ /** 驳回任务 */
handleReject() { handleReject() {

Loading…
Cancel
Save