[update] 法规符合性排查流程

This commit is contained in:
lideqin
2024-07-09 16:04:58 +08:00
parent d8986b63f4
commit 9e7f7e87a0
3 changed files with 40 additions and 34 deletions
@@ -181,7 +181,12 @@
</div>
</template>
<!-- 添加标准弹框 -->
<standard-selection-modal ref="selectStandardRef" type="radio" @listChange="listChange"/>
<standard-selection-modal ref="selectStandardRef"
type="radio"
@listChange="listChange"
:canSelectedSource="[StandardSource.FOREIGN.value]"
:filters="{releaseSplitFlag: '1'}"
disabledSourceSearch/>
<!-- 手动新增弹框 -->
<manual-add-modal ref="manualAddRef" @ok="manualAddOk"/>
</div>
@@ -218,6 +223,7 @@ export default {
data () {
return {
AddType,
StandardSource,
loading: false,
formInline: {},
rules: {
@@ -275,7 +281,7 @@ export default {
dataIndex: 'splitFileSource',
customRender: (value, row, index) => {
return <j-dict-select-tag
style={{width: '100%'}}
style={{ width: '100%' }}
v-model={row.splitFileSource}
dictCode={'decomposition_single_source'}
disabled={this.disabled}
@@ -332,35 +338,35 @@ export default {
title: this.$t('standardNumber') + '/' + this.$t('clauseNo'),
align: 'center',
width: 180,
dataIndex: 'clauseNo',
dataIndex: 'termNumber',
scopedSlots: { customRender: 'text' }
},
{ // 标准名称/条款标题
title: this.$t('standardName') + '/' + this.$t('clauseTitle'),
align: 'center',
width: 180,
dataIndex: 'clauseTitle',
dataIndex: 'termTitle',
scopedSlots: { customRender: 'text' }
},
{ // 条款内容
title: this.$t('clauseContent'),
align: 'center',
width: 180,
dataIndex: 'clauseContent',
dataIndex: 'termContent',
scopedSlots: { customRender: 'text' }
},
{ // 车型
title: this.$t('vehicleType'),
align: 'center',
width: 180,
dataIndex: 'vehicleType',
dataIndex: 'model',
scopedSlots: { customRender: 'text' }
},
{ // 车型状态
title: this.$t('workCenter.regulatoryComplianceCheckProcess.modelStatus'),
align: 'center',
width: 180,
dataIndex: 'modelStatus',
dataIndex: 'modelState',
scopedSlots: { customRender: 'text' }
},
{ // 责任部门
@@ -385,12 +391,13 @@ export default {
url: {
salvageListDownTemplateUrl: '/process/standardComplianceCheck/splitTemplateDownload', // 分解单上传模板
carTypeFileDownTemplateUrl: '/process/standardComplianceCheck/modelTemplateDownload', // 车型项目文件上传模板
list: '',
deleteBatch: '',
list: '/process/standardComplianceCheck/detailPage',
deleteBatch: '/process/standardComplianceCheck/deleteBatch',
delete: ''
},
disableMixinCreated: true,
countryOptions: [] // 适用市场下拉框
countryOptions: [], // 适用市场下拉框
model: {}
}
},
mounted () {
@@ -408,7 +415,7 @@ export default {
getData () {
// 把数据抛出,在线编辑不知道要不要抛
const data = {}
data.formInline = this.formInline
data.formInline = {standardInfo: {id: this.model.id}}
return data
},
// 外层获取数据要过校验,返回false表示没有通过校验
@@ -500,6 +507,7 @@ export default {
result.splitFileSource = '2'
}
this.standardDataSource[0] = Object.assign({}, result)
this.$emit('processNameChange', (result.standardNumber || '') + '-' + (result.standardName || '') + '-' + '法规符合性排查')
this.$forceUpdate()
},
// 删除
@@ -555,7 +563,8 @@ export default {
// 显示下方列表信息
this.isGenerateAfter = true
// 获取下方列表信息
this.filters.pid = res.result
this.filters.checkId = res.result
this.model.id = res.result
this.loadData(1)
} else {
this.$message.warning(res.message)