fix: 智慧梁场PC端BUG修改

This commit is contained in:
cjp 2023-12-12 11:49:17 +08:00
parent 04f8e8a4d9
commit 83d2673a13
6 changed files with 59 additions and 25 deletions

View File

@ -96,14 +96,14 @@
<img src="@/assets/images/icon-edit.png" width="15px" height="15px" />
<span>详情</span>
</div> -->
<div @click="processEdit(scope.row)" class="operationText" style="margin-right: 30px">
<div @click="processEdit(scope.row)" class="operationText">
<img src="@/assets/images/icon-edit.png" width="15px" height="15px" />
<span>编辑</span>
</div>
<div @click="deleteDev(scope.row)" class="operationText">
<!-- <div @click="deleteDev(scope.row)" class="operationText">
<img src="@/assets/images/icon-delete.png" width="15px" height="15px" />
<span>删除</span>
</div>
</div> -->
</div>
</template>
</el-table-column>
@ -211,7 +211,7 @@
</el-table-column>
<el-table-column type="index" label="序号" align="center" width="200"></el-table-column>
<el-table-column prop="productionLineName" label="生产线名称" align="center"></el-table-column>
<el-table-column prop="useProductionLine" label="是否被生产线绑定" align="center">
<el-table-column prop="useProductionLine" label="是否被绑定" align="center">
<template slot-scope="scope">
<div v-if="scope.row.useProductionLine">
@ -622,6 +622,7 @@ export default {
// console.log('线', res)
this.closeProductLine()
this.getProductList()
this.getList()
this.$message.success('绑定成功')
}
})

View File

