修改法规清单流程重置
This commit is contained in:
@@ -1834,4 +1834,5 @@ module.exports = {
|
|||||||
deliveryTime:'Delivery Time',
|
deliveryTime:'Delivery Time',
|
||||||
expectedDeliveryTime:'Expected Delivery Time',
|
expectedDeliveryTime:'Expected Delivery Time',
|
||||||
changeAuthor:'Change Author',
|
changeAuthor:'Change Author',
|
||||||
|
theProcessThatNeedsToBeReset:'The process that needs to be reset',
|
||||||
}
|
}
|
||||||
@@ -1935,4 +1935,5 @@ module.exports = {
|
|||||||
deliveryTime:'交付时间',
|
deliveryTime:'交付时间',
|
||||||
expectedDeliveryTime:'预计交付时间',
|
expectedDeliveryTime:'预计交付时间',
|
||||||
changeAuthor:'更改作者',
|
changeAuthor:'更改作者',
|
||||||
|
theProcessThatNeedsToBeReset:'需要重置的流程',
|
||||||
}
|
}
|
||||||
@@ -616,6 +616,43 @@
|
|||||||
</a-row>
|
</a-row>
|
||||||
</a-form-model>
|
</a-form-model>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
|
<a-modal
|
||||||
|
:title="$t('processReset')"
|
||||||
|
:width="500"
|
||||||
|
:visible="visibleReset"
|
||||||
|
:confirm-loading="confirmLoadingReset"
|
||||||
|
:maskClosable="false"
|
||||||
|
@ok="handleOkReset"
|
||||||
|
@cancel="handleCancelReset"
|
||||||
|
>
|
||||||
|
<div class="noteConfirm">
|
||||||
|
{{$t('NoteConfirmTheChange')}}
|
||||||
|
</div>
|
||||||
|
<a-form-model :model="formInlineReset" class="formAdd" :rules="rulesRoleReset"
|
||||||
|
ref="ruleFormReset">
|
||||||
|
<a-row :gutter="24">
|
||||||
|
<a-col :span="24">
|
||||||
|
<div class="box-title-text-index">
|
||||||
|
<div class="title-text-Comment">
|
||||||
|
<span class="Required">*</span>
|
||||||
|
<span class="title-text-text" :title="$t('processReset')">{{ $t('processReset') }}</span>
|
||||||
|
</div>
|
||||||
|
<a-form-model-item class="itemModelComment" :prop="'operateType'">
|
||||||
|
<a-select :placeholder="$t('pleaseSelect')+$t('theProcessThatNeedsToBeReset')"
|
||||||
|
allowClear
|
||||||
|
v-model="formInlineReset.operateType">
|
||||||
|
<a-select-option :value="item.value" v-for="item in processResetList">
|
||||||
|
<span class="itemOption-index" :title="item.name">
|
||||||
|
{{ item.name }}
|
||||||
|
</span>
|
||||||
|
</a-select-option>
|
||||||
|
</a-select>
|
||||||
|
</a-form-model-item>
|
||||||
|
</div>
|
||||||
|
</a-col>
|
||||||
|
</a-row>
|
||||||
|
</a-form-model>
|
||||||
|
</a-modal>
|
||||||
<a-modal
|
<a-modal
|
||||||
:title="fileTitle"
|
:title="fileTitle"
|
||||||
:width="600"
|
:width="600"
|
||||||
@@ -707,6 +744,8 @@
|
|||||||
return {
|
return {
|
||||||
toggleSearchStatus: false,
|
toggleSearchStatus: false,
|
||||||
visibleQuestion: false,
|
visibleQuestion: false,
|
||||||
|
visibleReset: false,
|
||||||
|
confirmLoadingReset: false,
|
||||||
confirmLoadingQuestion: false,
|
confirmLoadingQuestion: false,
|
||||||
isDesignCompliance: false,
|
isDesignCompliance: false,
|
||||||
isVerifyingCompliance: false,
|
isVerifyingCompliance: false,
|
||||||
@@ -716,6 +755,16 @@
|
|||||||
total: 0,
|
total: 0,
|
||||||
roleSwitchingList: [],
|
roleSwitchingList: [],
|
||||||
formInlineQuestion: {},
|
formInlineQuestion: {},
|
||||||
|
formInlineReset: {},
|
||||||
|
rulesRoleReset: {
|
||||||
|
operateType: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: this.$t('processReset') + this.$t('cannotEmpty'),
|
||||||
|
trigger: 'change'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
rulesRoleQuestion: {
|
rulesRoleQuestion: {
|
||||||
expeditingType: [
|
expeditingType: [
|
||||||
{
|
{
|
||||||
@@ -735,6 +784,20 @@
|
|||||||
name: this.$t('validationComplianceProcess')
|
name: this.$t('validationComplianceProcess')
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
processResetList: [
|
||||||
|
{
|
||||||
|
value: 'lawsInventoryAllResetFlow',
|
||||||
|
name: this.$t('whole')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'lawsInventoryDesignResetFlow',
|
||||||
|
name: this.$t('designComplianceProcess')
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'lawsInventoryVerifyResetFlow',
|
||||||
|
name: this.$t('validationComplianceProcess')
|
||||||
|
}
|
||||||
|
],
|
||||||
listTitle: '',
|
listTitle: '',
|
||||||
orderBy: '1',
|
orderBy: '1',
|
||||||
orderByField: '',
|
orderByField: '',
|
||||||
@@ -2168,13 +2231,42 @@
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
if (isTrue) {
|
if (isTrue) {
|
||||||
this.changeInterface(selectedRowKeys)
|
this.formInlineReset = {}
|
||||||
|
this.$nextTick(() => {
|
||||||
|
this.$refs.ruleFormReset.clearValidate()
|
||||||
|
})
|
||||||
|
// this.changeInterface(selectedRowKeys)
|
||||||
|
this.visibleReset = true
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
handleOkReset() {
|
||||||
|
this.$refs.ruleFormReset.validate(valid => {
|
||||||
|
if (valid) {
|
||||||
|
let _this = this
|
||||||
|
let idList = JSON.parse(JSON.stringify(_this.selectedRowKeys))
|
||||||
|
postAction('/project/projectLawsInventoryEO/change', {
|
||||||
|
ids: idList.join(','),
|
||||||
|
projectLibraryId: _this.$route.query.id,
|
||||||
|
operateType: _this.formInlineReset.operateType
|
||||||
|
}).then((res) => {
|
||||||
|
if (res.success) {
|
||||||
|
_this.$message.success(_this.$t('OperationSuccessful'))
|
||||||
|
_this.selectedRowKeys = []
|
||||||
|
_this.pageNo = 1
|
||||||
|
_this.getList()
|
||||||
|
} else {
|
||||||
|
_this.$message.warning(_this.$t('operationFailed'))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
handleCancelReset() {
|
||||||
|
this.visibleReset = false
|
||||||
|
},
|
||||||
//流程重置接口
|
//流程重置接口
|
||||||
changeInterface() {
|
changeInterface() {
|
||||||
let _this = this
|
let _this = this
|
||||||
@@ -2858,9 +2950,9 @@
|
|||||||
}
|
}
|
||||||
if (dataList[i].designFlowStatus == 'List to be checked' || dataList[i].designFlowStatus == 'Duty Person Rejected') {
|
if (dataList[i].designFlowStatus == 'List to be checked' || dataList[i].designFlowStatus == 'Duty Person Rejected') {
|
||||||
if (dataList[i].designDeliverableType && dataList[i].designDutyId && dataList[i].designDueDate) {
|
if (dataList[i].designDeliverableType && dataList[i].designDutyId && dataList[i].designDueDate) {
|
||||||
if (dataList[i].designDeliverableType == '1645667531513237506'){
|
if (dataList[i].designDeliverableType == '1645667531513237506') {
|
||||||
|
|
||||||
}else{
|
} else {
|
||||||
this.requestsNum++
|
this.requestsNum++
|
||||||
this.startProcessList.push({
|
this.startProcessList.push({
|
||||||
dataList: dataList[i],
|
dataList: dataList[i],
|
||||||
@@ -2876,9 +2968,9 @@
|
|||||||
}
|
}
|
||||||
if (dataList[i].verifyFlowStatus == 'List to be checked' || dataList[i].verifyFlowStatus == 'Duty Person Rejected') {
|
if (dataList[i].verifyFlowStatus == 'List to be checked' || dataList[i].verifyFlowStatus == 'Duty Person Rejected') {
|
||||||
if (dataList[i].verifyDeliverableType && dataList[i].verifyDutyId && dataList[i].verifyDueDate) {
|
if (dataList[i].verifyDeliverableType && dataList[i].verifyDutyId && dataList[i].verifyDueDate) {
|
||||||
if (dataList[i].verifyDeliverableType == '1645667531513237506'){
|
if (dataList[i].verifyDeliverableType == '1645667531513237506') {
|
||||||
|
|
||||||
}else{
|
} else {
|
||||||
this.requestsNum++
|
this.requestsNum++
|
||||||
this.startProcessList.push({
|
this.startProcessList.push({
|
||||||
dataList: dataList[i],
|
dataList: dataList[i],
|
||||||
@@ -3457,6 +3549,11 @@
|
|||||||
.operator-text-title:last-child {
|
.operator-text-title:last-child {
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.noteConfirm {
|
||||||
|
font-size: 14px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<style lang="less">
|
<style lang="less">
|
||||||
.box-input .ant-select-selection {
|
.box-input .ant-select-selection {
|
||||||
|
|||||||
Reference in New Issue
Block a user