Merge remote-tracking branch 'origin/main'

main
weitingdong 11 months ago
commit 4d3ffc9a33
  1. 14
      src/router/views/index.js
  2. 6
      src/views/inspection/inspectionPlanDetail.vue
  3. 12
      src/views/inspection/inspectiontasks.vue
  4. 12
      src/views/inspection/inspectiontasksDetail.vue
  5. 3
      src/views/leger/equipmentledger.vue
  6. 52
      src/views/leger/equipmentledgerDetail.vue
  7. 1
      src/views/smart/operationticket.vue
  8. 84
      src/views/smart/operationticketDetail.vue
  9. 3
      src/views/smart/workorder.vue
  10. 21
      src/views/smart/workorderDetail.vue
  11. 1
      src/views/smart/workpermit.vue
  12. 27
      src/views/smart/workpermitDetail.vue

@ -180,5 +180,19 @@ export default [{
import( /* webpackChunkName: "views" */ '@/views/smart/operationticketDetail') import( /* webpackChunkName: "views" */ '@/views/smart/operationticketDetail')
}] }]
}, },
{
path: '/leger',
component: Layout,
redirect: '/leger/index',
children: [{
path: 'dynamicledgerDetail',
name: '动态台账详情',
meta: {
menu: false
},
component: () =>
import( /* webpackChunkName: "views" */ '@/views/leger/dynamicledgerDetail')
}]
},
] ]

@ -38,9 +38,8 @@
if(value > this.form.endTime) { if(value > this.form.endTime) {
callback(new Error('输入的计划起始时间大于计划终了时间')); callback(new Error('输入的计划起始时间大于计划终了时间'));
} }
} else {
callback();
} }
callback();
}; };
var validateEnd = (rule, value, callback) => { var validateEnd = (rule, value, callback) => {
if (value === '') { if (value === '') {
@ -49,9 +48,8 @@
if(this.form.startTime > value) { if(this.form.startTime > value) {
callback(new Error('输入的计划终了时间小于计划起始时间')); callback(new Error('输入的计划终了时间小于计划起始时间'));
} }
} else {
callback();
} }
callback();
}; };
return { return {
addUpdateShowButton:{}, addUpdateShowButton:{},

@ -21,7 +21,6 @@
<template slot="menuLeft"> <template slot="menuLeft">
<el-button type="danger" <el-button type="danger"
size="small" size="small"
icon="el-icon-delete"
plain plain
v-if="permission.inspectiontasks_delete" v-if="permission.inspectiontasks_delete"
@click="handleDelete">批量删除 @click="handleDelete">批量删除
@ -113,18 +112,18 @@
if(this.resultForm.executeEndDate.trim().replaceAll('/','') < value.trim().replaceAll('/','')) { if(this.resultForm.executeEndDate.trim().replaceAll('/','') < value.trim().replaceAll('/','')) {
callback(new Error('输入的任务执行开始时间大于任务执行结束时间')); callback(new Error('输入的任务执行开始时间大于任务执行结束时间'));
} }
} else {
callback();
} }
callback();
}; };
var validateEndTime = (rule, value, callback) => { var validateEndTime = (rule, value, callback) => {
if (value === '') { if (value === '') {
callback(new Error('请输入任务执行结束时间')); callback(new Error('请输入任务执行结束时间'));
} else if(this.resultForm.executeStartDate.trim().replaceAll('/','') >= value.trim().replaceAll('/','')) { } else if(this.resultForm.executeStartDate.trim().replaceAll('/','') >= value.trim().replaceAll('/','')) {
callback(new Error('输入的任务执行结束时间小于任务执行开始时间')); callback(new Error('输入的任务执行结束时间小于任务执行开始时间'));
} else {
callback();
} }
callback();
}; };
return { return {
form: {}, form: {},
@ -147,6 +146,7 @@
calcHeight: 210, calcHeight: 210,
searchShow: true, searchShow: true,
searchMenuSpan: 6, searchMenuSpan: 6,
align: 'center',
tip: false, tip: false,
border: true, border: true,
index: false, index: false,
@ -656,7 +656,7 @@
<style> <style>
.header-class{ .header-class{
background-color: #3366cc !important; background-color: #243970 !important;
color: #FFFFFF !important; color: #FFFFFF !important;
} }
</style> </style>

@ -59,18 +59,16 @@ export default {
if(this.information_form.taskEndDate < value) { if(this.information_form.taskEndDate < value) {
callback(new Error('输入的任务开始日期大于任务完成日期')); callback(new Error('输入的任务开始日期大于任务完成日期'));
} }
} else {
callback();
} }
callback();
}; };
var validateEndTime = (rule, value, callback) => { var validateEndTime = (rule, value, callback) => {
if (value === '') { if (!value) {
callback(new Error('请输入任务完成日期')); callback(new Error('请输入任务完成日期'));
} else if(this.information_form.taskStartDate > value) { } else if(this.information_form.taskStartDate > value) {
callback(new Error('输入的任务开始日期大于任务完成日期')); callback(new Error('输入的任务开始日期大于任务完成日期'));
} else {
callback();
} }
callback();
}; };
return { return {
information_class: '', information_class: '',
@ -143,7 +141,7 @@ export default {
labelWidth: 120, labelWidth: 120,
format: 'yyyy年MM月dd日', format: 'yyyy年MM月dd日',
valueFormat: "yyyyMMdd", valueFormat: "yyyyMMdd",
rules: [{required: true, validator: validateStartTime, trigger: 'blur' }] rules: [{required: true, validator: validateStartTime, trigger: 'change' }]
}, },
{ {
label: "任务完成日期", label: "任务完成日期",
@ -513,7 +511,7 @@ export default {
</script> </script>
<style> <style>
.header-class{ .header-class{
background-color: #3366cc !important; background-color: #243970 !important;
color: #FFFFFF !important; color: #FFFFFF !important;
} }
.information_class .el-input__inner, .information_class .el-input__inner,

@ -562,8 +562,7 @@ import {getList, getDetail, add, update, remove, reject, auditing} from "@/api/l
path: "/leger/equipmentledgerDetail", path: "/leger/equipmentledgerDetail",
query: { query: {
frameMode:"search", frameMode:"search",
id: row.id, id: row.id
checkstatus: row.checkStatus
}, },
}); });
}, },

