Browse Source

车辆外采流程办理

master
yxt_djz 3 years ago
parent
commit
8c5d996d08
  1. 2
      anrui-flowable/anrui-flowable-biz/src/main/java/com/yxt/anrui/flowable/biz/flowtask/FlowTaskService.java
  2. 4
      anrui-scm/anrui-scm-ui/src/api/chexingchaxun/modelinquire.js
  3. 5
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/baseoutsourcingapplicationAdd.vue
  4. 2
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/relation/vehiclelibraryconfiguration.vue
  5. 58
      anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/workflow/baseoutsourcingapplication.vue

2
anrui-flowable/anrui-flowable-biz/src/main/java/com/yxt/anrui/flowable/biz/flowtask/FlowTaskService.java

@ -695,7 +695,7 @@ public class FlowTaskService extends MybatisBaseService<FlowTaskMapper, FlowTask
if (end_act_id != null) { if (end_act_id != null) {
flowTask.setEndActId((String) end_act_id); flowTask.setEndActId((String) end_act_id);
} }
Object end_time = histTask.get("end_time"); Object end_time = histTask.get("END_TIME_");
if (end_time != null) { if (end_time != null) {
Timestamp end_time_t = (Timestamp) end_time; Timestamp end_time_t = (Timestamp) end_time;
long end_time_t_l = end_time_t.getTime(); long end_time_t_l = end_time_t.getTime();

4
anrui-scm/anrui-scm-ui/src/api/chexingchaxun/modelinquire.js

@ -3,7 +3,7 @@ import request from '@/utils/request'
// 根据条件分页查询数据的列表(车型) // 根据条件分页查询数据的列表(车型)
export function modelPageList(data) { export function modelPageList(data) {
return request({ return request({
url: '/base/v1/basevehiclemodel/modelPageList', url: '/base/v1/basevehicle/getModelList',
method: 'post', method: 'post',
data: data, data: data,
headers: { headers: {
@ -15,7 +15,7 @@ export function modelPageList(data) {
// 根据条件分页查询数据的列表(车型配置) // 根据条件分页查询数据的列表(车型配置)
export function configPageList(data) { export function configPageList(data) {
return request({ return request({
url: '/base/v1/basemodelconfig/configPageList', url: '/base/v1/basemodelconfig/getPcModelConfigList',
method: 'post', method: 'post',
data: data, data: data,
headers: { headers: {

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

@ -203,7 +203,7 @@
<el-col :span="20" class="trightb" > <el-col :span="20" class="trightb" >
<el-radio-group > <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.sid)">{{ item.name }}</el-radio>
</el-radio-group> </el-radio-group>
</el-col> </el-col>
</el-row> </el-row>
@ -313,7 +313,6 @@ export default {
// this.$refs['chexingxuanze'].showChexing() // this.$refs['chexingxuanze'].showChexing()
}, },
selectChexing(info) { selectChexing(info) {
console.log('车型info', info)
this.viewState = '1' this.viewState = '1'
this.formobj.modelSid = info.modelSid // sid this.formobj.modelSid = info.modelSid // sid
this.formobj.modelName = info.modelName // this.formobj.modelName = info.modelName //
@ -423,6 +422,8 @@ export default {
// //
checkedUser(val) { checkedUser(val) {
const choosetItem = this.users.filter((item) => item.sid == val) const choosetItem = this.users.filter((item) => item.sid == val)
console.log(this.users);
console.log(choosetItem);
this.userName = choosetItem[0].name this.userName = choosetItem[0].name
this.formobj.nextUserSid = choosetItem[0].sid this.formobj.nextUserSid = choosetItem[0].sid
this.nodeUserDialogVisible = false this.nodeUserDialogVisible = false

2
anrui-scm/anrui-scm-ui/src/views/baseoutsourcingapplication/relation/vehiclelibraryconfiguration.vue

@ -407,7 +407,7 @@ export default {
return pageindex return pageindex
}, },
showData(row) { showData(row) {
this.listQuery.params.modelSid = row.sid this.listQuery.params.modelSid = row.modelSid
this.modelSid = row.sid this.modelSid = row.sid
this.modelName = row.modelName this.modelName = row.modelName
this.guidedPrice = row.guidedPrice this.guidedPrice = row.guidedPrice

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

@ -78,6 +78,7 @@
<flow :xmlData="xmlData" :taskData="taskList"></flow> <flow :xmlData="xmlData" :taskData="taskList"></flow>
</el-form> </el-form>
</div> </div>
<!-- 选择待办人 的弹出框-->
<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>
@ -104,6 +105,7 @@
</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>
@ -130,18 +132,23 @@ export default {
}, },
data() { data() {
return { return {
//
nodeDialogVisible:false, nodeDialogVisible:false,
//
nodeUserDialogVisible:false, nodeUserDialogVisible:false,
// xml // xml
xmlData: "", xmlData: "",
nodeSid: "", //
// nextNodeSid:'',
nodes: [],
users:[], users:[],
//
userName:'', userName:'',
//sid
userSid:'', userSid:'',
taskList: [], taskList: [],
//
endTask:true, endTask:true,
//
nextNode:{},
formobj: { formobj: {
sid: '', sid: '',
comment:'', comment:'',
@ -165,7 +172,6 @@ export default {
orgSid: '', // sid orgSid: '', // sid
baseOutsourcingApplicationVehicleDtos:[] baseOutsourcingApplicationVehicleDtos:[]
}, },
nextNode:{},
agreeList: { // agreeList: { //
businessSid: '', businessSid: '',
comment: '', comment: '',
@ -206,7 +212,7 @@ export default {
const data = decodeURI(window.location.href.slice(one, two)) // urlunescape()web,使 const data = decodeURI(window.location.href.slice(one, two)) // urlunescape()web,使
var tar = data.substr(data.indexOf('=') + 1) var tar = data.substr(data.indexOf('=') + 1)
const obj = JSON.parse(tar) const obj = JSON.parse(tar)
// //
this.agreeList.businessSid = sid this.agreeList.businessSid = sid
this.agreeList.instanceId = obj.instanceId this.agreeList.instanceId = obj.instanceId
this.agreeList.taskId = obj.taskId this.agreeList.taskId = obj.taskId
@ -220,46 +226,45 @@ export default {
this.stopList.businessSid = sid this.stopList.businessSid = sid
this.stopList.instanceId = obj.instanceId this.stopList.instanceId = obj.instanceId
this.stopList.taskId = obj.taskId this.stopList.taskId = obj.taskId
//
this.getModelDetail(obj.deployId) this.getModelDetail(obj.deployId)
this.getFlowViewer(obj.instanceId) this.getFlowViewer(obj.instanceId)
this.getNextNodes(obj.taskId)
window.parent.postMessage({ window.parent.postMessage({
cmd: 'returnHeight', cmd: 'returnHeight',
params: { params: {
//
code: 2, code: 2,
data: 1500 + 'px' data: 1500 + 'px'
} }
}, '*') }, '*')
}, },
methods: { methods: {
//
closeNodeDialog(){ closeNodeDialog(){
this.nodeDialogVisible = false this.nodeDialogVisible = false
}, },
//
selectUser() { selectUser() {
this.nodeUserDialogVisible=true this.nodeUserDialogVisible=true
req.getUsers(this.nextNode.candidateGroups[0]).then(res => { req.getUsers(this.nextNode.candidateGroups[0]).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
this.userSid = choosetItem[0].sid
this.nodeUserDialogVisible = false this.nodeUserDialogVisible = false
}, },
/** xml 文件 */ /** xml 文件 */
getNextNodes(taskid) {
// xml
req.getNextNodes(taskid).then(res => {
this.nodes = res.data
})
},
/** xml 文件 */
getModelDetail(deployId) { getModelDetail(deployId) {
// xml // xml
req.readXml(deployId).then(res =>{ req.readXml(deployId).then(res =>{
this.xmlData = res.data this.xmlData = res.data
}) })
}, },
//
getFlowViewer(procInsId){ getFlowViewer(procInsId){
req.getFlowViewer(procInsId).then(res =>{ req.getFlowViewer(procInsId).then(res =>{
this.taskList = res.data this.taskList = res.data
@ -301,30 +306,32 @@ export default {
}, },
// //
openAgree() { openAgree() {
//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) {
var arr= resp.data; var arr= resp.data;
//
for(var i=0;i<arr.length;i++){ for(var i=0;i<arr.length;i++){
if(i+1<arr.length&&this.agreeList.taskDefKey==arr[i].id){ if(i+1<arr.length&&this.agreeList.taskDefKey==arr[i].id){
this.nextNode=arr[i+1]; this.nextNode=arr[i+1];
this.endTask=fasle; //
this.endTask=false;
} }
} }
//
if(this.endTask){ if(this.endTask){
this.nextNode={ this.nextNode={
name:'结束' name:'结束'
} }
}else{ }else{
/*this.nextNode=resp.data[1]; // sid
this.firstNode=resp.data[0];*/
var candidateGroups=this.nextNode.candidateGroups; var candidateGroups=this.nextNode.candidateGroups;
this.roleSid=candidateGroups[0]; this.roleSid=candidateGroups[0];
} }
this.nodeDialogVisible = true this.nodeDialogVisible = true
} }
this.submitdisabled = false this.submitdisabled = false
// this.handleAgree()
}); });
}, },
@ -366,22 +373,25 @@ export default {
_this.formobj = {} _this.formobj = {}
}) })
}, },
/** 同意任务 */ //
handleAgree() {
this.nodeDialogVisible = true
},
agree() { agree() {
if(this.formobj.comment==''){
alert('请填写审批意见!');
}
//
this.agreeList.comment = this.formobj.comment this.agreeList.comment = this.formobj.comment
// this.agreeList.nextNodeSid = this.nextNodeSid //sid
this.agreeList.nextUserSid = this.userSid this.agreeList.nextUserSid = this.userSid
//
req.agreeTask(this.agreeList).then((response) => { req.agreeTask(this.agreeList).then((response) => {
if (response.code === '200') { if (response.code === '200') {
this.nodeDialogVisible=false; this.nodeDialogVisible=false;
//
window.parent.postMessage({ window.parent.postMessage({
cmd: 'returnHeight', cmd: 'returnHeight',
params: { params: {
code: 1, //
data: document.body.scrollHeight + 'px' code: 1
} }
}, '*') }, '*')
} else { } else {

Loading…
Cancel
Save