行车设备检查登记簿 代码调整
This commit is contained in:
parent
be2bf8065d
commit
41d2c9d4d7
@ -906,6 +906,16 @@ export const menuOperate = {
|
|||||||
railQueryRegister: {
|
railQueryRegister: {
|
||||||
operation: OperationEvent.RailCommand.railQueryRegister.menu.operation,
|
operation: OperationEvent.RailCommand.railQueryRegister.menu.operation,
|
||||||
cmdType: CMD.RAIL.CMD_RAIL_QUERY_REGISTER
|
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: {
|
Conversation: {
|
||||||
|
@ -490,7 +490,9 @@ export default {
|
|||||||
CMD_RAIL_QUERY_TICKET: {value: 'RAIL_QUERY_TICKET', label: '查询票据'},
|
CMD_RAIL_QUERY_TICKET: {value: 'RAIL_QUERY_TICKET', label: '查询票据'},
|
||||||
CMD_RAIL_FILL_IN_REGISTER: {value: 'RAIL_FILL_IN_REGISTER', label: '填写行车簿册'},
|
CMD_RAIL_FILL_IN_REGISTER: {value: 'RAIL_FILL_IN_REGISTER', label: '填写行车簿册'},
|
||||||
CMD_RAIL_QUERY_REGISTER: {value: 'RAIL_QUERY_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: {
|
Conversation: {
|
||||||
CMD_Conversation_Chat_Text: {value: 'Conversation_Chat_Text', label: '发送文本消息'},
|
CMD_Conversation_Chat_Text: {value: 'Conversation_Chat_Text', label: '发送文本消息'},
|
||||||
|
@ -4395,6 +4395,62 @@ export const OperationEvent = {
|
|||||||
operation: '1205',
|
operation: '1205',
|
||||||
domId: '_Tips-Rail-railGiveTicketTo'
|
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: {
|
Driver: {
|
||||||
|
@ -1,70 +1,227 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="equipmentConstructionTable">
|
<div class="equipmentConstructionTable">
|
||||||
<div style="text-align: right;">
|
<div style="text-align: right;">
|
||||||
<!-- :id="registerInput.addData.domId" -->
|
<el-button :id="constructionFill.constructionInput.domId" size="small" class="addConstruction" type="primary" @click="add">新增</el-button>
|
||||||
<el-button size="small" class="addConstruction" type="primary" @click="add">新增</el-button>
|
|
||||||
</div>
|
</div>
|
||||||
<el-table
|
<el-table
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
style="width:100%"
|
style="width:100%"
|
||||||
>
|
>
|
||||||
<el-table-column label="请求施工(慢行及封锁)登记">
|
<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>
|
||||||
<el-table-column prop="noticeDate" label="施工项目" width="100" />
|
<el-table-column prop="projectName" label="施工项目" width="100">
|
||||||
<el-table-column prop="noticeDate" :label="'月日\n时分'" 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>
|
||||||
<el-table-column :label="'(1)影响使用范围(需要的慢行或封锁条件 \n(2)施工负责人签名 \n(3)设备单位检查人签名 \n(4)车站值班员签名'" 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>
|
||||||
<el-table-column :label="'所需\n时分'" width="100">
|
<el-table-column prop="requestDetails" :label="'(1)影响使用范围(需要的慢行或封锁条件 \n(2)施工负责人签名 \n(3)设备单位检查人签名 \n(4)车站值班员签名'" 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>
|
</el-table-column>
|
||||||
<el-table-column label="承认施工">
|
<el-table-column label="承认施工">
|
||||||
<el-table-column :label="'(1)命令号及发令时间\n(2)慢行及封锁起止时间\n(3)设备单位检查人签名\n(4)车站值班员签名'" width="200">
|
<el-table-column prop="acceptDetail" :label="'(1)命令号及发令时间\n(2)慢行及封锁起止时间\n(3)设备单位检查人签名\n(4)车站值班员签名'" 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>
|
</el-table-column>
|
||||||
<el-table-column label="施工后开通检查确认、销记">
|
<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>
|
||||||
<el-table-column :label="'(1)影响使用范围(需要的慢行或封锁条件\n(2)施工负责人签名\n(3)设备单位检查人签名\n(4)车站值班员签名'" width="300">
|
<el-table-column prop="confirmReviewDetail" :label="'(1)影响使用范围(需要的慢行或封锁条件\n(2)施工负责人签名\n(3)设备单位检查人签名\n(4)车站值班员签名'" 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>
|
</el-table-column>
|
||||||
<el-table-column label="施工开通">
|
<el-table-column label="施工开通">
|
||||||
<el-table-column :label="'(1)开通(恢复常速)命令号及开通时间\n(2)施工负责人签名\n(3)设备单位检查人签名\n(4)车站值班员签名'" width="300">
|
<el-table-column prop="constructionOpenDetail" :label="'(1)开通(恢复常速)命令号及开通时间\n(2)施工负责人签名\n(3)设备单位检查人签名\n(4)车站值班员签名'" 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>
|
</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-column>
|
||||||
|
|
||||||
</el-table>
|
</el-table>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
// equipmentConstructionFill
|
||||||
|
// equipmentConstructionQuery
|
||||||
|
// // a.保存:EQUIPMENT_CONSTRUCTION_INFO_SAVE
|
||||||
|
// // 参数:【下方实体字段,添加不要主键】
|
||||||
|
// // b.列表:EQUIPMENT_CONSTRUCTION_INFO_QUERY
|
||||||
|
// // 参数:stationCode【车站编码】
|
||||||
|
import { OperationEvent } from '@/scripts/cmdPlugin/OperationHandler';
|
||||||
export default {
|
export default {
|
||||||
name:'EquipmentConstructionTable',
|
name:'EquipmentConstructionTable',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tableData:[]
|
tableData:[],
|
||||||
|
isEdit:false,
|
||||||
|
dataIndex: null
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
computed: {
|
||||||
|
constructionFill() {
|
||||||
|
return OperationEvent.RailCommand.equipmentConstructionFill;
|
||||||
|
},
|
||||||
|
constructionFillIn() {
|
||||||
|
return OperationEvent.RailCommand.equipmentConstructionFill.menu;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.queryData();
|
||||||
|
},
|
||||||
methods:{
|
methods:{
|
||||||
add() {
|
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>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.equipmentConstructionTable{
|
.equipmentConstructionTable{
|
||||||
|
width:91%;margin-left:15px
|
||||||
}
|
}
|
||||||
.el-table .cell {
|
.el-table .cell {
|
||||||
white-space: pre-line;
|
white-space: pre-line;
|
||||||
|
Loading…
Reference in New Issue
Block a user