[update] 标准法规符合性排查流程
This commit is contained in:
+18
-17
@@ -42,7 +42,7 @@
|
||||
<!-- 分解单来源是添加标准的标准的话,显示下拉框,否则显示上传的分解单或者空 -->
|
||||
<template v-slot:splitFileSource="{record}" class="action-span-cell">
|
||||
<!-- 通过添加标准新增的 -->
|
||||
<j-dict-select-tag v-if="record.addType === AddType.SELECT_STANDARD.value"
|
||||
<j-dict-select-tag v-if="record.standardId"
|
||||
style="width: 100%"
|
||||
v-model="record.splitFileSource"
|
||||
dict-code="decomposition_single_source"
|
||||
@@ -59,7 +59,7 @@
|
||||
<!-- 操作栏 -->
|
||||
<div slot="action" slot-scope="{record}" class="action-span-cell">
|
||||
<!-- 手动新增才允许编辑 -->
|
||||
<a @click="handleEdit(record)" class="table-ope-btn" :disabled="disabled || record.addType !== AddType.MANUAL_ADD.value">{{ $t('edit') }}</a>
|
||||
<a @click="handleEdit(record)" class="table-ope-btn" :disabled="disabled || record.standardId">{{ $t('edit') }}</a>
|
||||
</div>
|
||||
|
||||
</j-table>
|
||||
@@ -95,7 +95,7 @@
|
||||
v-model="formInline.applicableMarket"
|
||||
type="radio"
|
||||
@numberChange="marketRegulationNumberChange"
|
||||
:name-str="formInline.applicableMarket_dictText"
|
||||
:name-str="formInline.applicableMarketNo"
|
||||
:placeholder="$t('pleaseSelect')+$t('applicableMarket')" />
|
||||
</a-form-model-item>
|
||||
</div>
|
||||
@@ -215,7 +215,7 @@ import JTable from '@/components/jero/JTable'
|
||||
import StandardSelectionModal from '@/components/selection/StandardSelectionModal'
|
||||
import { getForeignStandardDetail } from '@/api/standardRegulationLibraryApi'
|
||||
import ManualAddModal from './ManualAddModal'
|
||||
import { StandardSource, AddType } from '@/enums/commonEnums'
|
||||
import { StandardSource } from '@/enums/commonEnums'
|
||||
import { regulatoryComplianceCheckGenerate } from '@/api/workCenter'
|
||||
import { getFormDictTreeList, queryDepartTreeList } from '../../../../api/api'
|
||||
import MarketRegulationsListSelection from '../../../../components/selection/MarketRegulationsListSelection'
|
||||
@@ -251,7 +251,6 @@ export default {
|
||||
},
|
||||
data () {
|
||||
return {
|
||||
AddType,
|
||||
StandardSource,
|
||||
loading: false,
|
||||
formInline: {},
|
||||
@@ -432,10 +431,7 @@ export default {
|
||||
selectionRows: [],
|
||||
url: {
|
||||
salvageListDownTemplateUrl: '/process/standardComplianceCheck/splitTemplateDownload', // 分解单上传模板
|
||||
carTypeFileDownTemplateUrl: '/process/standardComplianceCheck/modelTemplateDownload', // 车型项目文件上传模板
|
||||
list: '/process/standardComplianceCheck/detailPage',
|
||||
deleteBatch: '/process/standardComplianceCheck/deleteBatch',
|
||||
delete: ''
|
||||
carTypeFileDownTemplateUrl: '/process/standardComplianceCheck/modelTemplateDownload' // 车型项目文件上传模板
|
||||
},
|
||||
countryOptions: [], // 适用市场下拉框
|
||||
model: {
|
||||
@@ -454,9 +450,16 @@ export default {
|
||||
initData (data) {
|
||||
// 给表单赋值
|
||||
this.standardDataSource[0] = Object.assign({}, data.standardInfo)
|
||||
this.formInline.modelFile = data.standardInfo.modelFile
|
||||
this.formInline.applicableMarket = data.standardInfo.applicableMarket
|
||||
this.formInline.isSameLastVersion = data.standardInfo.isSameLastVersion
|
||||
const formInline = {}
|
||||
formInline.modelFile = data.standardInfo.modelFile
|
||||
formInline.applicableMarket = data.standardInfo.applicableMarket
|
||||
formInline.applicableMarketNo = data.standardInfo.applicableMarketNo
|
||||
formInline.isSameLastVersion = data.standardInfo.isSameLastVersion
|
||||
this.formInline = Object.assign({}, formInline)
|
||||
if (data.detailInfoList && data.detailInfoList.length > 0) {
|
||||
// 表格有数据说明生成过了
|
||||
this.isGenerateAfter = true
|
||||
}
|
||||
// 给表格赋值
|
||||
const dataSource = data.detailInfoList.map(item => {
|
||||
return { ...item, uid: uidGenerator() }
|
||||
@@ -521,6 +524,8 @@ export default {
|
||||
obj = {}
|
||||
} else {
|
||||
this.loading = true
|
||||
// 标准id
|
||||
obj.standardId = value[0].id
|
||||
// 标准编号
|
||||
obj.standardNumber = value[0].standardNumber
|
||||
// 标准名称
|
||||
@@ -538,8 +543,6 @@ export default {
|
||||
obj.newProductImplDate = result.new_product_impl_date
|
||||
// 新认证车实施日期
|
||||
obj.newAuthImplDate = result.new_auth_impl_date
|
||||
// 新增方式-选择标准
|
||||
obj.addType = AddType.SELECT_STANDARD.value
|
||||
this.standardDataSource[0] = obj
|
||||
this.isGetDataAfter = true
|
||||
}
|
||||
@@ -562,8 +565,6 @@ export default {
|
||||
// 手动新增或者编辑完的回调
|
||||
manualAddOk (result, isEdit) {
|
||||
console.log(result)
|
||||
// 新增方式-手动新增
|
||||
result.addType = AddType.MANUAL_ADD.value
|
||||
this.standardDataSource[0] = Object.assign({}, result)
|
||||
this.$emit('processNameChange', (result.standardNumber || '') + '-' + (result.standardName || '') + '-' + '法规符合性排查')
|
||||
this.$forceUpdate()
|
||||
@@ -639,7 +640,7 @@ export default {
|
||||
},
|
||||
// 选择市场法规清单回调
|
||||
marketRegulationNumberChange (value) {
|
||||
this.formInline.applicableMarket_dictText = value
|
||||
this.formInline.applicableMarketNo = value
|
||||
},
|
||||
// 获取部门在部门下拉框的对象
|
||||
getDepartObj (departId, departList) {
|
||||
|
||||
Reference in New Issue
Block a user