@ -6,15 +6,7 @@
<span > <span >
<el-col > <el-col >
审核状态: 审核状态:
<avue-input v-model="form" placeholder="" class="frame_class1" style = "width: 100px"></avue-input> <avue-input v-model="form" placeholder="" class="frame_class1" style = "width: 100px"></avue-input>
<!-- <el-select v-model="checkStatusValue">-->
<!-- <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>
@ -141,20 +133,6 @@
} }
}; };
return { return {
checkStatusValue: this.$route.query.checkstatus,
optionCheckStatus: [{
value: 1,
label: '审核中'
}, {
value: 2,
label: '已审核'
}, {
value: 3,
label: '未通过'
}, {
value: 4,
label: ' '
}],
frame_class: '', frame_class: '',
type: {}, type: {},
shouldShowButton:{}, shouldShowButton:{},
@ -698,7 +676,6 @@
this.addUpdateShowButton=false; this.addUpdateShowButton=false;
this.UpdateShowButton=true; this.UpdateShowButton=true;
this.frame_class = 'frame_class1'; this.frame_class = 'frame_class1';
this.checkStatusValue = this.$route.query.checkstatus;
this.SearchDetail(); this.SearchDetail();
}else{ }else{
this.readonlyForm=false; this.readonlyForm=false;
@ -706,20 +683,6 @@
this.UpdateShowButton=false; this.UpdateShowButton=false;
this.addUpdateShowButton=true; this.addUpdateShowButton=true;
this.frame_class = null; this.frame_class = null;
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: {
@ -921,6 +884,19 @@
getDetail(this.$route.query.id).then(res => { getDetail(this.$route.query.id).then(res => {
console.log(res); console.log(res);
this.tab1_form = res.data.data; this.tab1_form = res.data.data;
switch (this.tab1_form.checkStatus){
case 1:
this.form = "审核中";
break;
case 2:
this.form = "已审核";
break;
case 3:
this.form = "未通过";
break;
default:
this.form =" ";
}
}); });
}, },
auditing() { auditing() {

@ -651,7 +651,6 @@ import {getList, getDetail, add, update, remove, closeticket} from "@/api/smart/
frameMode:"search", frameMode:"search",
id: row.id, id: row.id,
operationTicketNo:row.operationTicketNo, operationTicketNo:row.operationTicketNo,
reviewStatus: row.reviewStatus
}, },
}); });
}, },

