Merge branch 'dev_test' into 'dev_20231101_TXSS'
Dev test See merge request laws-foton-slrs/foton-laws-system-front!119
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 12 KiB |
+5
-1
@@ -10,7 +10,7 @@
|
||||
<!-- scrolling="0"-->
|
||||
<!-- ></iframe>-->
|
||||
<!-- 数小福 -->
|
||||
<customerService></customerService>
|
||||
<customerService v-if="customerServiceShow"></customerService>
|
||||
<!-- <router-view v-if="!isBoolean"/>-->
|
||||
<span v-if="this.$route.name === 'Login'|| !isBoolean">
|
||||
<router-view/>
|
||||
@@ -96,6 +96,7 @@
|
||||
import {mapGetters, mapState} from 'vuex'
|
||||
import {webLoginType, ssoLogoutUrlDev} from '@/sysConfig'
|
||||
import customerService from "@/components/customerService";
|
||||
import isMobile from "./store/isMobile";
|
||||
|
||||
export default {
|
||||
name: 'App',
|
||||
@@ -239,6 +240,9 @@
|
||||
userAvator() {
|
||||
return this.$store.getters.userInfo.avator || require('@/assets/images/avator_default.png')
|
||||
},
|
||||
customerServiceShow () {
|
||||
return !isMobile()
|
||||
},
|
||||
...mapGetters([
|
||||
'getWebSocketList', 'getTheme', 'getMenuList'
|
||||
]),
|
||||
|
||||
@@ -4,7 +4,8 @@
|
||||
<!--title 标题-->
|
||||
<div class="details-header">
|
||||
<span>{{sarStandardsInfoEO.standCode}} 《{{sarStandardsInfoEO.standName ? sarStandardsInfoEO.standName : sarStandardsInfoEO.standEnName}}》 企标详情</span>
|
||||
<b style="float:right;font-size: 25px;color: #ff9900">{{ ((qualityCommentScore*2*0.9)+(dynamicCommentScore*2*0.1)).toFixed(1) }}</b>
|
||||
<!--<b style="float:right;font-size: 25px;color: #ff9900">{{ ((qualityCommentScore*2*0.9)+(dynamicCommentScore*2*0.1)).toFixed(1) }}</b>-->
|
||||
<b style="float:right;font-size: 25px;color: #ff9900">{{ score }}</b>
|
||||
<!-- 之前的,先注掉-->
|
||||
<!-- <span>{{sarStandardsInfoEO.standCode}}-{{sarStandardsInfoEO.standYear}} 《{{sarStandardsInfoEO.standName}}》 企标详情</span>-->
|
||||
</div>
|
||||
@@ -45,14 +46,17 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="targetScore" label="指标分值" width="165">
|
||||
<template slot-scope="scope">
|
||||
<el-col :span="20">
|
||||
<el-rate
|
||||
v-model="scope.row.targetScore"
|
||||
@change="targetScoreChange(scope.row)"
|
||||
allow-half>
|
||||
</el-rate>
|
||||
<el-col>
|
||||
<div style="display: flex">
|
||||
<el-rate
|
||||
v-model="scope.row.targetScore"
|
||||
@change="targetScoreChange(scope.row)"
|
||||
allow-half>
|
||||
</el-rate>
|
||||
<b style="color: #ff9900">{{ scope.row.targetScore * 2 }}</b>
|
||||
</div>
|
||||
</el-col>
|
||||
<b style="margin-top: 5px;margin-left: -2%;color: #ff9900">{{ scope.row.targetScore * 2 }}</b>
|
||||
<!--<b style="margin-top: 5px;margin-left: -2%;color: #ff9900">{{ scope.row.targetScore * 2 }}</b>-->
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column property="reason" label="简述理由">
|
||||
@@ -110,7 +114,7 @@
|
||||
<el-form-item>
|
||||
<el-radio v-model="commentAverageScoreTag" label="1" border @change="tabsClick">质量评价总平均分</el-radio>
|
||||
<b style="margin-top: 30px;margin-left: 5px;font-size: 20px;color: #ff9900">{{
|
||||
qualityCommentScore * 2
|
||||
qualityCommentScore
|
||||
}}</b>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -118,7 +122,7 @@
|
||||
<el-form-item>
|
||||
<el-radio v-model="commentAverageScoreTag" label="2" border @change="tabsClick">动态评价总平均分</el-radio>
|
||||
<b style="margin-top: 30px;margin-left: 5px;font-size: 20px;color: #ff9900">{{
|
||||
dynamicCommentScore * 2
|
||||
dynamicCommentScore
|
||||
}}</b>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
@@ -141,8 +145,9 @@
|
||||
<template slot-scope="scope">
|
||||
<el-tooltip class="item" effect="dark" :content="scope.row.processNode" placement="right">
|
||||
<el-button type="default"
|
||||
:class="currentPeople === scope.$index ? 'active' : ''"
|
||||
style="width: 180px;" size="mini"
|
||||
@click="historyPeopleChange(scope.row)">
|
||||
@click="historyPeopleChange(scope.row, scope.$index)">
|
||||
{{ scope.row.userName + '-' + scope.row.processNode.substring(0,9) }}
|
||||
</el-button>
|
||||
</el-tooltip>
|
||||
@@ -165,7 +170,8 @@
|
||||
show-overflow-tooltip>
|
||||
<template slot-scope="scope">
|
||||
<el-button type="default"
|
||||
style="width: 100px;" size="mini" @click="historyPeopleChange(scope.row)">
|
||||
:class="currentPeople === scope.$index ? 'active' : ''"
|
||||
style="width: 100px;" size="mini" @click="historyPeopleChange(scope.row, scope.$index)">
|
||||
{{ scope.row.userName }}
|
||||
</el-button>
|
||||
</template>
|
||||
@@ -1335,6 +1341,7 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
score: 0,
|
||||
externalStatus:'',
|
||||
QFTP: false,
|
||||
textOptions: [],
|
||||
@@ -1573,6 +1580,7 @@ export default {
|
||||
importForm: {
|
||||
content: ''
|
||||
},
|
||||
currentPeople: 0, // 历史评价-当前评价人索引
|
||||
STANDSOURCEREVISION: []
|
||||
}
|
||||
},
|
||||
@@ -1581,7 +1589,9 @@ export default {
|
||||
watch: {
|
||||
},
|
||||
methods: {
|
||||
historyPeopleChange(row){
|
||||
historyPeopleChange(row, index){
|
||||
this.currentPeople = index
|
||||
|
||||
this.historyInfoLoading = true
|
||||
const qualityAllData = {
|
||||
lawId: this.$route.params.id,
|
||||
@@ -1628,7 +1638,112 @@ export default {
|
||||
}
|
||||
|
||||
},
|
||||
getScore () {
|
||||
//查询动态评价总平均分和质量评价总平均分
|
||||
let standId = this.$route.params.id
|
||||
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getScore', {lawId:standId}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.ok) {
|
||||
this.score = res.data.finalScore.toFixed(2)
|
||||
this.qualityCommentScore = res.data.quality.toFixed(2)
|
||||
this.dynamicCommentScore = res.data.dynamic.toFixed(2)
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
},
|
||||
getPeopleTable () {
|
||||
return new Promise((resolve,reject) => {
|
||||
// 历史评价
|
||||
if (this.commentActiveName === 'historyComment') {
|
||||
// 刷新质量评价评分人表格和动态评价评分人表格
|
||||
let standId = this.$route.params.id
|
||||
// 质量评价人
|
||||
if (this.commentAverageScoreTag === '1') {
|
||||
const qualityRequest = {
|
||||
lawId: standId,
|
||||
evaluationType: 'quality'
|
||||
}
|
||||
this.$http._getData('sarEnterpriseStandardEvaluation/quality-evaluation/getHistory', qualityRequest).then(res => {
|
||||
this.qualityHistoryPeopleTable = res.data.records
|
||||
this.qualityFirstHistoryPeopleId = res.data.records[0].userId
|
||||
resolve(res)
|
||||
})
|
||||
} else {
|
||||
// 动态评价人
|
||||
const dynamicRequest = {
|
||||
lawId: standId,
|
||||
evaluationType: 'dynamic'
|
||||
}
|
||||
this.$http._getData('sarEnterpriseStandardEvaluation/quality-evaluation/getHistory', dynamicRequest).then(res => {
|
||||
this.dynamicHistoryPeopleTable = res.data.records
|
||||
this.dynamicFirstHistoryPeopleId = res.data.records[0].userId
|
||||
resolve(res)
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
getHistoryData () {
|
||||
this.historyInfoLoading = true
|
||||
if (this.commentAverageScoreTag === '1'){
|
||||
this.indexType = 'quality'
|
||||
//查询评分表
|
||||
const allData = {
|
||||
lawId: this.$route.params.id,
|
||||
userId: this.qualityFirstHistoryPeopleId,
|
||||
evaluationType: this.indexType,
|
||||
processNode: this.qualityHistoryPeopleTable.length>0?this.qualityHistoryPeopleTable[0].processNode:null
|
||||
}
|
||||
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', allData , {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.qualityHistoryCommentTable = res.data
|
||||
this.historyInfoLoading = false
|
||||
|
||||
}, e => {
|
||||
this.historyInfoLoading = false
|
||||
})
|
||||
}
|
||||
else if (this.commentAverageScoreTag === '2'){
|
||||
this.indexType = 'dynamic'
|
||||
this.dynamicHistoryCommentTable = []
|
||||
//查询评分表
|
||||
const allData = {
|
||||
lawId: this.$route.params.id,
|
||||
userId: this.dynamicFirstHistoryPeopleId,
|
||||
evaluationType: this.indexType
|
||||
}
|
||||
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', allData , {
|
||||
_this: this
|
||||
}, res => {
|
||||
if(res.data && res.data.length > 0){
|
||||
this.dynamicHistoryCommentTable = res.data
|
||||
this.historyCommentForm.revise = res.data[0].targetScore
|
||||
this.historyCommentForm.reviseReason = res.data[0].commentReason
|
||||
|
||||
let averageScore = 0
|
||||
res.data.forEach(item => {
|
||||
if (item.valueType === 'number'){
|
||||
averageScore += parseInt(item.targetScore)
|
||||
}
|
||||
})
|
||||
averageScore = averageScore / 4
|
||||
this.historyCommentForm.averageScore = averageScore
|
||||
}else {
|
||||
this.historyCommentForm.averageScore = 0
|
||||
}
|
||||
this.historyInfoLoading = false
|
||||
}, e => {
|
||||
this.historyInfoLoading = false
|
||||
})
|
||||
}
|
||||
},
|
||||
tabsClickBtn(tab, event){
|
||||
this.commentAverageScoreTag = '1'
|
||||
this.tabsClick()
|
||||
|
||||
/*
|
||||
if (this.commentActiveName === 'dynamicComment'){
|
||||
this.indexType = 'dynamic'
|
||||
//查询评分表
|
||||
@@ -1684,8 +1799,11 @@ export default {
|
||||
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getScore', {lawId:standId}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.qualityCommentScore = res.data.quality.toFixed(3)/2
|
||||
this.dynamicCommentScore = res.data.dynamic.toFixed(3)/2
|
||||
if (res.ok) {
|
||||
this.score = res.data.finalScore.toFixed(2)
|
||||
this.qualityCommentScore = res.data.quality.toFixed(2)
|
||||
this.dynamicCommentScore = res.data.dynamic.toFixed(2)
|
||||
}
|
||||
|
||||
}, e => {
|
||||
})
|
||||
@@ -1716,8 +1834,37 @@ export default {
|
||||
}, e => {
|
||||
})
|
||||
|
||||
|
||||
*/
|
||||
},
|
||||
tabsClick(tab, event){
|
||||
this.getScore()
|
||||
this.getPeopleTable().then(() => {
|
||||
// 动态评价
|
||||
if (this.commentActiveName === 'dynamicComment'){
|
||||
this.indexType = 'dynamic'
|
||||
//查询评分表
|
||||
const allData = {
|
||||
lawId: this.$route.params.id,
|
||||
userId: this.qualityFirstHistoryPeopleId,
|
||||
evaluationType: this.indexType,
|
||||
}
|
||||
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getEvaluationForm', allData , {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.qualityHistoryCommentTable = res.data
|
||||
this.historyInfoLoading = false
|
||||
|
||||
}, e => {
|
||||
this.historyInfoLoading = false
|
||||
})
|
||||
}else if (this.commentActiveName === 'historyComment'){
|
||||
// 历史评价
|
||||
this.currentPeople = 0
|
||||
this.getHistoryData()
|
||||
}
|
||||
})
|
||||
/*
|
||||
this.historyInfoLoading = true
|
||||
if (this.commentAverageScoreTag === '1'){
|
||||
this.indexType = 'quality'
|
||||
@@ -1777,8 +1924,11 @@ export default {
|
||||
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getScore', {lawId:standId}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.qualityCommentScore = res.data.quality.toFixed(3)/2
|
||||
this.dynamicCommentScore = res.data.dynamic.toFixed(3)/2
|
||||
if (res.ok) {
|
||||
this.score = res.data.finalScore.toFixed(2)
|
||||
this.qualityCommentScore = res.data.quality.toFixed(2)
|
||||
this.dynamicCommentScore = res.data.dynamic.toFixed(2)
|
||||
}
|
||||
|
||||
}, e => {
|
||||
})
|
||||
@@ -1808,7 +1958,7 @@ export default {
|
||||
|
||||
}, e => {
|
||||
})
|
||||
|
||||
*/
|
||||
},
|
||||
targetScoreChange(row){
|
||||
if (this.targetScore1 === '') {
|
||||
@@ -1921,14 +2071,20 @@ export default {
|
||||
}, e => {
|
||||
})
|
||||
//刷新动态评价总平均分和质量评价总平均分
|
||||
this.getScore()
|
||||
/*
|
||||
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getScore', {lawId:standId}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.qualityCommentScore = res.data.quality.toFixed(3)/2
|
||||
this.dynamicCommentScore = res.data.dynamic.toFixed(3)/2
|
||||
if (res.ok) {
|
||||
this.score = res.data.finalScore.toFixed(2)
|
||||
this.qualityCommentScore = res.data.quality.toFixed(2)
|
||||
this.dynamicCommentScore = res.data.dynamic.toFixed(2)
|
||||
}
|
||||
|
||||
}, e => {
|
||||
})
|
||||
*/
|
||||
}
|
||||
}, e => {
|
||||
})
|
||||
@@ -1947,7 +2103,13 @@ export default {
|
||||
sums[index] = '';
|
||||
return;
|
||||
}
|
||||
const values = data.map(item => Number(item[column.property]));
|
||||
const values = data.map(item => {
|
||||
if (column.property === 'scoreMin') {
|
||||
// 此时不存在scoreMin,需要重新计算
|
||||
this.setScoreMin(item)
|
||||
}
|
||||
return Number(item[column.property])
|
||||
});
|
||||
if (!values.every(value => isNaN(value))) {
|
||||
sums[index] = values.reduce((prev, curr) => {
|
||||
const value = Number(curr);
|
||||
@@ -3110,6 +3272,10 @@ export default {
|
||||
},
|
||||
|
||||
qbBtn() {
|
||||
// 默认动态评价
|
||||
this.commentActiveName = 'dynamicComment'
|
||||
this.commentAverageScoreTag = '1'
|
||||
|
||||
if (this.commentActiveName === 'dynamicComment'){
|
||||
this.indexType = 'dynamic'
|
||||
//查询评分表
|
||||
@@ -3191,11 +3357,16 @@ export default {
|
||||
this.STANDSOURCEREVISION = res.data.STANDSOURCEREVISION
|
||||
}, e => {
|
||||
})
|
||||
this.getScore()
|
||||
/*
|
||||
this.$http.get('sarEnterpriseStandardEvaluation/quality-evaluation/getScore', {lawId:standId}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.qualityCommentScore = res.data.quality.toFixed(3)/2
|
||||
this.dynamicCommentScore = res.data.dynamic.toFixed(3)/2
|
||||
if (res.ok) {
|
||||
this.score = res.data.finalScore.toFixed(2)
|
||||
this.qualityCommentScore = res.data.quality.toFixed(2)
|
||||
this.dynamicCommentScore = res.data.dynamic.toFixed(2)
|
||||
}
|
||||
|
||||
}, e => {
|
||||
})
|
||||
@@ -3224,6 +3395,7 @@ export default {
|
||||
|
||||
}, e => {
|
||||
})
|
||||
*/
|
||||
this.$http.get('sarEnterpriseStandardEvaluation/evaluation-index/getEvaluationIndex', {indexType:this.indexType}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
@@ -3446,6 +3618,11 @@ export default {
|
||||
}
|
||||
}
|
||||
.modular-header-btn{
|
||||
.active {
|
||||
color: #409EFF;
|
||||
border-color: #c6e2ff;
|
||||
background-color: #ecf5ff;
|
||||
}
|
||||
& > button{
|
||||
height: 30px;
|
||||
line-height: 30px;
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
width="55">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
label="标准编号">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||
|
||||
@@ -24,8 +24,12 @@
|
||||
type="index"
|
||||
align="center"
|
||||
width="55">
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
label="标准编号">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
width="55">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
label="标准编号">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||
@@ -32,7 +33,10 @@
|
||||
prop="standName"
|
||||
label="标准名称">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standardName }}</span>
|
||||
<span @click="handlePreview(scope.row)" style="display: flex;align-items: center">
|
||||
<span>{{ scope.row.standardName }}</span>
|
||||
<img v-if="checkTime(scope.row.releaseDate)" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -56,6 +60,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
const moment = require('moment')
|
||||
export default {
|
||||
name: 'ReleaseBuss',
|
||||
components: {},
|
||||
@@ -79,6 +84,9 @@ export default {
|
||||
// this.addDate()
|
||||
},
|
||||
methods: {
|
||||
checkTime (time) {
|
||||
return moment(time.slice(0,10)).diff(moment(), 'day') > -3
|
||||
},
|
||||
pageChange(page) {
|
||||
this.page = page
|
||||
this.pageSize = this.$store.getters.userInfo.configContent
|
||||
|
||||
@@ -24,8 +24,12 @@
|
||||
type="index"
|
||||
align="center"
|
||||
width="55">
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
label="标准编号">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standard }}</span>
|
||||
@@ -35,7 +39,10 @@
|
||||
prop="standName"
|
||||
label="标准名称">
|
||||
<template slot-scope="scope">
|
||||
<span @click="handlePreview(scope.row)">{{ scope.row.standardName }}</span>
|
||||
<span @click="handlePreview(scope.row)" style="display: flex;align-items: center">
|
||||
{{ scope.row.standardName }}
|
||||
<img v-if="checkTime(scope.row.releaseDate)" src="/static/images/new.png" style="width: 30px;margin-left: 5px">
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@@ -57,6 +64,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
const moment = require('moment')
|
||||
export default {
|
||||
name: 'ReleaseBuss2',
|
||||
components: {},
|
||||
@@ -80,6 +88,9 @@ export default {
|
||||
// this.addDate()
|
||||
},
|
||||
methods: {
|
||||
checkTime (time) {
|
||||
return moment(time.slice(0,10)).diff(moment(), 'day') > -3
|
||||
},
|
||||
pageChange(page) {
|
||||
this.page = page
|
||||
this.pageSize = this.$store.getters.userInfo.configContent
|
||||
@@ -148,12 +159,12 @@ export default {
|
||||
font-size: 13px;
|
||||
}
|
||||
/deep/.more {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
bottom: 2px;
|
||||
font-size: 15px;
|
||||
float: right;
|
||||
color: #4788c0;
|
||||
//position: absolute;
|
||||
//right: 0;
|
||||
//bottom: 2px;
|
||||
//font-size: 15px;
|
||||
//float: right;
|
||||
//color: #4788c0;
|
||||
&:hover {
|
||||
color: #3a8ee6;
|
||||
cursor: pointer;
|
||||
|
||||
@@ -23,6 +23,7 @@
|
||||
width="55">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
prop="standard"
|
||||
label="标准编号">
|
||||
<template slot-scope="scope">
|
||||
|
||||
@@ -24,8 +24,12 @@
|
||||
type="index"
|
||||
align="center"
|
||||
width="55">
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (page - 1) * pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
width="200"
|
||||
prop="standard"
|
||||
label="标准编号">
|
||||
<template slot-scope="scope">
|
||||
|
||||
@@ -24,7 +24,11 @@
|
||||
<releaseUs></releaseUs>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane name="releaseBuss" style="overflow-y: auto;height: 100%">
|
||||
<span slot="label"><i class="el-icon-s-promotion"></i> 企业标准发布</span>
|
||||
<span slot="label" style="position: relative"><i class="el-icon-s-promotion"></i>
|
||||
企业标准发布
|
||||
<span v-if="isNew" class="more-doc"></span>
|
||||
<!--<img v-if="isNew" src="/static/images/new.png" style="width: 30px;margin-left: 5px">-->
|
||||
</span>
|
||||
<releaseBuss></releaseBuss>
|
||||
</el-tab-pane>
|
||||
<el-tab-pane name="releaseZL" style="overflow-y: auto;height: 100%">
|
||||
@@ -51,6 +55,8 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
const moment = require('moment')
|
||||
|
||||
import searchGroup from './components/searchGroup'
|
||||
import release from './components/release'
|
||||
import releaseUs from './components/releaseUs'
|
||||
@@ -78,9 +84,33 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
activeName: 'solicitOpinions',
|
||||
isNew: false
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getAdvice()
|
||||
},
|
||||
methods: {
|
||||
getAdvice() {
|
||||
this.$http.get("/lawss/NewsFeed/getNewsFeed", {
|
||||
messageType: 'QYBZFB',
|
||||
page: 1,
|
||||
pageSize: 1
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
if (res.data && res.data.records && res.data.records.length > 0) {
|
||||
if (res.data.records[0].releaseDate && res.data.records[0].releaseDate!== '') {
|
||||
this.isNew = this.checkTime(res.data.records[0].releaseDate)
|
||||
}
|
||||
}
|
||||
}, e => {
|
||||
|
||||
})
|
||||
},
|
||||
checkTime (time) {
|
||||
return moment(time.slice(0,10)).diff(moment(), 'day') > -3
|
||||
},
|
||||
handleTabClick(tab, event) {},
|
||||
//退出登录
|
||||
logout(){
|
||||
@@ -215,4 +245,14 @@ export default {
|
||||
background: #FFFFFF;
|
||||
}
|
||||
}
|
||||
.more-doc {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
display: inline-block;
|
||||
background: #D81E06;
|
||||
border-radius: 50%;
|
||||
position: absolute;
|
||||
top: -2px;
|
||||
right: -8px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -34,6 +34,9 @@
|
||||
width="50"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="{scope, column, $index}">
|
||||
{{ ($index + 1) + (handleSelectForm.page - 1) * handleSelectForm.pageSize }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="fileType"
|
||||
|
||||
@@ -10,6 +10,14 @@
|
||||
<van-icon name="cross" size="22px" @click="handleCancel" />
|
||||
</h3>
|
||||
<div class="popup-main">
|
||||
<van-field name="radio" label="标准状态">
|
||||
<template #input>
|
||||
<van-radio-group v-model="textStatusName" direction="horizontal">
|
||||
<van-radio name="全部">全部</van-radio>
|
||||
<van-radio name="现行有效">现行有效</van-radio>
|
||||
</van-radio-group>
|
||||
</template>
|
||||
</van-field>
|
||||
<standardSystemTree ref="standardSystemTreeRef" :data="standardSystemTreeData" :loading="loading" @checkedKey="getCheckedKey"></standardSystemTree>
|
||||
</div>
|
||||
<div class="popup-footer">
|
||||
@@ -31,6 +39,7 @@ export default {
|
||||
return {
|
||||
popupShow: true,
|
||||
checkedKeys: [], // 选择的标准体系
|
||||
textStatusName: '现行有效',
|
||||
standardSystemTreeData: [],
|
||||
loading: false,
|
||||
api: {
|
||||
@@ -64,7 +73,8 @@ export default {
|
||||
handleOk () {
|
||||
// if (this.checkedKeys.length > 0) {
|
||||
this.popupShow = false
|
||||
this.$emit('standSystemKeys', this.checkedKeys)
|
||||
// this.$emit('standSystemKeys', this.checkedKeys)
|
||||
this.$emit('searchQuery', { checkedKeys: this.checkedKeys, textStatusName: this.textStatusName })
|
||||
// } else {
|
||||
// // this.$toast('请至少选择一项');
|
||||
// this.$message.error('请至少选择一项')
|
||||
@@ -81,7 +91,8 @@ export default {
|
||||
},
|
||||
handleReset () {
|
||||
this.popupShow = false
|
||||
this.$emit('standSystemKeys', [])
|
||||
// this.$emit('standSystemKeys', [])
|
||||
this.$emit('searchQuery', { checkedKeys: [], textStatusName: '现行有效' })
|
||||
},
|
||||
async getData () {
|
||||
let url = this.api.getListStand
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
:lazy="false"
|
||||
:show-checkbox="true"
|
||||
node-key="id"
|
||||
:default-expanded-keys="data[0].id"
|
||||
:default-expanded-keys="[data[0].id]"
|
||||
:check-strictly="true"
|
||||
:expand-on-click-node="false"
|
||||
:check-on-click-node="true"
|
||||
|
||||
@@ -3,12 +3,15 @@
|
||||
<div class="other-standard-details v-class" :style="'height:' + (screenHeight) + 'px'">
|
||||
<!--title 标题-->
|
||||
<div class="details-header">
|
||||
<span v-if="sarStandardsInfoEO.standYear === null">{{ sarStandardsInfoEO.standSortShow || '' }} {{
|
||||
<span v-if="$route.query.pageType === 'BUSS'">{{sarStandardsInfoEO.standCode}} 《{{sarStandardsInfoEO.standName ? sarStandardsInfoEO.standName : sarStandardsInfoEO.standEnName}}》 企标详情</span>
|
||||
<template v-if="$route.query.pageType !== 'BUSS'">
|
||||
<span v-if="sarStandardsInfoEO.standYear === null">{{ sarStandardsInfoEO.standSortShow || '' }} {{
|
||||
sarStandardsInfoEO.standNumber
|
||||
}} 《{{ sarStandardsInfoEO.standName ? sarStandardsInfoEO.standName : sarStandardsInfoEO.standEnName }}》</span>
|
||||
<span v-else>{{ sarStandardsInfoEO.standSortShow || '' }} {{
|
||||
sarStandardsInfoEO.standNumber
|
||||
}}-{{ sarStandardsInfoEO.standYear }} 《{{ sarStandardsInfoEO.standName ? sarStandardsInfoEO.standName : sarStandardsInfoEO.standEnName }}》</span>
|
||||
</template>
|
||||
</div>
|
||||
<!--主体内容-->
|
||||
<div class="details-content" style="position: relative">
|
||||
@@ -36,6 +39,18 @@
|
||||
style="border-top:none; border-bottom: none;">
|
||||
<div class="basic-information-content">
|
||||
<!-- <p><label style=" margin-right: 150px;">标准类别</label><span>{{ sarStandardsInfoEO.standSort || '-' }}</span></p>-->
|
||||
<template v-if="$route.query.pageType === 'BUSS'">
|
||||
<el-row :gutter="5" class="">
|
||||
<el-col :span="8">
|
||||
<label>企标号</label>
|
||||
</el-col>
|
||||
<el-col :span="16">
|
||||
<span>{{ sarStandardsInfoEO.standCode || '-' }}</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</template>
|
||||
|
||||
<template v-if="$route.query.pageType !== 'BUSS'">
|
||||
<el-row :gutter="5" class="">
|
||||
<el-col :span="8">
|
||||
<label>标准号</label>
|
||||
@@ -47,6 +62,8 @@
|
||||
<span v-else>{{ sarStandardsInfoEO.standSort + ' ' + sarStandardsInfoEO.standNumber }}</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</template>
|
||||
|
||||
<!-- <p><label style=" margin-right: 150px;">标准年份</label><span>{{ sarStandardsInfoEO.standYear || '-' }}</span></p>-->
|
||||
<el-row :gutter="5" class="">
|
||||
<el-col :span="8">
|
||||
@@ -217,6 +234,7 @@
|
||||
</el-col>
|
||||
</el-row>
|
||||
</template>
|
||||
<template v-if="$route.query.pageType !== 'BUSS'">
|
||||
<el-row :gutter="5" class="half">
|
||||
<el-col :span="8">
|
||||
<label title="“计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。">文本状态</label>
|
||||
@@ -225,6 +243,19 @@
|
||||
<span>{{ textStatusMap[sarStandardsInfoEO.textStatus] || '-' }}</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</template>
|
||||
|
||||
<template v-if="$route.query.pageType === 'BUSS'">
|
||||
<el-row :gutter="5" class="half">
|
||||
<el-col :span="8">
|
||||
<label title="“计划修订”、“修订中”均为现行有效版本;“已修订”标准的有效性根据实际实施情况判定。">文本状态</label>
|
||||
</el-col>
|
||||
<el-col :span="16">
|
||||
<span>{{ sarStandardsInfoEO.textStatusBussShow || '-' }}</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</template>
|
||||
|
||||
<el-row :gutter="5" class="half">
|
||||
<el-col :span="8">
|
||||
<label>发布日期</label>
|
||||
@@ -233,6 +264,19 @@
|
||||
<span>{{ sarStandardsInfoEO.issueTime || '-' }}</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<template v-if="$route.query.pageType === 'BUSS'">
|
||||
<el-row :gutter="5" class="half">
|
||||
<el-col :span="8">
|
||||
<label>企标实施日期</label>
|
||||
</el-col>
|
||||
<el-col :span="16">
|
||||
<span>{{ sarStandardsInfoEO.putTime || '-' }}</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</template>
|
||||
|
||||
<template v-if="$route.query.pageType !== 'BUSS'">
|
||||
<el-row :gutter="5" class="half">
|
||||
<el-col :span="8">
|
||||
<label>标准体系</label>
|
||||
@@ -253,6 +297,7 @@
|
||||
</span>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</template>
|
||||
<template v-for="(child, childIndex) in item.child2">
|
||||
<el-row :gutter="5" class="half">
|
||||
<el-col :span="8">
|
||||
@@ -2665,7 +2710,11 @@
|
||||
},
|
||||
selectStandMessage() {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.$http.get('sarStandardsInfo/sar-standards-info/getStandInfoById', {id: this.sarStandardsInfoEO.id}, {
|
||||
let url = 'sarStandardsInfo/sar-standards-info/getStandInfoById'
|
||||
if (this.$route.query.pageType === 'BUSS') {
|
||||
url = 'lawss/sarBussionessStand/getStandInfoById'
|
||||
}
|
||||
this.$http.get(url, {id: this.sarStandardsInfoEO.id}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.sarStandardsInfoEO = res.data || {}
|
||||
@@ -3153,7 +3202,8 @@
|
||||
queryDisplayLocation() {
|
||||
return new Promise((resolve, reject) => {
|
||||
this.$http.get('lawssBase/utArea/getAreaList', {
|
||||
sarType: 'INLAND_STAND'
|
||||
// sarType: 'INLAND_STAND'
|
||||
sarType: this.$route.query.pageType
|
||||
}, {
|
||||
_this: this
|
||||
}, res => {
|
||||
|
||||
@@ -34,7 +34,8 @@
|
||||
<div v-else class="title">{{item.standSort + '  ' + item.standNumber }}</div>
|
||||
</div>
|
||||
<div class="standContent">
|
||||
<div class="standState">{{item.standName && item.standName !== '' ? item.standName : item.standEnName}}</div>
|
||||
<!--<div class="standState">{{item.standName && item.standName !== '' ? item.standName : item.standEnName !== '' ? item.standEnName : item.nameshow }}</div>-->
|
||||
<div class="standState">{{(item.nameshow && item.nameshow !== '') ? item.nameshow : (item.standName && item.standName !== '') ? item.standName : item.standEnName }}</div>
|
||||
<!-- <div class="standSubTime">标准性质:-->
|
||||
<!-- <span v-if="natureMap[item.standNature] === '强制性' "-->
|
||||
<!-- style="color: #F56C6C; padding-left: 5px;">-->
|
||||
@@ -58,6 +59,11 @@
|
||||
{{ lawsMap[item.lawsTextState] }}
|
||||
</span>
|
||||
</div>
|
||||
<div class="standSubTime" v-else-if="$route.query.standType === 'bussstand'" >标准状态:
|
||||
<span v-if="item.textStatusBussName === '废止'" style="color: #F56C6C; padding-left: 5px;"> {{ item.textStatusBussName }} </span>
|
||||
<span v-else-if="item.textStatusBussName === '参考' || item.textStatusBussName === '被代替'" style="color: #35720B; padding-left: 5px;">{{ item.textStatusBussName }}</span>
|
||||
<span v-else style=" padding-left: 5px;">{{ item.textStatusBussName }}</span>
|
||||
</div>
|
||||
<div class="standSubTime" v-else >标准状态:
|
||||
<span v-if="textStatusMap[item.textStatus] === '废止'"
|
||||
style="color: #F56C6C; padding-left: 5px;">
|
||||
@@ -88,6 +94,7 @@
|
||||
<span style="padding-left: 10px;min-width: 200px;">发布日期:
|
||||
{{ item.issueTime ? (item.issueTime !== '' ? $moment(item.issueTime).format("YYYY-MM-DD") : " ") : " " }}</span>
|
||||
<span style="padding-left: 15px;" v-if="titleType === 'POLICY'">实施日期: {{item.XCXSSRQLAWS}}</span>
|
||||
<span style="padding-left: 15px;" v-else-if="$route.query.standType === 'bussstand'">实施日期: {{item.putTime}}</span>
|
||||
<span style="padding-left: 15px;" v-else>实施日期: {{item.SSRQ}}</span>
|
||||
</div>
|
||||
|
||||
@@ -102,7 +109,7 @@
|
||||
<div v-else-if="!listFlag && moreFlag" @click="moreList" >点击加载更多</div>
|
||||
<van-loading v-else size="24px" color="#3170A8">加载中...</van-loading>
|
||||
</div>
|
||||
<standardSystemPopup :init-keys="standSystemKeys" @standSystemKeys="setStandSystemKeys" ref="standardSystemPopupRef" />
|
||||
<standardSystemPopup :init-keys="standSystemKeys" @searchQuery="setSearchQuery" ref="standardSystemPopupRef" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -131,18 +138,38 @@ export default {
|
||||
textStatusMap: {},// 文本状态id与name对应
|
||||
natureMap:{},
|
||||
lawsMap:{},
|
||||
textStatus: '现行有效',
|
||||
standSystemKeys: []
|
||||
}
|
||||
},
|
||||
methods:{
|
||||
jumpDetails(item){
|
||||
this.$router.push({
|
||||
name: 'domesticDetails',
|
||||
query: {
|
||||
id: item.id,
|
||||
pageType: 'INLAND_STAND'
|
||||
}
|
||||
})
|
||||
if (this.titleType === 'INLAND') {
|
||||
this.$router.push({
|
||||
name: 'domesticDetails',
|
||||
query: {
|
||||
id: item.id,
|
||||
pageType: 'INLAND_STAND'
|
||||
}
|
||||
})
|
||||
} else if (this.titleType === 'FOREIGN') {
|
||||
this.$router.push({
|
||||
name: 'domesticDetails',
|
||||
query: {
|
||||
id: item.id,
|
||||
pageType: 'FOREIGN_STAND'
|
||||
}
|
||||
})
|
||||
} else if (this.titleType === 'bussstand') {
|
||||
this.$router.push({
|
||||
name: 'domesticDetails',
|
||||
query: {
|
||||
id: item.id,
|
||||
pageType: 'BUSS'
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
scrool(){
|
||||
this.scrolled = this.$refs.cardBox.scrollTop
|
||||
@@ -190,6 +217,7 @@ export default {
|
||||
selectIndex: 'stand',
|
||||
selectValue: this.searchKey,
|
||||
standSystem: this.standSystemKeys,
|
||||
textStatus: this.textStatus,
|
||||
selectType: 'titleSearch',
|
||||
standType: 'INLAND',
|
||||
page: this.page,
|
||||
@@ -227,6 +255,7 @@ export default {
|
||||
selectIndex: 'stand',
|
||||
selectValue: this.searchKey,
|
||||
standSystem: this.standSystemKeys,
|
||||
textStatus: this.textStatus,
|
||||
selectType: 'titleSearch',
|
||||
standType: 'FOREIGN',
|
||||
page: this.page,
|
||||
@@ -249,6 +278,7 @@ export default {
|
||||
selectIndex: 'bussstand',
|
||||
selectValue: this.searchKey,
|
||||
standSystem: this.standSystemKeys,
|
||||
textStatusBuss: this.textStatus,
|
||||
selectType: 'titleSearch',
|
||||
standType: 'bussstand',
|
||||
page: this.page,
|
||||
@@ -355,6 +385,7 @@ export default {
|
||||
selectIndex: 'stand',
|
||||
selectValue: this.searchKey,
|
||||
standSystem: this.standSystemKeys,
|
||||
textStatus: this.textStatus,
|
||||
selectType: 'titleSearch',
|
||||
standType: 'INLAND',
|
||||
page: this.page,
|
||||
@@ -410,6 +441,7 @@ export default {
|
||||
selectIndex: 'stand',
|
||||
selectValue: this.searchKey,
|
||||
standSystem: this.standSystemKeys,
|
||||
textStatus: this.textStatus,
|
||||
selectType: 'titleSearch',
|
||||
standType: 'FOREIGN',
|
||||
page: this.page,
|
||||
@@ -440,6 +472,7 @@ export default {
|
||||
selectIndex: 'bussstand',
|
||||
selectValue: this.searchKey,
|
||||
standSystem: this.standSystemKeys,
|
||||
textStatusBuss: this.textStatus,
|
||||
selectType: 'titleSearch',
|
||||
standType: 'bussstand',
|
||||
page: this.page,
|
||||
@@ -572,6 +605,11 @@ export default {
|
||||
onChoose () {
|
||||
this.$refs.standardSystemPopupRef.open()
|
||||
},
|
||||
setSearchQuery (searchQuery) {
|
||||
this.standSystemKeys = searchQuery.checkedKeys
|
||||
this.textStatus = searchQuery.textStatusName
|
||||
this.onSearch()
|
||||
},
|
||||
setStandSystemKeys (standSystemKeys) {
|
||||
this.standSystemKeys = standSystemKeys
|
||||
this.onSearch()
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -40,6 +40,7 @@
|
||||
<span class="content-span">标准化动态</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footer" style="">系统开发中...</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -199,5 +200,12 @@ export default {
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
.footer{
|
||||
color: #3170A7;
|
||||
position: absolute;
|
||||
bottom: 10px;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -199,6 +199,8 @@ export default {
|
||||
this.page++;
|
||||
if (this.messageType == "ZLZX") {
|
||||
this.getAdvice();
|
||||
|
||||
console.log(this.$refs.cardBoxThree.scrollTop)
|
||||
} else {
|
||||
this.onDynamics();
|
||||
}
|
||||
@@ -243,6 +245,10 @@ export default {
|
||||
//获取数据
|
||||
getAdvice(first = false) {
|
||||
this.listFlag = false;
|
||||
let scrollTop = 0
|
||||
if (this.$refs.cardBoxThree) {
|
||||
scrollTop = this.$refs.cardBoxThree.scrollTop
|
||||
}
|
||||
this.$http.get("fileMaterialCenter/file-material", {
|
||||
page: first ? 1 : this.page,
|
||||
pageSize: 10,
|
||||
@@ -255,6 +261,9 @@ export default {
|
||||
if (mList.length) {
|
||||
if (!first && this.standardReleaseList.length) {
|
||||
this.standardReleaseList = this.standardReleaseList.concat(mList);
|
||||
this.$nextTick(() => {
|
||||
this.$refs.cardBoxThree.scrollTop = scrollTop
|
||||
})
|
||||
} else {
|
||||
this.standardReleaseList = mList;
|
||||
}
|
||||
@@ -322,6 +331,7 @@ export default {
|
||||
mounted() {
|
||||
this.onDynamics();
|
||||
this.getAdvice();
|
||||
this.$refs.cardBoxThree.addEventListener('scroll', this.scroolThree);
|
||||
//从数据库中查询下拉框数据
|
||||
this.$http.get("sys/dictype/getDicTypeListCode", {}, {
|
||||
_this: this
|
||||
|
||||
@@ -542,6 +542,7 @@ export default {
|
||||
},
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('id', this.bpnId || '')
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||
@@ -556,8 +557,9 @@ export default {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
handleSubmit() {
|
||||
@@ -566,6 +568,7 @@ export default {
|
||||
this.$refs['Form'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.$http.post('lawss/activiti/startProcessRollBack', {
|
||||
createUser: this.$store.getters.userInfo.userId,
|
||||
createUserName: this.$store.getters.userInfo.userName,
|
||||
@@ -597,9 +600,11 @@ export default {
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
this.$message.warning('流程启动失败')
|
||||
}
|
||||
})
|
||||
|
||||
@@ -256,6 +256,8 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -270,6 +272,9 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -324,6 +329,7 @@
|
||||
},
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('taskIds', this.taskIds)
|
||||
_formData.append('json', JSON.stringify({
|
||||
@@ -331,16 +337,17 @@
|
||||
commentText2: this.commentText2,
|
||||
}))
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
handleSubmit() {
|
||||
this.$refs['qbkwForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.commentText = this.commentText2
|
||||
json.responUserList = this.form.responUserList
|
||||
@@ -355,6 +362,7 @@
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
return this.$message.warning('请完善基础信息')
|
||||
|
||||
@@ -328,6 +328,8 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -342,6 +344,9 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -429,6 +434,7 @@
|
||||
},
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('taskIds', this.taskIds)
|
||||
_formData.append('json', JSON.stringify({
|
||||
@@ -437,15 +443,16 @@
|
||||
commentText3: this.commentText3,
|
||||
}))
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 接受按钮
|
||||
handleAccept(){
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
execTask({
|
||||
todoId: this.todoId // 当前节点ID
|
||||
}).then(res => {
|
||||
@@ -453,6 +460,8 @@
|
||||
this.$message.success('接收成功')
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
@@ -461,6 +470,7 @@
|
||||
if (valid) {
|
||||
this.json.dyhz = this.form.dyhz
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.commentText = this.commentText3
|
||||
json.fileId = this.form.fileId
|
||||
@@ -476,6 +486,7 @@
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
return this.$message.warning('请完善基础信息')
|
||||
|
||||
@@ -210,6 +210,7 @@
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
@submit="handleSubmit"
|
||||
show-back
|
||||
@back="handleSubmitNo"
|
||||
@@ -304,6 +305,8 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -318,6 +321,9 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -355,6 +361,7 @@
|
||||
},
|
||||
handleSubmit() { // 同意
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.actionFlag = 0
|
||||
json.commentText = this.commentText4
|
||||
@@ -368,11 +375,13 @@
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
handleSubmitNo() {
|
||||
if (this.commentText4) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.actionFlag = 1
|
||||
json.commentText = this.commentText4
|
||||
@@ -386,6 +395,7 @@
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请输入审批意见')
|
||||
|
||||
@@ -299,6 +299,8 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -313,6 +315,9 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -387,6 +392,7 @@
|
||||
},
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let json = this.form
|
||||
json.responUserList = this.tableData
|
||||
this.form.docUser = this.newDocUser
|
||||
@@ -399,14 +405,16 @@
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
handleSubmit() {
|
||||
this.$refs['qbkwForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
let json = this.jsonData
|
||||
json.commentText = this.commentText5
|
||||
json.hzfileId = this.form.hzfileId
|
||||
@@ -423,6 +431,7 @@
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@@ -202,6 +202,7 @@
|
||||
@back="handleSubmitNo"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
show-transfer
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
@@ -294,6 +295,8 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -308,6 +311,9 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -382,6 +388,7 @@
|
||||
},
|
||||
handleSubmit() {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.actionFlag = 0
|
||||
json.commentText = this.commentText6
|
||||
@@ -395,11 +402,13 @@
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
handleSubmitNo() {
|
||||
if (this.commentText6) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.actionFlag = 1
|
||||
json.commentText = this.commentText6
|
||||
@@ -413,6 +422,7 @@
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请输入审批意见')
|
||||
|
||||
@@ -201,6 +201,8 @@
|
||||
approval
|
||||
@back="handleSubmitNo"
|
||||
:submitLoading="isSubmit"
|
||||
:isSubmitBack="isSubmit"
|
||||
:saveLoading="isSubmit"
|
||||
show-transfer
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
@@ -293,6 +295,7 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -307,6 +310,8 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -199,7 +199,8 @@
|
||||
show-submit
|
||||
approval
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:saveLoading="isSubmit"
|
||||
:isSubmitBack="isSubmit"
|
||||
@submit="handleSubmit"
|
||||
show-back
|
||||
show-transfer
|
||||
@@ -294,6 +295,7 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -308,6 +310,8 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -233,7 +233,8 @@
|
||||
approval
|
||||
@back="handleSubmitNo"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:saveLoading="isSubmit"
|
||||
:isSubmitBack="isSubmit"
|
||||
show-transfer
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
@@ -337,6 +338,7 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -351,6 +353,8 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -580,7 +580,6 @@ export default {
|
||||
queryTaskFirst({
|
||||
bpnId: this.$route.query.bpnId
|
||||
}).then(res => {
|
||||
debugger
|
||||
let obj = JSON.parse(res.mes)
|
||||
let mes = {}
|
||||
if(obj.json !== undefined){
|
||||
@@ -805,6 +804,7 @@ export default {
|
||||
// 保存按钮
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('id', this.bpnId || '')
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||
@@ -816,11 +816,11 @@ export default {
|
||||
commentInfo: this.commentInfo
|
||||
}))
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 提交按钮
|
||||
@@ -839,6 +839,7 @@ export default {
|
||||
this.$refs['roleForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
let paramsInfo = new FormData()
|
||||
// paramsInfo.append('id', this.bpnId || '')
|
||||
paramsInfo.append('createUser', this.$store.getters.userInfo.userId)
|
||||
@@ -864,8 +865,13 @@ export default {
|
||||
}
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
}).catch(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请完成流程信息的人员选择')
|
||||
|
||||
@@ -208,7 +208,7 @@
|
||||
show-submit
|
||||
show-back
|
||||
backBTNTexts="不涉及"
|
||||
:isSubmitBack="isBack"
|
||||
:isSubmitBack="isSubmit"
|
||||
:submitLoading="isSubmit"
|
||||
@back="handleSubmitNo"
|
||||
@submit="handleSubmit"
|
||||
@@ -380,7 +380,7 @@ export default {
|
||||
}
|
||||
this.$refs['rh_pageData'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isBack = true
|
||||
this.isSubmit = true
|
||||
const params = new FormData();
|
||||
params.set('json', JSON.stringify(json))
|
||||
params.set('userId', this.$store.getters.userInfo.userId)
|
||||
@@ -390,8 +390,9 @@ export default {
|
||||
this.$message.success('退回成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isBack = false
|
||||
});
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -417,6 +418,7 @@ export default {
|
||||
this.$message.success('提交成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
});
|
||||
}
|
||||
|
||||
@@ -467,6 +467,7 @@ export default {
|
||||
// 保存按钮
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('taskIds', this.taskIds)
|
||||
_formData.append('json', JSON.stringify({
|
||||
@@ -477,11 +478,11 @@ export default {
|
||||
commentStep3: this.commentStep3
|
||||
}))
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(e => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 提交按钮
|
||||
@@ -496,6 +497,7 @@ export default {
|
||||
this.$refs['rh_pageData'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
const params = new FormData();
|
||||
params.set('json', JSON.stringify(json))
|
||||
params.set('userId', this.$store.getters.userInfo.userId)
|
||||
@@ -505,8 +507,10 @@ export default {
|
||||
this.$message.success('提交成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}).finally(e => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
});
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -228,7 +228,7 @@
|
||||
show-back
|
||||
backBTNTexts="驳回"
|
||||
:submitLoading="isSubmit"
|
||||
:isSubmitBack="isBack"
|
||||
:isSubmitBack="isSubmit"
|
||||
@back="handleSubmitNo"
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
@@ -373,7 +373,7 @@ export default {
|
||||
}
|
||||
this.$refs['rh_pageData'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isBack = true
|
||||
this.isSubmit = true
|
||||
const params = new FormData();
|
||||
params.set('json', JSON.stringify(json))
|
||||
params.set('userId', this.$store.getters.userInfo.userId)
|
||||
@@ -383,8 +383,9 @@ export default {
|
||||
this.$message.success('退回成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isBack = false
|
||||
});
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -412,8 +413,9 @@ export default {
|
||||
this.$message.success('提交成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
});
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -722,6 +722,7 @@ export default {
|
||||
// 保存按钮
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('taskIds', this.taskIds)
|
||||
_formData.append('json', JSON.stringify({
|
||||
@@ -730,10 +731,10 @@ export default {
|
||||
commentStep5: this.commentStep5
|
||||
}))
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
@@ -748,6 +749,7 @@ export default {
|
||||
this.$refs['rh_pageData'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
const params = new FormData();
|
||||
params.set('json', JSON.stringify(json))
|
||||
params.set('userId', this.$store.getters.userInfo.userId)
|
||||
@@ -757,8 +759,10 @@ export default {
|
||||
this.$message.success('提交成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
});
|
||||
this.saveLoading = false
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -226,7 +226,7 @@
|
||||
v-if="taskInfo !== '标准法规工程师汇总修订完毕'"
|
||||
show-submit
|
||||
show-back
|
||||
:isSubmitBack="isBack"
|
||||
:isSubmitBack="isSubmit"
|
||||
:submitLoading="isSubmit"
|
||||
@back="handleSubmitNo"
|
||||
@submit="handleSubmit"
|
||||
@@ -396,7 +396,7 @@ export default {
|
||||
}
|
||||
this.$refs['rh_pageData'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isBack = true
|
||||
this.isSubmit = true
|
||||
const params = new FormData();
|
||||
params.set('json', JSON.stringify(json))
|
||||
params.set('userId', this.$store.getters.userInfo.userId)
|
||||
@@ -406,8 +406,9 @@ export default {
|
||||
this.$message.success('提交成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isBack = false
|
||||
});
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -446,8 +447,9 @@ export default {
|
||||
this.$message.success('提交成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
});
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -713,6 +713,7 @@ export default {
|
||||
/** 保存按钮*/
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('id', this.bpnId || '')
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||
@@ -725,11 +726,11 @@ export default {
|
||||
|
||||
}))
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
/** 提交按钮*/
|
||||
@@ -748,6 +749,7 @@ export default {
|
||||
this.$refs['roleForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
let paramsInfo = new FormData()
|
||||
// paramsInfo.append('id', this.bpnId || '')
|
||||
paramsInfo.append('createUser', this.$store.getters.userInfo.userId)
|
||||
@@ -774,7 +776,11 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
}).catch(e => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请完成流程信息的人员选择')
|
||||
|
||||
@@ -205,7 +205,7 @@
|
||||
show-back
|
||||
backBTNTexts="不涉及"
|
||||
:submitLoading="isSubmit"
|
||||
:isSubmitBack="isBack"
|
||||
:isSubmitBack="isSubmit"
|
||||
@back="handleSubmitNo"
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
@@ -341,7 +341,7 @@ export default {
|
||||
}
|
||||
this.$refs['ch_pageData'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isBack = true
|
||||
this.isSubmit = true
|
||||
const params = new FormData();
|
||||
params.set('json', JSON.stringify(json))
|
||||
params.set('userId', this.$store.getters.userInfo.userId)
|
||||
@@ -351,8 +351,9 @@ export default {
|
||||
this.$message.success('退回成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isBack = false
|
||||
});
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -379,8 +380,9 @@ export default {
|
||||
this.$message.success('提交成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
});
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -397,6 +397,7 @@ export default {
|
||||
// 保存按钮
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('taskIds', this.taskIds)
|
||||
_formData.append('json', JSON.stringify({
|
||||
@@ -407,11 +408,11 @@ export default {
|
||||
ch_pageData: this.ch_pageData,
|
||||
}))
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 提交按钮
|
||||
@@ -426,6 +427,7 @@ export default {
|
||||
this.$refs['ch_pageData'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
const params = new FormData();
|
||||
params.set('json', JSON.stringify(json))
|
||||
params.set('userId', this.$store.getters.userInfo.userId)
|
||||
@@ -435,8 +437,10 @@ export default {
|
||||
this.$message.success('提交成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
});
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -209,7 +209,7 @@
|
||||
show-submit
|
||||
show-back
|
||||
:submitLoading="isSubmit"
|
||||
:isSubmitBack="isBack"
|
||||
:isSubmitBack="isSubmit"
|
||||
@back="handleSubmitNo"
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
@@ -323,7 +323,7 @@ export default {
|
||||
}
|
||||
this.$refs['ch_pageData'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isBack = true
|
||||
this.isSubmit = true
|
||||
const params = new FormData();
|
||||
params.set('json', JSON.stringify(json))
|
||||
params.set('userId', this.$store.getters.userInfo.userId)
|
||||
@@ -333,8 +333,9 @@ export default {
|
||||
this.$message.success('退回成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isBack = false
|
||||
});
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -361,8 +362,9 @@ export default {
|
||||
this.$message.success('提交成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
});
|
||||
})
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
@@ -502,6 +502,7 @@ export default {
|
||||
// 保存按钮
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('taskIds', this.taskIds)
|
||||
_formData.append('json', JSON.stringify({
|
||||
@@ -510,11 +511,11 @@ export default {
|
||||
commentStep5: this.commentStep5
|
||||
}))
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 提交按钮
|
||||
@@ -527,6 +528,7 @@ export default {
|
||||
}
|
||||
this.$refs['ch_pageData'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
const params = new FormData();
|
||||
params.set('json', JSON.stringify(json))
|
||||
@@ -537,8 +539,10 @@ export default {
|
||||
this.$message.success('提交成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
});
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -212,7 +212,7 @@
|
||||
v-if="taskInfo !== '标准法规工程师修订完毕'"
|
||||
show-submit
|
||||
show-back
|
||||
:isSubmitBack="isBack"
|
||||
:isSubmitBack="isSubmit"
|
||||
:submitLoading="isSubmit"
|
||||
@back="handleSubmitNo"
|
||||
@submit="handleSubmit"
|
||||
@@ -375,7 +375,7 @@ export default {
|
||||
}
|
||||
this.$refs['ch_pageData'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isBack = true
|
||||
this.isSubmit = true
|
||||
const params = new FormData();
|
||||
params.set('json', JSON.stringify(json))
|
||||
params.set('userId', this.$store.getters.userInfo.userId)
|
||||
@@ -385,8 +385,9 @@ export default {
|
||||
this.$message.success('提交成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isBack = false
|
||||
});
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -425,8 +426,9 @@ export default {
|
||||
this.$message.success('提交成功')
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
});
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
@@ -1056,6 +1056,7 @@ export default {
|
||||
},
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('id', this.bpnId || '')
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||
@@ -1069,11 +1070,11 @@ export default {
|
||||
sarType: this.sarType
|
||||
}))
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
handleSubmit() {
|
||||
@@ -1129,6 +1130,7 @@ export default {
|
||||
this.$message.warning('请选择责任人')
|
||||
} else {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.$http.post('lawss/activiti/startProcessRollBack', {
|
||||
createUser: this.$store.getters.userInfo.userId,
|
||||
createUserName: this.$store.getters.userInfo.userName,
|
||||
@@ -1164,10 +1166,13 @@ export default {
|
||||
}
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('流程启动失败')
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -332,6 +332,8 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -346,6 +348,9 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 点击跳转标准详情
|
||||
@@ -454,6 +459,7 @@
|
||||
},
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('taskIds', this.taskIds)
|
||||
_formData.append('json', JSON.stringify({
|
||||
@@ -464,10 +470,10 @@
|
||||
standInData: this.sarType
|
||||
}))
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
handleSubmit() {
|
||||
@@ -483,6 +489,7 @@
|
||||
this.$message.warning('请选择执行人')
|
||||
} else {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.itemList = this.itemList
|
||||
json.commentText = this.commentText2
|
||||
@@ -496,6 +503,7 @@
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -714,6 +714,8 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -728,6 +730,9 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -831,6 +836,7 @@
|
||||
},
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('taskIds', this.taskIds)
|
||||
_formData.append('json', JSON.stringify({
|
||||
@@ -844,7 +850,8 @@
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
@@ -918,6 +925,7 @@
|
||||
this.$message.warning('请选择责任人')
|
||||
} else {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.commentText = this.commentText3
|
||||
json.itemList = this.itemList
|
||||
@@ -932,6 +940,7 @@
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -256,7 +256,8 @@
|
||||
<ProcessFooter
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:saveLoading="isSubmit"
|
||||
:isSubmitBack="isSubmit"
|
||||
@submit="handleSubmit"
|
||||
show-back
|
||||
@back="handleSubmitNo"
|
||||
@@ -384,6 +385,7 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -398,6 +400,8 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 点击跳转标准详情
|
||||
|
||||
@@ -255,7 +255,8 @@
|
||||
<ProcessFooter
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:saveLoading="isSubmit"
|
||||
:isSubmitBack="isSubmit"
|
||||
@submit="handleSubmit"
|
||||
show-transfer
|
||||
@transfer="handleTransfer"
|
||||
@@ -381,6 +382,7 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -395,6 +397,8 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 点击跳转标准详情
|
||||
|
||||
@@ -258,7 +258,8 @@
|
||||
<ProcessFooter v-if="false"
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:saveLoading="isSubmit"
|
||||
:isSubmitBack="isSubmit"
|
||||
@submit="handleSubmit"
|
||||
show-transfer
|
||||
@transfer="handleTransfer"
|
||||
@@ -385,6 +386,7 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -399,6 +401,8 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 点击跳转标准详情
|
||||
|
||||
@@ -258,7 +258,8 @@
|
||||
<ProcessFooter
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:saveLoading="isSubmit"
|
||||
:isSubmitBack="isSubmit"
|
||||
@submit="handleSubmit"
|
||||
show-transfer
|
||||
@transfer="handleTransfer"
|
||||
@@ -384,6 +385,7 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -398,6 +400,8 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 点击跳转标准详情
|
||||
|
||||
@@ -923,6 +923,7 @@ export default {
|
||||
handleSave() {
|
||||
if(!this.submitFlag){
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true
|
||||
this.listForm.dataList = this.dataList
|
||||
let _formData = new FormData();
|
||||
_formData.append("id", this.bpnId || "");
|
||||
@@ -936,13 +937,14 @@ export default {
|
||||
commentText: this.commentText
|
||||
}));
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false
|
||||
});
|
||||
}else{
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true
|
||||
this.listForm.dataList = this.dataList
|
||||
let _formData = new FormData();
|
||||
_formData.append("id", this.bpnId || "");
|
||||
@@ -955,11 +957,11 @@ export default {
|
||||
commentText: this.commentText
|
||||
}));
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false
|
||||
});
|
||||
}
|
||||
},
|
||||
@@ -977,7 +979,6 @@ export default {
|
||||
}
|
||||
})
|
||||
if(peopleFlag){
|
||||
this.isSubmit = true;
|
||||
this.listForm.dataList = this.dataList;
|
||||
this.listForm.commentText = this.commentText;
|
||||
let json = Object.assign(this.listForm, this.roleForm);
|
||||
@@ -986,6 +987,8 @@ export default {
|
||||
if (valid) {
|
||||
this.$refs["roleForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true
|
||||
this.$http.post("lawss/activiti/startProcessRollBack", {
|
||||
createUser: this.$store.getters.userInfo.userId,
|
||||
createUserName: this.$store.getters.userInfo.userName,
|
||||
@@ -1020,7 +1023,11 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false
|
||||
});
|
||||
} else {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
});
|
||||
} else {
|
||||
@@ -1038,6 +1045,8 @@ export default {
|
||||
if (valid) {
|
||||
this.$refs["roleForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let specialJson = {
|
||||
createUser: this.$store.getters.userInfo.userId,
|
||||
createUserName: this.$store.getters.userInfo.userName,
|
||||
@@ -1076,6 +1085,7 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false
|
||||
});
|
||||
} else {
|
||||
this.isSubmit = false;
|
||||
|
||||
@@ -202,9 +202,9 @@
|
||||
show-back
|
||||
show-transfer
|
||||
show-submit
|
||||
:transfer-loading="isTransfer"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:saveLoading="isSubmit"
|
||||
:isSubmitBack="isSubmit"
|
||||
:approval="true"
|
||||
@transfer="handleTransfer"
|
||||
@back="beforeBack"
|
||||
@@ -359,14 +359,13 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
@@ -375,6 +374,8 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -379,7 +379,6 @@
|
||||
show-save
|
||||
show-transfer
|
||||
show-submit
|
||||
:transfer-loading="isTransfer"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:approval="true"
|
||||
@@ -746,6 +745,7 @@ export default {
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true;
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
@@ -758,6 +758,7 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false;
|
||||
}, e => {
|
||||
});
|
||||
}else{
|
||||
@@ -769,6 +770,7 @@ export default {
|
||||
//保存
|
||||
handleSave() {
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true
|
||||
// this.listForm.dataList = this.dataList;
|
||||
let _formData = new FormData();
|
||||
_formData.append("id", this.bpnId || "");
|
||||
@@ -780,11 +782,11 @@ export default {
|
||||
commentText: this.commentText
|
||||
}));
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false;
|
||||
});
|
||||
},
|
||||
checkedRole2(data) {
|
||||
@@ -795,14 +797,14 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedRole(data) {
|
||||
this.assigneeNewLoading = true;
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true;
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false;
|
||||
if (res.success) {
|
||||
this.drawerModal = false;
|
||||
this.$message.success("调整成功");
|
||||
@@ -811,6 +813,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false;
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -267,7 +267,6 @@
|
||||
<ProcessFooter
|
||||
show-transfer
|
||||
show-submit
|
||||
:transfer-loading="isTransfer"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:approval="true"
|
||||
@@ -450,6 +449,7 @@ export default {
|
||||
this.listForm.dataList = this.dataList
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.$http.post('lawss/activiti/completeTask', {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
@@ -462,20 +462,21 @@ export default {
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}, e => {
|
||||
});
|
||||
}
|
||||
},
|
||||
//确认转办
|
||||
checkedRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
@@ -484,6 +485,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -448,7 +448,6 @@
|
||||
:show-submit="submitShow"
|
||||
:show-confirm="acceptShow"
|
||||
:submitLoading="isSubmit"
|
||||
:transfer-loading="isTransfer"
|
||||
:saveLoading="saveLoading"
|
||||
@save="handleSave"
|
||||
@transfer="handleTransfer"
|
||||
@@ -697,7 +696,8 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedTransferRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
@@ -713,6 +713,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -840,6 +843,7 @@ export default {
|
||||
//保存事件
|
||||
handleSave() {
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData();
|
||||
this.listForm.dataList = this.dataList;
|
||||
_formData.append("id", this.bpnId || "");
|
||||
@@ -853,13 +857,15 @@ export default {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false
|
||||
});
|
||||
},
|
||||
// 接受按钮
|
||||
handleAccept(){
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true;
|
||||
execTask({
|
||||
todoId: this.todoId // 当前节点ID
|
||||
}).then(res => {
|
||||
@@ -867,6 +873,8 @@ export default {
|
||||
this.$message.success('接收成功')
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
@@ -917,6 +925,7 @@ export default {
|
||||
this.listForm.dataList = this.dataList;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
@@ -929,6 +938,7 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false;
|
||||
}, e => {
|
||||
|
||||
});
|
||||
|
||||
@@ -352,8 +352,8 @@
|
||||
show-submit
|
||||
show-transfer
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:transfer-loading="isTransfer"
|
||||
:saveLoading="isSubmit"
|
||||
:isSubmitBack="isSubmit"
|
||||
:approval="true"
|
||||
@back="beforeBack"
|
||||
@transfer="handleTransfer"
|
||||
@@ -477,14 +477,13 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedTransferRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
@@ -493,6 +492,8 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -361,7 +361,6 @@
|
||||
show-transfer
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:transfer-loading="isTransfer"
|
||||
:approval="true"
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
@@ -490,14 +489,14 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedTransferRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
@@ -506,6 +505,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -633,6 +635,7 @@ export default {
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.isSubmit = true
|
||||
this.saveLoading = false
|
||||
this.$http.post('lawss/activiti/completeTask', {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
@@ -645,6 +648,7 @@ export default {
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}, e => {
|
||||
});
|
||||
|
||||
|
||||
@@ -371,7 +371,6 @@
|
||||
show-transfer
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:transfer-loading="isTransfer"
|
||||
:approval="true"
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
@@ -502,14 +501,14 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedTransferRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
@@ -518,6 +517,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -646,6 +648,7 @@ export default {
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.$http.post('lawss/activiti/completeTask', {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
@@ -658,6 +661,7 @@ export default {
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}, e => {
|
||||
});
|
||||
|
||||
|
||||
@@ -361,7 +361,6 @@
|
||||
show-transfer
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:transfer-loading="isTransfer"
|
||||
:approval="true"
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
@@ -490,7 +489,8 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedTransferRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
@@ -506,6 +506,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -633,6 +636,7 @@ export default {
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.$http.post('lawss/activiti/completeTask', {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
@@ -645,6 +649,7 @@ export default {
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}, e => {
|
||||
});
|
||||
|
||||
|
||||
@@ -1051,6 +1051,7 @@ export default {
|
||||
//保存事件
|
||||
handleSave() {
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true
|
||||
this.listForm.dataList = this.dataList
|
||||
this.listForm.fileName = this.fileInfoList
|
||||
let _formData = new FormData();
|
||||
@@ -1068,8 +1069,9 @@ export default {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false
|
||||
});
|
||||
},
|
||||
//提交事件
|
||||
@@ -1087,6 +1089,7 @@ export default {
|
||||
this.$refs["Form"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.$http.post("lawss/activiti/startProcessRollBack", {
|
||||
createUser: this.$store.getters.userInfo.userId,
|
||||
createUserName: this.$store.getters.userInfo.userName,
|
||||
@@ -1121,7 +1124,11 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
});
|
||||
} else {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
});
|
||||
} else {
|
||||
|
||||
@@ -197,7 +197,7 @@
|
||||
show-transfer
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:transferLoading="isTransfer"
|
||||
:transferLoading="isSubmit"
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
@@ -379,14 +379,13 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
@@ -395,6 +394,8 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -377,7 +377,6 @@
|
||||
show-save
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:transfer-loading="isTransfer"
|
||||
:saveLoading="saveLoading"
|
||||
@transfer="handleTransfer"
|
||||
@save="handleSave"
|
||||
@@ -519,14 +518,14 @@ export default {
|
||||
methods: {
|
||||
//确认转办
|
||||
checkedRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
@@ -535,6 +534,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -847,6 +849,7 @@ export default {
|
||||
//保存事件
|
||||
handleSave() {
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData();
|
||||
_formData.append("id", this.bpnId || "");
|
||||
_formData.append("prcType", "4");
|
||||
@@ -856,11 +859,11 @@ export default {
|
||||
commentText: this.commentText
|
||||
}));
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false
|
||||
});
|
||||
},
|
||||
//提交事件
|
||||
@@ -869,6 +872,7 @@ export default {
|
||||
this.listForm.dataList = this.dataList
|
||||
const json = JSON.stringify(this.listForm);
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.$http.post('lawss/activiti/completeTask', {
|
||||
taskIds: this.taskIds,
|
||||
userId: this.userId,
|
||||
@@ -881,6 +885,7 @@ export default {
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
});
|
||||
},
|
||||
//标准表格选择框改变
|
||||
|
||||
@@ -199,9 +199,9 @@
|
||||
show-transfer
|
||||
show-back
|
||||
show-submit
|
||||
:transfer-loading="isTransfer"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:approval="true"
|
||||
@transfer="handleTransfer"
|
||||
@back="beforeBack"
|
||||
@@ -296,14 +296,14 @@ export default {
|
||||
methods: {
|
||||
//确认转办
|
||||
checkedRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
@@ -312,6 +312,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -475,6 +478,7 @@ export default {
|
||||
//提交事件
|
||||
handleSubmit() {
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true
|
||||
this.listForm.approvalOpinion = "2";
|
||||
this.listForm.commentText = this.commentText;
|
||||
const json = JSON.stringify(this.listForm);
|
||||
@@ -490,6 +494,7 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
});
|
||||
},
|
||||
//选择标准取消事件
|
||||
|
||||
@@ -3597,6 +3597,7 @@
|
||||
// }
|
||||
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('id', this.bpnId || '')
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||
@@ -3616,11 +3617,11 @@
|
||||
commentText: this.commentText
|
||||
}))
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
fileInfoHandle() {
|
||||
@@ -3687,6 +3688,7 @@
|
||||
if (res.ok) {
|
||||
this.fileInfoHandle()
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
// this.form.country = this.countryArr;
|
||||
var json = Object.assign(this.form, this.roleForm)
|
||||
json.zrUserId = this.form.zrUserId
|
||||
@@ -3719,7 +3721,6 @@
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.isSubmit = false
|
||||
if (this.bpnId !== '') {
|
||||
let taskId = {
|
||||
id: this.bpnId
|
||||
@@ -3732,11 +3733,13 @@
|
||||
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.isSubmit = true
|
||||
}
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
} else {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@@ -3747,6 +3750,7 @@
|
||||
} else {
|
||||
this.fileInfoHandle()
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
// this.form.country = this.countryArr;
|
||||
var json = Object.assign(this.form, this.roleForm)
|
||||
json.zrUserId = this.form.zrUserId
|
||||
@@ -3779,7 +3783,6 @@
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.isSubmit = false
|
||||
if (this.bpnId !== '') {
|
||||
let taskId = {
|
||||
id: this.bpnId
|
||||
@@ -3790,12 +3793,13 @@
|
||||
}
|
||||
// 流程提交之后,应该流转至待办任务页面
|
||||
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
|
||||
} else {
|
||||
this.isSubmit = false
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -3606,6 +3606,7 @@
|
||||
// }
|
||||
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('id', this.bpnId || '')
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||
@@ -3628,8 +3629,9 @@
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
fileInfoHandle() {
|
||||
@@ -3696,6 +3698,7 @@
|
||||
if (res.ok) {
|
||||
this.fileInfoHandle()
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
// this.form.country = this.countryArr;
|
||||
var json = Object.assign(this.form, this.roleForm)
|
||||
json.zrUserId = this.form.zrUserId
|
||||
@@ -3741,11 +3744,13 @@
|
||||
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
this.isSubmit = true
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@@ -3756,6 +3761,7 @@
|
||||
} else {
|
||||
this.fileInfoHandle()
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
// this.form.country = this.countryArr;
|
||||
var json = Object.assign(this.form, this.roleForm)
|
||||
json.zrUserId = this.form.zrUserId
|
||||
@@ -3788,7 +3794,6 @@
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.isSubmit = false
|
||||
if (this.bpnId !== '') {
|
||||
let taskId = {
|
||||
id: this.bpnId
|
||||
@@ -3799,12 +3804,13 @@
|
||||
}
|
||||
// 流程提交之后,应该流转至待办任务页面
|
||||
this.$router.push({path: '/processCenter?tabsName=ProcessCenter'})
|
||||
} else {
|
||||
this.isSubmit = false
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
@@ -1045,6 +1045,8 @@ export default {
|
||||
methods: {
|
||||
checkedRole(data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -1059,6 +1061,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
downloadFileNew(attId) {
|
||||
@@ -1289,6 +1294,7 @@ export default {
|
||||
},
|
||||
handleSubmit() {
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true;
|
||||
this.form.commentText = this.commentText;
|
||||
this.form.approvalOpinion = this.formTongGuo.approvalOpinion;
|
||||
if (this.form.syrz.length === 0) {
|
||||
@@ -1346,6 +1352,9 @@ export default {
|
||||
} else {
|
||||
this.processCreateStand(json);
|
||||
}
|
||||
} else {
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false;
|
||||
}
|
||||
});
|
||||
},
|
||||
@@ -1378,6 +1387,9 @@ export default {
|
||||
this.$message.warning(res.message)
|
||||
this.isSubmit = false
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
getDicTypeListCode(res,json) {
|
||||
|
||||
@@ -1016,6 +1016,8 @@ export default {
|
||||
methods: {
|
||||
checkedRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -1032,6 +1034,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
downloadFileNew(attId) {
|
||||
@@ -1237,6 +1242,7 @@ export default {
|
||||
},
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
// _formData.append('id', this.bpnId)
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||
@@ -1252,15 +1258,16 @@ export default {
|
||||
submitType: this.submitType
|
||||
}))
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
// this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
handleSubmit() {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.form.submitType = this.submitType
|
||||
this.form.commentText = this.commentText
|
||||
this.form.approvalOpinion = this.approvalOpinion
|
||||
@@ -1280,6 +1287,7 @@ export default {
|
||||
this.$message.success(res.message)
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
|
||||
|
||||
@@ -2961,6 +2961,7 @@ export default {
|
||||
} else {
|
||||
this.fileInfoHandle();
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.form.submitType = this.submitType
|
||||
this.form.commentText = this.commentText
|
||||
this.form.approvalOpinion = this.approvalOpinion
|
||||
@@ -2980,6 +2981,7 @@ export default {
|
||||
this.$message.success(res.message)
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -835,6 +835,7 @@ export default {
|
||||
this.$refs['Form'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.$http.post('lawss/activiti/startProcessRollBack', {
|
||||
id: '',
|
||||
createUser: this.$store.getters.userInfo.userId,
|
||||
@@ -870,10 +871,13 @@ export default {
|
||||
}
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('流程启动失败')
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
})
|
||||
} else {
|
||||
@@ -887,6 +891,7 @@ export default {
|
||||
},
|
||||
handleSave () {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
this.form.filesId = this.addFjList
|
||||
_formData.append('id', this.bpnId || '')
|
||||
@@ -902,8 +907,9 @@ export default {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
}
|
||||
|
||||
@@ -844,6 +844,7 @@ export default {
|
||||
},
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('id', this.bpnId || '')
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||
@@ -856,11 +857,11 @@ export default {
|
||||
commentText1: this.commentText1
|
||||
}))
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
handleSubmit() {
|
||||
@@ -869,6 +870,7 @@ export default {
|
||||
this.$refs['Form'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.$http.post('lawss/activiti/startProcessRollBack', {
|
||||
id: '',
|
||||
createUser: this.$store.getters.userInfo.userId,
|
||||
@@ -904,14 +906,17 @@ export default {
|
||||
}
|
||||
this.$router.push('/processCenter')
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
} else {
|
||||
this.$message.warning('流程启动失败')
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('流程启动失败')
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
})
|
||||
} else {
|
||||
|
||||
@@ -261,6 +261,8 @@ export default {
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -275,6 +277,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -329,6 +334,7 @@ export default {
|
||||
//保存事件
|
||||
handleSave() {
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData();
|
||||
this.form.onlyKey = this.onlyKey
|
||||
_formData.append("id", this.bpnId || "");
|
||||
@@ -339,17 +345,18 @@ export default {
|
||||
commentText2: this.commentText2
|
||||
}));
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false
|
||||
});
|
||||
},
|
||||
handleSubmit() {
|
||||
this.$refs["bzzqyjForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true;
|
||||
var json = this.json;
|
||||
json.onlyKey = this.onlyKey
|
||||
json.commentText = this.commentText2;
|
||||
@@ -368,6 +375,7 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false;
|
||||
});
|
||||
} else {
|
||||
return this.$message.warning("请完善基础信息");
|
||||
|
||||
@@ -500,6 +500,8 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -514,6 +516,9 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -575,6 +580,7 @@
|
||||
},
|
||||
handleSave() {
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData();
|
||||
let json = this.form
|
||||
json.data = this.data
|
||||
@@ -588,13 +594,16 @@
|
||||
}));
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false;
|
||||
});
|
||||
},
|
||||
handleAccept(){
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true
|
||||
execTask({
|
||||
todoId: this.todoId // 当前节点ID
|
||||
@@ -604,11 +613,16 @@
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
handleSubmit() {
|
||||
if (this.data.length < 1) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.onlyKey = this.onlyKey
|
||||
json.commentText = this.commentText3
|
||||
@@ -626,6 +640,7 @@
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
var a = 0
|
||||
@@ -652,6 +667,7 @@
|
||||
// }
|
||||
else {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.commentText = this.commentText3
|
||||
json.info = this.data
|
||||
@@ -668,6 +684,7 @@
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -230,6 +230,7 @@
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
show-transfer
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
@@ -361,6 +362,8 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -375,6 +378,9 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -408,6 +414,7 @@
|
||||
this.$refs['bzzqyjForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
let json = this.json
|
||||
json.info = this.data
|
||||
json.onlyKey = this.onlyKey
|
||||
@@ -425,6 +432,7 @@
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请选择标准法规工程师分线管理员')
|
||||
@@ -433,6 +441,8 @@
|
||||
},
|
||||
handleSubmitNo() {
|
||||
if (this.commentText41) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.spFlag = '1'
|
||||
json.onlyKey = this.onlyKey
|
||||
@@ -446,6 +456,8 @@
|
||||
this.$message.success('提交成功')
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请输审批意见')
|
||||
|
||||
@@ -222,6 +222,7 @@
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
show-transfer
|
||||
@transfer="handleTransfer"
|
||||
@submit="handleSubmit"
|
||||
@@ -353,6 +354,8 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -367,6 +370,9 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -398,6 +404,7 @@
|
||||
},
|
||||
handleSubmit() {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
let json = this.json
|
||||
json.info = this.data
|
||||
json.commentText = this.commentText42
|
||||
@@ -413,10 +420,13 @@
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
handleSubmitNo() {
|
||||
if (this.commentText42) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.bzFlag = '1'
|
||||
json.onlyKey = this.onlyKey
|
||||
@@ -430,6 +440,8 @@
|
||||
this.$message.success('提交成功')
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请输入反馈意见')
|
||||
|
||||
@@ -575,6 +575,8 @@ export default {
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -589,6 +591,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -621,6 +626,7 @@ export default {
|
||||
//保存事件
|
||||
handleSave() {
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData();
|
||||
let json = this.json
|
||||
json.info = this.data
|
||||
@@ -641,14 +647,16 @@ export default {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false
|
||||
});
|
||||
},
|
||||
handleSubmit() {
|
||||
this.$refs['bzzqyjForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
let json = this.json
|
||||
json.actionFlag = 0
|
||||
json.commentText = this.commentText4
|
||||
@@ -667,6 +675,7 @@ export default {
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请选择审批人')
|
||||
|
||||
@@ -546,6 +546,8 @@
|
||||
}
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -560,6 +562,9 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -596,6 +601,7 @@
|
||||
handleSave() {
|
||||
if(this.clickFlag){
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData();
|
||||
let json = this.form;
|
||||
json.data = this.data;
|
||||
@@ -611,8 +617,9 @@
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false
|
||||
});
|
||||
}else{
|
||||
this.$message.warning('公开征求意见未结束,无法操作')
|
||||
@@ -634,6 +641,7 @@
|
||||
return;
|
||||
}
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true
|
||||
var json = this.json;
|
||||
json.oldinfo = this.oldData;
|
||||
json.onlyKey = this.onlyKey
|
||||
@@ -649,6 +657,7 @@
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false;
|
||||
});
|
||||
}else{
|
||||
this.$message.warning('公开征求意见未结束,无法操作')
|
||||
|
||||
@@ -261,6 +261,7 @@
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
@submit="handleSubmit"
|
||||
:isSubmitBack="isSubmit"
|
||||
show-back
|
||||
@back="handleSubmitNo"
|
||||
show-transfer
|
||||
@@ -398,6 +399,8 @@
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -412,6 +415,9 @@
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -487,6 +493,7 @@
|
||||
this.$refs['bzzqyjForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true
|
||||
var json = this.json;
|
||||
json.hqFlag = '0';
|
||||
json.onlyKey = this.onlyKey
|
||||
@@ -503,6 +510,7 @@
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false
|
||||
});
|
||||
} else {
|
||||
this.$message.warning('请选择审批领导')
|
||||
@@ -512,6 +520,7 @@
|
||||
handleSubmitNo() {
|
||||
if (this.commentText6) {
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true
|
||||
var json = this.json;
|
||||
json.hqFlag = '1';
|
||||
json.onlyKey = this.onlyKey
|
||||
@@ -526,6 +535,7 @@
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false
|
||||
});
|
||||
} else {
|
||||
this.$message.warning("请输入反馈意见");
|
||||
|
||||
@@ -252,6 +252,7 @@
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
@submit="handleSubmit"
|
||||
show-back
|
||||
@back="handleSubmitNo"
|
||||
@@ -367,6 +368,8 @@ export default {
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -381,6 +384,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -454,6 +460,7 @@ export default {
|
||||
},
|
||||
handleSubmit() {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.bdFlag = '0'
|
||||
json.onlyKey = this.onlyKey
|
||||
@@ -468,11 +475,13 @@ export default {
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
handleSubmitNo() {
|
||||
if (this.commentText7) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.bdFlag = '1'
|
||||
json.onlyKey = this.onlyKey
|
||||
@@ -487,6 +496,7 @@ export default {
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请输入反馈意见')
|
||||
|
||||
@@ -252,6 +252,7 @@
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
@submit="handleSubmit"
|
||||
show-back
|
||||
@back="handleSubmitNo"
|
||||
@@ -367,6 +368,8 @@ export default {
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -381,6 +384,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -454,6 +460,7 @@ export default {
|
||||
},
|
||||
handleSubmit() {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.directorFlag = '0'
|
||||
json.onlyKey = this.onlyKey
|
||||
@@ -470,11 +477,13 @@ export default {
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
handleSubmitNo() {
|
||||
if (this.commentText8) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
var json = this.json
|
||||
json.directorFlag = '1'
|
||||
json.onlyKey = this.onlyKey
|
||||
@@ -489,6 +498,7 @@ export default {
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.$message.warning('请输入反馈意见')
|
||||
|
||||
@@ -251,6 +251,7 @@
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
@submit="handleSubmit"
|
||||
show-back
|
||||
@back="handleSubmitNo"
|
||||
@@ -366,6 +367,8 @@ export default {
|
||||
this.drawerModal = true
|
||||
},
|
||||
checkedRole (data) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
userId:this.$store.getters.userInfo.userId, // 委托人
|
||||
@@ -380,6 +383,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
@@ -453,6 +459,7 @@ export default {
|
||||
},
|
||||
handleSubmit() {
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true
|
||||
var json = this.json;
|
||||
json.info = this.data2
|
||||
json.presidentFlag = '0';
|
||||
@@ -468,11 +475,13 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false
|
||||
});
|
||||
},
|
||||
handleSubmitNo() {
|
||||
if (this.commentText9) {
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true
|
||||
var json = this.json;
|
||||
json.onlyKey = this.onlyKey
|
||||
json.presidentFlag = '1';
|
||||
@@ -487,6 +496,7 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false
|
||||
});
|
||||
} else {
|
||||
this.$message.warning("请输入反馈意见");
|
||||
|
||||
@@ -187,6 +187,7 @@ export default {
|
||||
this.$refs["Form"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.$http.post("lawss/activiti/startProcessRollBack", {
|
||||
createUser: this.$store.getters.userInfo.userId,
|
||||
createUserName: this.$store.getters.userInfo.userName,
|
||||
@@ -219,7 +220,11 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
});
|
||||
} else {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
}
|
||||
});
|
||||
} else {
|
||||
@@ -230,6 +235,7 @@ export default {
|
||||
},
|
||||
handleSave(){
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true;
|
||||
let _formData = new FormData();
|
||||
_formData.append("id", this.bpnId || "");
|
||||
_formData.append("createUser", this.$store.getters.userInfo.userId);
|
||||
@@ -240,11 +246,11 @@ export default {
|
||||
roleForm: this.roleForm,
|
||||
}));
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false;
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
show-save
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:saveLoading="isSubmit"
|
||||
@save="handleSave"
|
||||
@submit="handleSubmit"
|
||||
>
|
||||
|
||||
@@ -390,9 +390,9 @@
|
||||
show-save
|
||||
show-submit
|
||||
show-record
|
||||
:recordLoading="recordLoading"
|
||||
:recordLoading="isSubmit"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:saveLoading="isSubmit"
|
||||
@record="handleRecord"
|
||||
@save="handleSave"
|
||||
@submit="handleSubmit"
|
||||
@@ -641,6 +641,7 @@ export default {
|
||||
let json = {
|
||||
signFlag: '2',
|
||||
};
|
||||
this.isSubmit = true;
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -670,6 +671,7 @@ export default {
|
||||
wbbzform: this.wbbzform,
|
||||
signFlag: '1',
|
||||
};
|
||||
this.isSubmit = true;
|
||||
this.$refs["wbbzForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
|
||||
@@ -223,8 +223,8 @@
|
||||
show-transfer
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:transfer-loading="isTransfer"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:saveLoading="isSubmit"
|
||||
:approval="true"
|
||||
@back="beforeBack"
|
||||
@transfer="handleTransfer"
|
||||
@@ -369,6 +369,7 @@ export default {
|
||||
};
|
||||
this.$refs["wbbzForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -389,7 +390,6 @@ export default {
|
||||
}
|
||||
},
|
||||
handleSubmit() {
|
||||
this.isSubmit = true;
|
||||
if (this.participantsData.length < 1) {
|
||||
this.$message.warning("项目信息不能为空");
|
||||
} else {
|
||||
@@ -406,6 +406,7 @@ export default {
|
||||
};
|
||||
this.$refs["wbbzForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true;
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -433,14 +434,13 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedTransferRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
@@ -449,6 +449,8 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
@@ -223,8 +223,8 @@
|
||||
show-transfer
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:transfer-loading="isTransfer"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:saveLoading="isSubmit"
|
||||
:approval="true"
|
||||
@back="beforeBack"
|
||||
@transfer="handleTransfer"
|
||||
@@ -369,6 +369,7 @@ export default {
|
||||
};
|
||||
this.$refs["wbbzForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -389,7 +390,6 @@ export default {
|
||||
}
|
||||
},
|
||||
handleSubmit() {
|
||||
this.isSubmit = true
|
||||
if (this.participantsData.length < 1) {
|
||||
this.$message.warning("项目信息不能为空");
|
||||
} else {
|
||||
@@ -406,6 +406,7 @@ export default {
|
||||
};
|
||||
this.$refs["wbbzForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -433,14 +434,13 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedTransferRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
@@ -449,6 +449,8 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
@@ -223,8 +223,8 @@
|
||||
show-transfer
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:transfer-loading="isTransfer"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:saveLoading="isSubmit"
|
||||
:approval="true"
|
||||
@back="beforeBack"
|
||||
@transfer="handleTransfer"
|
||||
@@ -369,6 +369,7 @@ export default {
|
||||
};
|
||||
this.$refs["wbbzForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true;
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -389,7 +390,6 @@ export default {
|
||||
}
|
||||
},
|
||||
handleSubmit() {
|
||||
this.isSubmit = true
|
||||
if (this.participantsData.length < 1) {
|
||||
this.$message.warning("项目信息不能为空");
|
||||
} else {
|
||||
@@ -406,6 +406,7 @@ export default {
|
||||
};
|
||||
this.$refs["wbbzForm"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.$http.post("lawss/activiti/completeTask", {
|
||||
taskIds: this.$route.query.taskIds,
|
||||
userId: this.$store.getters.userInfo.userId,
|
||||
@@ -433,14 +434,13 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedTransferRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
@@ -449,6 +449,8 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
@@ -186,6 +186,7 @@ export default {
|
||||
this.$refs["Form"].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.$http.post("lawss/activiti/startProcessRollBack", {
|
||||
createUser: this.$store.getters.userInfo.userId,
|
||||
createUserName: this.$store.getters.userInfo.userName,
|
||||
@@ -218,7 +219,11 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
});
|
||||
} else {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
}
|
||||
});
|
||||
} else {
|
||||
@@ -229,6 +234,7 @@ export default {
|
||||
},
|
||||
handleSave(){
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true;
|
||||
let _formData = new FormData();
|
||||
_formData.append("id", this.bpnId || "");
|
||||
_formData.append("createUser", this.$store.getters.userInfo.userId);
|
||||
@@ -239,11 +245,11 @@ export default {
|
||||
roleForm: this.roleForm,
|
||||
}));
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
this.saveLoading = false;
|
||||
this.$message.success("保存成功");
|
||||
this.bpnId = res.result;
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false;
|
||||
});
|
||||
},
|
||||
},
|
||||
|
||||
@@ -323,9 +323,9 @@
|
||||
show-save
|
||||
show-submit
|
||||
show-record
|
||||
:recordLoading="recordLoading"
|
||||
:recordLoading="isSubmit"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:saveLoading="isSubmit"
|
||||
@record="handleRecord"
|
||||
@save="handleSave"
|
||||
@submit="handleSubmit"
|
||||
@@ -561,7 +561,7 @@ export default {
|
||||
},
|
||||
//不备案
|
||||
handleRecord(){
|
||||
this.recordLoading = true
|
||||
this.isSubmit = true
|
||||
this.dlFlag = '0'
|
||||
this.wbbzform.commentText = this.commentText;
|
||||
this.wbbzform.participantsData = this.participantsData
|
||||
@@ -578,14 +578,14 @@ export default {
|
||||
this.$message.success(res.message);
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.recordLoading = false
|
||||
this.isSubmit = false
|
||||
}, e => {
|
||||
|
||||
});
|
||||
},
|
||||
//流程保存
|
||||
handleSave() {
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
this.wbbzform.fileName = this.fileInfoList
|
||||
this.wbbzform.commentText = this.commentText;
|
||||
this.wbbzform.participantsData = this.participantsData
|
||||
@@ -600,11 +600,10 @@ export default {
|
||||
form: this.wbbzform,
|
||||
}))
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
this.saveLoading = false
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
//流程提交
|
||||
|
||||
@@ -278,8 +278,8 @@
|
||||
show-transfer
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:transfer-loading="isTransfer"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:saveLoading="isSubmit"
|
||||
:approval="true"
|
||||
@back="beforeBack"
|
||||
@transfer="handleTransfer"
|
||||
@@ -384,14 +384,13 @@ export default {
|
||||
methods: {
|
||||
//确认转办
|
||||
checkedTransferRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
@@ -400,6 +399,8 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
processTable() {
|
||||
|
||||
@@ -278,8 +278,8 @@
|
||||
show-transfer
|
||||
show-submit
|
||||
:submitLoading="isSubmit"
|
||||
:transfer-loading="isTransfer"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
:saveLoading="isSubmit"
|
||||
:approval="true"
|
||||
@back="beforeBack"
|
||||
@transfer="handleTransfer"
|
||||
@@ -384,14 +384,13 @@ export default {
|
||||
methods: {
|
||||
//确认转办
|
||||
checkedTransferRole (data) {
|
||||
this.assigneeNewLoading = true
|
||||
this.isSubmit = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
assignee: data[0].id, // 被委托人
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
@@ -400,6 +399,8 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
processTable() {
|
||||
|
||||
@@ -800,9 +800,12 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
/*
|
||||
$('input[type="text"]').each(function(){
|
||||
$(this).attr('disabled','disabled');
|
||||
});
|
||||
你个傻逼到处挖坑,气死我了
|
||||
*/
|
||||
this.bpnId = this.$route.query.bpnId
|
||||
if (this.bpnId !== undefined) {
|
||||
this.getDatas()
|
||||
@@ -1194,6 +1197,7 @@ export default {
|
||||
//流程保存
|
||||
handleSave(){
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('id', this.bpnId || '')
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||
@@ -1206,11 +1210,11 @@ export default {
|
||||
commentText: this.commentText
|
||||
}))
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
startProcessRollBack() {
|
||||
@@ -1268,6 +1272,7 @@ export default {
|
||||
|
||||
if(boo){
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
// this.qbfsForm.fileList = this.fileList
|
||||
this.qbfsForm.commentText = this.commentText
|
||||
// 批量发起列表流程
|
||||
@@ -1289,12 +1294,18 @@ export default {
|
||||
})
|
||||
}
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
} else {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}
|
||||
}
|
||||
const time = setInterval(() => {
|
||||
const list = this.qbfsForm.modelData.filter ( item => item.processStatus === '1')
|
||||
if(list && this.qbfsForm.modelData && list.length === this.qbfsForm.modelData.length){
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
clearInterval(time)
|
||||
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||
}
|
||||
|
||||
@@ -531,6 +531,7 @@ export default {
|
||||
//流程保存
|
||||
handleSave(){
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('id', this.bpnId || '')
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||
@@ -543,11 +544,11 @@ export default {
|
||||
commentText: this.commentText
|
||||
}))
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
processEditFile(id) {
|
||||
@@ -641,6 +642,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -516,6 +516,7 @@ export default {
|
||||
//流程保存
|
||||
handleSave(){
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('id', this.bpnId || '')
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||
@@ -528,11 +529,11 @@ export default {
|
||||
commentText: this.commentText
|
||||
}))
|
||||
saveTaskForPub(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
processEditFile(id) {
|
||||
@@ -611,6 +612,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -675,6 +675,8 @@ export default {
|
||||
}
|
||||
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}, e => {
|
||||
});
|
||||
}else {
|
||||
@@ -722,6 +724,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -3068,6 +3068,7 @@ export default {
|
||||
// }
|
||||
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
this.fileInfoHandle()
|
||||
_formData.append('id', this.bpnId || '')
|
||||
@@ -3085,8 +3086,9 @@ export default {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
fileInfoHandle(){
|
||||
@@ -3290,11 +3292,22 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.data)
|
||||
}
|
||||
this.submitLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
} else {
|
||||
this.submitLoading = false
|
||||
this.isSubmit = false
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.submitLoading = false
|
||||
this.isSubmit = false
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.submitLoading = false
|
||||
this.isSubmit = false
|
||||
}
|
||||
})
|
||||
// this.$http.get('lawss/activiti/startProcess', {type: 'buss1'}, {
|
||||
|
||||
@@ -511,6 +511,7 @@ export default {
|
||||
//流程保存
|
||||
handleSave(){
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
_formData.append('id', this.bpnId || '')
|
||||
_formData.append('createUser', this.$store.getters.userInfo.userId)
|
||||
@@ -526,8 +527,9 @@ export default {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
processEditFile(id) {
|
||||
@@ -606,6 +608,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -646,13 +646,14 @@ export default {
|
||||
}, res => {
|
||||
if (res.success) {
|
||||
this.$message.success(res.message)
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
} else {
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.standardSearch.commentText = this.commentText
|
||||
var json = Object.assign(this.roleForm, this.standardSearch)
|
||||
this.$http.post('lawss/activiti/startProcessRollBack', {
|
||||
@@ -685,9 +686,10 @@ export default {
|
||||
return res
|
||||
})
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.$router.push({path:'/processCenter?tabsName=ProcessCenter'})
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
@@ -192,7 +192,6 @@
|
||||
<ProcessFooter
|
||||
show-transfer
|
||||
show-submit
|
||||
:transfer-loading="isTransfer"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:approval="true"
|
||||
@@ -323,6 +322,7 @@ export default {
|
||||
this.$refs['qbfsForm'].validate((valid) => {
|
||||
if(valid){
|
||||
this.isSubmit = true
|
||||
this.saveLoading = true
|
||||
this.qbfsForm.commentText = this.commentText
|
||||
this.qbfsForm.presentPeople = this.$store.getters.userInfo.userName
|
||||
this.qbfsForm.presentPeopleId = this.$store.getters.userInfo.userId
|
||||
@@ -339,6 +339,7 @@ export default {
|
||||
this.$router.push('/processCenter')
|
||||
}
|
||||
this.isSubmit = false
|
||||
this.saveLoading = false
|
||||
}, e => {
|
||||
});
|
||||
}else{
|
||||
@@ -354,8 +355,8 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedRoles (data) {
|
||||
this.isTransfer = true;
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true;
|
||||
this.assigneeNewLoading = true
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
@@ -363,8 +364,6 @@ export default {
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false;
|
||||
this.isSubmit = false;
|
||||
if (res.success) {
|
||||
this.drawerModal = false
|
||||
this.$message.success('调整成功')
|
||||
@@ -373,6 +372,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message)
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false;
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -232,7 +232,6 @@
|
||||
<ProcessFooter
|
||||
show-transfer
|
||||
show-submit
|
||||
:transfer-loading="isTransfer"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:approval="true"
|
||||
@@ -366,6 +365,7 @@ export default {
|
||||
this.$refs['qbfsForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true;
|
||||
this.qbfsForm.commentText = this.commentText;
|
||||
this.qbfsForm.dataList = this.dataList;
|
||||
let json = JSON.stringify(this.qbfsForm);
|
||||
@@ -381,6 +381,7 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false;
|
||||
}, e => {
|
||||
});
|
||||
}else{
|
||||
@@ -403,7 +404,7 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedRole(data) {
|
||||
this.isTransfer = true;
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true;
|
||||
this.assigneeNewLoading = true;
|
||||
changeAssigneeNew({
|
||||
@@ -412,8 +413,6 @@ export default {
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false;
|
||||
this.isSubmit = false;
|
||||
if (res.success) {
|
||||
this.drawerModal = false;
|
||||
this.$message.success("调整成功");
|
||||
@@ -422,7 +421,10 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message);
|
||||
}
|
||||
});
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false;
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
processNum(row) {
|
||||
|
||||
@@ -234,7 +234,6 @@
|
||||
show-transfer
|
||||
show-submit
|
||||
show-back
|
||||
:transfer-loading="isTransfer"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
@@ -368,6 +367,7 @@ export default {
|
||||
this.$message.warning('请填写审批意见')
|
||||
}else{
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true;
|
||||
this.qbfsForm.commentText = this.commentText;
|
||||
this.qbfsForm.bzFlag = '1'
|
||||
this.qbfsForm.dataList = this.dataList;
|
||||
@@ -384,6 +384,7 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false
|
||||
}, e => {
|
||||
});
|
||||
}
|
||||
@@ -393,7 +394,7 @@ export default {
|
||||
this.$refs['qbfsForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true;
|
||||
this.isTransfer = true;
|
||||
this.saveLoading = true;
|
||||
this.qbfsForm.commentText = this.commentText;
|
||||
this.qbfsForm.bzFlag = '0'
|
||||
this.qbfsForm.dataList = this.dataList;
|
||||
@@ -410,7 +411,7 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.isTransfer = false;
|
||||
this.saveLoading = false;
|
||||
}, e => {
|
||||
});
|
||||
}else{
|
||||
@@ -433,7 +434,7 @@ export default {
|
||||
},
|
||||
//确认转办
|
||||
checkedRole(data) {
|
||||
this.isTransfer = true;
|
||||
this.saveLoading = true;
|
||||
this.isSubmit = true;
|
||||
this.assigneeNewLoading = true;
|
||||
changeAssigneeNew({
|
||||
@@ -442,8 +443,6 @@ export default {
|
||||
userId: this.$store.getters.userInfo.userId, // 委托人
|
||||
pId: this.$route.query.prcId // 流程实例
|
||||
}).then(res => {
|
||||
this.isTransfer = false;
|
||||
this.isSubmit = false;
|
||||
if (res.success) {
|
||||
this.drawerModal = false;
|
||||
this.$message.success("调整成功");
|
||||
@@ -452,7 +451,10 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message);
|
||||
}
|
||||
});
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false;
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
processNum(row) {
|
||||
|
||||
@@ -234,7 +234,6 @@
|
||||
show-transfer
|
||||
show-submit
|
||||
show-back
|
||||
:transfer-loading="isTransfer"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
@@ -368,6 +367,7 @@ export default {
|
||||
this.$message.warning('请填写审批意见')
|
||||
}else{
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true;
|
||||
this.qbfsForm.commentText = this.commentText;
|
||||
this.qbfsForm.sdFlag = '1'
|
||||
this.qbfsForm.dataList = this.dataList;
|
||||
@@ -384,6 +384,7 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false;
|
||||
}, e => {
|
||||
});
|
||||
}
|
||||
@@ -393,6 +394,7 @@ export default {
|
||||
this.$refs['qbfsForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true;
|
||||
this.qbfsForm.commentText = this.commentText;
|
||||
this.qbfsForm.sdFlag = '0'
|
||||
this.qbfsForm.dataList = this.dataList;
|
||||
@@ -409,6 +411,7 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false;
|
||||
}, e => {
|
||||
});
|
||||
}else{
|
||||
@@ -433,6 +436,7 @@ export default {
|
||||
checkedRole(data) {
|
||||
this.isTransfer = true;
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true;
|
||||
this.assigneeNewLoading = true;
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
@@ -450,6 +454,9 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message);
|
||||
}
|
||||
}).finally(() => {
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false;
|
||||
});
|
||||
},
|
||||
// 请求转换流程图
|
||||
|
||||
@@ -234,7 +234,6 @@
|
||||
show-transfer
|
||||
show-submit
|
||||
show-back
|
||||
:transfer-loading="isTransfer"
|
||||
:submitLoading="isSubmit"
|
||||
:saveLoading="saveLoading"
|
||||
:isSubmitBack="isSubmit"
|
||||
@@ -368,6 +367,7 @@ export default {
|
||||
this.$message.warning('请填写审批意见')
|
||||
}else{
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true;
|
||||
this.qbfsForm.commentText = this.commentText;
|
||||
this.qbfsForm.bafzFlag = '1'
|
||||
this.qbfsForm.dataList = this.dataList;
|
||||
@@ -384,6 +384,7 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false;
|
||||
}, e => {
|
||||
});
|
||||
}
|
||||
@@ -393,6 +394,7 @@ export default {
|
||||
this.$refs['qbfsForm'].validate((valid) => {
|
||||
if (valid) {
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true;
|
||||
this.qbfsForm.commentText = this.commentText;
|
||||
this.qbfsForm.bafzFlag = '0'
|
||||
this.qbfsForm.dataList = this.dataList;
|
||||
@@ -404,9 +406,14 @@ export default {
|
||||
this.$http._getData('lawss/sarBussionessStand/repeal',params,{}).then(res => {
|
||||
if(res && res.ok){
|
||||
this.completeTask(json)
|
||||
} else {
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false;
|
||||
}
|
||||
}).catch(e=>{
|
||||
console.log(e)
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false;
|
||||
})
|
||||
}else{
|
||||
this.$message.warning('请完善基础信息')
|
||||
@@ -426,6 +433,7 @@ export default {
|
||||
this.$router.push("/processCenter");
|
||||
}
|
||||
this.isSubmit = false;
|
||||
this.saveLoading = false;
|
||||
}, e => {
|
||||
});
|
||||
},
|
||||
@@ -445,6 +453,7 @@ export default {
|
||||
checkedRole(data) {
|
||||
this.isTransfer = true;
|
||||
this.isSubmit = true;
|
||||
this.saveLoading = true;
|
||||
this.assigneeNewLoading = true;
|
||||
changeAssigneeNew({
|
||||
taskId: this.$route.query.taskIds, // 任务id
|
||||
@@ -462,7 +471,10 @@ export default {
|
||||
} else {
|
||||
this.$message.warning(res.message);
|
||||
}
|
||||
});
|
||||
}).finally(()=>{
|
||||
this.saveLoading = false;
|
||||
this.isSubmit = false;
|
||||
})
|
||||
},
|
||||
// 请求转换流程图
|
||||
processNum(row) {
|
||||
|
||||
@@ -974,6 +974,11 @@
|
||||
},
|
||||
deep: true //对象的深度验证
|
||||
},
|
||||
'form.standNum': {
|
||||
handler: function(val){
|
||||
this.$emit('standNumChange',val)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -953,32 +953,41 @@
|
||||
type="index"
|
||||
label="序号"
|
||||
width="80"
|
||||
align="center"
|
||||
></el-table-column>
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span :style="{color: scope.row.standStatusShow === '作废'? '#F56C6C': '#333'}">{{ scope.$index + 1 }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="企标标准号"
|
||||
align="center"
|
||||
>
|
||||
<template slot-scope="scope">
|
||||
<a @click="handlePreview(scope.row)">{{ scope.row.standCode }}</a>
|
||||
<a :style="{color: scope.row.standStatusShow === '作废'? '#F56C6C': '#333'}" @click="handlePreview(scope.row)">{{ scope.row.standCode }}</a>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standName"
|
||||
label="中文名称"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span :style="{color: scope.row.standStatusShow === '作废'? '#F56C6C': '#333'}">{{ scope.row.standName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="standEnName"
|
||||
label="英文名称"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span :style="{color: scope.row.standStatusShow === '作废'? '#F56C6C': '#333'}">{{ scope.row.standEnName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="textStatus"
|
||||
label="文本状态"
|
||||
align="center">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ scope.row.standStatusShow }}</span>
|
||||
<span :style="{color: scope.row.standStatusShow === '作废'? '#F56C6C': '#333'}">{{ scope.row.standStatusShow }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" width="80">
|
||||
@@ -2097,6 +2106,9 @@
|
||||
_this: this
|
||||
}, res => {
|
||||
if(res && res.data){
|
||||
if (res.data.textStatusBussShow === '作废') {
|
||||
this.$message.error('本版本已作废')
|
||||
}
|
||||
const bringData = res.data
|
||||
this.FBGBUSSFileList=[]
|
||||
this.BZSMBUSSFileList=[]
|
||||
@@ -2984,6 +2996,7 @@
|
||||
// }
|
||||
|
||||
this.saveLoading = true
|
||||
this.isSubmit = true
|
||||
let _formData = new FormData()
|
||||
this.fileInfoHandle()
|
||||
_formData.append('id', this.bpnId || '')
|
||||
@@ -2998,11 +3011,11 @@
|
||||
commentText: this.commentText
|
||||
}))
|
||||
saveTaskFirst(_formData).then(res => {
|
||||
this.saveLoading = false
|
||||
this.$message.success('保存成功')
|
||||
this.bpnId = res.result
|
||||
}).catch(e => {
|
||||
}).finally(() => {
|
||||
this.saveLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
},
|
||||
fileInfoHandle(){
|
||||
@@ -3150,8 +3163,6 @@
|
||||
}, res => {
|
||||
if (res.ok) {
|
||||
if (res.data === '操作成功') {
|
||||
this.submitLoading = false
|
||||
this.isSubmit = false
|
||||
if (this.$route.query.bpnId && this.$route.query.bpnId !== '') {
|
||||
let taskId = {
|
||||
id: this.$route.query.bpnId
|
||||
@@ -3166,7 +3177,12 @@
|
||||
} else {
|
||||
this.$message.warning(res.data)
|
||||
}
|
||||
this.submitLoading = false
|
||||
this.isSubmit = false
|
||||
})
|
||||
} else {
|
||||
this.submitLoading = false
|
||||
this.isSubmit = false
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user