修改流程

This commit is contained in:
zyx.net
2022-11-18 15:20:53 +08:00
parent 8c8947f230
commit 06b3fa934d
8 changed files with 172 additions and 149 deletions
@@ -893,14 +893,14 @@
<!-- <el-option label="未制定" value="2"></el-option>--> <!-- <el-option label="未制定" value="2"></el-option>-->
<!-- </el-select>--> <!-- </el-select>-->
<!-- </el-form-item>--> <!-- </el-form-item>-->
<el-form-item v-if="this.form.reviseStatus === '1' || this.form.reviseStatus === '2'" label="企标名称" style="margin-right:20px" prop="esName" class="search-item" > <el-form-item v-if="this.form.reviseStatus != '3'" label="企标名称" style="margin-right:20px" prop="esName" class="search-item" >
<el-input :disabled="disabledXX" <el-input :disabled="disabledXX"
v-model="standardSearchForm.esName" v-model="standardSearchForm.esName"
placeholder="请输入企标名称" placeholder="请输入企标名称"
clearable clearable
:maxlength="100"></el-input> :maxlength="100"></el-input>
</el-form-item> </el-form-item>
<el-form-item v-if="this.form.reviseStatus === '1' || this.form.reviseStatus === '2'" label="起草责任单位" style="margin-right:20px" prop="unit" class="search-item" > <el-form-item v-if="this.form.reviseStatus != '3'" label="起草责任单位" style="margin-right:20px" prop="unit" class="search-item" >
<el-input :disabled="disabledXX" <el-input :disabled="disabledXX"
style="width:176px" style="width:176px"
v-model="standardSearchForm.unit" v-model="standardSearchForm.unit"
@@ -972,87 +972,6 @@
width="80" width="80"
align="center" align="center"
></el-table-column> ></el-table-column>
<el-table-column
v-if="this.form.reviseStatus === '1' || this.form.reviseStatus === '2'"
prop="bussSort"
label="企标类别"
align="center"
width="120">
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus === '1' || this.form.reviseStatus === '2'"
prop="esName"
label="企标名称"
align="center"
width="120">
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus === '1' || this.form.reviseStatus === '2'"
prop="planStatus"
label="计划状态"
align="center"
width="150">
<template slot-scope="scope">
<div>{{ getMap1(scope.row.planStatus)}}</div>
</template>
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus === '1' || this.form.reviseStatus === '2'"
prop="reviseStatus"
width="150"
align="center"
label="制修订状态">
<template slot-scope="scope">
<div>{{ scope.row.reviseStatus === ''? '' : (scope.row.reviseStatus === '1'? '制定' : '修订') }}</div>
</template>
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus === '1' || this.form.reviseStatus === '2'"
prop="drafterName"
width="120"
align="center"
label="起草人">
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus === '1' || this.form.reviseStatus === '2'"
prop="resPersonName"
width="120"
align="center"
label="评审责任人">
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus === '1' || this.form.reviseStatus === '2'"
prop="wgLeaderName"
width="120"
align="center"
label="工作组组长">
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus === '1' || this.form.reviseStatus === '2'"
prop="draftTime"
width="200"
align="center"
label="计划标准初稿完成时间">
<template slot-scope="scope">
<span>{{ scope.row.draftTime ? $moment(scope.row.draftTime).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus === '1' || this.form.reviseStatus === '2'"
width="200"
prop="releaseTime"
align="center"
label="计划标准发布时间">
<template slot-scope="scope">
<span>{{ scope.row.releaseTime ? $moment(scope.row.releaseTime).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus === '1' || this.form.reviseStatus === '2'"
align="center"
prop="unitName"
label="起草责任单位">
</el-table-column>
<el-table-column <el-table-column
v-if="this.form.reviseStatus === '3'" v-if="this.form.reviseStatus === '3'"
align="center" align="center"
@@ -1089,6 +1008,88 @@
prop="putTime" prop="putTime"
label="实施日期"> label="实施日期">
</el-table-column> </el-table-column>
<el-table-column
v-if="this.form.reviseStatus != '3'"
prop="bussSort"
label="企标类别"
align="center"
width="120">
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus != '3'"
prop="esName"
label="企标名称"
align="center"
width="120">
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus != '3'"
prop="planStatus"
label="计划状态"
align="center"
width="150">
<template slot-scope="scope">
<div>{{ getMap1(scope.row.planStatus)}}</div>
</template>
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus != '3'"
prop="reviseStatus"
width="150"
align="center"
label="制修订状态">
<template slot-scope="scope">
<div>{{ scope.row.reviseStatus === ''? '' : (scope.row.reviseStatus === '1'? '制定' : '修订') }}</div>
</template>
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus != '3'"
prop="drafterName"
width="120"
align="center"
label="起草人">
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus != '3'"
prop="resPersonName"
width="120"
align="center"
label="评审责任人">
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus != '3'"
prop="wgLeaderName"
width="120"
align="center"
label="工作组组长">
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus != '3'"
prop="draftTime"
width="200"
align="center"
label="计划标准初稿完成时间">
<template slot-scope="scope">
<span>{{ scope.row.draftTime ? $moment(scope.row.draftTime).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus != '3'"
width="200"
prop="releaseTime"
align="center"
label="计划标准发布时间">
<template slot-scope="scope">
<span>{{ scope.row.releaseTime ? $moment(scope.row.releaseTime).format("YYYY-MM-DD") : "" }}</span>
</template>
</el-table-column>
<el-table-column
v-if="this.form.reviseStatus != '3'"
align="center"
prop="unitName"
label="起草责任单位">
</el-table-column>
<!-- <el-table-column--> <!-- <el-table-column-->
<!-- v-if="this.form.reviseStatus === '3'"--> <!-- v-if="this.form.reviseStatus === '3'"-->
<!-- align="center"--> <!-- align="center"-->
@@ -1204,7 +1205,7 @@
import ProcessHeader from '../../components/ProcessHeader' import ProcessHeader from '../../components/ProcessHeader'
import ProcessFooter from '../../components/ProcessFooter' import ProcessFooter from '../../components/ProcessFooter'
import ProcessTitle from '../../components/ProcessTitle' import ProcessTitle from '../../components/ProcessTitle'
import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,taskDel} from "api/process"; import {saveTaskFirst, queryTaskFirst, getBusStandFileByAttId,taskDel,inboundLiaisonDetail} from "api/process";
import TreeSelect from '@/components/treeSelect/treeSelect.vue'; import TreeSelect from '@/components/treeSelect/treeSelect.vue';
import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue'; import TreeSelectNew from '@/components/treeSelect/treeSelectNew.vue';
import treeSelectModule from "@/components/treeSelect/treeSelectModule.vue"; import treeSelectModule from "@/components/treeSelect/treeSelectModule.vue";
@@ -2273,9 +2274,6 @@ export default {
} }
}, },
handleSearchStandard () { handleSearchStandard () {
if(!this.form.reviseStatus){
this.$message.warning('请先选择制修订类型')
}else {
this.tableData.standardData = [] this.tableData.standardData = []
this.standardDrawer = true this.standardDrawer = true
this.$nextTick(() => { this.$nextTick(() => {
@@ -2286,7 +2284,6 @@ export default {
} }
}) })
this.getDomesticStandardTable() this.getDomesticStandardTable()
}
}, },
saveUserInfo () { saveUserInfo () {
this.filterText = '' this.filterText = ''
@@ -3088,6 +3085,14 @@ export default {
json.prcCreateUser = this.form.prcCreateUser json.prcCreateUser = this.form.prcCreateUser
json.prcCreateUserName = this.form.prcCreateUserName json.prcCreateUserName = this.form.prcCreateUserName
json.standCode = this.tableData.standardData[0].standCode json.standCode = this.tableData.standardData[0].standCode
this.$http.post('lawss/activiti/completeTask', {
taskIds: res.data,
userId : this.$store.getters.userInfo.userId,
json: JSON.stringify(json)
}, {
_this: this
}, res => {
if (res.success) {
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,
@@ -3139,6 +3144,8 @@ export default {
}) })
} }
}) })
}
})
// this.$http.get('lawss/activiti/startProcess', {type: 'buss1'}, { // this.$http.get('lawss/activiti/startProcess', {type: 'buss1'}, {
// _this: this // _this: this
// }, res => { // }, res => {
@@ -3177,6 +3184,7 @@ export default {
}) })
}, },
}, },
mounted () { mounted () {
this.getTaskId() this.getTaskId()
this.getTree() this.getTree()
@@ -3087,8 +3087,8 @@ export default {
json.applyUpdUserId = this.form.applyUpdUserId json.applyUpdUserId = this.form.applyUpdUserId
json.prcCreateUser = this.form.prcCreateUser json.prcCreateUser = this.form.prcCreateUser
json.prcCreateUserName = this.form.prcCreateUserName json.prcCreateUserName = this.form.prcCreateUserName
json.standCode = this.tableData.standardData[0].standCode json.standCode = this.standardCheckedList[0].standCode
json.id = this.tableData.standardData[0].id json.id = this.standardCheckedList[0].id
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,
@@ -583,9 +583,9 @@ export default {
newReason: [ newReason: [
{required: true, message: '请输入立项原因', trigger: 'blur'}, {required: true, message: '请输入立项原因', trigger: 'blur'},
], ],
LXDName: [ // LXDName: [
{ required: true, validator: validateFsOnlineFile, trigger: 'blur' } // { required: true, validator: validateFsOnlineFile, trigger: 'blur' }
], // ],
}, },
} }
@@ -534,6 +534,7 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true; this.isSubmit = true;
qbzxdFrom.commentText = this.commentText; qbzxdFrom.commentText = this.commentText;
qbzxdFrom.addFlag = '0'
let json = Object.assign(qbzxdFrom, this.roleForm); let json = Object.assign(qbzxdFrom, this.roleForm);
this.$http.post("lawss/activiti/startProcessRollBack", { this.$http.post("lawss/activiti/startProcessRollBack", {
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
@@ -588,6 +589,7 @@ export default {
if (valid) { if (valid) {
this.isSubmit = true; this.isSubmit = true;
qbzxdFrom.commentText = this.commentText; qbzxdFrom.commentText = this.commentText;
qbzxdFrom.addFlag = '0'
var json = Object.assign(qbzxdFrom, this.roleForm); var json = Object.assign(qbzxdFrom, this.roleForm);
this.$http.post("lawss/activiti/completeTask", { this.$http.post("lawss/activiti/completeTask", {
taskIds: this.$route.query.taskIds, taskIds: this.$route.query.taskIds,
@@ -848,6 +848,7 @@ export default {
this.isSubmit = true; this.isSubmit = true;
this.qbfsForm.type = '5' this.qbfsForm.type = '5'
this.qbfsForm.commentText = this.commentText; this.qbfsForm.commentText = this.commentText;
this.qbfsForm.addFlag = '0'
let json = Object.assign(this.qbfsForm, this.roleForm); let json = Object.assign(this.qbfsForm, this.roleForm);
this.$http.post("lawss/activiti/startProcessRollBack", { this.$http.post("lawss/activiti/startProcessRollBack", {
createUser: this.$store.getters.userInfo.userId, createUser: this.$store.getters.userInfo.userId,
@@ -2200,6 +2200,18 @@ export default {
} }
}) })
} }
else if(row.taskInfo === '技术标准起草') {
this.$router.push({
name: 'qbzxdjhgkStep6',
query:{
taskIds: row.taskIds,
prcId: row.prcId,
prcNum: row.prcNum,
prcName: row.prcName,
prcType: row.prcType
}
})
}
break break
} }
}, },
@@ -11,7 +11,7 @@
<el-option label="修订中" value="2"></el-option> <el-option label="修订中" value="2"></el-option>
<el-option label="已取消" value="3"></el-option> <el-option label="已取消" value="3"></el-option>
<el-option label="已完成" value="4"></el-option> <el-option label="已完成" value="4"></el-option>
<el-option label="立项已完成" value="5"></el-option> <!-- <el-option label="立项已完成" value="5"></el-option>-->
<el-option label="计划已确认" value="6"></el-option> <el-option label="计划已确认" value="6"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>