feat: There is no way the oa add endTime

This commit is contained in:
super_liu
2021-10-13 17:57:48 +08:00
parent 15a6f6c9a9
commit 8d60c72e84
11 changed files with 243 additions and 19 deletions
@@ -84,6 +84,7 @@
<div v-else> <div v-else>
<el-button <el-button
type="primary" type="primary"
:disabled="acceptShow"
class="common-button-primary" class="common-button-primary"
@click="fileUpload" @click="fileUpload"
size="mini"> size="mini">
@@ -94,6 +95,7 @@
<el-form-item label="回执说明" prop="dyhz" class="add-form-item form-item-disabled"> <el-form-item label="回执说明" prop="dyhz" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="form.dyhz" v-model="form.dyhz"
:disabled="acceptShow"
style="height: 150px" style="height: 150px"
type="textarea" type="textarea"
:autosize="{ minRows: 1, maxRows: 5}" :autosize="{ minRows: 1, maxRows: 5}"
@@ -185,10 +187,13 @@
show-submit show-submit
:submitLoading="isSubmit" :submitLoading="isSubmit"
:saveLoading="saveLoading" :saveLoading="saveLoading"
:show-submit="submitShow"
:show-confirm="acceptShow"
show-transfer show-transfer
@transfer="handleTransfer" @transfer="handleTransfer"
@save="handleSave" @save="handleSave"
@submit="handleSubmit" @submit="handleSubmit"
@accept="handleAccept"
> >
</ProcessFooter> </ProcessFooter>
<Role-tree <Role-tree
@@ -223,7 +228,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 {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew} from 'api/process' import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew,execTask} from 'api/process'
import axios from "axios"; import axios from "axios";
export default { export default {
@@ -239,6 +244,9 @@
active: '1', // 默认显示 active: '1', // 默认显示
isSubmit: false, isSubmit: false,
saveLoading: false, saveLoading: false,
submitShow: false,
acceptShow: false,
todoId: '',
form: { form: {
dyhz: '', dyhz: '',
title: '', // 调研标题 title: '', // 调研标题
@@ -374,6 +382,19 @@
this.saveLoading = false this.saveLoading = false
}) })
}, },
// 接受按钮
handleAccept(){
this.isSubmit = true
execTask({
todoId: this.todoId // 当前节点ID
}).then(res => {
if (res.sign && res.sign === '0') {
this.$message.success('接收成功')
this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmit() { handleSubmit() {
this.$refs['qbkwForm'].validate((valid) => { this.$refs['qbkwForm'].validate((valid) => {
if (valid) { if (valid) {
@@ -406,6 +427,15 @@
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
let data = JSON.parse(res.mesg) let data = JSON.parse(res.mesg)
let commitStatus = res.commitStatus
if(commitStatus && commitStatus > 0){
this.acceptShow = true
this.submitShow = false
}else {
this.acceptShow = false
this.submitShow = true
}
this.todoId = res.id
this.form.title = data.title || data.form.title this.form.title = data.title || data.form.title
this.form.date = data.date || data.form.date this.form.date = data.date || data.form.date
this.json = data || data.form this.json = data || data.form
@@ -73,6 +73,14 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="截止日期" prop="endTime" class="add-form-item form-item-disabled">
<el-date-picker
v-model="form.endTime"
type="date"
placeholder="请选择截止日期"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -471,6 +479,7 @@ export default {
id: '', id: '',
itemsNum: '', itemsNum: '',
itemsName: '', itemsName: '',
endTime: '',
standId: '', standId: '',
statusId: '', statusId: '',
itemsNum1: '', itemsNum1: '',
@@ -484,6 +493,9 @@ export default {
itemsName: [ itemsName: [
{required: true, message: '请输入标准名称/政策名称', trigger: 'change'}, {required: true, message: '请输入标准名称/政策名称', trigger: 'change'},
], ],
endTime: [
{required: true, message: '请输入截止时间', trigger: 'change'},
],
}, },
// 标准征求意见数据可库 // 标准征求意见数据可库
standCommonlySearch: { standCommonlySearch: {
@@ -128,7 +128,7 @@
<template slot="title">拆分信息</template> <template slot="title">拆分信息</template>
</ProcessTitle> </ProcessTitle>
<div class="action-bar"> <div class="action-bar">
<el-button type="primary" class="common-button-primary add-button" size="mini" @click="choiceZRR">批量编辑</el-button> <el-button type="primary" :disabled="acceptShow" class="common-button-primary add-button" size="mini" @click="choiceZRR">批量编辑</el-button>
</div> </div>
<el-table border <el-table border
ref="selection" ref="selection"
@@ -177,6 +177,7 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
:disabled="acceptShow"
prop="changePoint" prop="changePoint"
width="150" width="150"
v-if="form.itemsNum1" v-if="form.itemsNum1"
@@ -184,7 +185,7 @@
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="el-input"> <div class="el-input">
<input class="el-input__inner" type="text" v-model.lazy="scope.row.changePoint" placeholder="请输入基于上一版本差异" maxlength="500"> <input :disabled="acceptShow" class="el-input__inner" type="text" v-model.lazy="scope.row.changePoint" placeholder="请输入基于上一版本差异" maxlength="500">
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@@ -196,7 +197,7 @@
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="el-input"> <div class="el-input">
<input class="el-input__inner" type="text" v-model.lazy="scope.row.changePoint" placeholder="请输入相对于国行标差异点" maxlength="500" > <input :disabled="acceptShow" class="el-input__inner" type="text" v-model.lazy="scope.row.changePoint" placeholder="请输入相对于国行标差异点" maxlength="500" >
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@@ -206,7 +207,7 @@
label="符合项状态" label="符合项状态"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<My-select v-model="scope.row.complianceRequir" :options="fhList"></My-select> <My-select :disabled="acceptShow" v-model="scope.row.complianceRequir" :options="fhList"></My-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -216,7 +217,7 @@
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="el-input"> <div class="el-input">
<input class="el-input__inner" type="text" v-model.lazy="scope.row.complianceState" placeholder="请输入合规性分析" maxlength="500"> <input :disabled="acceptShow" class="el-input__inner" type="text" v-model.lazy="scope.row.complianceState" placeholder="请输入合规性分析" maxlength="500">
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@@ -227,6 +228,7 @@
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-date-picker <el-date-picker
:disabled="acceptShow"
v-model.lazy="scope.row.newData" v-model.lazy="scope.row.newData"
type="date" type="date"
placeholder="选择新车型实施日期"> placeholder="选择新车型实施日期">
@@ -240,6 +242,7 @@
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-date-picker <el-date-picker
:disabled="acceptShow"
v-model.lazy="scope.row.onlineData" v-model.lazy="scope.row.onlineData"
type="date" type="date"
placeholder="选择新车型实施日期"> placeholder="选择新车型实施日期">
@@ -252,7 +255,7 @@
label="适用车型" label="适用车型"
align="center"> align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<My-select v-model="scope.row.applyArctic" :options="cxList"></My-select> <My-select :disabled="acceptShow" v-model="scope.row.applyArctic" :options="cxList"></My-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
@@ -342,14 +345,17 @@
</el-table> </el-table>
</div> </div>
<ProcessFooter <ProcessFooter
show-save :show-save="submitShow"
show-submit show-submit
:show-submit="submitShow"
:show-confirm="acceptShow"
:submitLoading="isSubmit" :submitLoading="isSubmit"
:saveLoading="saveLoading" :saveLoading="saveLoading"
show-transfer :show-transfer="submitShow"
@transfer="handleTransfer" @transfer="handleTransfer"
@save="handleSave" @save="handleSave"
@submit="handleSubmit" @submit="handleSubmit"
@accept="handleAccept"
> >
</ProcessFooter> </ProcessFooter>
<Role-tree <Role-tree
@@ -444,7 +450,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 {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew} from 'api/process' import {inboundLiaisonDetail,processCreateStand,saveTaskForPub,changeAssigneeNew,execTask} from 'api/process'
import axios from "axios"; import axios from "axios";
export default { export default {
@@ -488,6 +494,9 @@
active: '1', // 默认显示 active: '1', // 默认显示
isSubmit: false, isSubmit: false,
saveLoading: false, saveLoading: false,
submitShow: false,
acceptShow: false,
todoId: '',
form: { form: {
itemsNum: '', itemsNum: '',
itemsName: '', itemsName: '',
@@ -614,6 +623,19 @@
this.saveLoading = false this.saveLoading = false
}) })
}, },
// 接受按钮
handleAccept(){
this.isSubmit = true
execTask({
todoId: this.todoId // 当前节点ID
}).then(res => {
if (res.sign && res.sign === '0') {
this.$message.success('接收成功')
this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
handleSubmit() { handleSubmit() {
this.$refs['bzzqyjForm'].validate((valid) => { this.$refs['bzzqyjForm'].validate((valid) => {
if (valid) { if (valid) {
@@ -691,6 +713,15 @@
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
let data = JSON.parse(res.mesg) let data = JSON.parse(res.mesg)
let commitStatus = res.commitStatus
if(commitStatus && commitStatus > 0){
this.acceptShow = true
this.submitShow = false
}else {
this.acceptShow = false
this.submitShow = true
}
this.todoId = res.id
this.form.itemsNum = data.itemsNum || data.form.itemsNum this.form.itemsNum = data.itemsNum || data.form.itemsNum
this.form.itemsName = data.itemsName || data.form.itemsName this.form.itemsName = data.itemsName || data.form.itemsName
if (data.form) { if (data.form) {
@@ -222,10 +222,11 @@
:show-confirm="acceptShow" :show-confirm="acceptShow"
:submitLoading="isSubmit" :submitLoading="isSubmit"
:saveLoading="saveLoading" :saveLoading="saveLoading"
:show-save="submitShow"
:show-transfer="submitShow"
@save="handleSave" @save="handleSave"
@submit="handleSubmit" @submit="handleSubmit"
@accept="handleAccept" @accept="handleAccept"
show-transfer
@transfer="handleTransfer" @transfer="handleTransfer"
> >
</ProcessFooter> </ProcessFooter>
@@ -110,6 +110,7 @@
<el-table-column label="佐证材料" align="center" width="150"> <el-table-column label="佐证材料" align="center" width="150">
<template slot-scope="scope"> <template slot-scope="scope">
<el-upload <el-upload
:disabled="acceptShow"
multiple multiple
ref="uploadFile" ref="uploadFile"
:action="uploadPath" :action="uploadPath"
@@ -122,6 +123,7 @@
:on-success="handleOnsuccess" :on-success="handleOnsuccess"
> >
<el-button <el-button
:disabled="acceptShow"
type="primary" type="primary"
class="common-button-primary" class="common-button-primary"
@click="uploadFile(scope.row)" @click="uploadFile(scope.row)"
@@ -218,12 +220,15 @@
show-save show-save
show-submit show-submit
show-transfer show-transfer
:show-submit="submitShow"
:show-confirm="acceptShow"
:submitLoading="isSubmit" :submitLoading="isSubmit"
:saveLoading="saveLoading" :saveLoading="saveLoading"
:transferLoading="turnLoading" :transferLoading="turnLoading"
@transfer="handleTurnTo" @transfer="handleTurnTo"
@save="handleSave" @save="handleSave"
@submit="handleSubmit" @submit="handleSubmit"
@accept="handleAccept"
> >
</ProcessFooter> </ProcessFooter>
<Role-tree <Role-tree
@@ -240,7 +245,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 {inboundLiaisonDetail, completeTask, saveTaskForPub, changeAssigneeNew} from "@/api/process" import {inboundLiaisonDetail, completeTask, saveTaskForPub, changeAssigneeNew,execTask} from "@/api/process"
export default { export default {
name: "wfhxzgStep4", name: "wfhxzgStep4",
@@ -262,6 +267,9 @@ export default {
active: '1', // 默认显示 active: '1', // 默认显示
isSubmit: false, isSubmit: false,
saveLoading: false, saveLoading: false,
submitShow: false,
acceptShow: false,
todoId: '',
turnLoading: false, turnLoading: false,
dataList: [], dataList: [],
taskIds: this.$route.query.taskIds, taskIds: this.$route.query.taskIds,
@@ -316,6 +324,15 @@ export default {
} }
inboundLiaisonDetail(params).then(res => { inboundLiaisonDetail(params).then(res => {
const processForm = JSON.parse(res.mesg) const processForm = JSON.parse(res.mesg)
let commitStatus = res.commitStatus
if(commitStatus && commitStatus > 0){
this.acceptShow = true
this.submitShow = false
}else {
this.acceptShow = false
this.submitShow = true
}
this.todoId = res.id
this.getFormFieldList(processForm) this.getFormFieldList(processForm)
}) })
}, },
@@ -481,6 +498,19 @@ export default {
this.saveLoading = false this.saveLoading = false
}) })
}, },
// 接受按钮
handleAccept(){
this.isSubmit = true
execTask({
todoId: this.todoId // 当前节点ID
}).then(res => {
if (res.sign && res.sign === '0') {
this.$message.success('接收成功')
this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
// 提交按钮 // 提交按钮
handleSubmit() { handleSubmit() {
this.isSubmit = true this.isSubmit = true
@@ -61,6 +61,14 @@
placeholder="请输入标准名称" placeholder="请输入标准名称"
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="截止日期" prop="endTime" class="add-form-item form-item-disabled">
<el-date-picker
v-model="listForm.endTime"
type="date"
placeholder="请选择截止日期"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
<el-form-item label="认证工程师" prop="certifiedEngineerName" class="add-form-item form-item-disabled"> <el-form-item label="认证工程师" prop="certifiedEngineerName" class="add-form-item form-item-disabled">
<el-input <el-input
v-model="listForm.certifiedEngineerName" v-model="listForm.certifiedEngineerName"
@@ -521,6 +529,9 @@ export default {
standNumber: [ standNumber: [
{ required: true, message: "请填写标准编号", trigger: "change" } { required: true, message: "请填写标准编号", trigger: "change" }
], ],
endTime: [
{required: true, message: '请输入截止时间', trigger: 'change'},
],
qualityEngineer: [ qualityEngineer: [
{ required: true, message: "请选择质量工程师", trigger: "change" } { required: true, message: "请选择质量工程师", trigger: "change" }
], ],
@@ -554,6 +565,7 @@ export default {
listForm: { listForm: {
standNumber: "", //标准编号 standNumber: "", //标准编号
standName: "",//标准名称 standName: "",//标准名称
endTime:'',
standType: "", //标准类型 standType: "", //标准类型
XCXSSRQ: "", //新车型实施日期 XCXSSRQ: "", //新车型实施日期
ZCCSSRQ: "", //在产车实施日期 ZCCSSRQ: "", //在产车实施日期
@@ -493,15 +493,18 @@
</div> </div>
<ProcessFooter <ProcessFooter
show-save :show-save="submitShow"
show-transfer :show-transfer="submitShow"
show-submit show-submit
:show-submit="submitShow"
:show-confirm="acceptShow"
:submitLoading="isSubmit" :submitLoading="isSubmit"
:transfer-loading="isTransfer" :transfer-loading="isTransfer"
:saveLoading="saveLoading" :saveLoading="saveLoading"
@save="handleSave" @save="handleSave"
@transfer="handleTransfer" @transfer="handleTransfer"
@submit="handleSubmit" @submit="handleSubmit"
@accept="handleAccept"
> >
</ProcessFooter> </ProcessFooter>
<!-- 福田全公司选人解决方案 --> <!-- 福田全公司选人解决方案 -->
@@ -520,7 +523,7 @@ 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 Moment from 'moment'; import Moment from 'moment';
import { inboundLiaisonDetail, saveTaskForPub ,changeAssigneeNew } from "api/process"; import { inboundLiaisonDetail, saveTaskForPub ,changeAssigneeNew,execTask } from "api/process";
export default { export default {
name: "xmpgStep4", name: "xmpgStep4",
@@ -551,6 +554,9 @@ export default {
listType: "country", //选择的清单类型 listType: "country", //选择的清单类型
isSubmit: false, isSubmit: false,
saveLoading: false, saveLoading: false,
submitShow: false,
acceptShow: false,
todoId: '',
tabValue: "listOfCountries", tabValue: "listOfCountries",
selectedList: [], //选择清单的选择框 selectedList: [], //选择清单的选择框
selectList: [], //选择标准的选择框 selectList: [], //选择标准的选择框
@@ -689,6 +695,15 @@ export default {
}).then(res => { }).then(res => {
if (res) { if (res) {
const processForm = JSON.parse(res.mesg); const processForm = JSON.parse(res.mesg);
let commitStatus = res.commitStatus
if(commitStatus && commitStatus > 0){
this.acceptShow = true
this.submitShow = false
}else {
this.acceptShow = false
this.submitShow = true
}
this.todoId = res.id
this.getFormFieldList(processForm); this.getFormFieldList(processForm);
} }
}).catch(e => { }).catch(e => {
@@ -758,6 +773,19 @@ export default {
this.saveLoading = false; this.saveLoading = false;
}); });
}, },
// 接受按钮
handleAccept(){
this.isSubmit = true
execTask({
todoId: this.todoId // 当前节点ID
}).then(res => {
if (res.sign && res.sign === '0') {
this.$message.success('接收成功')
this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
this.listForm.prcCreateUser = this.$store.getters.userInfo.userId; this.listForm.prcCreateUser = this.$store.getters.userInfo.userId;
@@ -42,6 +42,14 @@
clearable clearable
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-form-item label="截止日期" prop="endTime" class="add-form-item form-item-disabled">
<el-date-picker
v-model="listForm.endTime"
type="date"
placeholder="请选择截止日期"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
@@ -374,6 +382,7 @@ export default {
listForm: { listForm: {
projectNumber: "", //项目编号 projectNumber: "", //项目编号
projectName: "", //项目名称 projectName: "", //项目名称
endTime: '',
dataList: [], //项目下的标准数据 dataList: [], //项目下的标准数据
breakdownList: [] //标准下的分解单数据 breakdownList: [] //标准下的分解单数据
}, },
@@ -386,7 +395,10 @@ export default {
], ],
projectName: [ projectName: [
{ required: true, message: "请填写项目名称", trigger: "change" } { required: true, message: "请填写项目名称", trigger: "change" }
] ],
endTime: [
{required: true, message: '请输入截止时间', trigger: 'change'},
],
}, },
//选人的验证 //选人的验证
roleFormRules: { roleFormRules: {
@@ -425,12 +425,15 @@
show-save show-save
show-submit show-submit
show-transfer show-transfer
:show-submit="submitShow"
:show-confirm="acceptShow"
:submitLoading="isSubmit" :submitLoading="isSubmit"
:transfer-loading="isTransfer" :transfer-loading="isTransfer"
:saveLoading="saveLoading" :saveLoading="saveLoading"
@save="handleSave" @save="handleSave"
@transfer="handleTransfer" @transfer="handleTransfer"
@submit="handleSubmit" @submit="handleSubmit"
@accept="handleAccept"
> >
</ProcessFooter> </ProcessFooter>
<!-- 福田全公司选人解决方案 --> <!-- 福田全公司选人解决方案 -->
@@ -518,7 +521,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 {inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew} from "api/process"; import {inboundLiaisonDetail, saveTaskForPub, changeAssigneeNew, execTask} from "api/process";
export default { export default {
name: "xmpg2Step6", name: "xmpg2Step6",
@@ -564,6 +567,9 @@ export default {
processType: 1, processType: 1,
isSubmit: false, isSubmit: false,
saveLoading: false, saveLoading: false,
submitShow: false,
acceptShow: false,
todoId: '',
showColumn: true, showColumn: true,
drawerTitle: "", //drawer标题 drawerTitle: "", //drawer标题
modalshowflag: false, // drawer开关 modalshowflag: false, // drawer开关
@@ -785,6 +791,15 @@ export default {
}).then(res => { }).then(res => {
if (res) { if (res) {
const processForm = JSON.parse(res.mesg); const processForm = JSON.parse(res.mesg);
let commitStatus = res.commitStatus
if(commitStatus && commitStatus > 0){
this.acceptShow = true
this.submitShow = false
}else {
this.acceptShow = false
this.submitShow = true
}
this.todoId = res.id
this.getFormFieldList(processForm); this.getFormFieldList(processForm);
} }
}).catch(e => { }).catch(e => {
@@ -840,6 +855,19 @@ export default {
this.saveLoading = false; this.saveLoading = false;
}); });
}, },
// 接受按钮
handleAccept(){
this.isSubmit = true
execTask({
todoId: this.todoId // 当前节点ID
}).then(res => {
if (res.sign && res.sign === '0') {
this.$message.success('接收成功')
this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
//提交事件 //提交事件
handleSubmit() { handleSubmit() {
this.isSubmit = true; this.isSubmit = true;
@@ -57,6 +57,14 @@
></el-input> ></el-input>
</el-form-item> </el-form-item>
<el-button size="mini" type="primary" style="margin-top: 1%;" @click="choiceList">选择清单</el-button> <el-button size="mini" type="primary" style="margin-top: 1%;" @click="choiceList">选择清单</el-button>
<el-form-item label="截止日期" prop="endTime" class="add-form-item form-item-disabled">
<el-date-picker
v-model="qdform.endTime"
type="date"
placeholder="请选择截止日期"
value-format="yyyy-MM-dd">
</el-date-picker>
</el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</div> </div>
@@ -424,7 +432,8 @@ export default {
qdform: { qdform: {
projectNumber: "", projectNumber: "",
projectName: "", projectName: "",
detailedListName: "" detailedListName: "",
endTime:'',
}, },
roleForm: { roleForm: {
startUserName: this.$store.getters.userInfo.userName, startUserName: this.$store.getters.userInfo.userName,
@@ -444,7 +453,10 @@ export default {
], ],
detailedListName: [ detailedListName: [
{ required: true, message: "请输入清单名称", trigger: "change" } { required: true, message: "请输入清单名称", trigger: "change" }
] ],
endTime: [
{required: true, message: '请输入截止时间', trigger: 'change'},
],
}, },
// 角色验证 // 角色验证
roleFormRules: { roleFormRules: {
@@ -385,12 +385,15 @@
show-save show-save
show-transfer show-transfer
show-confirm show-confirm
:show-submit="submitShow"
:show-confirm="acceptShow"
:submitLoading="isSubmit" :submitLoading="isSubmit"
:transfer-loading="isTransfer" :transfer-loading="isTransfer"
:saveLoading="saveLoading" :saveLoading="saveLoading"
@submit="handleSubmit" @submit="handleSubmit"
@transfer="handleTransfer" @transfer="handleTransfer"
@save="handleSave" @save="handleSave"
@accept="handleAccept"
:approval="true" :approval="true"
> >
</ProcessFooter> </ProcessFooter>
@@ -431,6 +434,9 @@ export default {
processType: 1, processType: 1,
isSubmit: false, isSubmit: false,
saveLoading: false, saveLoading: false,
submitShow: false,
acceptShow: false,
todoId: '',
projectId: "", projectId: "",
detailedId: "", detailedId: "",
standModel: false, standModel: false,
@@ -568,6 +574,15 @@ export default {
}).then(res => { }).then(res => {
if (res) { if (res) {
const processForm = JSON.parse(res.mesg); const processForm = JSON.parse(res.mesg);
let commitStatus = res.commitStatus
if(commitStatus && commitStatus > 0){
this.acceptShow = true
this.submitShow = false
}else {
this.acceptShow = false
this.submitShow = true
}
this.todoId = res.id
this.getFormFieldList(processForm); this.getFormFieldList(processForm);
} }
}).catch(e => { }).catch(e => {
@@ -617,6 +632,19 @@ export default {
// }); // });
// }); // });
// }, // },
// 接受按钮
handleAccept(){
this.isSubmit = true
execTask({
todoId: this.todoId // 当前节点ID
}).then(res => {
if (res.sign && res.sign === '0') {
this.$message.success('接收成功')
this.$router.push('/processCenter')
}
this.isSubmit = false
})
},
//保存事件 //保存事件
handleSave() { handleSave() {
this.saveLoading = true; this.saveLoading = true;