更改项目中涉及日期的字段名

main
wuyize 2022-07-12 10:00:30 +08:00
parent 28d00d6631
commit b41df1de52
4 changed files with 62 additions and 27 deletions

View File

@ -79,11 +79,11 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="项目启动日期" required> <el-form-item label="项目启动日期" required>
<el-form-item prop="projectStartTime"> <el-form-item prop="projectStartDate">
<el-date-picker <el-date-picker
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
v-model="ruleForm.projectStartTime" v-model="ruleForm.projectStartDate"
style="width: 100%;" style="width: 100%;"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
@ -94,11 +94,11 @@
<el-row> <el-row>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="计划上线日期" required> <el-form-item label="计划上线日期" required>
<el-form-item prop="projectOnlineTime"> <el-form-item prop="projectOnlineDate">
<el-date-picker <el-date-picker
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
v-model="ruleForm.projectOnlineTime" v-model="ruleForm.projectOnlineDate"
style="width: 100%;" style="width: 100%;"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
@ -106,11 +106,11 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="计划初验日期" required> <el-form-item label="计划初验日期" required>
<el-form-item prop="projectFirstTestTime"> <el-form-item prop="projectFirstTestDate">
<el-date-picker <el-date-picker
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
v-model="ruleForm.projectFirstTestTime" v-model="ruleForm.projectFirstTestDate"
style="width: 100%;" style="width: 100%;"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
@ -118,11 +118,11 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="计划终验日期" required> <el-form-item label="计划终验日期" required>
<el-form-item prop="projectFinalTestTime"> <el-form-item prop="projectFinalTestDate">
<el-date-picker <el-date-picker
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
v-model="ruleForm.projectFinalTestTime" v-model="ruleForm.projectFinalTestDate"
style="width: 100%;" style="width: 100%;"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
@ -130,11 +130,11 @@
</el-col> </el-col>
<el-col :span="6"> <el-col :span="6">
<el-form-item label="计划结项日期" required> <el-form-item label="计划结项日期" required>
<el-form-item prop="projectEndTime"> <el-form-item prop="projectEndDate">
<el-date-picker <el-date-picker
type="date" type="date"
placeholder="选择日期" placeholder="选择日期"
v-model="ruleForm.projectEndTime" v-model="ruleForm.projectEndDate"
style="width: 100%;" style="width: 100%;"
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
@ -239,12 +239,12 @@ export default {
contractAmount: '',// contractAmount: '',//
expectedCompletion: '',// expectedCompletion: '',//
projectManMonth: '',// projectManMonth: '',//
projectStartTime: '',// projectStartDate: '',//
projectOnlineTime: '',//线 projectOnlineDate: '',//线
projectFirstTestTime: '',// projectFirstTestDate: '',//
projectFinalTestTime: '',// projectFinalTestDate: '',//
projectEndTime: '',// projectEndDate: '',//
financialCode: '',// financialCode: '',//
projectDepartment: '',// projectDepartment: '',//
@ -302,19 +302,19 @@ export default {
}, trigger: 'blur' }, trigger: 'blur'
}, },
], ],
projectStartTime: [// projectStartDate: [//
{type: 'date', required: true, message: '请选择计划总人月', trigger: 'change'}, {type: 'date', required: true, message: '请选择计划总人月', trigger: 'change'},
], ],
projectOnlineTime: [//线 projectOnlineDate: [//线
{type: 'date', required: true, message: '请选择计划上线日期', trigger: 'change'}, {type: 'date', required: true, message: '请选择计划上线日期', trigger: 'change'},
], ],
projectFirstTestTime: [// projectFirstTestDate: [//
{type: 'date', required: true, message: '请选择计划初验日期', trigger: 'change'}, {type: 'date', required: true, message: '请选择计划初验日期', trigger: 'change'},
], ],
projectFinalTestTime: [// projectFinalTestDate: [//
{type: 'date', required: true, message: '请选择计划终验日期', trigger: 'change'}, {type: 'date', required: true, message: '请选择计划终验日期', trigger: 'change'},
], ],
projectEndTime: [// projectEndDate: [//
{type: 'date', required: true, message: '请选择计划结项日期', trigger: 'change'}, {type: 'date', required: true, message: '请选择计划结项日期', trigger: 'change'},
], ],
financialCode: [// financialCode: [//
@ -362,11 +362,11 @@ export default {
if (valid) { if (valid) {
console.log('submit') console.log('submit')
let { ...form} = this.ruleForm let { ...form} = this.ruleForm
form.projectFinalTestTime = form.projectFinalTestTime.getTime() / 1000 form.projectFinalTestDate = form.projectFinalTestDate.getTime() / 1000
form.projectEndTime = form.projectEndTime.getTime() / 1000 form.projectEndDate = form.projectEndDate.getTime() / 1000
form.projectFirstTestTime = form.projectFirstTestTime.getTime() / 1000 form.projectFirstTestDate = form.projectFirstTestDate.getTime() / 1000
form.projectOnlineTime = form.projectOnlineTime.getTime() / 1000 form.projectOnlineDate = form.projectOnlineDate.getTime() / 1000
form.projectStartTime = form.projectStartTime.getTime() / 1000 form.projectStartDate = form.projectStartDate.getTime() / 1000
request({ request({
url: 'project', url: 'project',
method: 'post', method: 'post',

View File

@ -2,9 +2,28 @@
<el-dialog <el-dialog
title="交接" title="交接"
v-model="dialogVisible" 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> </el-dialog>
</template> </template>
@ -14,7 +33,9 @@ export default {
props: { props: {
dialogVisible: Boolean, dialogVisible: Boolean,
staffId: Number, staffId: Number,
projectGroup: Array
}, },
} }
</script> </script>

View File

@ -80,12 +80,17 @@
@edited="rehushTableData" @edited="rehushTableData"
@onCancel="editJobDialogVisible = false" @onCancel="editJobDialogVisible = false"
></EditJobDialog> ></EditJobDialog>
<TransferDialog>
v-model:dialogVisible="transferDialogVisible"
:projectGroup="projectGroup"
</TransferDialog>
</template> </template>
<script setup> <script setup>
// table // table
import {nextTick, onMounted, ref} from "vue"; import {nextTick, onMounted, ref} from "vue";
const tableRef = ref(null); const tableRef = ref(null);
// //
const leftRef = ref(null); const leftRef = ref(null);
@ -119,6 +124,7 @@ import EchartsPie from "../components/echartsPie";
import request from "../utils/request"; import request from "../utils/request";
import CreatePersonDialog from "../components/CreatePersonDialog"; import CreatePersonDialog from "../components/CreatePersonDialog";
import EditJobDialog from "../components/EditJobDialog"; import EditJobDialog from "../components/EditJobDialog";
import TransferDialog from "../components/TransferDialog";
export default { export default {
name: 'ProjectGroup', name: 'ProjectGroup',
@ -135,13 +141,21 @@ export default {
editStaffId: Number, editStaffId: Number,
editStaffPosition: String, editStaffPosition: String,
transferDialogVisible: false,
transferStaffId: Number,
tableData: [], tableData: [],
}; };
}, },
props: {
projectAccessLevel: Number,
projectGroup: Array
},
components: { components: {
CreatePersonDialog, CreatePersonDialog,
EditJobDialog, EditJobDialog,
TransferDialog,
EchartsPie EchartsPie
}, },
methods: { methods: {

View File

@ -181,7 +181,7 @@
</div> </div>
<el-dialog <el-dialog
v-model="dialogVisible" :model-value="dialogVisible"
:title="form.title" :title="form.title"
width="40%" width="40%"
top="60px" top="60px"