feat: 标准库
This commit is contained in:
@@ -56,7 +56,7 @@
|
||||
</p>
|
||||
<p><label style=" margin-right: 150px;">发布日期</label><span>{{ sarStandardsInfoEO.issueTime || '-' }}</span></p>
|
||||
<p><label style=" margin-right: 76px;">是否纳入认证清单</label><span>{{sarStandardsInfoEO.isRelateAccess ? (sarStandardsInfoEO.isRelateAccess === '1' ? '是' : '否') : '-'}}</span></p>
|
||||
<p><label style=" margin-right: 150px;">标准体系</label><span>{{ sarStandardsInfoEO.standSystemName || '-' }}</span></p>
|
||||
<p v-if="saveStandType === 'INLAND_STAND'"><label style=" margin-right: 150px;">标准体系</label><span>{{ sarStandardsInfoEO.standSystemName || '-' }}</span></p>
|
||||
<!-- <p><label>文本说明:</label><span style="color: #999999">{{ sarStandardsInfoEO.synopsis || '-' }}</span></p>-->
|
||||
<!-- <p><label>重要度:</label><span>{{ sarStandardsInfoEO.isRelateAccess === '1' ? 'A' : 'B'}}</span></p>-->
|
||||
<!-- <p><label>纳入标准法规清单的国家/地区:</label><span>{{ sarStandardsInfoEO.accessCountry || '-' }}</span></p>-->
|
||||
@@ -2624,8 +2624,6 @@ export default {
|
||||
// if (field.attrField === 'XGLC' && !this.$_has('6A52PZCAX8BAUUJ2TSQ4')) {
|
||||
// return
|
||||
// }
|
||||
console.log("displayLocation");
|
||||
console.log(displayLocation);
|
||||
displayLocation.forEach((location) => {
|
||||
location.isShowImp = '0'
|
||||
if (dynamicFormField) {
|
||||
|
||||
@@ -490,7 +490,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="能源类型" prop="nylx" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.nylx" placeholder="请选择适用车型" multiple>
|
||||
<el-select v-model="form.nylx" placeholder="请选择能源类型" multiple>
|
||||
<el-option
|
||||
v-for="item in categoryOptions"
|
||||
placeholder="请选择"
|
||||
@@ -552,7 +552,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="适用产品线" prop="sycpx" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.sycpx" placeholder="请选择适用车型" multiple>
|
||||
<el-select v-model="form.sycpx" placeholder="请选择适用产品线" multiple>
|
||||
<el-option
|
||||
v-for="item in sycpxOptions"
|
||||
placeholder="请选择"
|
||||
|
||||
@@ -315,7 +315,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="能源类型" prop="nylx" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.nylx" placeholder="请选择适用车型" multiple disabled>
|
||||
<el-select v-model="form.nylx" placeholder="请选择能源类型" multiple disabled>
|
||||
<el-option
|
||||
v-for="item in categoryOptions"
|
||||
placeholder="请选择"
|
||||
@@ -382,7 +382,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="适用产品线" prop="sycpx" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.sycpx" placeholder="请选择适用车型" multiple disabled>
|
||||
<el-select v-model="form.sycpx" placeholder="请选择适用产品线" multiple disabled>
|
||||
<el-option
|
||||
v-for="item in sycpxOptions"
|
||||
placeholder="请选择"
|
||||
|
||||
@@ -308,7 +308,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="能源类型" prop="nylx" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.nylx" placeholder="请选择适用车型" multiple disabled>
|
||||
<el-select v-model="form.nylx" placeholder="请选择能源类型" multiple disabled>
|
||||
<el-option
|
||||
v-for="item in categoryOptions"
|
||||
placeholder="请选择"
|
||||
@@ -375,7 +375,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="适用产品线" prop="sycpx" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.sycpx" placeholder="请选择适用车型" multiple disabled>
|
||||
<el-select v-model="form.sycpx" placeholder="请选择适用产品线" multiple disabled>
|
||||
<el-option
|
||||
v-for="item in sycpxOptions"
|
||||
placeholder="请选择"
|
||||
|
||||
@@ -477,7 +477,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="能源类型" prop="nylx" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.nylx" placeholder="请选择适用车型" multiple>
|
||||
<el-select v-model="form.nylx" placeholder="请选择能源类型" multiple>
|
||||
<el-option
|
||||
v-for="item in categoryOptions"
|
||||
placeholder="请选择"
|
||||
@@ -539,7 +539,7 @@
|
||||
</el-col>
|
||||
<el-col :span="12">
|
||||
<el-form-item label="适用产品线" prop="sycpx" class="add-form-item form-item-disabled">
|
||||
<el-select v-model="form.sycpx" placeholder="请选择适用车型" multiple>
|
||||
<el-select v-model="form.sycpx" placeholder="请选择适用产品线" multiple>
|
||||
<el-option
|
||||
v-for="item in sycpxOptions"
|
||||
placeholder="请选择"
|
||||
|
||||
@@ -554,53 +554,7 @@
|
||||
:config="field"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
>1</custom-textarea>
|
||||
</template>
|
||||
<template v-else-if="field.selVal === 'ORGLIST' || field.selVal === 'USERLIST' || field.selVal === 'ROLELIST'">
|
||||
<template v-if="field.attrField === 'XMPGJS'">
|
||||
<custom-role-tree
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
:data-model="sarStandardsInfoEO"
|
||||
:isRoleHierarchy="false"
|
||||
roleHierarchyName="VSE,FO,工程师"
|
||||
></custom-role-tree>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'ZRBM'">
|
||||
<custom-org
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
:zNodes="orgData"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
:data-model="sarStandardsInfoEO"
|
||||
@on-checked="onChecked"
|
||||
></custom-org>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'FGWHR'">
|
||||
<org-table
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
:zNodes="orgData"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
:data-model="sarStandardsInfoEO"
|
||||
></org-table>
|
||||
</template>
|
||||
<template v-else>
|
||||
<custom-org
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
:zNodes="orgData"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
:data-model="sarStandardsInfoEO"
|
||||
:initNotCheck="false"
|
||||
@on-checked="onChecked"
|
||||
></custom-org>
|
||||
</template>
|
||||
></custom-textarea>
|
||||
</template>
|
||||
<template v-else-if="field.attrType === 'SEL_OPTION'">
|
||||
<template>
|
||||
@@ -613,12 +567,14 @@
|
||||
</template>
|
||||
</template>
|
||||
<template v-else-if="field.attrType === 'SEL_OPTS' && field.attrField !== 'ZRLX'">
|
||||
<custom-select-array
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
></custom-select-array>
|
||||
<template>
|
||||
<custom-select-array
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
></custom-select-array>
|
||||
</template>
|
||||
</template>
|
||||
</template>
|
||||
</template>
|
||||
@@ -1376,7 +1332,14 @@ export default {
|
||||
KCCVPPSCN: '',
|
||||
DYBXH: '',
|
||||
DYMC: '',
|
||||
|
||||
CYSD:'',
|
||||
CLLX:'',
|
||||
NYLX:'',
|
||||
SYCPX:'',
|
||||
SYRZ:'',
|
||||
ZRBM:'',
|
||||
ZRGCS:'',
|
||||
WSSMR:'',
|
||||
}, // 标准新增过程中用到的对象
|
||||
standClass: [], // 标准类别
|
||||
sarStandardsInfoEO: {
|
||||
@@ -1495,7 +1458,21 @@ export default {
|
||||
sentScreenFileFeedback: '',
|
||||
approvalFileTime: '',
|
||||
approvalFileFeedback: '',
|
||||
certPutTimeList: []
|
||||
certPutTimeList: [],
|
||||
CYCVPPSBM: '',
|
||||
CYCVPPSCN: '',
|
||||
KCCVPPSBM: '',
|
||||
KCCVPPSCN: '',
|
||||
DYBXH: '',
|
||||
DYMC: '',
|
||||
CYSD:'',
|
||||
CLLX:'',
|
||||
NYLX:'',
|
||||
SYCPX:'',
|
||||
SYRZ:'',
|
||||
ZRBM:'',
|
||||
ZRGCS:'',
|
||||
WSSMR:'',
|
||||
}, // 标准新增过程中用到的对象
|
||||
currentFileList: '', // 当前操作的是哪个FormItem的上传
|
||||
isList: [
|
||||
@@ -2019,7 +1996,6 @@ export default {
|
||||
Promise.all([this.queryDisplayLocation()]).then((values) => {
|
||||
const [displayLocation] = values
|
||||
const formFieldList = this.formFieldList
|
||||
console.log(formFieldList)
|
||||
this.sarStandardsInfoEO = JSON.parse(JSON.stringify(item))
|
||||
if(this.sarStandardsInfoEO.standSystem){
|
||||
this.defaultCheckedKeys = [this.sarStandardsInfoEO.standSystem];
|
||||
@@ -2057,11 +2033,11 @@ export default {
|
||||
}
|
||||
field['value'] = value
|
||||
// 追加用户名称和部门名称和SVPPS名称
|
||||
if (field.selVal === 'ROLELIST' || field.selVal === 'ORGLIST' || field.selVal === 'USERLIST' || field.attrField === 'SVPPS' || field.attrField === 'XMPGJS') {
|
||||
let attrFieldName = field.attrField + 'Name'
|
||||
valueName = dynamicFormField[attrFieldName]
|
||||
}
|
||||
field['valueName'] = valueName
|
||||
// if (field.selVal === 'ROLELIST' || field.selVal === 'ORGLIST' || field.selVal === 'USERLIST' || field.attrField === 'SVPPS' || field.attrField === 'XMPGJS') {
|
||||
// let attrFieldName = field.attrField + 'Name'
|
||||
// valueName = dynamicFormField[attrFieldName]
|
||||
// }
|
||||
// field['valueName'] = valueName
|
||||
if (field.showRegionId === location.value) {
|
||||
if (!location.child) {
|
||||
location['child'] = []
|
||||
@@ -2071,6 +2047,7 @@ export default {
|
||||
})
|
||||
})
|
||||
this.dynamicFormField = displayLocation
|
||||
console.log(this.dynamicFormField)
|
||||
this.loading = false
|
||||
})
|
||||
})
|
||||
@@ -2790,10 +2767,8 @@ export default {
|
||||
// 验证标准号是否唯一
|
||||
this.validateStandNumber(this.sarStandardsInfoEO).then((flag) => {
|
||||
if (flag) {
|
||||
debugger
|
||||
// 时间格式修改
|
||||
let nowstandinfo = JSON.parse(JSON.stringify(this.sarStandardsInfoEO))
|
||||
console.log(nowstandinfo)
|
||||
if (nowstandinfo.putTime != null && nowstandinfo.putTime !== '') {
|
||||
nowstandinfo.putTime = this.$dateFormat(this.sarStandardsInfoEO.putTime, 'yyyy-MM-dd hh:mm:ss')
|
||||
}
|
||||
@@ -2823,8 +2798,6 @@ export default {
|
||||
sarStandAttrObj[item.attrField] = nowstandinfo[item.attrField]
|
||||
})
|
||||
nowstandinfo['sarStandAttrEOStr'] = JSON.stringify(sarStandAttrObj).replace(/"/g, "'")
|
||||
console.log(formFieldList)
|
||||
console.log(nowstandinfo)
|
||||
this.$http.postData(this.addOrUPdateFlag === 1 ? 'sarStandardsInfo/sar-standards-info/addarStandardsInfo' : 'sarStandardsInfo/sar-standards-info/updateSarStandardsInfo', nowstandinfo, {
|
||||
_this: this
|
||||
}, res => {
|
||||
@@ -3739,9 +3712,50 @@ export default {
|
||||
const data = this.formFieldListData
|
||||
this.formFieldList = data.map((item) => {
|
||||
if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') {
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions[item.selVal]
|
||||
})
|
||||
if(item.attrField === 'WSSMR'){
|
||||
const options = [
|
||||
{label:"署名人1",value:"1"},{label:"署名人2",value:"2"}
|
||||
]
|
||||
return Object.assign({}, item, {
|
||||
options: options
|
||||
})
|
||||
}else if(item.attrField === 'CYSD'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["WSCYSD"]
|
||||
})
|
||||
}else if(item.attrField === 'CLLX'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["ENERGYTYPES"]
|
||||
})
|
||||
}else if(item.attrField === 'NYLX'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["NYLXCLASS"]
|
||||
})
|
||||
}else if(item.attrField === 'SYCPX'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["SYCPXCLASS"]
|
||||
})
|
||||
}else if(item.attrField === 'SYRZ'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["SYRZCLASS"]
|
||||
})
|
||||
}else if(item.attrField === 'ZRBM'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["ZRBMCLASS"]
|
||||
})
|
||||
}else if(item.attrField === 'ZRGCS'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["ZRGCSCLASS"]
|
||||
})
|
||||
}else if(item.attrField === 'TXLB'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["TXLBCLASS"]
|
||||
})
|
||||
}else {
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions[item.selVal]
|
||||
})
|
||||
}
|
||||
} else {
|
||||
return item
|
||||
}
|
||||
|
||||
@@ -613,39 +613,6 @@
|
||||
:disabled="formdisableflag"
|
||||
></custom-textarea>
|
||||
</template>
|
||||
<template v-else-if="field.selVal === 'ORGLIST' || field.selVal === 'USERLIST' || field.selVal === 'ROLELIST'">
|
||||
<template v-if="field.attrField === 'XMPGJS'">
|
||||
<custom-role-tree
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
:data-model="sarStandardsInfoEO"
|
||||
:isRoleHierarchy="false"
|
||||
roleHierarchyName="VSE,FO,工程师"
|
||||
></custom-role-tree>
|
||||
</template>
|
||||
<template v-else-if="field.attrField === 'ZRBM'">
|
||||
<custom-org
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
:zNodes="orgData"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
:data-model="sarStandardsInfoEO"
|
||||
@on-checked="onChecked"
|
||||
></custom-org>
|
||||
</template>
|
||||
<template v-else>
|
||||
<custom-org
|
||||
:key="field.attrField"
|
||||
:config="field"
|
||||
:zNodes="orgData"
|
||||
v-model="sarStandardsInfoEO[field.attrField]"
|
||||
:disabled="formdisableflag"
|
||||
:data-model="sarStandardsInfoEO"></custom-org>
|
||||
</template>
|
||||
</template>
|
||||
<template v-else-if="field.attrType === 'SEL_OPTION'">
|
||||
<custom-select
|
||||
:key="field.attrField"
|
||||
@@ -1431,6 +1398,15 @@ export default {
|
||||
KCCVPPSCN: '',
|
||||
DYBXH: '',
|
||||
DYMC: '',
|
||||
CYSD:'',
|
||||
CLLX:'',
|
||||
NYLX:'',
|
||||
SYCPX:'',
|
||||
SYRZ:'',
|
||||
ZRBM:'',
|
||||
ZRGCS:'',
|
||||
WSSMR:'',
|
||||
TXLB:'',
|
||||
}, // 标准新增过程中用到的对象
|
||||
currentFileList: '', // 当前操作的是哪个FormItem的上传
|
||||
isList: [
|
||||
@@ -2656,10 +2632,8 @@ export default {
|
||||
// 验证标准号是否唯一
|
||||
this.validateStandNumber(this.sarStandardsInfoEO).then((flag) => {
|
||||
if (flag) {
|
||||
debugger
|
||||
// 时间格式修改
|
||||
let nowstandinfo = JSON.parse(JSON.stringify(this.sarStandardsInfoEO))
|
||||
console.log(nowstandinfo)
|
||||
if (nowstandinfo.putTime != null && nowstandinfo.putTime !== '') {
|
||||
nowstandinfo.putTime = this.$dateFormat(this.sarStandardsInfoEO.putTime, 'yyyy-MM-dd hh:mm:ss')
|
||||
}
|
||||
@@ -2689,8 +2663,6 @@ export default {
|
||||
sarStandAttrObj[item.attrField] = nowstandinfo[item.attrField]
|
||||
})
|
||||
nowstandinfo['sarStandAttrEOStr'] = JSON.stringify(sarStandAttrObj).replace(/"/g, "'")
|
||||
console.log(formFieldList)
|
||||
console.log(nowstandinfo)
|
||||
this.$http.postData(this.addOrUPdateFlag === 1 ? 'sarStandardsInfo/sar-standards-info/addarStandardsInfo' : 'sarStandardsInfo/sar-standards-info/updateSarStandardsInfo', nowstandinfo, {
|
||||
_this: this
|
||||
}, res => {
|
||||
@@ -3615,28 +3587,69 @@ export default {
|
||||
})
|
||||
})
|
||||
},
|
||||
resolveFormFieldList (isEdit) {
|
||||
const data = this.formFieldListData
|
||||
this.formFieldList = data.map((item) => {
|
||||
if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') {
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions[item.selVal]
|
||||
resolveFormFieldList (isEdit) {
|
||||
const data = this.formFieldListData
|
||||
this.formFieldList = data.map((item) => {
|
||||
if (item.attrType === 'SEL_OPTION' || item.attrType === 'SEL_OPTS') {
|
||||
if(item.attrField === 'WSSMR'){
|
||||
const options = [
|
||||
{label:"署名人1",value:"1"},{label:"署名人2",value:"2"}
|
||||
]
|
||||
return Object.assign({}, item, {
|
||||
options: options
|
||||
})
|
||||
}else if(item.attrField === 'CYSD'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["WSCYSD"]
|
||||
})
|
||||
}else if(item.attrField === 'CLLX'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["ENERGYTYPES"]
|
||||
})
|
||||
}else if(item.attrField === 'NYLX'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["NYLXCLASS"]
|
||||
})
|
||||
}else if(item.attrField === 'SYCPX'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["SYCPXCLASS"]
|
||||
})
|
||||
}else if(item.attrField === 'SYRZ'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["SYRZCLASS"]
|
||||
})
|
||||
}else if(item.attrField === 'ZRBM'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["ZRBMCLASS"]
|
||||
})
|
||||
}else if(item.attrField === 'ZRGCS'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["ZRGCSCLASS"]
|
||||
})
|
||||
}else if(item.attrField === 'TXLB'){
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions["TXLBCLASS"]
|
||||
})
|
||||
}else {
|
||||
return Object.assign({}, item, {
|
||||
options: this.allSelectOptions[item.selVal]
|
||||
})
|
||||
}
|
||||
} else {
|
||||
return item
|
||||
}
|
||||
})
|
||||
} else {
|
||||
return item
|
||||
}
|
||||
})
|
||||
// 处理时间格式的数据
|
||||
data.forEach(item => {
|
||||
if (item.attrType === 'DATE_PICKER') {
|
||||
const date = this.sarStandardsInfoEO[item.attrField] ? new Date(this.sarStandardsInfoEO[item.attrField]) : ''
|
||||
this.$set(this.sarStandardsInfoEO, item.attrField, date)
|
||||
} else {
|
||||
this.$set(this.sarStandardsInfoEO, item.attrField, this.sarStandardsInfoEO[item.attrField] || '')
|
||||
}
|
||||
})
|
||||
this.resolveFormFieldListRules(isEdit)
|
||||
},
|
||||
// 处理时间格式的数据
|
||||
data.forEach(item => {
|
||||
if (item.attrType === 'DATE_PICKER') {
|
||||
const date = this.sarStandardsInfoEO[item.attrField] ? new Date(this.sarStandardsInfoEO[item.attrField]) : ''
|
||||
this.$set(this.sarStandardsInfoEO, item.attrField, date)
|
||||
} else {
|
||||
this.$set(this.sarStandardsInfoEO, item.attrField, this.sarStandardsInfoEO[item.attrField] || '')
|
||||
}
|
||||
})
|
||||
this.resolveFormFieldListRules(isEdit)
|
||||
},
|
||||
/**
|
||||
* 生成校验规则
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user