修改法规清单在驳回的时候加上驳回评论

This commit is contained in:
qq787203167
2022-05-12 11:55:44 +08:00
parent 1ef960dd7d
commit e35b8cc84a
4 changed files with 100 additions and 7 deletions
+1
View File
@@ -808,4 +808,5 @@ module.exports = {
pleaseConformityVerification:'Please complete the data of Conformity verification',
virtualListDetails:'Virtual list details',
maintainVirtualList:'Maintain virtual list',
reasonsForRejection:'Reasons for rejection',
}
+1
View File
@@ -813,4 +813,5 @@ module.exports = {
pleaseConformityVerification: '请补全验证符合性确认的数据',
virtualListDetails:'虚拟清单详情',
maintainVirtualList:'维护虚拟清单',
reasonsForRejection:'驳回原因',
}
@@ -266,6 +266,35 @@
</span>
</a-table>
</a-modal>
<a-modal
:title="$t('reasonsForRejection')"
:width="500"
:visible="visibleComment"
:confirm-loading="confirmLoadingComment"
:maskClosable="false"
@ok="handleOkComment"
@cancel="handleCancelComment"
>
<a-form-model :model="formInlineComment" class="formAdd" :rules="rulesComment" ref="ruleFormComment">
<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('reasonsForRejection')">{{$t('reasonsForRejection')}}</span>
</div>
<a-form-model-item class="itemModelComment" :prop="'commentContent'">
<a-textarea
style="width: 100%"
:placeholder="$t('PleaseEnter')+$t('reasonsForRejection')"
:disabled="false"
v-model="formInlineComment.commentContent" :rows="4"/>
</a-form-model-item>
</div>
</a-col>
</a-row>
</a-form-model>
</a-modal>
<uploadFile ref="uploadFile" @uploadSuccess="uploadSuccess"/>
</a-card>
</template>
@@ -555,9 +584,21 @@
}
],
visibleFile: false,
formInlineComment: {},
rulesComment: {
commentContent: [
{
required: true,
message: this.$t('reasonsForRejection') + this.$t('cannotEmpty'),
trigger: 'blur'
}
]
},
timeName: '',
visibleComment: false,
dataSourceFile: [],
confirmLoading: false,
confirmLoadingComment: false,
queryParamQuery: {},
isDisplay: true,
selectedRowKeys: [],
@@ -1063,17 +1104,48 @@
this.$confirm({
content: num == 0 ? _this.$t('confirmSubmit') : _this.$t('confirmOverrule'),
onOk() {
let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys))
_this.getRowKeys(selectedRowKeys, function() {
_this.updateStatusBatch(num, selectedRowKeys)
})
if (num == 0) {
let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys))
_this.getRowKeys(selectedRowKeys, function() {
_this.updateStatusBatch(num, selectedRowKeys)
})
} else {
let selectedRowKeys = JSON.parse(JSON.stringify(_this.selectedRowKeys))
_this.getRowKeys(selectedRowKeys, function() {
_this.visibleComment = true
})
}
}
})
} else {
this.$message.warning(this.$t('selectLeastOne'))
}
},
handleOkComment() {
this.$refs.ruleFormComment.validate(valid => {
if (valid) {
let url = '/project/projectCommentEO/add'
let query = {
commentContent: this.formInlineComment.commentContent,
projectLibraryId: this.$route.query.id
}
this.confirmLoadingComment = true
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
this.updateStatusBatch(1, selectedRowKeys)
postAction(url, query).then((res) => {
if (res.success) {
this.visibleComment = false
this.confirmLoadingComment = false
} else {
this.confirmLoadingComment = false
}
})
}
})
},
handleCancelComment() {
this.visibleComment = false
},
handleCancel() {
this.formInline = {}
this.visible = false
@@ -1385,6 +1457,24 @@
color: #040B29;
margin-bottom: 22px;
}
.itemModelComment{
width: calc(100% - 64px);
display: inline-block;
margin-top: 2px;
}
.title-text-Comment{
width: 74px;
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: 48px;
}
</style>
<style>
.box-input .ant-select-selection {
@@ -1407,4 +1497,7 @@
padding: 0;
border-top: none;
}
.itemModelComment .ant-form-item-control-wrapper{
width: 100% !important;
}
</style>
@@ -150,10 +150,8 @@
this.getList()
},
handleExport() {
let selectedRowKeys = JSON.parse(JSON.stringify(this.selectedRowKeys))
let query = {
...this.queryParam,
ids: selectedRowKeys.join(','),
projectLibraryId: this.$route.query.id
}
downloadFile(this.url.exportData, this.$t('NonConformance') + '.xls', query, this.Deselect)