时间类型对应

main
weitingdong 11 months ago
parent d96a528870
commit d50314b958
  1. 49
      src/views/leger/equipmentledgerDetail.vue
  2. 53
      src/views/leger/toolinventoryrecordDetail.vue
  3. 3
      src/views/smart/workpermit.vue
  4. 66
      src/views/smart/workpermitDetail.vue

@ -6,14 +6,15 @@
<span > <span >
<el-col > <el-col >
审核状态: 审核状态:
<el-select v-model="checkStatusValue"> <avue-input v-model="form" placeholder="" class="frame_class1" style = "width: 100px"></avue-input>
<el-option <!-- <el-select v-model="checkStatusValue">-->
v-for="item in optionCheckStatus" <!-- <el-option-->
:key="item.value" <!-- v-for="item in optionCheckStatus"-->
:label="item.label" <!-- :key="item.value"-->
:value="item.value"> <!-- :label="item.label"-->
</el-option> <!-- :value="item.value">-->
</el-select> <!-- </el-option>-->
<!-- </el-select>-->
</el-col> </el-col>
</span> </span>
</div> </div>
@ -699,6 +700,19 @@
this.frame_class = null; this.frame_class = null;
this.checkStatusValue = 4; this.checkStatusValue = 4;
} }
switch (this.$route.query.checkstatus){
case 1:
this.form = "审核中";
break;
case 2:
this.form = "已审核";
break;
case 3:
this.form = "未通过";
break;
default:
this.form =" ";
}
}, },
methods: { methods: {
handleFormSubmit() { handleFormSubmit() {
@ -1011,15 +1025,19 @@
background-color: #3366cc !important; background-color: #3366cc !important;
color: #FFFFFF !important; color: #FFFFFF !important;
} }
.frame_class1 input.el-input__inner {
.frame_class1 .el-input__inner,
.frame_class1 .el-textarea__inner {
border: none; border: none;
box-shadow: none; box-shadow: none;
outline: none; outline: none;
pointer-events: none; pointer-events: none;
} }
.frame_class1 .el-input__icon { .frame_class1 .el-input__icon {
display: none; display: none;
} }
.frame_class1 .el-input--prefix .el-input__inner { .frame_class1 .el-input--prefix .el-input__inner {
padding-left: 15px; padding-left: 15px;
} }
@ -1034,15 +1052,16 @@
justify-content: flex-end; /* 将子元素推到容器的末端 */ justify-content: flex-end; /* 将子元素推到容器的末端 */
} }
.check_status_class { .frame_class1 div.el-select--small {
display: flex;
justify-content: flex-end; /* 将子元素推到容器的末端 */
}
.check_status_class input.el-input__inner {
border: none; border: none;
box-shadow: none; box-shadow: none;
outline: none; outline: none;
pointer-events: none; pointer-events: none;
} }
.check_status_class {
display: flex;
justify-content: flex-end; /* 将子元素推到容器的末端 */
}
</style> </style>

