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