feat: 标准库相关 未实现功能
This commit is contained in:
@@ -304,7 +304,7 @@
|
||||
<el-col :span="24" :key="index">
|
||||
<div class="divider-line">{{ displayLocation.label }}</div>
|
||||
</el-col>
|
||||
<template v-if="index === 0" >
|
||||
<template v-if="displayLocation.label === '基础信息'" >
|
||||
<el-form-item label="标准类别" prop="standSort" label-width="150px" class="add-form-item">
|
||||
<el-select v-model="sarStandardsInfoEO.standSort" filterable>
|
||||
<el-option
|
||||
@@ -368,14 +368,14 @@
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<custom-date-pick-with-text2
|
||||
<custom-date-pick
|
||||
:config="{
|
||||
attrName: '发布日期',
|
||||
attrField: 'issueTime'
|
||||
}"
|
||||
v-model="sarStandardsInfoEO.issueTime"
|
||||
:disabled="formdisableflag"
|
||||
></custom-date-pick-with-text2>
|
||||
></custom-date-pick>
|
||||
<!--</el-form-item>-->
|
||||
<el-form-item
|
||||
prop="isRelateAccess"
|
||||
@@ -419,12 +419,12 @@
|
||||
></custom-SVPPS>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'XCXSSRQ' || field.attrField === 'ZCCSSRQ'">
|
||||
<custom-date-pick-with-text
|
||||
<custom-date-pick
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
></custom-date-pick-with-text>
|
||||
></custom-date-pick>
|
||||
</template>
|
||||
<template v-else-if="field.attrType === 'DATE_PIC_OPTS'">
|
||||
<custom-date-pick-group
|
||||
@@ -443,16 +443,84 @@
|
||||
:disabled="formdisableflag"
|
||||
></custom-input-for-standards>
|
||||
</template>
|
||||
<!-- 被代替标准编号 废弃-->
|
||||
<template v-else>
|
||||
<custom-input
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
v-if="field.attrField !== 'BDTBZBH'"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
></custom-input>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'CYCVPPSBM'">
|
||||
<el-form-item
|
||||
prop="CYCVPPSBM"
|
||||
label-width="150px"
|
||||
class="add-form-item"
|
||||
>
|
||||
<template slot="label">乘用车VPPS编码</template>
|
||||
<tree-select
|
||||
:disabled="false"
|
||||
width = "340"
|
||||
:data="busVppsOptions"
|
||||
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys1"
|
||||
:nodeKey="nodeKeyCode" @popoverHide="popoverHideBusVs"></tree-select>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'KCCVPPSBM'">
|
||||
<el-form-item
|
||||
prop="KCCVPPSBM"
|
||||
label-width="150px"
|
||||
class="add-form-item"
|
||||
>
|
||||
<template slot="label">卡车VPPS编码</template>
|
||||
<tree-select
|
||||
:disabled="false"
|
||||
width = "340"
|
||||
:data="busVppsOptions"
|
||||
:defaultProps="defaultCodeProps" :checkedKeys="defaultCheckedKeys2"
|
||||
:nodeKey="nodeKeyCode" @popoverHide="popoverHideCarVs"></tree-select>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'DYBXH'">
|
||||
<el-form-item
|
||||
prop="DYBXH"
|
||||
label-width="150px"
|
||||
class="add-form-item"
|
||||
>
|
||||
<template slot="label">模块结构单元变型号</template>
|
||||
<tree-select
|
||||
width = "340"
|
||||
:disabled="false"
|
||||
:data="modelOptions"
|
||||
:defaultProps="defaultModelProps" :checkedKeys="defaultCheckedKeys3"
|
||||
:nodeKey="nodeKeyModel" @popoverHide="popoverHideModel"></tree-select>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'CYCVPPSCN'">
|
||||
<el-form-item label="关联模块--乘用车vpps中文名称" label-width="150px" prop="cycvppscn" class="add-form-item">
|
||||
<el-input
|
||||
v-model="sarStandardsInfoEO.CYCVPPSCN" disabled
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'KCCVPPSCN'">
|
||||
<el-form-item label="关联模块--卡车vpps中文名称" label-width="150px" prop="kccvppscn" class="add-form-item">
|
||||
<el-input
|
||||
v-model="sarStandardsInfoEO.KCCVPPSCN" disabled
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'DYMC'">
|
||||
<el-form-item label="模块结构单元名称" label-width="150px" prop="dymc" class="add-form-item">
|
||||
<el-input
|
||||
v-model="sarStandardsInfoEO.DYMC" disabled
|
||||
clearable
|
||||
></el-input>
|
||||
</el-form-item>
|
||||
</template>
|
||||
<template v-else>
|
||||
<custom-input
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
v-if="field.attrField !== 'BDTBZBH'"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
></custom-input>
|
||||
</template>
|
||||
</template>
|
||||
|
||||
<template v-else-if="field.attrType === 'INPUT_NUM'">
|
||||
@@ -486,7 +554,7 @@
|
||||
:config="field"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
></custom-textarea>
|
||||
>1</custom-textarea>
|
||||
</template>
|
||||
<template v-else-if="field.selVal === 'ORGLIST' || field.selVal === 'USERLIST' || field.selVal === 'ROLELIST'">
|
||||
<template v-if="field.attrField === 'XMPGJS'">
|
||||
@@ -1089,6 +1157,8 @@ export default {
|
||||
label: 'menuName'
|
||||
},
|
||||
nodeKey: 'id',
|
||||
nodeKeyCode: 'code',
|
||||
nodeKeyModel: 'model',
|
||||
defaultCheckedKeys: [],
|
||||
exportLoading : false,
|
||||
visibleOrgTable: false,
|
||||
@@ -1183,6 +1253,19 @@ export default {
|
||||
standSort: '',
|
||||
standNumber: ''
|
||||
},
|
||||
defaultCheckedKeys1: [],
|
||||
defaultCheckedKeys2: [],
|
||||
defaultCheckedKeys3: [],
|
||||
defaultCodeProps: {
|
||||
children: 'children',
|
||||
label: 'code'
|
||||
},
|
||||
defaultModelProps: {
|
||||
children: 'children',
|
||||
label: 'model'
|
||||
},
|
||||
busVppsOptions: [], // 车系体系架构
|
||||
modelOptions: [], // 模块体系架构
|
||||
searching: false,
|
||||
stahndinfoList: [],
|
||||
tableFlag: '',
|
||||
@@ -1286,7 +1369,14 @@ export default {
|
||||
upReplaceNumFlag: 0, // 记录是否修改了代替政策编号
|
||||
upNumFlag: 0,
|
||||
orgName: '', // 部门名称
|
||||
registerPutTime: '' // 注册登记车实施日期
|
||||
registerPutTime: '', // 注册登记车实施日期
|
||||
CYCVPPSBM: '',
|
||||
CYCVPPSCN: '',
|
||||
KCCVPPSBM: '',
|
||||
KCCVPPSCN: '',
|
||||
DYBXH: '',
|
||||
DYMC: '',
|
||||
|
||||
}, // 标准新增过程中用到的对象
|
||||
standClass: [], // 标准类别
|
||||
sarStandardsInfoEO: {
|
||||
@@ -1654,6 +1744,38 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
popoverHideBusVs (checkedIds, checkedData) {
|
||||
this.sarStandardsInfoEO.CYCVPPSBM = checkedData.code
|
||||
this.sarStandardsInfoEO.CYCVPPSCN = checkedData.chineseName
|
||||
console.log(checkedData)
|
||||
console.log(this.sarStandardsInfoEO.CYCVPPSBM)
|
||||
console.log(this.sarStandardsInfoEO.CYCVPPSCN)
|
||||
this.$forceUpdate()
|
||||
},
|
||||
popoverHideCarVs (checkedIds, checkedData) {
|
||||
this.sarStandardsInfoEO.KCCVPPSBM = checkedData.code
|
||||
this.sarStandardsInfoEO.KCCVPPSCN = checkedData.chineseName
|
||||
this.$forceUpdate()
|
||||
},
|
||||
popoverHideModel (checkedIds, checkedData) {
|
||||
this.sarStandardsInfoEO.DYBXH = checkedData.model
|
||||
this.sarStandardsInfoEO.DYMC = checkedData.name
|
||||
this.$forceUpdate()
|
||||
},
|
||||
busVsFunc(){
|
||||
this.$http.get('sarVppsTree/list', '', {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.busVppsOptions = res.data
|
||||
})
|
||||
},
|
||||
modelFunc(){
|
||||
this.$http.get('sarModelTree/list', '', {
|
||||
_this: this
|
||||
}, res => {
|
||||
this.modelOptions = res.data
|
||||
})
|
||||
},
|
||||
popoverHide (checkedIds, checkedData) {
|
||||
console.log(checkedData)
|
||||
this.sarStandardsInfoEO.standSystem = checkedData.id
|
||||
@@ -1894,9 +2016,10 @@ export default {
|
||||
const [displayLocation] = values
|
||||
const formFieldList = this.formFieldList
|
||||
this.sarStandardsInfoEO = JSON.parse(JSON.stringify(item))
|
||||
console.log(this.sarStandardsInfoEO)
|
||||
this.defaultCheckedKeys = [this.sarStandardsInfoEO.standSystem];
|
||||
this.sarStandardsInfoEO.standSort = item.standSort
|
||||
if(this.sarStandardsInfoEO.standSystem){
|
||||
this.defaultCheckedKeys = [this.sarStandardsInfoEO.standSystem];
|
||||
}
|
||||
this.sarStandardsInfoEO.standSort = item.standSort
|
||||
if (this.sarStandardsInfoEO.putTime != null && this.sarStandardsInfoEO.putTime !== '') {
|
||||
this.sarStandardsInfoEO.putTime = this.sarStandardsInfoEO.putTime.replace(new RegExp(/-/gm), '/')
|
||||
this.sarStandardsInfoEO.putTime = new Date(this.sarStandardsInfoEO.putTime)
|
||||
@@ -1918,6 +2041,15 @@ export default {
|
||||
if (value && field.attrType === 'DATE_PICKER') {
|
||||
value = this.$moment(value).format('YYYY-MM-DD')
|
||||
}
|
||||
if(field.attrField === 'CYCVPPSBM'){
|
||||
this.defaultCheckedKeys1 = [value]
|
||||
}
|
||||
if(field.attrField === 'KCCVPPSBM'){
|
||||
this.defaultCheckedKeys2 = [value]
|
||||
}
|
||||
if(field.attrField === 'DYBXH'){
|
||||
this.defaultCheckedKeys3 = [value]
|
||||
}
|
||||
field['value'] = value
|
||||
// 追加用户名称和部门名称和SVPPS名称
|
||||
if (field.selVal === 'ROLELIST' || field.selVal === 'ORGLIST' || field.selVal === 'USERLIST' || field.attrField === 'SVPPS' || field.attrField === 'XMPGJS') {
|
||||
@@ -3917,6 +4049,8 @@ export default {
|
||||
// 加载动态表单数据
|
||||
this.getAddFormFieldList()
|
||||
this.getDept()
|
||||
this.busVsFunc()
|
||||
this.modelFunc()
|
||||
},
|
||||
destroyed () {
|
||||
this.allSelectOptions = {}
|
||||
|
||||
Reference in New Issue
Block a user