fix: BUG修改
This commit is contained in:
parent
12a39cf488
commit
a7c12b8a20
@ -54,7 +54,9 @@ export const deleteSafeInspectTaskRecordApi = data => post('xmgl/xzSecurityInspe
|
|||||||
|
|
||||||
//子任务管理
|
//子任务管理
|
||||||
export const getinspectTaskItemRecordApi = data => post('xmgl/inspectTaskItemRecord/list', data);
|
export const getinspectTaskItemRecordApi = data => post('xmgl/inspectTaskItemRecord/list', data);
|
||||||
|
export const getSafeinspectTaskItemRecordApi = data => post('xmgl/SafeInspectTaskItemRecord/list', data);
|
||||||
export const deleteinspectTaskItemRecordApi = data => post('xmgl/inspectTaskItemRecord/delete', data);
|
export const deleteinspectTaskItemRecordApi = data => post('xmgl/inspectTaskItemRecord/delete', data);
|
||||||
|
export const deleteSafeinspectTaskItemRecordApi = data => post('xmgl/SafeInspectTaskItemRecord/delete', data);
|
||||||
|
|
||||||
//隐患检查记录
|
//隐患检查记录
|
||||||
export const gethiddenDangerInspectRecordApi = data => post('xmgl/hiddenDangerInspectRecord/list', data);
|
export const gethiddenDangerInspectRecordApi = data => post('xmgl/hiddenDangerInspectRecord/list', data);
|
||||||
|
|||||||
@ -695,6 +695,12 @@ const routes2 = [
|
|||||||
component: () =>
|
component: () =>
|
||||||
import("@/views/projectFront/quality/v2/subTasklist.vue"),
|
import("@/views/projectFront/quality/v2/subTasklist.vue"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/project/safeSame/subTasklist",
|
||||||
|
name: "质量管理_项目自检子任务1",
|
||||||
|
component: () =>
|
||||||
|
import("@/views/projectFront/safeSame/v2/subTasklist.vue"),
|
||||||
|
},
|
||||||
//项目自检记录
|
//项目自检记录
|
||||||
{
|
{
|
||||||
path: "/project/safeManage/inspectionRecord",
|
path: "/project/safeManage/inspectionRecord",
|
||||||
@ -709,6 +715,12 @@ const routes2 = [
|
|||||||
component: () =>
|
component: () =>
|
||||||
import("@/views/projectFront/quality/v2/inspectionRecord.vue"),
|
import("@/views/projectFront/quality/v2/inspectionRecord.vue"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/project/safeSame/inspectionRecord",
|
||||||
|
name: "安全管理_项目自检记录1",
|
||||||
|
component: () =>
|
||||||
|
import("@/views/projectFront/safeSame/v2/inspectionRecord.vue"),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/project/safeManage/hiddenDangerLibrary",
|
path: "/project/safeManage/hiddenDangerLibrary",
|
||||||
name: "安全管理_隐患库1",
|
name: "安全管理_隐患库1",
|
||||||
|
|||||||
@ -1940,14 +1940,14 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
getInspectionRecordListApi,
|
getSafeInspectionRecordListApi,
|
||||||
getQualityRegionListApi,
|
getQualityRegionListApi,
|
||||||
getDangerTypeRecordApi,
|
getSafeDangerTypeRecordApi,
|
||||||
getSubcontractListApi,
|
getSubcontractListApi,
|
||||||
addRecordApi,
|
addSafeRecordApi,
|
||||||
getRoutineInspectApi,
|
getRoutineInspectApi,
|
||||||
selectRectifyRecordListApi,
|
selectSafeRectifyRecordListApi,
|
||||||
addQualityRectifyRecordApi
|
addSafeQualityRectifyRecordApi
|
||||||
} from '@/assets/js/api/quality.js'
|
} from '@/assets/js/api/quality.js'
|
||||||
import { getProjectChilderSystemUserListApi } from '@/assets/js/api/configManage.js'
|
import { getProjectChilderSystemUserListApi } from '@/assets/js/api/configManage.js'
|
||||||
import { VueCropper } from 'vue-cropper'
|
import { VueCropper } from 'vue-cropper'
|
||||||
@ -2213,7 +2213,7 @@ export default {
|
|||||||
this.replyData.qualityId = valId
|
this.replyData.qualityId = valId
|
||||||
this.replyData.createUser = this.userIdInfo
|
this.replyData.createUser = this.userIdInfo
|
||||||
console.log('整改提交的表单数据:::', this.replyData);
|
console.log('整改提交的表单数据:::', this.replyData);
|
||||||
addQualityRectifyRecordApi(this.replyData).then(res => {
|
addSafeQualityRectifyRecordApi(this.replyData).then(res => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
this.dialogDetil = false
|
this.dialogDetil = false
|
||||||
@ -2457,7 +2457,7 @@ export default {
|
|||||||
},
|
},
|
||||||
//整改记录
|
//整改记录
|
||||||
selectRectifyRecordList(id) {
|
selectRectifyRecordList(id) {
|
||||||
selectRectifyRecordListApi({
|
selectSafeRectifyRecordListApi({
|
||||||
qualityId: id
|
qualityId: id
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
this.rectifyRecordList = res.result
|
this.rectifyRecordList = res.result
|
||||||
@ -2585,7 +2585,7 @@ export default {
|
|||||||
data.pageNo = this.pageNo
|
data.pageNo = this.pageNo
|
||||||
data.pageSize = this.pageSize
|
data.pageSize = this.pageSize
|
||||||
data.itemId = this.$route.query.id
|
data.itemId = this.$route.query.id
|
||||||
getInspectionRecordListApi(data).then((res) => {
|
getSafeInspectionRecordListApi(data).then((res) => {
|
||||||
console.log('res----', res);
|
console.log('res----', res);
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.statisticsValue = res.result.total
|
this.statisticsValue = res.result.total
|
||||||
@ -2652,7 +2652,7 @@ export default {
|
|||||||
projectSn: this.projectSn,
|
projectSn: this.projectSn,
|
||||||
recordStatus: 0,
|
recordStatus: 0,
|
||||||
}
|
}
|
||||||
getDangerTypeRecordApi(data).then((res) => {
|
getSafeDangerTypeRecordApi(data).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
console.log(res)
|
console.log(res)
|
||||||
this.classifyList = res.result
|
this.classifyList = res.result
|
||||||
@ -3096,7 +3096,7 @@ export default {
|
|||||||
data.projectSn = this.projectSn
|
data.projectSn = this.projectSn
|
||||||
console.log('data', data)
|
console.log('data', data)
|
||||||
data.inspectManId = this.$store.state.userInfo.userId
|
data.inspectManId = this.$store.state.userInfo.userId
|
||||||
addRecordApi(data).then((res) => {
|
addSafeRecordApi(data).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
this.$message.success(this.$t('message.quality.newSuccess'))
|
this.$message.success(this.$t('message.quality.newSuccess'))
|
||||||
this.$refs.addForm1.resetFields() //清除所有验证
|
this.$refs.addForm1.resetFields() //清除所有验证
|
||||||
|
|||||||
@ -557,7 +557,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
detailsPoint(item) {
|
detailsPoint(item) {
|
||||||
this.$router.push('/project/qualityManage/subTasklist?id=' + item.id)
|
this.$router.push('/project/safeSame/subTasklist?id=' + item.id)
|
||||||
},
|
},
|
||||||
getCheckTypeList() {
|
getCheckTypeList() {
|
||||||
getInspectTypeListApi({
|
getInspectTypeListApi({
|
||||||
|
|||||||
@ -117,8 +117,8 @@
|
|||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import {
|
import {
|
||||||
getinspectTaskItemRecordApi,
|
getSafeinspectTaskItemRecordApi,
|
||||||
deleteinspectTaskItemRecordApi
|
deleteSafeinspectTaskItemRecordApi
|
||||||
} from '@/assets/js/api/safeManage.js'
|
} from '@/assets/js/api/safeManage.js'
|
||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
@ -141,7 +141,7 @@ export default {
|
|||||||
this.$router.back()
|
this.$router.back()
|
||||||
},
|
},
|
||||||
loadList() {
|
loadList() {
|
||||||
getinspectTaskItemRecordApi(this.searchForm).then((result) => {
|
getSafeinspectTaskItemRecordApi(this.searchForm).then((result) => {
|
||||||
this.recordList = result.result.records
|
this.recordList = result.result.records
|
||||||
this.pageTotal = result.result.total
|
this.pageTotal = result.result.total
|
||||||
})
|
})
|
||||||
@ -172,7 +172,7 @@ export default {
|
|||||||
let data = {
|
let data = {
|
||||||
id: item.id
|
id: item.id
|
||||||
}
|
}
|
||||||
deleteinspectTaskItemRecordApi(data).then((res) => {
|
deleteSafeinspectTaskItemRecordApi(data).then((res) => {
|
||||||
if (res.code == 200) {
|
if (res.code == 200) {
|
||||||
if (this.recordList.length == 1 && this.searchForm.pageNo > 1) {
|
if (this.recordList.length == 1 && this.searchForm.pageNo > 1) {
|
||||||
this.searchForm.pageNo = this.searchForm.pageNo - 1
|
this.searchForm.pageNo = this.searchForm.pageNo - 1
|
||||||
@ -199,7 +199,7 @@ export default {
|
|||||||
detailsPoint(item) {
|
detailsPoint(item) {
|
||||||
// this.$router.push('/project/safeManage/checkStandingBook?id=' + item.id)
|
// this.$router.push('/project/safeManage/checkStandingBook?id=' + item.id)
|
||||||
this.$router.push(
|
this.$router.push(
|
||||||
'/project/qualityManage/inspectionRecord?id=' +
|
'/project/safeSame/inspectionRecord?id=' +
|
||||||
item.id +
|
item.id +
|
||||||
'&taskId=' +
|
'&taskId=' +
|
||||||
item.taskId
|
item.taskId
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user