[update] 法规符合性评估流程
This commit is contained in:
+19
-2
@@ -9,8 +9,9 @@
|
||||
rowKey="standardNumber"
|
||||
:columns="columns"
|
||||
:dataSource="dataSource"
|
||||
:pagination="false"
|
||||
:loading="loading">
|
||||
:pagination="ipagination"
|
||||
:loading="loading"
|
||||
@change="handleTableChange">
|
||||
|
||||
<!-- 佐证材料 -->
|
||||
<template v-slot:material="{text, record}">
|
||||
@@ -36,6 +37,18 @@ export default {
|
||||
data () {
|
||||
return {
|
||||
loading: false,
|
||||
/* 分页参数 */
|
||||
ipagination: {
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
pageSizeOptions: ['10', '30', '50', '100', '150', '200'],
|
||||
showTotal: (total, range) => {
|
||||
return range[0] + '-' + range[1] + ' ' + this.$t('total') + ' ' + total + ' ' + this.$t('strip')
|
||||
},
|
||||
showQuickJumper: true,
|
||||
showSizeChanger: true,
|
||||
total: 0
|
||||
},
|
||||
columns: [
|
||||
{
|
||||
title: this.$t('serialNumber'),
|
||||
@@ -175,6 +188,10 @@ export default {
|
||||
let data = {}
|
||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
||||
return data
|
||||
},
|
||||
handleTableChange (pagination, filters, sorter) {
|
||||
// 分页、排序、筛选变化时触发
|
||||
this.ipagination = pagination
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+3
-17
@@ -126,7 +126,7 @@
|
||||
filedName="manager"
|
||||
@nameChange="userSelectNameChangeForm"
|
||||
:nameStr="personFormInline.manager_dictText"
|
||||
type="radio"/>
|
||||
type="checkbox"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
<!-- 批准人员 -->
|
||||
@@ -144,7 +144,7 @@
|
||||
filedName="seniorManager"
|
||||
@nameChange="userSelectNameChangeForm"
|
||||
:nameStr="personFormInline.seniorManager_dictText"
|
||||
type="radio"/>
|
||||
type="checkbox"/>
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
</div>
|
||||
@@ -539,23 +539,9 @@ export default {
|
||||
if (valid) {
|
||||
if (this.formInline.distributeFlag === YesOrNoEnum.YES.value) {
|
||||
// 排查任务是否下发选了是
|
||||
// 校验设计工程师是否全部填写
|
||||
let hasErr = false
|
||||
for (const i in this.dataSource) {
|
||||
if (!this.dataSource[i].designEngineer) {
|
||||
// 需要选设计工程师,但是没有选择
|
||||
hasErr = true
|
||||
// 根据下标跳转到第一个没有填的的这一页表格
|
||||
this.ipagination.current = Math.floor(i / Number(this.ipagination.pageSize)) + 1
|
||||
break
|
||||
}
|
||||
}
|
||||
if (valid && !hasErr) {
|
||||
if (valid) {
|
||||
data.standardInfo = Object.assign({}, this.formInline)
|
||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
||||
} else if (hasErr) {
|
||||
this.$message.warning(this.$t('workCenter.regulatoryComplianceCheckProcess.pleaseSelectDesignEngineer'))
|
||||
data = false
|
||||
} else {
|
||||
data = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user