|
@@ -28,20 +28,20 @@
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<span class="enableClick" @click="toDetail(row)">{{ row.productionName == null ? row.orderName :
|
|
<span class="enableClick" @click="toDetail(row)">{{ row.productionName == null ? row.orderName :
|
|
row.productionName
|
|
row.productionName
|
|
- }}</span>
|
|
|
|
|
|
+ }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="订单号" align="center" width="150" v-if="!hiddenLabels.includes('orderId')" prop="orderId">
|
|
<el-table-column label="订单号" align="center" width="150" v-if="!hiddenLabels.includes('orderId')" prop="orderId">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<span class="enableClick" @click="toDetail(row)" @contextmenu.prevent="$doCopy(row.orderId)">{{ row.orderId
|
|
<span class="enableClick" @click="toDetail(row)" @contextmenu.prevent="$doCopy(row.orderId)">{{ row.orderId
|
|
- }}</span>
|
|
|
|
|
|
+ }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="价值意见书号" align="center" width="200" v-if="!hiddenLabels.includes('statementNo')"
|
|
<el-table-column label="价值意见书号" align="center" width="200" v-if="!hiddenLabels.includes('statementNo')"
|
|
prop="statementNo" sortable>
|
|
prop="statementNo" sortable>
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<span @contextmenu.prevent="$doCopy(row.statementNo)">{{ row.statementNo == null ? '-' : row.statementNo
|
|
<span @contextmenu.prevent="$doCopy(row.statementNo)">{{ row.statementNo == null ? '-' : row.statementNo
|
|
- }}</span>
|
|
|
|
|
|
+ }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="报告号/复评函号" align="center" width="200" v-if="!hiddenLabels.includes('reportNo')"
|
|
<el-table-column label="报告号/复评函号" align="center" width="200" v-if="!hiddenLabels.includes('reportNo')"
|
|
@@ -61,13 +61,14 @@
|
|
<span>{{ row.handler }}</span>
|
|
<span>{{ row.handler }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="当前节点" align="center" width="140" v-if="!hiddenLabels.includes('nodeName')" prop="nodeName"
|
|
|
|
- sortable>
|
|
|
|
|
|
+ <el-table-column label="当前节点" align="center" width="140" v-if="!hiddenLabels.includes('nodeName')"
|
|
|
|
+ prop="nodeName" sortable>
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<span>{{ row.nodeName }}</span>
|
|
<span>{{ row.nodeName }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="客户经理" align="center" v-if="!hiddenLabels.includes('clientManager')" prop="clientManager">
|
|
|
|
|
|
+ <el-table-column label="客户经理" align="center" v-if="!hiddenLabels.includes('clientManager')"
|
|
|
|
+ prop="clientManager">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<span>{{ row.clientManager }}</span>
|
|
<span>{{ row.clientManager }}</span>
|
|
</template>
|
|
</template>
|
|
@@ -107,7 +108,8 @@
|
|
{{ row.cmobile }}
|
|
{{ row.cmobile }}
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="下单时间" align="center" width="160" v-if="!hiddenLabels.includes('created')" prop="created">
|
|
|
|
|
|
+ <el-table-column label="下单时间" align="center" width="160" v-if="!hiddenLabels.includes('created')"
|
|
|
|
+ prop="created">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<span>{{ row.created }}</span>
|
|
<span>{{ row.created }}</span>
|
|
</template>
|
|
</template>
|
|
@@ -127,7 +129,8 @@
|
|
</parentTable>
|
|
</parentTable>
|
|
</y-page-list-layout>
|
|
</y-page-list-layout>
|
|
<TransferDialog :transferDialogVisible="visible" @parentFalse="parentFalse()" @getPage="getPage()"
|
|
<TransferDialog :transferDialogVisible="visible" @parentFalse="parentFalse()" @getPage="getPage()"
|
|
- :recordId="recordId"></TransferDialog>
|
|
|
|
|
|
+ :recordId="recordId">
|
|
|
|
+ </TransferDialog>
|
|
<el-dialog :visible.sync="batchCommitDialog" width="70%">
|
|
<el-dialog :visible.sync="batchCommitDialog" width="70%">
|
|
<y-page-list-layout :page-list="batchCommitPageData" :page-para="batchCommitListQuery"
|
|
<y-page-list-layout :page-list="batchCommitPageData" :page-para="batchCommitListQuery"
|
|
:get-page-list="selectBatchCommitPage">
|
|
:get-page-list="selectBatchCommitPage">
|
|
@@ -151,20 +154,22 @@
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<span class="enableClick" @click="toDetail(row)">{{ row.productionName == null ? row.orderName :
|
|
<span class="enableClick" @click="toDetail(row)">{{ row.productionName == null ? row.orderName :
|
|
row.productionName
|
|
row.productionName
|
|
- }}</span>
|
|
|
|
|
|
+ }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="订单号" align="center" width="150" v-if="!hiddenLabels.includes('orderId')" prop="orderId">
|
|
|
|
|
|
+ <el-table-column label="订单号" align="center" width="150" v-if="!hiddenLabels.includes('orderId')"
|
|
|
|
+ prop="orderId">
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
- <span class="enableClick" @click="toDetail(row)" @contextmenu.prevent="$doCopy(row.orderId)">{{ row.orderId
|
|
|
|
- }}</span>
|
|
|
|
|
|
+ <span class="enableClick" @click="toDetail(row)" @contextmenu.prevent="$doCopy(row.orderId)">{{
|
|
|
|
+ row.orderId
|
|
|
|
+ }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="价值意见书号" align="center" width="200" v-if="!hiddenLabels.includes('statementNo')"
|
|
<el-table-column label="价值意见书号" align="center" width="200" v-if="!hiddenLabels.includes('statementNo')"
|
|
prop="statementNo" sortable>
|
|
prop="statementNo" sortable>
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
<span @contextmenu.prevent="$doCopy(row.statementNo)">{{ row.statementNo == null ? '-' : row.statementNo
|
|
<span @contextmenu.prevent="$doCopy(row.statementNo)">{{ row.statementNo == null ? '-' : row.statementNo
|
|
- }}</span>
|
|
|
|
|
|
+ }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
<el-table-column label="报告号/复评函号" align="center" width="200" v-if="!hiddenLabels.includes('reportNo')"
|
|
<el-table-column label="报告号/复评函号" align="center" width="200" v-if="!hiddenLabels.includes('reportNo')"
|
|
@@ -204,6 +209,51 @@
|
|
</parentTable>
|
|
</parentTable>
|
|
</y-page-list-layout>
|
|
</y-page-list-layout>
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
|
+ <el-dialog :visible.sync="allocationDialog" title="评估部退单,请领导重新分单。" center width="35%" top="15vh">
|
|
|
|
+ <el-form :model="allocationForm">
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="24" :span="6">
|
|
|
|
+ <el-form-item label="退单部门:">
|
|
|
|
+ <el-input :value="allocationForm.departmentName + '-' + allocationForm.refuseUser" readonly style="width: 80%;"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="24" :span="6">
|
|
|
|
+ <el-form-item label="退单时间:">
|
|
|
|
+ <el-input :value="allocationForm.refuseTime" readonly style="width: 80%;"/>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="24" :span="6">
|
|
|
|
+ <el-form-item label="退单原因:">
|
|
|
|
+ <el-input :value="allocationForm.reason" readonly style="width: 80%;"></el-input>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="24" :span="6">
|
|
|
|
+ <el-form-item label="接单部门:">
|
|
|
|
+ <el-select v-model="allocationForm.departmentId" placeholder="请重新分配接单部门" clearable style="width: 80%;">
|
|
|
|
+ <el-option v-for="(d, id) in allotDepartment" :label="d.name" :value="d.id"></el-option>
|
|
|
|
+ </el-select>
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ <el-row>
|
|
|
|
+ <el-col :xs="24" :sm="12" :lg="24" :span="6">
|
|
|
|
+ <el-form-item label="处理意见:">
|
|
|
|
+ <el-input type="textarea" v-model="allocationForm.comments" clearable style="width: 80%;" />
|
|
|
|
+ </el-form-item>
|
|
|
|
+ </el-col>
|
|
|
|
+ </el-row>
|
|
|
|
+ </el-form>
|
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
|
+ <el-button @click="batchCommitDialog = false">取 消</el-button>
|
|
|
|
+ <el-button type="primary" @click="saveAllocation()">确 定</el-button>
|
|
|
|
+ </div>
|
|
|
|
+ </el-dialog>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
@@ -231,7 +281,7 @@ export default {
|
|
keyword: null,
|
|
keyword: null,
|
|
descs: null,
|
|
descs: null,
|
|
ascs: null,
|
|
ascs: null,
|
|
- getNodeIsCheckArchiving:false
|
|
|
|
|
|
+ getNodeIsCheckArchiving: false
|
|
},
|
|
},
|
|
majorNodes: [],
|
|
majorNodes: [],
|
|
orderDate: '',
|
|
orderDate: '',
|
|
@@ -277,13 +327,34 @@ export default {
|
|
getNodeIsRecheckArchiving: false,
|
|
getNodeIsRecheckArchiving: false,
|
|
getNodeIsCheckArchiving: false
|
|
getNodeIsCheckArchiving: false
|
|
},
|
|
},
|
|
- batchCommitPageData: { records: [] }
|
|
|
|
|
|
+ batchCommitPageData: { records: [] },
|
|
|
|
+ allocationDialog: false,
|
|
|
|
+ allocationForm: {
|
|
|
|
+ id: null,
|
|
|
|
+ departmentId: null,
|
|
|
|
+ comments: null,
|
|
|
|
+ departmentName:null,
|
|
|
|
+ reason:null,
|
|
|
|
+ refuseTime:null,
|
|
|
|
+ refuseUser:null
|
|
|
|
+ },
|
|
|
|
+ allotDepartment: [],
|
|
|
|
+ nodeCode:null,
|
|
}
|
|
}
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
if (getCookie("MajorTodoList-hiddenLabels") != undefined) {
|
|
if (getCookie("MajorTodoList-hiddenLabels") != undefined) {
|
|
this.hiddenLabels = JSON.parse(getCookie("MajorTodoList-hiddenLabels"))
|
|
this.hiddenLabels = JSON.parse(getCookie("MajorTodoList-hiddenLabels"))
|
|
}
|
|
}
|
|
|
|
+ this.nodeCode = this.$route.query.nodeCode;
|
|
|
|
+ if (this.nodeCode === 'LEADER_ALLOCATION'){
|
|
|
|
+ this.getAllotDepartment();
|
|
|
|
+ this.getRefuseReason(this.$route.query.businessId);
|
|
|
|
+ this.allocationDialog = true;
|
|
|
|
+ this.allocationForm.instanceNodeId = this.$route.query.currentNodeId;
|
|
|
|
+ this.allocationForm.id = this.$route.query.businessId;
|
|
|
|
+ this.allocationForm.departmentName = this.$route.query.departmentName;
|
|
|
|
+ }
|
|
this.getPage();
|
|
this.getPage();
|
|
this.getMajorNodes();
|
|
this.getMajorNodes();
|
|
},
|
|
},
|
|
@@ -442,6 +513,15 @@ export default {
|
|
this.$router.push(`/major/production/in?openDialog=${true}`)
|
|
this.$router.push(`/major/production/in?openDialog=${true}`)
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
+ if (row.nodeCode === 'LEADER_ALLOCATION') {
|
|
|
|
+ this.getAllotDepartment();
|
|
|
|
+ this.getRefuseReason(row.businessId);
|
|
|
|
+ this.allocationDialog = true;
|
|
|
|
+ this.allocationForm.instanceNodeId = row.currentNodeId;
|
|
|
|
+ this.allocationForm.id = row.businessId;
|
|
|
|
+ this.allocationForm.departmentName = row.departmentName;
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (reportNo && statementNo) {
|
|
if (reportNo && statementNo) {
|
|
this.$router.push(`/major/todo/detail?id=${row.businessId}&orderId=${row.orderId}&reportNo=${reportNo}&statementNo=${row.statementNo}&doWorkflow=${true}¤tNodeId=${row.currentNodeId}¤tNodeCode=${row.nodeCode}&back=${'/major/todo'}`)
|
|
this.$router.push(`/major/todo/detail?id=${row.businessId}&orderId=${row.orderId}&reportNo=${reportNo}&statementNo=${row.statementNo}&doWorkflow=${true}¤tNodeId=${row.currentNodeId}¤tNodeCode=${row.nodeCode}&back=${'/major/todo'}`)
|
|
} else if (!reportNo && statementNo) {
|
|
} else if (!reportNo && statementNo) {
|
|
@@ -525,6 +605,57 @@ export default {
|
|
message: '请选择至少一条流程再提交!'
|
|
message: '请选择至少一条流程再提交!'
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
+ },
|
|
|
|
+ saveAllocation() {
|
|
|
|
+ let major = new Object();
|
|
|
|
+ major.id = this.allocationForm.id;
|
|
|
|
+ major.departmentId = this.allocationForm.departmentId;
|
|
|
|
+ this.$api.major.edit(major).then(res=>{
|
|
|
|
+ if (res.code === 200 && res.data){
|
|
|
|
+ let commit = new Object();
|
|
|
|
+ commit.instanceNodeId = this.allocationForm.instanceNodeId;
|
|
|
|
+ commit.state = 'PASS';
|
|
|
|
+ commit.ifCheckTask = false;
|
|
|
|
+ commit.nodeCode = 'LEADER_ALLOCATION';
|
|
|
|
+ this.$api.workflow.commit(commit).then(res=>{
|
|
|
|
+ if (res.code === 200 && res.data){
|
|
|
|
+ this.$notify({
|
|
|
|
+ title: '成功',
|
|
|
|
+ message: '操作成功',
|
|
|
|
+ type: 'success',
|
|
|
|
+ duration: 2000
|
|
|
|
+ });
|
|
|
|
+ this.allocationDialog = false;
|
|
|
|
+ this.getPage();
|
|
|
|
+ }else{
|
|
|
|
+ this.$notify({
|
|
|
|
+ title: '失败',
|
|
|
|
+ message: '操作失败',
|
|
|
|
+ type: 'error',
|
|
|
|
+ duration: 2000
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ getAllotDepartment() {
|
|
|
|
+ this.$api.department.allot('MAJOR_BUSINESS').then(res => {
|
|
|
|
+ if (res.code === 200) {
|
|
|
|
+ this.allotDepartment = res.data;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
|
|
+ getRefuseReason(businessId){
|
|
|
|
+ if (businessId){
|
|
|
|
+ this.$api.workflowLog.getRefuse(businessId,'MAJOR_BUSINESS').then(res=>{
|
|
|
|
+ if (res.code === 200 && res.data){
|
|
|
|
+ this.allocationForm.reason = res.data.comments;
|
|
|
|
+ this.allocationForm.refuseTime = res.data.created;
|
|
|
|
+ this.allocationForm.refuseUser = res.data.handler;
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ }
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
|
|
@@ -537,4 +668,5 @@ export default {
|
|
.enableClick:hover {
|
|
.enableClick:hover {
|
|
color: #1890ff;
|
|
color: #1890ff;
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
-}</style>
|
|
|
|
|
|
+}
|
|
|
|
+</style>
|