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

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

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

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

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

Loading…
Cancel
Save