fix: 智慧梁场PC端BUG修改
This commit is contained in:
parent
04f8e8a4d9
commit
83d2673a13
@ -96,14 +96,14 @@
|
|||||||
<img src="@/assets/images/icon-edit.png" width="15px" height="15px" />
|
<img src="@/assets/images/icon-edit.png" width="15px" height="15px" />
|
||||||
<span>详情</span>
|
<span>详情</span>
|
||||||
</div> -->
|
</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" />
|
<img src="@/assets/images/icon-edit.png" width="15px" height="15px" />
|
||||||
<span>编辑</span>
|
<span>编辑</span>
|
||||||
</div>
|
</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" />
|
<img src="@/assets/images/icon-delete.png" width="15px" height="15px" />
|
||||||
<span>删除</span>
|
<span>删除</span>
|
||||||
</div>
|
</div> -->
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@ -211,7 +211,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column type="index" label="序号" align="center" width="200"></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="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">
|
<template slot-scope="scope">
|
||||||
<div v-if="scope.row.useProductionLine">
|
<div v-if="scope.row.useProductionLine">
|
||||||
是
|
是
|
||||||
@ -622,6 +622,7 @@ export default {
|
|||||||
// console.log('成功绑定生产线', res)
|
// console.log('成功绑定生产线', res)
|
||||||
this.closeProductLine()
|
this.closeProductLine()
|
||||||
this.getProductList()
|
this.getProductList()
|
||||||
|
this.getList()
|
||||||
this.$message.success('绑定成功')
|
this.$message.success('绑定成功')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
@ -546,8 +546,12 @@ export default {
|
|||||||
this.title = '编辑梁'
|
this.title = '编辑梁'
|
||||||
this.dialogShow = true
|
this.dialogShow = true
|
||||||
this.addEditForm = JSON.parse(JSON.stringify(obj))
|
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)
|
console.log("编辑梁信息",this.addEditForm)
|
||||||
},
|
},
|
||||||
submit() {
|
submit() {
|
||||||
|
|||||||
@ -4,7 +4,7 @@
|
|||||||
<div class="searchBox whiteBlock">
|
<div class="searchBox whiteBlock">
|
||||||
<el-form :inline="true" size="medium" :model="searchForm" ref="searchForm">
|
<el-form :inline="true" size="medium" :model="searchForm" ref="searchForm">
|
||||||
<el-form-item label="台座编号/名称">
|
<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>
|
||||||
<el-form-item label="日期">
|
<el-form-item label="日期">
|
||||||
<el-date-picker
|
<el-date-picker
|
||||||
@ -14,6 +14,7 @@
|
|||||||
:start-placeholder="$t('message.energyManage.start')"
|
:start-placeholder="$t('message.energyManage.start')"
|
||||||
:end-placeholder="$t('message.energyManage.end')"
|
:end-placeholder="$t('message.energyManage.end')"
|
||||||
value-format="yyyy-MM-dd"
|
value-format="yyyy-MM-dd"
|
||||||
|
@change="changeDate"
|
||||||
>
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -96,7 +97,7 @@
|
|||||||
background
|
background
|
||||||
></el-pagination>
|
></el-pagination>
|
||||||
</div>
|
</div>
|
||||||
<!-- 新增桥梁 -->
|
<!-- 新增制梁台座 -->
|
||||||
<el-dialog :modal-append-to-body="false" :title="cardDialogTitle" :visible.sync="cardDialog" width="667px" @close="close">
|
<el-dialog :modal-append-to-body="false" :title="cardDialogTitle" :visible.sync="cardDialog" width="667px" @close="close">
|
||||||
<div class="dialog_content">
|
<div class="dialog_content">
|
||||||
<el-form size="medium" :model="cardForm" ref="cardForm" :rules="cardFormRules" label-width="150px" class="dialogFormBox">
|
<el-form size="medium" :model="cardForm" ref="cardForm" :rules="cardFormRules" label-width="150px" class="dialogFormBox">
|
||||||
@ -150,7 +151,9 @@ export default {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
searchForm: {
|
searchForm: {
|
||||||
makeBeamPedestalSn: ''
|
makeBeamPedestalSn: '',
|
||||||
|
actualStartDate: '',
|
||||||
|
actualFinishDate: ''
|
||||||
},
|
},
|
||||||
cardDialogTitle: '',
|
cardDialogTitle: '',
|
||||||
tableData: [],
|
tableData: [],
|
||||||
@ -187,6 +190,15 @@ export default {
|
|||||||
this.getPointList()
|
this.getPointList()
|
||||||
},
|
},
|
||||||
methods: {
|
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) {
|
processChange(e) {
|
||||||
console.log(e, '工序选中')
|
console.log(e, '工序选中')
|
||||||
const resultArray = e.map(id => {
|
const resultArray = e.map(id => {
|
||||||
@ -266,7 +278,9 @@ export default {
|
|||||||
pageNo: this.pageNo,
|
pageNo: this.pageNo,
|
||||||
pageSize: this.pageSize,
|
pageSize: this.pageSize,
|
||||||
projectSn: this.projectSn,
|
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 => {
|
makeBeamPedestalPage(data).then(res => {
|
||||||
console.log('----制梁台座列表', res)
|
console.log('----制梁台座列表', res)
|
||||||
@ -280,6 +294,12 @@ export default {
|
|||||||
},
|
},
|
||||||
editBtn(obj) {
|
editBtn(obj) {
|
||||||
console.log('编辑的信息', 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.cardDialog = true
|
||||||
this.isAdding = true
|
this.isAdding = true
|
||||||
this.cardForm = JSON.parse(JSON.stringify(obj))
|
this.cardForm = JSON.parse(JSON.stringify(obj))
|
||||||
@ -294,7 +314,7 @@ export default {
|
|||||||
// 删除
|
// 删除
|
||||||
toDelete(val) {
|
toDelete(val) {
|
||||||
console.log('删除', val)
|
console.log('删除', val)
|
||||||
this.$confirm('此操作将永久删除该巡检点, 是否继续?', '提示', {
|
this.$confirm('此操作将永久删除该制梁台座, 是否继续?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
|
|||||||
@ -105,7 +105,12 @@
|
|||||||
<img src="@/assets/images/icon-qrcode.png" width="15px" height="15px" />
|
<img src="@/assets/images/icon-qrcode.png" width="15px" height="15px" />
|
||||||
<span>二维码</span>
|
<span>二维码</span>
|
||||||
</div>
|
</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" />
|
<img src="@/assets/images/icon-product.png" width="15px" height="15px" />
|
||||||
<span>开始生产</span>
|
<span>开始生产</span>
|
||||||
</div>
|
</div>
|
||||||
@ -247,7 +252,7 @@ import {
|
|||||||
smartBridgeSectionDelete,
|
smartBridgeSectionDelete,
|
||||||
smartBridgeSectionPage,
|
smartBridgeSectionPage,
|
||||||
smartBridgeSectionList,
|
smartBridgeSectionList,
|
||||||
smartBeamFieldBeamStart, // 开始生产
|
smartBeamFieldBeamStart // 开始生产
|
||||||
} from '@/assets/js/api/smartBeamField.js'
|
} from '@/assets/js/api/smartBeamField.js'
|
||||||
import beamDetail from '@/views/projectFront/smartBeamField/beam-detail.vue'
|
import beamDetail from '@/views/projectFront/smartBeamField/beam-detail.vue'
|
||||||
export default {
|
export default {
|
||||||
@ -259,7 +264,7 @@ export default {
|
|||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
beamDetailId: "",
|
beamDetailId: '',
|
||||||
showLeftDialog: false,
|
showLeftDialog: false,
|
||||||
showBeamDetail: false,
|
showBeamDetail: false,
|
||||||
dateSelect: '',
|
dateSelect: '',
|
||||||
@ -406,7 +411,7 @@ export default {
|
|||||||
// 桥段搜索
|
// 桥段搜索
|
||||||
sectionChange(e) {
|
sectionChange(e) {
|
||||||
this.getBridgeSectionList()
|
this.getBridgeSectionList()
|
||||||
console.log("搜索桥段",e)
|
console.log('搜索桥段', e)
|
||||||
},
|
},
|
||||||
// 打开新增桥段弹窗
|
// 打开新增桥段弹窗
|
||||||
handle() {
|
handle() {
|
||||||
@ -546,9 +551,13 @@ export default {
|
|||||||
this.title = '编辑梁'
|
this.title = '编辑梁'
|
||||||
this.dialogShow = true
|
this.dialogShow = true
|
||||||
this.addEditForm = JSON.parse(JSON.stringify(obj))
|
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]
|
||||||
console.log("编辑梁信息",this.addEditForm)
|
// 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() {
|
submit() {
|
||||||
let params = JSON.parse(JSON.stringify(this.addEditForm))
|
let params = JSON.parse(JSON.stringify(this.addEditForm))
|
||||||
@ -655,12 +664,12 @@ export default {
|
|||||||
let a = document.createElement('a')
|
let a = document.createElement('a')
|
||||||
console.log(url)
|
console.log(url)
|
||||||
a.href = url
|
a.href = url
|
||||||
a.download = item.bridgeName
|
a.download = item.beamNo
|
||||||
a.click()
|
a.click()
|
||||||
document.removeChild(a)
|
document.removeChild(a)
|
||||||
}
|
}
|
||||||
x.send()
|
x.send()
|
||||||
},
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@ -167,8 +167,8 @@ export default {
|
|||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
toDelete(val) {
|
toDelete(val) {
|
||||||
console.log('删除', val)
|
// console.log('删除', val)
|
||||||
this.$confirm('此操作将永久删除该巡检点, 是否继续?', '提示', {
|
this.$confirm('此操作将永久删除该工序, 是否继续?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
|
|||||||
@ -301,8 +301,8 @@ export default {
|
|||||||
},
|
},
|
||||||
// 删除
|
// 删除
|
||||||
toDelete(val) {
|
toDelete(val) {
|
||||||
console.log('删除', val)
|
// console.log('删除', val)
|
||||||
this.$confirm('此操作将永久删除该巡检点, 是否继续?', '提示', {
|
this.$confirm('此操作将永久删除该生产线, 是否继续?', '提示', {
|
||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user