批量修改认证进度 当前状态对接接口
This commit is contained in:
@@ -186,8 +186,8 @@
|
|||||||
<certificationDirectory :isDisplayNum="isDisplayNum" :url="url" ref="certificationDirectoryRef"/>
|
<certificationDirectory :isDisplayNum="isDisplayNum" :url="url" ref="certificationDirectoryRef"/>
|
||||||
<TaskListModel @TaskListModelList="TaskListModelList" ref="TaskListModelRef"/>
|
<TaskListModel @TaskListModelList="TaskListModelList" ref="TaskListModelRef"/>
|
||||||
<taskBatSetting @taskBatSettingForm="taskBatSettingForm" ref="taskBatSettingRef"></taskBatSetting>
|
<taskBatSetting @taskBatSettingForm="taskBatSettingForm" ref="taskBatSettingRef"></taskBatSetting>
|
||||||
<batchChangeModel ref="batchChangeModelRef"/>
|
<batchChangeModel @batchChangeModel="batchChangeModel" ref="batchChangeModelRef"/>
|
||||||
<batchModel ref="batchModelRef"/>
|
<batchModel @batchModel="batchModel" ref="batchModelRef"/>
|
||||||
<!-- 错误数据提示-->
|
<!-- 错误数据提示-->
|
||||||
<a-modal
|
<a-modal
|
||||||
:title="$t('operationFailed')"
|
:title="$t('operationFailed')"
|
||||||
@@ -393,6 +393,12 @@
|
|||||||
taskBatSettingForm() {
|
taskBatSettingForm() {
|
||||||
this.getList()
|
this.getList()
|
||||||
},
|
},
|
||||||
|
batchChangeModel() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
|
batchModel() {
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
onSelectChange(value, selectionRows) {
|
onSelectChange(value, selectionRows) {
|
||||||
this.selectedRowKeys = value
|
this.selectedRowKeys = value
|
||||||
this.selectionRowsArray = selectionRows
|
this.selectionRowsArray = selectionRows
|
||||||
@@ -542,9 +548,10 @@
|
|||||||
})
|
})
|
||||||
query = {
|
query = {
|
||||||
roleCodes: roleCodes.join(','),
|
roleCodes: roleCodes.join(','),
|
||||||
|
operation:'1',
|
||||||
projectLawsInventoryIds: projectLawsInventoryIds.join(',')
|
projectLawsInventoryIds: projectLawsInventoryIds.join(',')
|
||||||
}
|
}
|
||||||
getAction(this.url.list, query).then((res) => {
|
postAction('/project/projectTaskInventoryEO/verifyRoleCode', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$refs.batchModelRef.getData(this.selectedRowKeys)
|
this.$refs.batchModelRef.getData(this.selectedRowKeys)
|
||||||
} else {
|
} else {
|
||||||
@@ -572,9 +579,10 @@
|
|||||||
})
|
})
|
||||||
query = {
|
query = {
|
||||||
roleCodes: roleCodes.join(','),
|
roleCodes: roleCodes.join(','),
|
||||||
|
operation:'2',
|
||||||
projectLawsInventoryIds: projectLawsInventoryIds.join(',')
|
projectLawsInventoryIds: projectLawsInventoryIds.join(',')
|
||||||
}
|
}
|
||||||
getAction(this.url.list, query).then((res) => {
|
postAction('/project/projectTaskInventoryEO/verifyRoleCode', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.$refs.batchChangeModelRef.getData(this.selectionRowsArray)
|
this.$refs.batchChangeModelRef.getData(this.selectionRowsArray)
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -87,6 +87,7 @@ export default {
|
|||||||
projectLawsInventoryIds:[],
|
projectLawsInventoryIds:[],
|
||||||
roleCodes:[],
|
roleCodes:[],
|
||||||
visible: false,
|
visible: false,
|
||||||
|
title:'',
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
studioList: [],
|
studioList: [],
|
||||||
disabled: false,
|
disabled: false,
|
||||||
@@ -134,7 +135,6 @@ export default {
|
|||||||
let query = {}
|
let query = {}
|
||||||
let projectLawsInventoryIds = []
|
let projectLawsInventoryIds = []
|
||||||
let roleCodes = []
|
let roleCodes = []
|
||||||
let url = ''
|
|
||||||
let Action
|
let Action
|
||||||
this.selectionRowsArray.forEach((item,index) => {
|
this.selectionRowsArray.forEach((item,index) => {
|
||||||
projectLawsInventoryIds.push(item.projectLawsInventoryId)
|
projectLawsInventoryIds.push(item.projectLawsInventoryId)
|
||||||
@@ -146,15 +146,14 @@ export default {
|
|||||||
conditionAssessment: this.formInline.conditionAssessment,
|
conditionAssessment: this.formInline.conditionAssessment,
|
||||||
projectLawsInventoryIds: projectLawsInventoryIds.join(',')
|
projectLawsInventoryIds: projectLawsInventoryIds.join(',')
|
||||||
}
|
}
|
||||||
url = this.url.addOrUpdate
|
|
||||||
Action = postAction
|
Action = postAction
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
Action(url, query).then((res) => {
|
Action('/project/projectTaskInventoryConditionAssessmentEO/addOrUpdateBatch', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
this.$emit('TaskListModelList')
|
this.$emit('batchChangeModel')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
|
|||||||
@@ -57,6 +57,7 @@ export default {
|
|||||||
formInline: {},
|
formInline: {},
|
||||||
selectionRowsArray:[],
|
selectionRowsArray:[],
|
||||||
rules: {},
|
rules: {},
|
||||||
|
title:'',
|
||||||
visible: false,
|
visible: false,
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
studioList: [],
|
studioList: [],
|
||||||
@@ -104,21 +105,19 @@ export default {
|
|||||||
this.$refs.ruleForm.validate(valid => {
|
this.$refs.ruleForm.validate(valid => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
let query = {}
|
let query = {}
|
||||||
let url = ''
|
|
||||||
this.ids = this.selectionRowsArray.join(',')
|
this.ids = this.selectionRowsArray.join(',')
|
||||||
query = {
|
query = {
|
||||||
ids: this.ids,
|
ids: this.ids,
|
||||||
certificationProgress: this.formInline.certificationProgress,
|
certificationProgress: this.formInline.certificationProgress,
|
||||||
certificationProgressRemark: this.formInline.certificationProgressRemark
|
certificationProgressRemark: this.formInline.certificationProgressRemark
|
||||||
}
|
}
|
||||||
url = this.url.edit
|
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
postAction(url, query).then((res) => {
|
postAction('/project/projectTaskInventoryEO/editBatch', query).then((res) => {
|
||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.visible = false
|
this.visible = false
|
||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
this.$message.success(this.$t('OperationSuccessful'))
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
this.$emit('TaskListModelList')
|
this.$emit('batchModel')
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('operationFailed'))
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
this.confirmLoading = false
|
this.confirmLoading = false
|
||||||
|
|||||||
Reference in New Issue
Block a user