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

Loading…
Cancel
Save