[update] 表格中必填项表头增加*
This commit is contained in:
@@ -947,3 +947,8 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 表格表头的必填标识
|
||||
.table-header-required {
|
||||
color: #FF0000;
|
||||
}
|
||||
@@ -220,4 +220,4 @@ export default {
|
||||
/deep/ .table-page-search-wrapper .ant-form-inline .ant-form-item > .ant-form-item-label {
|
||||
min-width: 80px;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
+7
-1
@@ -25,6 +25,11 @@
|
||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||
@change="handleTableChange">
|
||||
|
||||
<template slot="customTitleApprovalUser">
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('workCenter.revisionPlanActivelyReport.approver') }}
|
||||
</template>
|
||||
|
||||
<!-- 原企标编号/企标名称 -->
|
||||
<template v-slot:toDetailOld="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
@@ -202,10 +207,11 @@ export default {
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 审批人
|
||||
title: this.$t('workCenter.revisionPlanActivelyReport.approver'),
|
||||
// title: this.$t('workCenter.revisionPlanActivelyReport.approver'),
|
||||
align: 'center',
|
||||
width: 300,
|
||||
dataIndex: 'approvalUser',
|
||||
slots: { title: 'customTitleApprovalUser' },
|
||||
customRender: (value, row, index) => {
|
||||
return <user-selection v-model={row.approvalUser}
|
||||
filedName={row.id} onNameChange={this.userNameChange}
|
||||
|
||||
+7
-1
@@ -37,6 +37,11 @@
|
||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||
@change="handleTableChange">
|
||||
|
||||
<template slot="customTitleContactPerson">
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('workCenter.revisionPlanActivelyReport.contactPerson') }}
|
||||
</template>
|
||||
|
||||
<!-- 原企标编号/企标名称 -->
|
||||
<template v-slot:toDetailOld="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
@@ -244,10 +249,11 @@ export default {
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 联络人
|
||||
title: this.$t('workCenter.revisionPlanActivelyReport.contactPerson'),
|
||||
// title: this.$t('workCenter.revisionPlanActivelyReport.contactPerson'),
|
||||
align: 'center',
|
||||
width: 300,
|
||||
dataIndex: 'contactUser',
|
||||
slots: { title: 'customTitleContactPerson' },
|
||||
customRender: (value, row, index) => {
|
||||
if (this.isRejectedTodo && row.id) {
|
||||
// 是被驳回的待办
|
||||
|
||||
+7
-1
@@ -21,6 +21,11 @@
|
||||
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
|
||||
@change="handleTableChange">
|
||||
|
||||
<template slot="customTitleDrafter">
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('workCenter.revisionPlanActivelyReport.drafter') }}
|
||||
</template>
|
||||
|
||||
<!-- 原企标编号/企标名称 -->
|
||||
<template v-slot:toDetailOld="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
@@ -193,10 +198,11 @@ export default {
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 主起草人
|
||||
title: this.$t('workCenter.revisionPlanActivelyReport.drafter'),
|
||||
// title: this.$t('workCenter.revisionPlanActivelyReport.drafter'),
|
||||
align: 'center',
|
||||
width: 300,
|
||||
dataIndex: 'drafter',
|
||||
slots: { title: 'customTitleDrafter' },
|
||||
customRender: (value, row, index) => {
|
||||
return <user-selection v-model={row.prcMainDraftUser}
|
||||
filedName={row.id} onNameChange={this.userNameChange}
|
||||
|
||||
+7
-1
@@ -35,6 +35,11 @@
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
|
||||
<template slot="customTitleHandlingSuggestion">
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('workCenter.enStandardRevision.handlingSuggestion') }}
|
||||
</template>
|
||||
|
||||
</j-table>
|
||||
</div>
|
||||
<comment-modal ref="commentModal" @ok="modalFormOk"></comment-modal>
|
||||
@@ -116,10 +121,11 @@ export default {
|
||||
scopedSlots: { customRender: 'text' }
|
||||
},
|
||||
{ // 处理意见
|
||||
title: this.$t('workCenter.enStandardRevision.handlingSuggestion'),
|
||||
// title: this.$t('workCenter.enStandardRevision.handlingSuggestion'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'handleAdvice',
|
||||
slots: { title: 'customTitleHandlingSuggestion' },
|
||||
customRender: (text, row, index) => {
|
||||
const obj = {
|
||||
children: <a-select v-model={row.handleAdvice}
|
||||
|
||||
+4
-10
@@ -383,16 +383,10 @@ export default {
|
||||
await this.$refs.ruleForm.validate(valid => {
|
||||
if (valid) {
|
||||
if (this.formInline.inspectFlag === '1' && this.dataSource && this.dataSource.length > 0) {
|
||||
if (this.dataSource.map(item => item.rectificationDepartment).every(item => !!item)) {
|
||||
// 每一个的整改部门都填了
|
||||
// 有数据可以抛出
|
||||
data = Object.assign({}, this.formInline)
|
||||
data.inspectContents = this.dataSource || []
|
||||
data.onEditFile = this.onEditFile
|
||||
} else {
|
||||
this.$message.warning(this.$t('pleaseCompleteTableInfo'))
|
||||
data = false
|
||||
}
|
||||
// 有数据可以抛出
|
||||
data = Object.assign({}, this.formInline)
|
||||
data.inspectContents = this.dataSource || []
|
||||
data.onEditFile = this.onEditFile
|
||||
} else if (this.formInline.inspectFlag === '0') {
|
||||
// 有数据可以抛出
|
||||
data = Object.assign({}, this.formInline)
|
||||
|
||||
@@ -23,6 +23,17 @@
|
||||
rowKey="id"
|
||||
:pagination="false"
|
||||
>
|
||||
<!-- 评分 -->
|
||||
<template slot="customTitleGrade">
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('enterpriseStandardLibrary.reviewMeeting.grade') }}
|
||||
</template>
|
||||
<!-- 扣分理由 -->
|
||||
<template slot="customTitleGroundsForDemerit">
|
||||
<span class="table-header-required">*</span>
|
||||
{{ $t('enterpriseStandardLibrary.reviewMeeting.groundsForDemerit') }}
|
||||
</template>
|
||||
|
||||
<template slot="text" slot-scope="text">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
@@ -246,11 +257,12 @@ export default {
|
||||
return obj
|
||||
}
|
||||
},
|
||||
{
|
||||
title: this.$t('enterpriseStandardLibrary.reviewMeeting.grade'),
|
||||
{ // 评分
|
||||
// title: this.$t('enterpriseStandardLibrary.reviewMeeting.grade'),
|
||||
align: 'center',
|
||||
width: 150,
|
||||
dataIndex: 'evaluateScore',
|
||||
slots: { title: 'customTitleGrade' },
|
||||
customRender: (text, row, index) => {
|
||||
const obj = {
|
||||
children: <a-input-number v-model={this.dataSource[index].evaluateScore}
|
||||
@@ -278,10 +290,11 @@ export default {
|
||||
}
|
||||
},
|
||||
{ // 扣分理由
|
||||
title: this.$t('enterpriseStandardLibrary.reviewMeeting.groundsForDemerit'),
|
||||
// title: this.$t('enterpriseStandardLibrary.reviewMeeting.groundsForDemerit'),
|
||||
align: 'center',
|
||||
width: 300,
|
||||
dataIndex: 'deductionScoreReason',
|
||||
slots: { title: 'customTitleGroundsForDemerit' },
|
||||
customRender: (text, row, index) => {
|
||||
const obj = {
|
||||
// children: <a-input v-model={this.dataSource[index].deductionScoreReason} maxLength={50}
|
||||
|
||||
Reference in New Issue
Block a user