@ -51,7 +51,7 @@
</span> </span>
<div class="container"> <div class="container">
<span > <span >
<el-button type="text" <el-button type="default"
size="large" size="large"
@click="back" @click="back"
v-if="addUpdateShowButton"> v-if="addUpdateShowButton">
@ -130,6 +130,27 @@ import {Alert} from "element-ui";
export default { export default {
name: "operationticketDetail", name: "operationticketDetail",
data () { data () {
var validateStartTime = (rule, value, callback) => {
alert(value);
if (value === '' || value ===null) {
callback(new Error('请输入计划开始日期'));
} else if(this.tab1_form.plannedEndTime !== '' && this.tab1_form.plannedEndTime !== null) {
if(this.tab1_form.plannedEndTime < value) {
callback(new Error('输入的计划开始日期大于计划结束日期'));
}
}
callback();
};
var validateEndTime = (rule, value, callback) => {
alert(value);
if (value === '' || value ===null ) {
callback(new Error('请输入计划结束日期'));
} else if(this.tab1_form.plannedStartTime > value) {
callback(new Error('输入的计划结束日期小于计划开始日期'));
}
callback();
};
return { return {
// checkStatusValue: this.$route.query.reviewStatus, // checkStatusValue: this.$route.query.reviewStatus,
// optionCheckStatus: [{ // optionCheckStatus: [{
@ -339,25 +360,17 @@ export default {
{ {
label: "计划开始时间", label: "计划开始时间",
prop: "plannedStartTime", prop: "plannedStartTime",
rules: [{
required: true,
message: "请输入计划开始时间",
trigger: "blur"
}],
type: "datetime", type: "datetime",
format: 'yyyy/MM/dd HH:mm:ss', format: 'yyyy/MM/dd HH:mm:ss',
valueFormat: "yyyyMMddHH:mm:ss", valueFormat: "yyyyMMddHH:mm:ss",
span: 8, span: 8,
maxlength: 20, maxlength: 20,
rules: [{required: true,validator: validateStartTime, trigger: 'blur' }],
}, },
{ {
label: "计划结束时间", label: "计划结束时间",
prop: "plannedEndTime", prop: "plannedEndTime",
rules: [{ rules: [{ required: true,validator: validateEndTime, trigger: 'blur' }],
required: true,
message: "请输入计划结束时间",
trigger: "blur"
}],
type: "datetime", type: "datetime",
format: 'yyyy/MM/dd HH:mm:ss', format: 'yyyy/MM/dd HH:mm:ss',
valueFormat: "yyyyMMddHH:mm:ss", valueFormat: "yyyyMMddHH:mm:ss",
@ -626,7 +639,7 @@ export default {
this.shouldShowButton=false; this.shouldShowButton=false;
this.addUpdateShowButton=true; this.addUpdateShowButton=true;
this.addUpdateShowButton=true; this.addUpdateShowButton=true;
this.frame_class = null; this.frame_class = "";
}else{ }else{
this.readonlyForm=false; this.readonlyForm=false;
this.shouldShowButton=true; this.shouldShowButton=true;
@ -634,19 +647,6 @@ export default {
this.frame_class = 'frame_class1'; this.frame_class = 'frame_class1';
this.SearchDetail(); this.SearchDetail();
} }
switch (this.$route.query.reviewStatus){
case 1:
this.form = "审核中";
break;
case 2:
this.form = "已审核";
break;
case 3:
this.form = "未通过";
break;
default:
this.form =" ";
}
// if(this.$route.query.reviewStatus ===1){ // if(this.$route.query.reviewStatus ===1){
// this.form = ""; // this.form = "";
// }else if(this.$route.query.reviewStatus ===2){ // }else if(this.$route.query.reviewStatus ===2){
@ -659,17 +659,26 @@ export default {
}, },
methods: { methods: {
handleFormSubmit() { handleFormSubmit() {
const form = this.$refs.tab1_form; this.$refs.tab1_form.validate((valid, done, msg) => {
form.validate((valid) => {
if (valid) { if (valid) {
done()
this.Submit(); this.Submit();
} else { } else {
this.$message({ console.log('error submit!!');
type: "warning", return false;
message: "请输入必要信息!"
});
} }
}); });
// const form = this.$refs.tab1_form;
// form.validate((valid) => {
// if (valid) {
// this.Submit();
// } else {
// this.$message({
// type: "warning",
// message: "!"
// });
// }
// });
}, },
// //
Submit() { Submit() {
@ -842,6 +851,19 @@ export default {
getDetail(this.$route.query.id).then(res => { getDetail(this.$route.query.id).then(res => {
console.log(res); console.log(res);
this.tab1_form = res.data.data; this.tab1_form = res.data.data;
switch (this.tab1_form.reviewStatus){
case 1:
this.form = "审核中";
break;
case 2:
this.form = "已审核";
break;
case 3:
this.form = "未通过";
break;
default:
this.form =" ";
}
}); });
}, },
auditing() { auditing() {

@ -493,8 +493,7 @@
path: "/workorder/detail", path: "/workorder/detail",
query: { query: {
frameMode:"search", frameMode:"search",
id: row.id, id: row.id
checkstatus: row.approvalStatus
}, },
}); });
}, },

@ -4,8 +4,9 @@
<el-row :span="24"> <el-row :span="24">
<div class="check_status_class"> <div class="check_status_class">
<span> <span>
<el-col> <el-col >
{{ getOptionCheckStatusLabel($route.query.checkstatus) }} 审核状态:
<avue-input v-model="form" placeholder="" class="frame_class1" style = "width: 100px"></avue-input>
</el-col> </el-col>
</span> </span>
</div> </div>
@ -58,7 +59,6 @@
value: 4, value: 4,
label: '' label: ''
}], }],
checkStatusValue: this.$route.query.checkstatus,
item_form: {}, item_form: {},
option: { option: {
column: [{ column: [{
@ -316,7 +316,6 @@
this.shouldShowButton = false; this.shouldShowButton = false;
this.addupdateShowButton = true; this.addupdateShowButton = true;
this.frame_class = null; this.frame_class = null;
this.checkStatusValue = this.$route.query.checkstatus;
this.searchDetail(); this.searchDetail();
} else if (this.$route.query.frameMode == "search") { } else if (this.$route.query.frameMode == "search") {
this.tab1_option.column[1].disabled = false; this.tab1_option.column[1].disabled = false;
@ -326,7 +325,6 @@
this.addupdateShowButton = false; this.addupdateShowButton = false;
this.frame_class = 'frame_class1'; this.frame_class = 'frame_class1';
this.searchDetail(); this.searchDetail();
this.checkStatusValue = 4;
} }
}, },
methods: { methods: {
@ -363,6 +361,19 @@
searchDetail() { searchDetail() {
getDetail(this.$route.query.id).then(res => { getDetail(this.$route.query.id).then(res => {
this.tab1_form = res.data.data; this.tab1_form = res.data.data;
switch (this.tab1_form.approvalStatus){
case 1:
this.form = "审核中";
break;
case 2:
this.form = "已审核";
break;
case 3:
this.form = "未通过";
break;
default:
this.form =" ";
}
}); });
}, },
submitForm() { submitForm() {

@ -435,7 +435,6 @@
query: { query: {
frameMode:"search", frameMode:"search",
id: row.id, id: row.id,
checkstatus: row.checkStatus,
ticketCode:row.ticketCode ticketCode:row.ticketCode
}, },
}); });

@ -547,20 +547,6 @@
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() {
@ -714,6 +700,19 @@
getDetail(this.$route.query.id).then(res => { getDetail(this.$route.query.id).then(res => {
console.log(res); console.log(res);
this.tab1_form = res.data.data; this.tab1_form = res.data.data;
switch (this.tab1_form.checkStatus){
case 1:
this.form = "审核中";
break;
case 2:
this.form = "已审核";
break;
case 3:
this.form = "未通过";
break;
default:
this.form =" ";
}
}); });
}, },
closeTicket() { closeTicket() {

Loading…
Cancel
Save