Merge branch 'version_1.0' of http://gitlab.ldxinyong.com/enterpriseManagement/lz_management_vue into version_1.0
This commit is contained in:
commit
a815f0925a
@ -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: {},
|
||||||
@ -281,6 +282,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
|
||||||
@ -321,17 +323,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: {
|
||||||
@ -258,9 +260,10 @@ export default {
|
|||||||
'recordResultId': this.recordResultId,
|
'recordResultId': this.recordResultId,
|
||||||
'status': 2
|
'status': 2
|
||||||
}).then(data => {
|
}).then(data => {
|
||||||
if (data){
|
if (data) {
|
||||||
if(data.code === 0) {
|
if (data.code === 0) {
|
||||||
this.getDataList()
|
this.getDataList()
|
||||||
|
}
|
||||||
this.$message({
|
this.$message({
|
||||||
message: data.msg,
|
message: data.msg,
|
||||||
type: 'success',
|
type: 'success',
|
||||||
@ -268,13 +271,9 @@ export default {
|
|||||||
onClose: () => {
|
onClose: () => {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
|
||||||
this.$message.error(data.msg)
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.$message.error('网络异常')
|
this.$message.error('网络异常')
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user