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:
高嵩
2023-11-13 06:17:25 +00:00
247 changed files with 6468 additions and 817 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

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