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

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 :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',

View File

@ -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>

View File

@ -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: {

View File

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