Browse Source

车辆外采流程办理

master
yxt_djz 3 years ago
parent
commit
da02cde61c
  1. 54
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue

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

@ -163,17 +163,20 @@
</span>
</el-dialog>
<!-- 车型 -->
<!-- 选择待办人 -->
<modellibrary v-show="viewState == 1.2" ref="chexingxuanze" @handleChexing="selectChexing"></modellibrary>
<el-dialog title="选择待办人" :visible.sync="nodeDialogVisible" width="80%">
<el-form label-position="right" class="formadd" >
<el-row>
<el-col :span="4" class="tleftb">当前环节</el-col>
<el-col :span="20" class="trightb">
<!--当前环节指向下一环节-->
<el-form-item prop="purchasingUnitName"><span>{{firstNode.name}}->{{ nextNode.name }}</span></el-form-item>
</el-col>
</el-row>
<!-- <el-row>
<!--
第一个环节不用填写意见
<el-row>
<el-col :span="4" class="tleftb">意见</el-col>
<el-col :span="20" class="trightb">
<el-input size="small" v-model="formobj.comment" placeholder="审批意见" class="addinputw" clearable ></el-input>
@ -182,7 +185,8 @@
<el-row>
<el-col :span="4" class="tleftb">下一步处理人</el-col>
<el-col :span="20" class="trightb">
{{this.userName}} <el-button type="primary" size="mini" @click="selectUser">选择</el-button>
{{this.userName}}
<el-button type="primary" size="mini" @click="selectUser">选择</el-button>
</el-col>
</el-row>
<div style="text-align:center;margin-top: 20px;">
@ -191,12 +195,13 @@
</div>
</el-form>
</el-dialog>
<!--选择用户的弹框-->
<el-dialog title="选择用户" :visible.sync="nodeUserDialogVisible" width="80%">
<el-form label-position="right" class="formadd" >
<el-row>
<el-col :span="4" class="tleftb">选择动作</el-col>
<el-col :span="20" class="trightb" >
<el-radio-group v-model="userSid">
<el-radio-group >
<el-radio v-for="item in users" :key="item.sid" :label="item.sid"
@change="checkedUser">{{ item.name }}</el-radio>
</el-radio-group>
@ -219,14 +224,17 @@ export default {
},
data() {
return {
//
firstNode:{},
//
nextNode:{},
//sid
roleSid:'',
userSid:'',
//
users:[],
nodeSid:'',
nodes:'',
//
nodeDialogVisible:false,
//
nodeUserDialogVisible:false,
selectedSids: '',
vehicleDialogVisible: false,
@ -234,18 +242,11 @@ export default {
viewState: '1',
submitdisabled: false,
viewTitle: '',
agreeList: { //
businessSid: '',
comment: '',
instanceId: '',
taskId: '',
taskName: '',
nextNodeSid:'',
userSid: window.sessionStorage.getItem('userSid')
},
formobj: {
//sid
nextUserSid:'',
sid: '',
userSid:'',
staffSid: window.sessionStorage.getItem('staffSid'),
applicationCode: '', //
createByName: window.sessionStorage.getItem('name'), //
@ -412,12 +413,14 @@ export default {
var pageindex=index+1+pagestart;
return pageindex;*/
},
//
selectUser() {
this.nodeUserDialogVisible=true
req.getUsers( this.roleSid).then(res => {
this.nodeUserDialogVisible = true;
req.getUsers( this.roleSid ).then(res => {
this.users = res.data
})
},
//
checkedUser(val) {
const choosetItem = this.users.filter((item) => item.sid == val)
this.userName = choosetItem[0].name
@ -429,19 +432,23 @@ export default {
this.submitdisabled = true
this.formobj.userSid = window.sessionStorage.getItem('userSid')
this.formobj.orgSid = this.$store.getters.orgSid
//id
this.formobj.modelId = 'process_5tqysnjc:2:325008'
req.getNextNodesForSubmit(this.formobj).then(resp=>{
if (resp.success) {
this.nextNode=resp.data[1];
//
this.firstNode=resp.data[0];
//
this.nextNode=resp.data[1];
//
var candidateGroups=this.nextNode.candidateGroups;
this.roleSid=candidateGroups[0];
console.log(resp.data);
this.nodeDialogVisible = true
}
this.submitdisabled = false
});
},
///
agree() {
req
.doSubmit(this.formobj)
@ -451,13 +458,6 @@ export default {
//
this.$message({ showClose: true, type: 'success', message: resp.msg })
this.handleReturn('true')
/* window.parent.postMessage({
cmd: 'returnHeight',
params: {
code: 1,
data: document.body.scrollHeight + 'px'
}
}, '*')*/
} else {
// resp.code
}

Loading…
Cancel
Save