feat: 标准库
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user