提交修改
This commit is contained in:
parent
f09746154c
commit
f49b64a342
@ -59,3 +59,7 @@ export const downZip = params => {
|
|||||||
export const deleteRecord = params => {
|
export const deleteRecord = params => {
|
||||||
return http({url: '/lz_management/user/lzresultrecord/deleteRecord', method: 'get', params})
|
return http({url: '/lz_management/user/lzresultrecord/deleteRecord', method: 'get', params})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const preWeightCheck = params => {
|
||||||
|
return http({url: '/lz_management/user/lzresultrecord/preWeightCheck', method: 'post', params})
|
||||||
|
}
|
||||||
|
|||||||
@ -230,7 +230,8 @@ export default {
|
|||||||
departmentList3: [],
|
departmentList3: [],
|
||||||
addOrUpdateVisible: false,
|
addOrUpdateVisible: false,
|
||||||
recordIdsSelect: [],
|
recordIdsSelect: [],
|
||||||
tabValue: '1,2,5'
|
tabValue: '1,2,5',
|
||||||
|
isChangeDepartmentrtment: 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {},
|
computed: {},
|
||||||
@ -280,6 +281,7 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
async changeDepartment (i) {
|
async changeDepartment (i) {
|
||||||
|
this.isChangeDepartmentrtment = 1
|
||||||
let departmentId = 0
|
let departmentId = 0
|
||||||
if (i === '2') {
|
if (i === '2') {
|
||||||
departmentId = this.dataForm.department1
|
departmentId = this.dataForm.department1
|
||||||
@ -320,17 +322,20 @@ export default {
|
|||||||
'department3': this.dataForm.department3,
|
'department3': this.dataForm.department3,
|
||||||
'name': this.dataForm.name,
|
'name': this.dataForm.name,
|
||||||
'remark': this.dataForm.remark,
|
'remark': this.dataForm.remark,
|
||||||
'isSelf': 2
|
'isSelf': 2,
|
||||||
|
'isChangeDepartmentrtment': this.isChangeDepartmentrtment
|
||||||
}).then(data => {
|
}).then(data => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.dataList = data.page.list
|
this.dataList = data.page.list
|
||||||
this.totalPage = data.page.totalCount
|
this.totalPage = data.page.totalCount
|
||||||
this.departmentList1 = data.departmentList1
|
if (this.isChangeDepartmentrtment === 0) {
|
||||||
this.departmentList2 = data.departmentList2
|
this.departmentList1 = data.departmentList1
|
||||||
this.departmentList3 = data.departmentList3
|
this.departmentList2 = data.departmentList2
|
||||||
this.dataForm.department1 = data.department1
|
this.departmentList3 = data.departmentList3
|
||||||
this.dataForm.department2 = data.department2
|
this.dataForm.department1 = data.department1
|
||||||
this.dataForm.department3 = data.department3
|
this.dataForm.department2 = data.department2
|
||||||
|
this.dataForm.department3 = data.department3
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
this.dataList = []
|
this.dataList = []
|
||||||
this.totalPage = 0
|
this.totalPage = 0
|
||||||
|
|||||||
@ -55,8 +55,9 @@
|
|||||||
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {apiDetailInfo, recorddetailAddOrUpdate, recorddetailDelete, weightCheck} from '@/api/api_result'
|
import {apiDetailInfo, recorddetailAddOrUpdate, recorddetailDelete, weightCheck, preWeightCheck} from '@/api/api_result'
|
||||||
import E from 'wangeditor'
|
import E from 'wangeditor'
|
||||||
|
|
||||||
var Base64 = require('js-base64').Base64
|
var Base64 = require('js-base64').Base64
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
@ -177,7 +178,7 @@ export default {
|
|||||||
this.auth = auth
|
this.auth = auth
|
||||||
this.recordType = recordType
|
this.recordType = recordType
|
||||||
this.dataForm.id = id || 0
|
this.dataForm.id = id || 0
|
||||||
let data = await weightCheck({
|
let data = await preWeightCheck({
|
||||||
'recordResultId': this.recordResultId,
|
'recordResultId': this.recordResultId,
|
||||||
'type': this.type,
|
'type': this.type,
|
||||||
'id': this.dataForm.id
|
'id': this.dataForm.id
|
||||||
|
|||||||
@ -184,8 +184,10 @@ export default {
|
|||||||
UploadAddOrUpdate
|
UploadAddOrUpdate
|
||||||
},
|
},
|
||||||
activated () {
|
activated () {
|
||||||
this.recordResultId = this.$route.query.id
|
if (this.$route.query.id >= 0) {
|
||||||
this.recordType = this.$route.query.recordType
|
this.recordResultId = this.$route.query.id
|
||||||
|
this.recordType = this.$route.query.recordType
|
||||||
|
}
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@ -260,14 +262,14 @@ export default {
|
|||||||
}).then(data => {
|
}).then(data => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
this.$message({
|
|
||||||
message: data.msg,
|
|
||||||
type: 'success',
|
|
||||||
duration: 1500,
|
|
||||||
onClose: () => {
|
|
||||||
}
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
this.$message({
|
||||||
|
message: data.msg,
|
||||||
|
type: 'success',
|
||||||
|
duration: 3000,
|
||||||
|
onClose: () => {
|
||||||
|
}
|
||||||
|
})
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user