更改项目中涉及日期的字段名
parent
28d00d6631
commit
b41df1de52
|
@ -79,11 +79,11 @@
|
|||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="项目启动日期" required>
|
||||
<el-form-item prop="projectStartTime">
|
||||
<el-form-item prop="projectStartDate">
|
||||
<el-date-picker
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
v-model="ruleForm.projectStartTime"
|
||||
v-model="ruleForm.projectStartDate"
|
||||
style="width: 100%;"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
|
@ -94,11 +94,11 @@
|
|||
<el-row>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="计划上线日期" required>
|
||||
<el-form-item prop="projectOnlineTime">
|
||||
<el-form-item prop="projectOnlineDate">
|
||||
<el-date-picker
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
v-model="ruleForm.projectOnlineTime"
|
||||
v-model="ruleForm.projectOnlineDate"
|
||||
style="width: 100%;"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
|
@ -106,11 +106,11 @@
|
|||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="计划初验日期" required>
|
||||
<el-form-item prop="projectFirstTestTime">
|
||||
<el-form-item prop="projectFirstTestDate">
|
||||
<el-date-picker
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
v-model="ruleForm.projectFirstTestTime"
|
||||
v-model="ruleForm.projectFirstTestDate"
|
||||
style="width: 100%;"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
|
@ -118,11 +118,11 @@
|
|||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="计划终验日期" required>
|
||||
<el-form-item prop="projectFinalTestTime">
|
||||
<el-form-item prop="projectFinalTestDate">
|
||||
<el-date-picker
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
v-model="ruleForm.projectFinalTestTime"
|
||||
v-model="ruleForm.projectFinalTestDate"
|
||||
style="width: 100%;"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
|
@ -130,11 +130,11 @@
|
|||
</el-col>
|
||||
<el-col :span="6">
|
||||
<el-form-item label="计划结项日期" required>
|
||||
<el-form-item prop="projectEndTime">
|
||||
<el-form-item prop="projectEndDate">
|
||||
<el-date-picker
|
||||
type="date"
|
||||
placeholder="选择日期"
|
||||
v-model="ruleForm.projectEndTime"
|
||||
v-model="ruleForm.projectEndDate"
|
||||
style="width: 100%;"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
|
@ -239,12 +239,12 @@ export default {
|
|||
contractAmount: '',//合同额
|
||||
expectedCompletion: '',//预期完成度
|
||||
projectManMonth: '',//计划总人月
|
||||
projectStartTime: '',//项目启动日期
|
||||
projectStartDate: '',//项目启动日期
|
||||
|
||||
projectOnlineTime: '',//计划上线日期
|
||||
projectFirstTestTime: '',//计划初验日期
|
||||
projectFinalTestTime: '',//计划终验日期
|
||||
projectEndTime: '',//计划结项日期
|
||||
projectOnlineDate: '',//计划上线日期
|
||||
projectFirstTestDate: '',//计划初验日期
|
||||
projectFinalTestDate: '',//计划终验日期
|
||||
projectEndDate: '',//计划结项日期
|
||||
|
||||
financialCode: '',//财务编码
|
||||
projectDepartment: '',//所属部门
|
||||
|
@ -302,19 +302,19 @@ export default {
|
|||
}, trigger: 'blur'
|
||||
},
|
||||
],
|
||||
projectStartTime: [//项目启动日期
|
||||
projectStartDate: [//项目启动日期
|
||||
{type: 'date', required: true, message: '请选择计划总人月', trigger: 'change'},
|
||||
],
|
||||
projectOnlineTime: [//计划上线日期
|
||||
projectOnlineDate: [//计划上线日期
|
||||
{type: 'date', required: true, message: '请选择计划上线日期', trigger: 'change'},
|
||||
],
|
||||
projectFirstTestTime: [//计划初验日期
|
||||
projectFirstTestDate: [//计划初验日期
|
||||
{type: 'date', required: true, message: '请选择计划初验日期', trigger: 'change'},
|
||||
],
|
||||
projectFinalTestTime: [//计划终验日期
|
||||
projectFinalTestDate: [//计划终验日期
|
||||
{type: 'date', required: true, message: '请选择计划终验日期', trigger: 'change'},
|
||||
],
|
||||
projectEndTime: [//计划结项日期
|
||||
projectEndDate: [//计划结项日期
|
||||
{type: 'date', required: true, message: '请选择计划结项日期', trigger: 'change'},
|
||||
],
|
||||
financialCode: [//财务编码
|
||||
|
@ -362,11 +362,11 @@ export default {
|
|||
if (valid) {
|
||||
console.log('submit')
|
||||
let { ...form} = this.ruleForm
|
||||
form.projectFinalTestTime = form.projectFinalTestTime.getTime() / 1000
|
||||
form.projectEndTime = form.projectEndTime.getTime() / 1000
|
||||
form.projectFirstTestTime = form.projectFirstTestTime.getTime() / 1000
|
||||
form.projectOnlineTime = form.projectOnlineTime.getTime() / 1000
|
||||
form.projectStartTime = form.projectStartTime.getTime() / 1000
|
||||
form.projectFinalTestDate = form.projectFinalTestDate.getTime() / 1000
|
||||
form.projectEndDate = form.projectEndDate.getTime() / 1000
|
||||
form.projectFirstTestDate = form.projectFirstTestDate.getTime() / 1000
|
||||
form.projectOnlineDate = form.projectOnlineDate.getTime() / 1000
|
||||
form.projectStartDate = form.projectStartDate.getTime() / 1000
|
||||
request({
|
||||
url: 'project',
|
||||
method: 'post',
|
||||
|
|
|
@ -2,9 +2,28 @@
|
|||
<el-dialog
|
||||
title="交接"
|
||||
v-model="dialogVisible"
|
||||
width="1000px"
|
||||
width="500px"
|
||||
>
|
||||
<el-form>
|
||||
<p>交接会将该项目成员的所有带进行和进行中的工作项移交给交接人员,交接人员继承该项目成员所有岗位</p>
|
||||
<el-form-item label="交接人员" prop="taskHolderId">
|
||||
|
||||
<el-select style="width: 100%" v-model="form.taskHolderId" filterable >
|
||||
<el-option
|
||||
v-for="member in projectGroup"
|
||||
:key="member.staffId"
|
||||
:label="member.staffFullname"
|
||||
:value="member.staffId"
|
||||
>
|
||||
<span style="float: left">{{ member.staffFullname }}</span>
|
||||
<span
|
||||
style="float: right;color: var(--el-text-color-secondary);font-size: 13px;"
|
||||
>{{ member.staffUsername }}</span
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
|
@ -14,7 +33,9 @@ export default {
|
|||
props: {
|
||||
dialogVisible: Boolean,
|
||||
staffId: Number,
|
||||
projectGroup: Array
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
|
|
@ -80,12 +80,17 @@
|
|||
@edited="rehushTableData"
|
||||
@onCancel="editJobDialogVisible = false"
|
||||
></EditJobDialog>
|
||||
<TransferDialog>
|
||||
v-model:dialogVisible="transferDialogVisible"
|
||||
:projectGroup="projectGroup"
|
||||
</TransferDialog>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
// table元素
|
||||
import {nextTick, onMounted, ref} from "vue";
|
||||
|
||||
|
||||
const tableRef = ref(null);
|
||||
// 总高度
|
||||
const leftRef = ref(null);
|
||||
|
@ -119,6 +124,7 @@ import EchartsPie from "../components/echartsPie";
|
|||
import request from "../utils/request";
|
||||
import CreatePersonDialog from "../components/CreatePersonDialog";
|
||||
import EditJobDialog from "../components/EditJobDialog";
|
||||
import TransferDialog from "../components/TransferDialog";
|
||||
|
||||
export default {
|
||||
name: 'ProjectGroup',
|
||||
|
@ -135,13 +141,21 @@ export default {
|
|||
editStaffId: Number,
|
||||
editStaffPosition: String,
|
||||
|
||||
transferDialogVisible: false,
|
||||
transferStaffId: Number,
|
||||
|
||||
tableData: [],
|
||||
|
||||
};
|
||||
},
|
||||
props: {
|
||||
projectAccessLevel: Number,
|
||||
projectGroup: Array
|
||||
},
|
||||
components: {
|
||||
CreatePersonDialog,
|
||||
EditJobDialog,
|
||||
TransferDialog,
|
||||
EchartsPie
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -181,7 +181,7 @@
|
|||
</div>
|
||||
|
||||
<el-dialog
|
||||
v-model="dialogVisible"
|
||||
:model-value="dialogVisible"
|
||||
:title="form.title"
|
||||
width="40%"
|
||||
top="60px"
|
||||
|
|
Loading…
Reference in New Issue