行车设备检查登记簿 代码调整

This commit is contained in:
joylink_cuiweidong 2023-02-06 16:37:47 +08:00
parent be2bf8065d
commit 41d2c9d4d7
4 changed files with 250 additions and 25 deletions

View File

@ -906,6 +906,16 @@ export const menuOperate = {
railQueryRegister: {
operation: OperationEvent.RailCommand.railQueryRegister.menu.operation,
cmdType: CMD.RAIL.CMD_RAIL_QUERY_REGISTER
},
// 行车设备施工登记簿 保存
equipmentConstructionFill:{
operation: OperationEvent.RailCommand.equipmentConstructionFill.menu.operation,
cmdType: CMD.RAIL.CMD_RAIL_EQUIPMENT_CONSTRUCTION_INFO_SAVE
},
// 行车设备施工登记簿 列表
equipmentConstructionQuery:{
operation: OperationEvent.RailCommand.equipmentConstructionQuery.menu.operation,
cmdType: CMD.RAIL.CMD_RAIL_EQUIPMENT_CONSTRUCTION_INFO_QUERY
}
},
Conversation: {

View File

@ -490,7 +490,9 @@ export default {
CMD_RAIL_QUERY_TICKET: {value: 'RAIL_QUERY_TICKET', label: '查询票据'},
CMD_RAIL_FILL_IN_REGISTER: {value: 'RAIL_FILL_IN_REGISTER', label: '填写行车簿册'},
CMD_RAIL_QUERY_REGISTER: {value: 'RAIL_QUERY_REGISTER', label: '查询行车簿册'},
CMD_RAIL_GIVE_TICKET_TO: {value: 'RAIL_GIVE_TICKET_TO', label: '给出票据'}
CMD_RAIL_GIVE_TICKET_TO: {value: 'RAIL_GIVE_TICKET_TO', label: '给出票据'},
CMD_RAIL_EQUIPMENT_CONSTRUCTION_INFO_SAVE:{value: 'EQUIPMENT_CONSTRUCTION_INFO_SAVE', label: '填写施工登记簿册'},
CMD_RAIL_EQUIPMENT_CONSTRUCTION_INFO_QUERY:{value: 'EQUIPMENT_CONSTRUCTION_INFO_QUERY', label: '查询施工登记簿册'}
},
Conversation: {
CMD_Conversation_Chat_Text: {value: 'Conversation_Chat_Text', label: '发送文本消息'},

View File

@ -4395,6 +4395,62 @@ export const OperationEvent = {
operation: '1205',
domId: '_Tips-Rail-railGiveTicketTo'
}
},
equipmentConstructionFill: {
menu: {
operation: '1206',
domId: '_Tips-Rail-equipmentConstructionFill-Menu'
},
constructionInput:{
operation: '1207',
domId: '_Tips-Rail-equipmentConstructionFill-Input'
},
num:{
operation: '1208',
domId: '_Tips-Rail-equipmentConstructionFill-num'
},
projectName:{
operation: '1209',
domId: '_Tips-Rail-equipmentConstructionFill-projectName'
},
requestDate:{
operation: '120a',
domId: '_Tips-Rail-equipmentConstructionFill-requestDate'
},
requestDetails:{
operation: '120b',
domId: '_Tips-Rail-equipmentConstructionFill-requestDetails'
},
planSpendTime:{
operation: '120c',
domId: '_Tips-Rail-equipmentConstructionFill-planSpendTime'
},
acceptDetail:{
operation: '120d',
domId: '_Tips-Rail-equipmentConstructionFill-acceptDetail'
},
confirmReviewDate:{
operation: '120e',
domId: '_Tips-Rail-equipmentConstructionFill-confirmReviewDate'
},
confirmReviewDetail:{
operation: '120f',
domId: '_Tips-Rail-equipmentConstructionFill-confirmReviewDetail'
},
constructionOpenDetail:{
operation: '1207g',
domId: '_Tips-Rail-equipmentConstructionFill-constructionOpenDetail'
},
remark:{
operation: '1207h',
domId: '_Tips-Rail-equipmentConstructionFill-remark'
}
},
equipmentConstructionQuery: {
menu: {
operation: '120I',
domId: '_Tips-Rail-equipmentConstructionQuery'
}
}
},
Driver: {

View File

@ -1,70 +1,227 @@
<template>
<div class="equipmentConstructionTable">
<div style="text-align: right;">
<!-- :id="registerInput.addData.domId" -->
<el-button size="small" class="addConstruction" type="primary" @click="add">新增</el-button>
<el-button :id="constructionFill.constructionInput.domId" size="small" class="addConstruction" type="primary" @click="add">新增</el-button>
</div>
<el-table
:data="tableData"
style="width: 100%"
style="width:100%"
>
<el-table-column label="请求施工(慢行及封锁)登记">
<el-table-column prop="noticeDate" label="本月施工编号" width="120">
<!-- -->
<el-table-column prop="no" label="本月施工编号" width="120">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.num.domId" v-model="scope.row.no" @blur="numChange(scope.row.no)" />
<span v-else>{{ scope.row.no }}</span>
</template>
</el-table-column>
<el-table-column prop="noticeDate" label="施工项目" width="100" />
<el-table-column prop="noticeDate" :label="'月日\n时分'" width="100">
<!-- -->
<el-table-column prop="projectName" label="施工项目" width="100">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.projectName.domId" v-model="scope.row.projectName" @blur="projectNameChange(scope.row.projectName)" />
<span v-else>{{ scope.row.projectName }}</span>
</template>
</el-table-column>
<el-table-column :label="'1影响使用范围需要的慢行或封锁条件 \n2施工负责人签名 \n3设备单位检查人签名 \n4车站值班员签名'" width="300">
<!-- -->
<el-table-column prop="requestDate" :label="'月日\n时分'" width="80">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.requestDate.domId" v-model="scope.row.requestDate" @blur="requestDateChange(scope.row.requestDate)" />
<span v-else>{{ scope.row.requestDate }}</span>
</template>
</el-table-column>
<el-table-column :label="'所需\n时分'" width="100">
<!-- -->
<el-table-column prop="requestDetails" :label="'1影响使用范围需要的慢行或封锁条件 \n2施工负责人签名 \n3设备单位检查人签名 \n4车站值班员签名'" width="300">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.requestDetails.domId" v-model="scope.row.requestDetails" @blur="requestDetailsChange(scope.row.requestDetails)" />
<span v-else>{{ scope.row.requestDetails }}</span>
</template>
</el-table-column>
<el-table-column prop="planSpendTime" :label="'所需\n时分'" width="80">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.planSpendTime.domId" v-model="scope.row.planSpendTime" @blur="planSpendTimeChange(scope.row.planSpendTime)" />
<span v-else>{{ scope.row.planSpendTime }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="承认施工">
<el-table-column :label="'1命令号及发令时间\n2慢行及封锁起止时间\n3设备单位检查人签名\n4车站值班员签名'" width="200">
<!-- -->
<el-table-column prop="acceptDetail" :label="'1命令号及发令时间\n2慢行及封锁起止时间\n3设备单位检查人签名\n4车站值班员签名'" width="200">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.acceptDetail.domId" v-model="scope.row.acceptDetail" @blur="acceptDetailChange(scope.row.acceptDetail)" />
<span v-else>{{ scope.row.acceptDetail }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="施工后开通检查确认、销记">
<el-table-column prop="noticeDate" :label="'月日\n时分'" width="100">
<!-- -->
<el-table-column prop="confirmReviewDate" :label="'月日\n时分'" width="80">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.confirmReviewDate.domId" v-model="scope.row.confirmReviewDate" @blur="confirmReviewDateChange(scope.row.confirmReviewDate)" />
<span v-else>{{ scope.row.confirmReviewDate }}</span>
</template>
</el-table-column>
<el-table-column :label="'1影响使用范围需要的慢行或封锁条件\n2施工负责人签名\n3设备单位检查人签名\n4车站值班员签名'" width="300">
<!-- -->
<el-table-column prop="confirmReviewDetail" :label="'1影响使用范围需要的慢行或封锁条件\n2施工负责人签名\n3设备单位检查人签名\n4车站值班员签名'" width="300">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.confirmReviewDetail.domId" v-model="scope.row.confirmReviewDetail" @blur="confirmReviewDetailChange(scope.row.confirmReviewDetail)" />
<span v-else>{{ scope.row.confirmReviewDetail }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="施工开通">
<el-table-column :label="'1开通恢复常速命令号及开通时间\n2施工负责人签名\n3设备单位检查人签名\n4车站值班员签名'" width="300">
<!-- -->
<el-table-column prop="constructionOpenDetail" :label="'1开通恢复常速命令号及开通时间\n2施工负责人签名\n3设备单位检查人签名\n4车站值班员签名'" width="300">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.constructionOpenDetail.domId" v-model="scope.row.constructionOpenDetail" @blur="constructionOpenDetailChange(scope.row.constructionOpenDetail)" />
<span v-else>{{ scope.row.constructionOpenDetail }}</span>
</template>
</el-table-column>
</el-table-column>
<el-table-column label="备注">
<!-- -->
<el-table-column label="备注" prop="remark">
<template slot-scope="scope">
<el-input v-if="dataIndex === scope.$index" :id="constructionFill.remark.domId" v-model="scope.row.remark" @blur="remarkChange(scope.row.remark)" />
<span v-else>{{ scope.row.remark }}</span>
</template>
</el-table-column>
<el-table-column label="" width="60">
<template slot-scope="scope">
<!-- :id="railFillInRegister.domId" -->
<el-button v-if="dataIndex === scope.$index" type="text" size="small" @click="saveData(scope.row, scope.$index)">保存</el-button>
<!-- :id="railFillInRegister.domId" -->
<el-button v-else type="text" size="small" @click="modifyData(scope.row, scope.$index)">修改</el-button>
</template>
</el-table-column>
</el-table>
</div>
</template>
<script>
// equipmentConstructionFill
// equipmentConstructionQuery
// // a.EQUIPMENT_CONSTRUCTION_INFO_SAVE
// // ,
// // b.EQUIPMENT_CONSTRUCTION_INFO_QUERY
// // stationCode
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
export default {
name:'EquipmentConstructionTable',
data() {
return {
tableData:[]
tableData:[],
isEdit:false,
dataIndex: null
};
},
computed: {
constructionFill() {
return OperationEvent.RailCommand.equipmentConstructionFill;
},
constructionFillIn() {
return OperationEvent.RailCommand.equipmentConstructionFill.menu;
}
},
mounted() {
this.queryData();
},
methods:{
add() {
const operate = {
start: true,
operation: this.constructionFill.constructionInput.operation
};
this.$store.dispatch('trainingNew/next', operate).then(resp => {
const data = {
no: '', //
projectName: '', //
requestDate: '', //
requestDetails: '', //
planSpendTime:'', //
acceptDetail:'', //
confirmReviewDate:'', //
confirmReviewDetail:'', //
constructionOpenDetail:'', //
remark:'' //
};
this.dataIndex = this.tableData.length || 0;
this.tableData.push(data);
});
},
queryData() {
debugger;
},
numChange(val) {
const operate = {
operation: this.constructionFill.num.operation,
val: val
};
this.$store.dispatch('trainingNew/next', operate);
},
projectNameChange(val) {
const operate = {
operation: this.constructionFill.projectName.operation,
val: val
};
this.$store.dispatch('trainingNew/next', operate);
},
requestDateChange(val) {
const operate = {
operation: this.constructionFill.requestDate.operation,
val: val
};
this.$store.dispatch('trainingNew/next', operate);
},
requestDetailsChange(val) {
const operate = {
operation: this.constructionFill.requestDetails.operation,
val: val
};
this.$store.dispatch('trainingNew/next', operate);
},
planSpendTimeChange(val) {
const operate = {
operation: this.constructionFill.planSpendTime.operation,
val: val
};
this.$store.dispatch('trainingNew/next', operate);
},
acceptDetailChange(val) {
const operate = {
operation: this.constructionFill.acceptDetail.operation,
val: val
};
this.$store.dispatch('trainingNew/next', operate);
},
confirmReviewDateChange(val) {
const operate = {
operation: this.constructionFill.confirmReviewDate.operation,
val: val
};
this.$store.dispatch('trainingNew/next', operate);
},
confirmReviewDetailChange(val) {
const operate = {
operation: this.constructionFill.confirmReviewDetail.operation,
val: val
};
this.$store.dispatch('trainingNew/next', operate);
},
constructionOpenDetailChange(val) {
const operate = {
operation: this.constructionFill.constructionOpenDetail.operation,
val: val
};
this.$store.dispatch('trainingNew/next', operate);
},
remarkChange(val) {
const operate = {
operation: this.constructionFill.remark.operation,
val: val
};
this.$store.dispatch('trainingNew/next', operate);
},
saveData(data, index) {
},
modifyData(data, index) {
this.dataIndex = index;
}
}
};
</script>
<style lang="scss">
.equipmentConstructionTable{
width:91%;margin-left:15px
}
.el-table .cell {
white-space: pre-line;