任务清单增加催办功能
This commit is contained in:
@@ -1329,4 +1329,5 @@ module.exports = {
|
|||||||
thereForTheCurrentlySelectedData:'There is no standard breakdown for the currently selected data',
|
thereForTheCurrentlySelectedData:'There is no standard breakdown for the currently selected data',
|
||||||
secondaryDirectory:'Secondary Directory',
|
secondaryDirectory:'Secondary Directory',
|
||||||
OnlyPersonsCanBeSelected:'The maximum upper limit is exceeded; Only 100 persons can be selected',
|
OnlyPersonsCanBeSelected:'The maximum upper limit is exceeded; Only 100 persons can be selected',
|
||||||
|
CuiBan:'CuiBan',
|
||||||
}
|
}
|
||||||
@@ -1430,4 +1430,5 @@ module.exports = {
|
|||||||
thereForTheCurrentlySelectedData:'当前所选数据暂无标准分解单',
|
thereForTheCurrentlySelectedData:'当前所选数据暂无标准分解单',
|
||||||
secondaryDirectory:'二级目录',
|
secondaryDirectory:'二级目录',
|
||||||
OnlyPersonsCanBeSelected:'超出最大上限;最多只能选择100个人员',
|
OnlyPersonsCanBeSelected:'超出最大上限;最多只能选择100个人员',
|
||||||
|
CuiBan:'催办',
|
||||||
}
|
}
|
||||||
@@ -76,10 +76,10 @@
|
|||||||
</a-form>
|
</a-form>
|
||||||
</div>
|
</div>
|
||||||
<div class="table-operator">
|
<div class="table-operator">
|
||||||
<!-- <div class="operator-text" @click="batSettingClick">-->
|
<div class="operator-text" @click="cuibanClick">
|
||||||
<!-- <a-icon type="setting"/>-->
|
<a-icon type="sound"/>
|
||||||
<!-- {{ $t('batSetting') }}-->
|
{{ $t('CuiBan') }}
|
||||||
<!-- </div>-->
|
</div>
|
||||||
<div @click="BatchMaintenanceProgress" class="operator-text">
|
<div @click="BatchMaintenanceProgress" class="operator-text">
|
||||||
<a-icon type="setting"/>
|
<a-icon type="setting"/>
|
||||||
{{$t('BatchMaintenanceProgress')}}
|
{{$t('BatchMaintenanceProgress')}}
|
||||||
@@ -189,6 +189,7 @@
|
|||||||
<TaskListModel @TaskListModelList="TaskListModelList" ref="TaskListModelRef"/>
|
<TaskListModel @TaskListModelList="TaskListModelList" ref="TaskListModelRef"/>
|
||||||
<taskBatSetting @taskBatSettingForm="taskBatSettingForm" ref="taskBatSettingRef"></taskBatSetting>
|
<taskBatSetting @taskBatSettingForm="taskBatSettingForm" ref="taskBatSettingRef"></taskBatSetting>
|
||||||
<batchChangeModel @batchChangeModel="batchChangeModel" ref="batchChangeModelRef"/>
|
<batchChangeModel @batchChangeModel="batchChangeModel" ref="batchChangeModelRef"/>
|
||||||
|
<cuibanModel @cibanModel="cibanModel" ref="cModelRef"/>
|
||||||
<batchModel @batchModel="batchModel" ref="batchModelRef"/>
|
<batchModel @batchModel="batchModel" ref="batchModelRef"/>
|
||||||
<!-- 错误数据提示-->
|
<!-- 错误数据提示-->
|
||||||
<a-modal
|
<a-modal
|
||||||
@@ -221,6 +222,7 @@
|
|||||||
import batchChangeModel from './batchChangeModel'
|
import batchChangeModel from './batchChangeModel'
|
||||||
import batchModel from './batchModel'
|
import batchModel from './batchModel'
|
||||||
import TaskListModel from './TaskListModel'
|
import TaskListModel from './TaskListModel'
|
||||||
|
import cuibanModel from './cuibanModel'
|
||||||
import taskBatSetting from './taskBatSetting'
|
import taskBatSetting from './taskBatSetting'
|
||||||
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
|
import { getAction, postAction, deleteAction, downloadFile } from '@/api/manage'
|
||||||
import { mapGetters } from 'vuex'
|
import { mapGetters } from 'vuex'
|
||||||
@@ -233,7 +235,8 @@
|
|||||||
TaskListModel,
|
TaskListModel,
|
||||||
batchChangeModel,
|
batchChangeModel,
|
||||||
batchModel,
|
batchModel,
|
||||||
taskBatSetting
|
taskBatSetting,
|
||||||
|
cuibanModel,
|
||||||
},
|
},
|
||||||
props: ['isDisplayNum', 'areaOfResponsibility'],
|
props: ['isDisplayNum', 'areaOfResponsibility'],
|
||||||
data() {
|
data() {
|
||||||
@@ -604,6 +607,17 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
// 催办
|
||||||
|
cuibanClick(){
|
||||||
|
if(this.selectionRowsArray.length <1){
|
||||||
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
}else{
|
||||||
|
this.$refs.cModelRef.getData(this.selectionRowsArray)
|
||||||
|
}
|
||||||
|
},
|
||||||
|
cibanModel(){
|
||||||
|
this.getList()
|
||||||
|
},
|
||||||
cancleoperationFailed(){
|
cancleoperationFailed(){
|
||||||
this.visibleoperationFailed = false
|
this.visibleoperationFailed = false
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -0,0 +1,188 @@
|
|||||||
|
<!--催办-->
|
||||||
|
<template>
|
||||||
|
<a-modal
|
||||||
|
:title="title"
|
||||||
|
:width="700"
|
||||||
|
:visible="visible"
|
||||||
|
:confirm-loading="confirmLoading"
|
||||||
|
:maskClosable="false"
|
||||||
|
@ok="handleOk"
|
||||||
|
@cancel="visible = false"
|
||||||
|
>
|
||||||
|
<a-form-model :model="formInline" class="formAdd" :rules="rules" ref="ruleForm">
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text">
|
||||||
|
<div class="title-text">
|
||||||
|
<span class="title-text-text"
|
||||||
|
:title="$t('CertificationProgress')">{{$t('CertificationProgress')}}</span>
|
||||||
|
</div>
|
||||||
|
<!-- mode="multiple"-->
|
||||||
|
<a-form-model-item class="itemModel" prop="type">
|
||||||
|
<a-select v-model="formInline.type"
|
||||||
|
class='box-input'
|
||||||
|
:getPopupContainer="triggerNode=> triggerNode.parentNode"
|
||||||
|
allowClear>
|
||||||
|
<a-select-option v-for="(item, key) in cuibanList" :key="key" :value="item.value">
|
||||||
|
<span style="display: inline-block;width: 100%" :title=" item.label ">
|
||||||
|
{{ item.label }}
|
||||||
|
</span>
|
||||||
|
</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
|
||||||
|
</a-row>
|
||||||
|
</a-form-model>
|
||||||
|
</a-modal>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { postAction, putAction, getAction } from '@/api/manage'
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: 'TaskListModel',
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
formInline: {},
|
||||||
|
selectionRowsArray:[],
|
||||||
|
rules: {
|
||||||
|
type: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('PleaseSelect') + this.$t('CertificationProgress'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
title:'',
|
||||||
|
visible: false,
|
||||||
|
confirmLoading: false,
|
||||||
|
studioList: [],
|
||||||
|
cuibanList:[
|
||||||
|
{ label: this.$t('confirmationOfDesignConformity'), value: '2' },
|
||||||
|
{ label: this.$t('PrehomoConfirmation'), value: '3' },
|
||||||
|
{ label: this.$t('verificationAndConformityconfirmation'), value: '4' },
|
||||||
|
],
|
||||||
|
ids:'',
|
||||||
|
disabled: false,
|
||||||
|
url: {
|
||||||
|
edit: '/project/projectTaskInventoryEO/edit',
|
||||||
|
addOrUpdate: '/project/projectTaskInventoryConditionAssessmentEO/addOrUpdate',
|
||||||
|
list: '/project/projectTaskInventoryConditionAssessmentEO/list'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
getData(val) {
|
||||||
|
this.visible = true
|
||||||
|
this.title = this.$t('CuiBan')
|
||||||
|
this.selectionRowsArray = val
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.formInline = {}
|
||||||
|
this.$refs.ruleForm.clearValidate()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
getList(val) {
|
||||||
|
getAction(this.url.list, { projectLawsInventoryId: val.projectLawsInventoryId }).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.studioList = res.result || []
|
||||||
|
} else {
|
||||||
|
this.studioList = []
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleInput(value) {
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.formInline = { ...this.formInline }
|
||||||
|
this.$refs.ruleForm.validateField([value])
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleOk() {
|
||||||
|
if (this.disabled) {
|
||||||
|
this.visible = false
|
||||||
|
return
|
||||||
|
}
|
||||||
|
this.$refs.ruleForm.validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
let ProjectTaskUrgVo = {}
|
||||||
|
let projectLawsInventoryId = []
|
||||||
|
this.selectionRowsArray.forEach((item) => {
|
||||||
|
if(item.projectLawsInventoryId){
|
||||||
|
projectLawsInventoryId.push(item.projectLawsInventoryId)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
ProjectTaskUrgVo = {
|
||||||
|
projectLawsInventoryIds: projectLawsInventoryId.join(','),
|
||||||
|
type: this.formInline.type
|
||||||
|
}
|
||||||
|
this.confirmLoading = true
|
||||||
|
postAction('/project/projectLawsInventoryEO/taskUrg', ProjectTaskUrgVo).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
this.visible = false
|
||||||
|
this.confirmLoading = false
|
||||||
|
this.$message.success(this.$t('OperationSuccessful'))
|
||||||
|
this.$emit('cibanModel')
|
||||||
|
} else {
|
||||||
|
this.$message.warning(this.$t('operationFailed'))
|
||||||
|
this.confirmLoading = false
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.box-title-text {
|
||||||
|
line-height: 1.4;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Required {
|
||||||
|
color: red;
|
||||||
|
margin-right: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text {
|
||||||
|
width: 134px;
|
||||||
|
text-align: right;
|
||||||
|
display: inline-block;
|
||||||
|
font-weight: 500;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-right: 16px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
height: 42px;
|
||||||
|
line-height: 42px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.box-input {
|
||||||
|
display: inline-block;
|
||||||
|
height: 38px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.itemModel {
|
||||||
|
width: calc(100% - 130px);
|
||||||
|
display: inline-block;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.title-text-text {
|
||||||
|
margin-top: 9px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.headerText {
|
||||||
|
margin-left: 30px;
|
||||||
|
color: #040B29;
|
||||||
|
font-weight: 400;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user