@ -546,8 +546,12 @@ export default {
this.title = '编辑梁'
this.dialogShow = true
this.addEditForm = JSON.parse(JSON.stringify(obj))
this.addEditForm.markTime = [obj.plannedMakeBeamBeginTime,obj.plannedMakeBeamEndTime]
this.addEditForm.erectTime = [obj.plannedErectionBeamBeginTime,obj.plannedErectionBeamEndTime]
// 使
// this.addEditForm.markTime = [obj.plannedMakeBeamBeginTime, obj.plannedMakeBeamEndTime]
// this.addEditForm.erectTime = [obj.plannedErectionBeamBeginTime, obj.plannedErectionBeamEndTime]
//
this.$set(this.addEditForm, 'markTime', [obj.plannedMakeBeamBeginTime, obj.plannedMakeBeamEndTime])
this.$set(this.addEditForm, 'erectTime', [obj.plannedErectionBeamBeginTime, obj.plannedErectionBeamEndTime])
console.log("编辑梁信息",this.addEditForm)
},
submit() {

View File

@ -4,7 +4,7 @@
<div class="searchBox whiteBlock">
<el-form :inline="true" size="medium" :model="searchForm" ref="searchForm">
<el-form-item label="台座编号/名称">
<el-input placeholder="请输入" v-model="searchForm.makeBeamPedestalSn"></el-input>
<el-input placeholder="请输入" v-model="searchForm.makeBeamPedestalSn" clearable></el-input>
</el-form-item>
<el-form-item label="日期">
<el-date-picker
@ -14,6 +14,7 @@
:start-placeholder="$t('message.energyManage.start')"
:end-placeholder="$t('message.energyManage.end')"
value-format="yyyy-MM-dd"
@change="changeDate"
>
</el-date-picker>
</el-form-item>
@ -96,7 +97,7 @@
background
></el-pagination>
</div>
<!-- 新增桥梁 -->
<!-- 新增制梁台座 -->
<el-dialog :modal-append-to-body="false" :title="cardDialogTitle" :visible.sync="cardDialog" width="667px" @close="close">
<div class="dialog_content">
<el-form size="medium" :model="cardForm" ref="cardForm" :rules="cardFormRules" label-width="150px" class="dialogFormBox">
@ -150,7 +151,9 @@ export default {
}
],
searchForm: {
makeBeamPedestalSn: ''
makeBeamPedestalSn: '',
actualStartDate: '',
actualFinishDate: ''
},
cardDialogTitle: '',
tableData: [],
@ -187,6 +190,15 @@ export default {
this.getPointList()
},
methods: {
changeDate() {
if (this.daterange) {
this.searchForm.actualStartDate = this.daterange[0]
this.searchForm.actualFinishDate = this.daterange[1]
} else {
this.searchForm.actualStartDate = ''
this.searchForm.actualFinishDate = ''
}
},
processChange(e) {
console.log(e, '工序选中')
const resultArray = e.map(id => {
@ -266,7 +278,9 @@ export default {
pageNo: this.pageNo,
pageSize: this.pageSize,
projectSn: this.projectSn,
bridgeName: this.searchForm.bridgeName
makeBeamPedestalSn: this.searchForm.makeBeamPedestalSn,
createDate_begin: this.searchForm.actualStartDate,
createDate_end: this.searchForm.actualFinishDate
}
makeBeamPedestalPage(data).then(res => {
console.log('----制梁台座列表', res)
@ -280,6 +294,12 @@ export default {
},
editBtn(obj) {
console.log('编辑的信息', obj)
if (obj.pedestalProcess.length > 0) {
const dataArray = obj.pedestalProcess.split(',').map(item => item.trim())
// console.log(dataArray,"")
this.processOptionValue = dataArray
}
this.cardDialog = true
this.isAdding = true
this.cardForm = JSON.parse(JSON.stringify(obj))
@ -294,7 +314,7 @@ export default {
//
toDelete(val) {
console.log('删除', val)
this.$confirm('此操作将永久删除该巡检点, 是否继续?', '提示', {
this.$confirm('此操作将永久删除该制梁台座, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'

View File

@ -76,7 +76,7 @@
<el-table-column prop="beamNo" align="center" label="梁号" width="80"></el-table-column>
<el-table-column prop="bridgeSectionName" align="center" label="所属桥段" width="100"></el-table-column>
<el-table-column prop="beamAndPlateType" align="center" label="梁板类型" width="100"></el-table-column>
<el-table-column prop="beamMakeStatus" align="center" label="制梁状态" width="90">
<el-table-column prop="beamMakeStatus" align="center" label="制梁状态" width="90">
<template slot-scope="scope">
<div>
{{ beamMakeOptions[scope.row.beamMakeStatus - 1].label }}
@ -105,7 +105,12 @@
<img src="@/assets/images/icon-qrcode.png" width="15px" height="15px" />
<span>二维码</span>
</div>
<div @click="startProduct(scope.row)" class="operationText" style="margin-right: 30px" v-if="scope.row.beamMakeStatus === 1">
<div
@click="startProduct(scope.row)"
class="operationText"
style="margin-right: 30px"
v-if="scope.row.beamMakeStatus === 1"
>
<img src="@/assets/images/icon-product.png" width="15px" height="15px" />
<span>开始生产</span>
</div>
@ -247,7 +252,7 @@ import {
smartBridgeSectionDelete,
smartBridgeSectionPage,
smartBridgeSectionList,
smartBeamFieldBeamStart, //
smartBeamFieldBeamStart //
} from '@/assets/js/api/smartBeamField.js'
import beamDetail from '@/views/projectFront/smartBeamField/beam-detail.vue'
export default {
@ -259,7 +264,7 @@ export default {
},
data() {
return {
beamDetailId: "",
beamDetailId: '',
showLeftDialog: false,
showBeamDetail: false,
dateSelect: '',
@ -406,7 +411,7 @@ export default {
//
sectionChange(e) {
this.getBridgeSectionList()
console.log("搜索桥段",e)
console.log('搜索桥段', e)
},
//
handle() {
@ -546,9 +551,13 @@ export default {
this.title = '编辑梁'
this.dialogShow = true
this.addEditForm = JSON.parse(JSON.stringify(obj))
this.addEditForm.markTime = [obj.plannedMakeBeamBeginTime,obj.plannedMakeBeamEndTime]
this.addEditForm.erectTime = [obj.plannedErectionBeamBeginTime,obj.plannedErectionBeamEndTime]
console.log("编辑梁信息",this.addEditForm)
// 使
// this.addEditForm.markTime = [obj.plannedMakeBeamBeginTime, obj.plannedMakeBeamEndTime]
// this.addEditForm.erectTime = [obj.plannedErectionBeamBeginTime, obj.plannedErectionBeamEndTime]
//
this.$set(this.addEditForm, 'markTime', [obj.plannedMakeBeamBeginTime, obj.plannedMakeBeamEndTime])
this.$set(this.addEditForm, 'erectTime', [obj.plannedErectionBeamBeginTime, obj.plannedErectionBeamEndTime])
console.log('编辑梁信息', this.addEditForm)
},
submit() {
let params = JSON.parse(JSON.stringify(this.addEditForm))
@ -655,12 +664,12 @@ export default {
let a = document.createElement('a')
console.log(url)
a.href = url
a.download = item.bridgeName
a.download = item.beamNo
a.click()
document.removeChild(a)
}
x.send()
},
}
}
}
</script>

View File

@ -167,8 +167,8 @@ export default {
},
//
toDelete(val) {
console.log('删除', val)
this.$confirm('此操作将永久删除该巡检点, 是否继续?', '提示', {
// console.log('', val)
this.$confirm('此操作将永久删除该工序, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'

View File

@ -301,8 +301,8 @@ export default {
},
//
toDelete(val) {
console.log('删除', val)
this.$confirm('此操作将永久删除该巡检点, 是否继续?', '提示', {
// console.log('', val)
this.$confirm('此操作将永久删除该生产线, 是否继续?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'