@ -6,14 +6,15 @@
<span > <span >
<el-col > <el-col >
审核状态: 审核状态:
<el-select v-model="checkStatusValue"> <avue-input v-model="form" placeholder="" class="frame_class1" style = "width: 100px"></avue-input>
<el-option <!-- <el-select v-model="checkStatusValue">-->
v-for="item in optionCheckStatus" <!-- <el-option-->
:key="item.value" <!-- v-for="item in optionCheckStatus"-->
:label="item.label" <!-- :key="item.value"-->
:value="item.value"> <!-- :label="item.label"-->
</el-option> <!-- :value="item.value">-->
</el-select> <!-- </el-option>-->
<!-- </el-select>-->
</el-col> </el-col>
</span> </span>
</div> </div>
@ -629,6 +630,19 @@ export default {
this.frame_class = null; this.frame_class = null;
this.checkStatusValue = 4; this.checkStatusValue = 4;
} }
switch (this.$route.query.checkstatus){
case 1:
this.form = "审核中";
break;
case 2:
this.form = "已审核";
break;
case 3:
this.form = "未通过";
break;
default:
this.form =" ";
}
}, },
methods: { methods: {
handleFormSubmit() { handleFormSubmit() {
@ -1011,18 +1025,14 @@ export default {
color: #FFFFFF !important; color: #FFFFFF !important;
} }
.frame_class1 input.el-input__inner { .frame_class1 .el-input__inner,
.frame_class1 .el-textarea__inner {
border: none; border: none;
box-shadow: none; box-shadow: none;
outline: none; outline: none;
pointer-events: none; pointer-events: none;
} }
.frame_class1 input::placeholder {
color: transparent;
display: none; /* 默认隐藏 */
}
.frame_class1 .el-input__icon { .frame_class1 .el-input__icon {
display: none; display: none;
} }
@ -1031,20 +1041,25 @@ export default {
padding-left: 15px; padding-left: 15px;
} }
.container { .frame_class1 input::placeholder {
display: flex; color: transparent;
justify-content: flex-end; /* 将子元素推到容器的末端 */ display: none; /* 默认隐藏 */
} }
.check_status_class { .container {
display: flex; display: flex;
justify-content: flex-end; /* 将子元素推到容器的末端 */ justify-content: flex-end; /* 将子元素推到容器的末端 */
} }
.check_status_class input.el-input__inner { .frame_class1 div.el-select--small {
border: none; border: none;
box-shadow: none; box-shadow: none;
outline: none; outline: none;
pointer-events: none; pointer-events: none;
} }
.check_status_class {
display: flex;
justify-content: flex-end; /* 将子元素推到容器的末端 */
}
</style> </style>

@ -260,7 +260,6 @@
prop: "planStartDate", prop: "planStartDate",
type: "date", type: "date",
format: 'yyyy/MM/dd', format: 'yyyy/MM/dd',
valueFormat: "yyyyMMdd",
search: true, search: true,
rules: [{ rules: [{
required: true, required: true,
@ -285,7 +284,6 @@
prop: "planEndDate", prop: "planEndDate",
type: "date", type: "date",
format: 'yyyy/MM/dd', format: 'yyyy/MM/dd',
valueFormat: "yyyyMMdd",
rules: [{ rules: [{
required: true, required: true,
message: "请输入计划结束时间", message: "请输入计划结束时间",
@ -299,7 +297,6 @@
prop: "actualEndDate", prop: "actualEndDate",
type: "date", type: "date",
format: 'yyyy/MM/dd', format: 'yyyy/MM/dd',
valueFormat: "yyyyMMdd",
span:8, span:8,
}, },
{ {

@ -6,14 +6,7 @@
<span > <span >
<el-col > <el-col >
审核状态: 审核状态:
<el-select v-model="checkStatusValue"> <avue-input v-model="form" placeholder="" class="frame_class1" style = "width: 100px"></avue-input>
<el-option
v-for="item in optionCheckStatus"
:key="item.value"
:label="item.label"
:value="item.value">
</el-option>
</el-select>
</el-col> </el-col>
</span> </span>
</div> </div>
@ -105,6 +98,7 @@
data () { data () {
return { return {
checkStatusValue: this.$route.query.checkstatus, checkStatusValue: this.$route.query.checkstatus,
form:{},
optionCheckStatus: [{ optionCheckStatus: [{
value: 1, value: 1,
label: '审核中' label: '审核中'
@ -305,9 +299,9 @@
message: "请输入计划开始时间", message: "请输入计划开始时间",
trigger: "blur" trigger: "blur"
}], }],
type: "date", type: "datetime",
format: 'yyyy/MM/dd', format: 'yyyy年MM月dd日 HH时mm分',
valueFormat: "yyyyMMdd", valueFormat: "yyyy/MM/dd HH:mm:ss",
span:8 span:8
}, },
{ {
@ -318,9 +312,9 @@
message: "请输入计划结束时间", message: "请输入计划结束时间",
trigger: "blur" trigger: "blur"
}], }],
type: "date", type: "datetime",
format: 'yyyy/MM/dd', format: 'yyyy年MM月dd日 HH时mm分',
valueFormat: "yyyyMMdd", valueFormat: "yyyy/MM/dd HH:mm:ss",
span:8 span:8
}, },
{ {
@ -336,9 +330,9 @@
{ {
label: "实际结束时间", label: "实际结束时间",
prop: "actualEndDate", prop: "actualEndDate",
type: "date", type: "datetime",
format: 'yyyy/MM/dd', format: 'yyyy年MM月dd日 HH时mm分',
valueFormat: "yyyyMMdd", valueFormat: "yyyy/MM/dd HH:mm:ss",
span:8 span:8
}, },
{ {
@ -355,9 +349,9 @@
{ {
label: "计划延期时间", label: "计划延期时间",
prop: "plannedExtensionDate", prop: "plannedExtensionDate",
type: "date", type: "datetime",
format: 'yyyy/MM/dd', format: 'yyyy年MM月dd日 HH时mm分',
valueFormat: "yyyyMMdd", valueFormat: "yyyy/MM/dd HH:mm:ss",
span:8 span:8
}, },
{ {
@ -547,6 +541,20 @@
create_date.display = false; create_date.display = false;
const ticketCode = this.findObject(this.optionParam.column, "ticketCode"); const ticketCode = this.findObject(this.optionParam.column, "ticketCode");
ticketCode.display = false; ticketCode.display = false;
switch (this.$route.query.checkstatus){
case 1:
this.form = "审核中";
break;
case 2:
this.form = "已审核";
break;
case 3:
this.form = "未通过";
break;
default:
this.form =" ";
}
}, },
methods: { methods: {
handleFormSubmit() { handleFormSubmit() {
@ -786,15 +794,19 @@
background-color: #1e9fff !important; background-color: #1e9fff !important;
color: #FFFFFF !important; color: #FFFFFF !important;
} }
.frame_class1 input.el-input__inner {
.frame_class1 .el-input__inner,
.frame_class1 .el-textarea__inner {
border: none; border: none;
box-shadow: none; box-shadow: none;
outline: none; outline: none;
pointer-events: none; pointer-events: none;
} }
.frame_class1 .el-input__icon { .frame_class1 .el-input__icon {
display: none; display: none;
} }
.frame_class1 .el-input--prefix .el-input__inner { .frame_class1 .el-input--prefix .el-input__inner {
padding-left: 15px; padding-left: 15px;
} }
@ -809,15 +821,15 @@
justify-content: flex-end; /* 将子元素推到容器的末端 */ justify-content: flex-end; /* 将子元素推到容器的末端 */
} }
.check_status_class { .frame_class1 div.el-select--small {
display: flex;
justify-content: flex-end; /* 将子元素推到容器的末端 */
}
.check_status_class input.el-input__inner {
border: none; border: none;
box-shadow: none; box-shadow: none;
outline: none; outline: none;
pointer-events: none; pointer-events: none;
} }
.check_status_class {
display: flex;
justify-content: flex-end; /* 将子元素推到容器的末端 */
}
</style> </style>

Loading…
Cancel
Save