|
|
|
@ -1,6 +1,6 @@ |
|
|
|
<template> |
|
|
|
<template> |
|
|
|
<el-dialog |
|
|
|
<el-dialog |
|
|
|
append-to-body="false" |
|
|
|
:append-to-body="false" |
|
|
|
:title="title" |
|
|
|
:title="title" |
|
|
|
:model-value="openShow" |
|
|
|
:model-value="openShow" |
|
|
|
width="80%" |
|
|
|
width="80%" |
|
|
|
@ -12,15 +12,16 @@ |
|
|
|
<!-- 项目基础信息表单 --> |
|
|
|
<!-- 项目基础信息表单 --> |
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="项目名称" prop="projectName"> |
|
|
|
<el-form-item label="项目名称:" prop="projectName"> |
|
|
|
<el-input :disabled="isDetail" v-model="addForm.projectName"></el-input> |
|
|
|
<el-input :disabled="isDetail" v-model="addForm.projectName"></el-input> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="项目类型" prop="bcId"> |
|
|
|
<el-form-item label="项目类型:" prop="bcId"> |
|
|
|
<el-select :disabled="isDetail" v-model="addForm.bcId" clearable filterable> |
|
|
|
<el-select :disabled="isDetail" v-model="addForm.bcId" clearable filterable> |
|
|
|
<el-option |
|
|
|
<el-option |
|
|
|
v-for="(item, index) in projectType" |
|
|
|
v-for="(item, index) in projectType" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
:label="item.dictValue" |
|
|
|
:label="item.dictValue" |
|
|
|
:value="item.dictKey" |
|
|
|
:value="item.dictKey" |
|
|
|
></el-option> |
|
|
|
></el-option> |
|
|
|
@ -34,10 +35,11 @@ |
|
|
|
v-model="addForm.touchingDeptId" |
|
|
|
v-model="addForm.touchingDeptId" |
|
|
|
clearable |
|
|
|
clearable |
|
|
|
filterable |
|
|
|
filterable |
|
|
|
@change="handleChange('touchingDeptId')" |
|
|
|
@change="deptChange()" |
|
|
|
> |
|
|
|
> |
|
|
|
<el-option |
|
|
|
<el-option |
|
|
|
v-for="(item, index) in deplList" |
|
|
|
v-for="(item, index) in deplList" |
|
|
|
|
|
|
|
:key="index" |
|
|
|
:label="item.deptName" |
|
|
|
:label="item.deptName" |
|
|
|
:value="item.id" |
|
|
|
:value="item.id" |
|
|
|
></el-option> |
|
|
|
></el-option> |
|
|
|
@ -81,24 +83,28 @@ |
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="项目负责人" prop="projectHeadId"> |
|
|
|
<el-form-item label="项目负责人" prop="projectHeadId"> |
|
|
|
<el-select |
|
|
|
<jhSelect |
|
|
|
:disabled="isDetail" |
|
|
|
:value="addForm.projectHeadId" |
|
|
|
v-model="addForm.projectHeadId" |
|
|
|
@input="val => (addForm.projectHeadId = val)" |
|
|
|
clearable |
|
|
|
placeholder="请搜索选择" |
|
|
|
filterable |
|
|
|
api-url="/blade-system/user/page" |
|
|
|
@change="handleChange('projectHeadId')" |
|
|
|
echo-api="/blade-system/user/page" |
|
|
|
> |
|
|
|
echoParamsKey="ids" |
|
|
|
<el-option |
|
|
|
echo-method="get" |
|
|
|
v-for="item in memberList" |
|
|
|
api-method="get" |
|
|
|
:label="item.realName" |
|
|
|
list-key="records" |
|
|
|
:value="item.id" |
|
|
|
total-key="total" |
|
|
|
></el-option> |
|
|
|
label-key="realName" |
|
|
|
</el-select> |
|
|
|
value-key="id" |
|
|
|
|
|
|
|
search-key="id" |
|
|
|
|
|
|
|
:debounce-time="500" |
|
|
|
|
|
|
|
@change="projectHeadChange" |
|
|
|
|
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="成员名称" prop="memberName"> |
|
|
|
<el-form-item label="成员名称" prop="memberName"> |
|
|
|
<el-select |
|
|
|
<!-- <el-select |
|
|
|
:disabled="isDetail" |
|
|
|
:disabled="isDetail" |
|
|
|
v-model="addForm.memberName" |
|
|
|
v-model="addForm.memberName" |
|
|
|
multiple |
|
|
|
multiple |
|
|
|
@ -111,14 +117,30 @@ |
|
|
|
:label="item.realName" |
|
|
|
:label="item.realName" |
|
|
|
:value="item.id" |
|
|
|
:value="item.id" |
|
|
|
></el-option> |
|
|
|
></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> --> |
|
|
|
|
|
|
|
<jhSelect |
|
|
|
|
|
|
|
:value="addForm.memberName" |
|
|
|
|
|
|
|
@input="val => (addForm.memberName = val)" |
|
|
|
|
|
|
|
placeholder="请搜索选择" |
|
|
|
|
|
|
|
api-url="/blade-system/user/page" |
|
|
|
|
|
|
|
echo-api="/blade-system/user/page" |
|
|
|
|
|
|
|
echoParamsKey="ids" |
|
|
|
|
|
|
|
api-method="get" |
|
|
|
|
|
|
|
list-key="records" |
|
|
|
|
|
|
|
total-key="total" |
|
|
|
|
|
|
|
label-key="realName" |
|
|
|
|
|
|
|
value-key="id" |
|
|
|
|
|
|
|
search-key="id" |
|
|
|
|
|
|
|
multiple |
|
|
|
|
|
|
|
:debounce-time="500" |
|
|
|
|
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
</el-row> |
|
|
|
</el-row> |
|
|
|
<el-row> |
|
|
|
<el-row> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-form-item label="项目支持人" prop="projectSupportMan"> |
|
|
|
<el-form-item label="项目支持人" prop="projectSupportMan"> |
|
|
|
<el-select |
|
|
|
<!-- <el-select |
|
|
|
:disabled="isDetail" |
|
|
|
:disabled="isDetail" |
|
|
|
v-model="addForm.projectSupportMan" |
|
|
|
v-model="addForm.projectSupportMan" |
|
|
|
clearable |
|
|
|
clearable |
|
|
|
@ -129,7 +151,22 @@ |
|
|
|
:label="item.realName" |
|
|
|
:label="item.realName" |
|
|
|
:value="item.id" |
|
|
|
:value="item.id" |
|
|
|
></el-option> |
|
|
|
></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> --> |
|
|
|
|
|
|
|
<jhSelect |
|
|
|
|
|
|
|
:value="addForm.projectSupportMan" |
|
|
|
|
|
|
|
@input="val => (addForm.projectSupportMan = val)" |
|
|
|
|
|
|
|
placeholder="请搜索选择" |
|
|
|
|
|
|
|
api-url="/blade-system/user/page" |
|
|
|
|
|
|
|
echo-api="/blade-system/user/page" |
|
|
|
|
|
|
|
echoParamsKey="ids" |
|
|
|
|
|
|
|
api-method="get" |
|
|
|
|
|
|
|
list-key="records" |
|
|
|
|
|
|
|
total-key="total" |
|
|
|
|
|
|
|
label-key="realName" |
|
|
|
|
|
|
|
value-key="id" |
|
|
|
|
|
|
|
search-key="id" |
|
|
|
|
|
|
|
:debounce-time="500" |
|
|
|
|
|
|
|
/> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</el-col> |
|
|
|
</el-col> |
|
|
|
<el-col :span="8"> |
|
|
|
<el-col :span="8"> |
|
|
|
@ -218,7 +255,23 @@ |
|
|
|
:prop="`stoneList[${scope.$index}].milestoneMemo`" |
|
|
|
:prop="`stoneList[${scope.$index}].milestoneMemo`" |
|
|
|
:rules="addRules.milestoneMemo" |
|
|
|
:rules="addRules.milestoneMemo" |
|
|
|
> |
|
|
|
> |
|
|
|
<el-select |
|
|
|
<jhSelect |
|
|
|
|
|
|
|
:value="scope.row.milestoneMemo" |
|
|
|
|
|
|
|
@input="val => (scope.row.milestoneMemo = val)" |
|
|
|
|
|
|
|
placeholder="请搜索选择" |
|
|
|
|
|
|
|
api-url="/blade-system/user/page" |
|
|
|
|
|
|
|
echo-api="/blade-system/user/page" |
|
|
|
|
|
|
|
echoParamsKey="ids" |
|
|
|
|
|
|
|
api-method="get" |
|
|
|
|
|
|
|
list-key="records" |
|
|
|
|
|
|
|
total-key="total" |
|
|
|
|
|
|
|
label-key="realName" |
|
|
|
|
|
|
|
value-key="id" |
|
|
|
|
|
|
|
search-key="id" |
|
|
|
|
|
|
|
:debounce-time="500" |
|
|
|
|
|
|
|
@change="(val, item) => handleStoneListChange(val, item, scope.$index, scope.row)" |
|
|
|
|
|
|
|
/> |
|
|
|
|
|
|
|
<!-- <el-select |
|
|
|
v-model="scope.row.milestoneMemo" |
|
|
|
v-model="scope.row.milestoneMemo" |
|
|
|
placeholder="请选择里程碑负责人" |
|
|
|
placeholder="请选择里程碑负责人" |
|
|
|
clearable |
|
|
|
clearable |
|
|
|
@ -230,7 +283,7 @@ |
|
|
|
:label="item.realName" |
|
|
|
:label="item.realName" |
|
|
|
:value="item.id" |
|
|
|
:value="item.id" |
|
|
|
></el-option> |
|
|
|
></el-option> |
|
|
|
</el-select> |
|
|
|
</el-select> --> |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template v-else> |
|
|
|
<template v-else> |
|
|
|
@ -283,7 +336,7 @@ |
|
|
|
> |
|
|
|
> |
|
|
|
<el-date-picker |
|
|
|
<el-date-picker |
|
|
|
v-model="scope.row.milestoneNode" |
|
|
|
v-model="scope.row.milestoneNode" |
|
|
|
type="date" |
|
|
|
type="datetime" |
|
|
|
placeholder="选择日期时间" |
|
|
|
placeholder="选择日期时间" |
|
|
|
style="width: 100%" |
|
|
|
style="width: 100%" |
|
|
|
format="YYYY-MM-DD HH:mm:ss" |
|
|
|
format="YYYY-MM-DD HH:mm:ss" |
|
|
|
@ -292,9 +345,7 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form-item> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
<template v-else> |
|
|
|
<template v-else> |
|
|
|
<span>{{ |
|
|
|
<span>{{ scope.row.milestoneNode }}</span> |
|
|
|
scope.row.milestoneNode ? scope.row.milestoneNode.substring(0, 10) : '' |
|
|
|
|
|
|
|
}}</span> |
|
|
|
|
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
@ -307,7 +358,6 @@ |
|
|
|
:width="isDetail ? '120' : ''" |
|
|
|
:width="isDetail ? '120' : ''" |
|
|
|
> |
|
|
|
> |
|
|
|
<template #default="scope"> |
|
|
|
<template #default="scope"> |
|
|
|
<!-- {{ executeTypeFn(scope.row.executeType) }} --> |
|
|
|
|
|
|
|
{{ scope.row.executeTypeText }} |
|
|
|
{{ scope.row.executeTypeText }} |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
@ -368,12 +418,6 @@ |
|
|
|
<el-table-column v-if="isDetail" align="center" label="附件" :width="isDetail ? '120' : ''"> |
|
|
|
<el-table-column v-if="isDetail" align="center" label="附件" :width="isDetail ? '120' : ''"> |
|
|
|
<el-button type="text">附件</el-button> |
|
|
|
<el-button type="text">附件</el-button> |
|
|
|
</el-table-column> |
|
|
|
</el-table-column> |
|
|
|
<!-- 通用操作列 --> |
|
|
|
|
|
|
|
<!-- <el-table-column label="操作"> |
|
|
|
|
|
|
|
<template #default="scope"> |
|
|
|
|
|
|
|
<el-button plain type="danger" @click="handleDelTable(scope.$index)">删除</el-button> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
</el-table-column> --> |
|
|
|
|
|
|
|
</el-table> |
|
|
|
</el-table> |
|
|
|
</el-form> |
|
|
|
</el-form> |
|
|
|
<!-- 弹窗底部按钮 --> |
|
|
|
<!-- 弹窗底部按钮 --> |
|
|
|
@ -390,9 +434,10 @@ |
|
|
|
import { addProcess, getProcessDetail, getDeplList } from '@/api/flowManagement/index'; |
|
|
|
import { addProcess, getProcessDetail, getDeplList } from '@/api/flowManagement/index'; |
|
|
|
import { getRoleUserList } from '@/api/processManagement/taskDispatch'; |
|
|
|
import { getRoleUserList } from '@/api/processManagement/taskDispatch'; |
|
|
|
import { getDictionary } from '@/api/system/dict'; |
|
|
|
import { getDictionary } from '@/api/system/dict'; |
|
|
|
|
|
|
|
import jhSelect from '@/components/jh-select/index.vue'; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'AddDialog', |
|
|
|
name: 'AddDialog', |
|
|
|
|
|
|
|
components: { jhSelect }, |
|
|
|
props: { |
|
|
|
props: { |
|
|
|
title: { |
|
|
|
title: { |
|
|
|
type: String, |
|
|
|
type: String, |
|
|
|
@ -411,7 +456,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
loadingShow:false, |
|
|
|
loadingShow: false, |
|
|
|
formError: '', |
|
|
|
formError: '', |
|
|
|
addRules: { |
|
|
|
addRules: { |
|
|
|
projectName: [{ required: true, message: '请填写项目名称', trigger: ['blur', 'submit'] }], |
|
|
|
projectName: [{ required: true, message: '请填写项目名称', trigger: ['blur', 'submit'] }], |
|
|
|
@ -476,6 +521,7 @@ export default { |
|
|
|
openShow: false, |
|
|
|
openShow: false, |
|
|
|
addForm: { |
|
|
|
addForm: { |
|
|
|
stoneList: [], |
|
|
|
stoneList: [], |
|
|
|
|
|
|
|
projectHeadId: null, |
|
|
|
}, |
|
|
|
}, |
|
|
|
executeResultList: [], // 执行类型 |
|
|
|
executeResultList: [], // 执行类型 |
|
|
|
}; |
|
|
|
}; |
|
|
|
@ -488,7 +534,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
mounted() { |
|
|
|
this.openShow = this.visible; |
|
|
|
this.openShow = this.visible; |
|
|
|
this.getRoleUserList(); |
|
|
|
// this.getRoleUserList(); |
|
|
|
this.getDictionary(); |
|
|
|
this.getDictionary(); |
|
|
|
this.getDeplList(); |
|
|
|
this.getDeplList(); |
|
|
|
if (this.title === '详情' || this.title === '修改') { |
|
|
|
if (this.title === '详情' || this.title === '修改') { |
|
|
|
@ -503,28 +549,50 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
getExecuteTypeText(type) { |
|
|
|
getExecuteTypeText(type) { |
|
|
|
const item = this.executeResultList.find(item => item.dictKey === type); |
|
|
|
const item = this.executeResultList.find(item => item.dictKey === type); |
|
|
|
console.log('item', item); |
|
|
|
|
|
|
|
return item ? item.dictValue : ''; |
|
|
|
return item ? item.dictValue : ''; |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
handleStoneListChange(index, row, type) { |
|
|
|
handleStoneListChange(val, item, index, row) { |
|
|
|
if (type === 'milestoneMemo') { |
|
|
|
if (item) { |
|
|
|
let sel = this.memberList.filter(item => item.id == row.milestoneMemo)[0]; |
|
|
|
// 假设你需要将姓名存到 milestoneMan 字段用于提交或展示 |
|
|
|
this.addForm.stoneList[index].milestoneMan = sel.realName; |
|
|
|
row.milestoneMan = item.realName; |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
// 如果 val 为空,说明是清除操作 |
|
|
|
|
|
|
|
if (!val) { |
|
|
|
|
|
|
|
row.milestoneMan = ''; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 如果 val 有值但 item 为空,说明是远程分页导致的匹配失败 |
|
|
|
|
|
|
|
// 此时 jhSelect 内部应该已经显示了 label (姓名),所以 UI 上用户能看到姓名 |
|
|
|
|
|
|
|
// 如果提交需要 milestoneMan,建议在 submit 时处理,或者接受此时 milestoneMan 为空/旧值 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// if (type === 'milestoneMemo') { |
|
|
|
|
|
|
|
// let sel = this.memberList.filter(item => item.id == row.milestoneMemo)[0]; |
|
|
|
|
|
|
|
// row.milestoneMan = item.realName; |
|
|
|
|
|
|
|
// } |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleChange(type) { |
|
|
|
// 制单部门名称 |
|
|
|
// 制单部门 |
|
|
|
deptChange() { |
|
|
|
if (type == 'touchingDeptId') { |
|
|
|
|
|
|
|
let sel = this.deplList.filter(item => item.id == this.addForm.touchingDeptId)[0]; |
|
|
|
let sel = this.deplList.filter(item => item.id == this.addForm.touchingDeptId)[0]; |
|
|
|
this.addForm.touchingDept = sel.deptName; |
|
|
|
this.addForm.touchingDept = sel.deptName; |
|
|
|
} |
|
|
|
}, |
|
|
|
// 项目负责人 |
|
|
|
// 项目负责人 |
|
|
|
if (type == 'projectHeadId') { |
|
|
|
projectHeadChange(value, item) { |
|
|
|
let sel = this.memberList.filter(item => item.id == this.addForm.projectHeadId)[0]; |
|
|
|
if (item != undefined) { |
|
|
|
this.addForm.projectHead = sel.realName; |
|
|
|
this.addForm.projectHead = item.realName; |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
handleChange(value, item) { |
|
|
|
|
|
|
|
// // 制单部门 |
|
|
|
|
|
|
|
// if (type == 'touchingDeptId') { |
|
|
|
|
|
|
|
// let sel = this.deplList.filter(item => item.id == this.addForm.touchingDeptId)[0]; |
|
|
|
|
|
|
|
// this.addForm.touchingDept = sel.deptName; |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// // 项目负责人 |
|
|
|
|
|
|
|
// if (type == 'projectHeadId') { |
|
|
|
|
|
|
|
// let sel = this.memberList.filter(item => item.id == this.addForm.projectHeadId)[0]; |
|
|
|
|
|
|
|
// this.addForm.projectHead = sel.realName; |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
}, |
|
|
|
// 获取部门列表 |
|
|
|
// 获取部门列表 |
|
|
|
getDeplList() { |
|
|
|
getDeplList() { |
|
|
|
getDeplList().then(res => { |
|
|
|
getDeplList().then(res => { |
|
|
|
@ -553,8 +621,10 @@ export default { |
|
|
|
// 获取详情数据 |
|
|
|
// 获取详情数据 |
|
|
|
getDetails() { |
|
|
|
getDetails() { |
|
|
|
getProcessDetail(this.rowItem.id).then(res => { |
|
|
|
getProcessDetail(this.rowItem.id).then(res => { |
|
|
|
console.log(res.data.data, 'res'); |
|
|
|
this.$nextTick(() => { |
|
|
|
this.addForm = res.data.data; |
|
|
|
let data = res.data.data; |
|
|
|
|
|
|
|
Object.assign(this.addForm, data); |
|
|
|
|
|
|
|
|
|
|
|
const records = res.data.data; |
|
|
|
const records = res.data.data; |
|
|
|
this.addForm.stoneList = records.stoneList.map(item => { |
|
|
|
this.addForm.stoneList = records.stoneList.map(item => { |
|
|
|
item.executeTypeText = this.getExecuteTypeText(item.executeType); |
|
|
|
item.executeTypeText = this.getExecuteTypeText(item.executeType); |
|
|
|
@ -569,6 +639,8 @@ export default { |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.addForm.memberName = []; |
|
|
|
this.addForm.memberName = []; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
this.$forceUpdate(); |
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleClose(type) { |
|
|
|
handleClose(type) { |
|
|
|
@ -594,10 +666,10 @@ export default { |
|
|
|
milestonePlan: '', |
|
|
|
milestonePlan: '', |
|
|
|
outputMaterial: '', |
|
|
|
outputMaterial: '', |
|
|
|
milestoneNode: '', |
|
|
|
milestoneNode: '', |
|
|
|
milestoneMemo: '', |
|
|
|
milestoneMemo: null, |
|
|
|
evolve: '', |
|
|
|
evolve: '', |
|
|
|
lastPlan: '', |
|
|
|
lastPlan: '', |
|
|
|
grade: -32768, |
|
|
|
grade: null, |
|
|
|
score: 0, |
|
|
|
score: 0, |
|
|
|
executeResult: 0, |
|
|
|
executeResult: 0, |
|
|
|
executeType: '', |
|
|
|
executeType: '', |
|
|
|
@ -658,27 +730,31 @@ export default { |
|
|
|
}); |
|
|
|
}); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
this.loadingShow = true |
|
|
|
this.loadingShow = true; |
|
|
|
const submitData = this.formatSubmitData(this.addForm); |
|
|
|
const submitData = this.formatSubmitData(this.addForm); |
|
|
|
submitData.projectStartTime = submitData.projectStartTime + ' 00:00:00'; |
|
|
|
submitData.projectStartTime = submitData.projectStartTime + ' 00:00:00'; |
|
|
|
submitData.projectDesiredEnd = submitData.projectDesiredEnd + ' 00:00:00'; |
|
|
|
submitData.projectDesiredEnd = submitData.projectDesiredEnd + ' 00:00:00'; |
|
|
|
if (this.title === '详情') { |
|
|
|
if (this.title === '详情') { |
|
|
|
updateProcess({ ...submitDat, approvalStatus: 1 }).then(res => { |
|
|
|
updateProcess({ ...submitDat, approvalStatus: 1 }) |
|
|
|
|
|
|
|
.then(res => { |
|
|
|
this.$message.success('修改成功'); |
|
|
|
this.$message.success('修改成功'); |
|
|
|
this.handleClose(true); |
|
|
|
this.handleClose(true); |
|
|
|
this.loadingShow = false |
|
|
|
this.loadingShow = false; |
|
|
|
}).catch(err=>{ |
|
|
|
|
|
|
|
this.loadingShow = false |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
.catch(err => { |
|
|
|
|
|
|
|
this.loadingShow = false; |
|
|
|
|
|
|
|
}); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
addProcess({ ...submitData, approvalStatus: 1 }).then(res => { |
|
|
|
addProcess({ ...submitData, approvalStatus: 1 }) |
|
|
|
|
|
|
|
.then(res => { |
|
|
|
this.$message.success('提交成功'); |
|
|
|
this.$message.success('提交成功'); |
|
|
|
this.handleClose(true); |
|
|
|
this.handleClose(true); |
|
|
|
this.loadingShow = false |
|
|
|
this.loadingShow = false; |
|
|
|
}).catch(err=>{ |
|
|
|
|
|
|
|
this.loadingShow = false |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
.catch(err => { |
|
|
|
|
|
|
|
this.loadingShow = false; |
|
|
|
|
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
@ -715,7 +791,7 @@ export default { |
|
|
|
font-size: 14px; |
|
|
|
font-size: 14px; |
|
|
|
line-height: 1.5; |
|
|
|
line-height: 1.5; |
|
|
|
} |
|
|
|
} |
|
|
|
:deep(.el-table .el-table__cell) { |
|
|
|
:deep(.el-table .el-table__body .el-table__cell) { |
|
|
|
height: 50px !important; |
|
|
|
height: 50px !important; |
|
|
|
padding: 0 !important; |
|
|
|
padding: 0 !important; |
|
|
|
line-height: 50px !important; |
|
|
|
line-height: 50px !important; |
|
|
|
|