[update] 法规符合性评估流程
This commit is contained in:
+8
-4
@@ -320,19 +320,23 @@ export default {
|
|||||||
processInfoForm: this.$form.createForm(this),
|
processInfoForm: this.$form.createForm(this),
|
||||||
labelCol: {
|
labelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
sm: { span: 4 }
|
xl: { span: 6 },
|
||||||
|
xxl: { span: 4 }
|
||||||
},
|
},
|
||||||
wrapperCol: {
|
wrapperCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
sm: { span: 20 }
|
xl: { span: 18 },
|
||||||
|
xxl: { span: 20 }
|
||||||
},
|
},
|
||||||
longLabelCol: {
|
longLabelCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
sm: { span: 2 }
|
xl: { span: 3 },
|
||||||
|
xxl: { span: 2 }
|
||||||
},
|
},
|
||||||
longWrapperCol: {
|
longWrapperCol: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
sm: { span: 22 }
|
xl: { span: 21 },
|
||||||
|
xxl: { span: 22 }
|
||||||
},
|
},
|
||||||
labelColEn: {
|
labelColEn: {
|
||||||
xs: { span: 24 },
|
xs: { span: 24 },
|
||||||
|
|||||||
+19
-2
@@ -9,8 +9,9 @@
|
|||||||
rowKey="standardNumber"
|
rowKey="standardNumber"
|
||||||
:columns="columns"
|
:columns="columns"
|
||||||
:dataSource="dataSource"
|
:dataSource="dataSource"
|
||||||
:pagination="false"
|
:pagination="ipagination"
|
||||||
:loading="loading">
|
:loading="loading"
|
||||||
|
@change="handleTableChange">
|
||||||
|
|
||||||
<!-- 佐证材料 -->
|
<!-- 佐证材料 -->
|
||||||
<template v-slot:material="{text, record}">
|
<template v-slot:material="{text, record}">
|
||||||
@@ -36,6 +37,18 @@ export default {
|
|||||||
data () {
|
data () {
|
||||||
return {
|
return {
|
||||||
loading: false,
|
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: [
|
columns: [
|
||||||
{
|
{
|
||||||
title: this.$t('serialNumber'),
|
title: this.$t('serialNumber'),
|
||||||
@@ -175,6 +188,10 @@ export default {
|
|||||||
let data = {}
|
let data = {}
|
||||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
||||||
return data
|
return data
|
||||||
|
},
|
||||||
|
handleTableChange (pagination, filters, sorter) {
|
||||||
|
// 分页、排序、筛选变化时触发
|
||||||
|
this.ipagination = pagination
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-17
@@ -126,7 +126,7 @@
|
|||||||
filedName="manager"
|
filedName="manager"
|
||||||
@nameChange="userSelectNameChangeForm"
|
@nameChange="userSelectNameChangeForm"
|
||||||
:nameStr="personFormInline.manager_dictText"
|
:nameStr="personFormInline.manager_dictText"
|
||||||
type="radio"/>
|
type="checkbox"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
<!-- 批准人员 -->
|
<!-- 批准人员 -->
|
||||||
@@ -144,7 +144,7 @@
|
|||||||
filedName="seniorManager"
|
filedName="seniorManager"
|
||||||
@nameChange="userSelectNameChangeForm"
|
@nameChange="userSelectNameChangeForm"
|
||||||
:nameStr="personFormInline.seniorManager_dictText"
|
:nameStr="personFormInline.seniorManager_dictText"
|
||||||
type="radio"/>
|
type="checkbox"/>
|
||||||
</a-form-model-item>
|
</a-form-model-item>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -539,23 +539,9 @@ export default {
|
|||||||
if (valid) {
|
if (valid) {
|
||||||
if (this.formInline.distributeFlag === YesOrNoEnum.YES.value) {
|
if (this.formInline.distributeFlag === YesOrNoEnum.YES.value) {
|
||||||
// 排查任务是否下发选了是
|
// 排查任务是否下发选了是
|
||||||
// 校验设计工程师是否全部填写
|
if (valid) {
|
||||||
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) {
|
|
||||||
data.standardInfo = Object.assign({}, this.formInline)
|
data.standardInfo = Object.assign({}, this.formInline)
|
||||||
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
data.detailInfoList = JSON.parse(JSON.stringify(this.dataSource))
|
||||||
} else if (hasErr) {
|
|
||||||
this.$message.warning(this.$t('workCenter.regulatoryComplianceCheckProcess.pleaseSelectDesignEngineer'))
|
|
||||||
data = false
|
|
||||||
} else {
|
} else {
|
||||||
data = false
|
data = false
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user