Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
super_liu
2022-03-29 15:02:51 +08:00
4 changed files with 51 additions and 26 deletions
@@ -354,9 +354,10 @@
<p class=""><label style=" margin-right: 171px;">企标号</label><span>{{ sarStandardsInfoEO.standCode }}</span></p>
<template v-for="(child, childIndex) in item.child1">
<div class="files-title" style="border-bottom: 1px solid #E5E5E5">
<label style="float: left;">{{ child.attrName }}</label>
<div style="margin-left: 220px;">
<div v-if="child.value && child.value.length > 0" v-for="(file, fileIndex) in child1Func(child.value)" style="line-height: 50px;">
<label style="float: left;min-height: 43px;line-height: 43px;">{{ child.attrName }}</label>
<template style="margin-left: 220px;">
<div style="position: relative;margin-left: 214px;">
<div v-if="child.value && child.value.length > 0" v-for="(file, fileIndex) in child1Func(child.value)" style="display: flex">
<!-- 单个文件-->
<span v-if="child.value && child.value.length > 0 && child.value.length === 1">
<a style="font-size: 16px;color: #409EFF;cursor: pointer" @click="openFileInPdf(file.id, file.oldFileName)" target="_blank" :title="file.oldFileName">{{ file.oldFileName | ellipsis50 }}</a>
@@ -409,7 +410,8 @@
<!-- <el-button v-if="child.value.length > 1" style="color:#409EFF;border: 1px solid #409EFF;background: rgba(64, 158, 255, 0.1);"-->
<!-- class="decomposition-btn" icon="icon-relation" @click="relateEvent1(child.value)">更多</el-button>-->
</div>
</div>
</div>
</template>
<template v-if="child.value === null" >-</template>
</div>
</template>
@@ -1169,8 +1169,14 @@ export default {
* @description: 动态表单读取
*/
getFormFieldList(item) {
console.log(item);
this.$nextTick(() => {
this.form = JSON.parse(JSON.stringify(item))
console.log(this.form);
this.form.sycpx = this.form.sycpx.split(',')
this.form.nylx = this.form.nylx.split(',')
this.form.cllx = this.form.cllx.split(',')
this.form.syrz = this.form.syrz.split(',')
this.defaultCheckedKeys = [this.form.standSystem]
this.defaultCheckedKeys1 = [this.form.cycvppsbm]
this.defaultCheckedKeys2 = [this.form.kccvppsbm]
@@ -1656,6 +1656,7 @@ export default {
validFlag: '0',
menuId: 'nomenu'
},
loading: false,
replaceLawsNumRow: [], // 代替政策号 数组内容
replaceTotal: 0,
selectedListRep: [],
@@ -1848,11 +1849,9 @@ export default {
if (val === '1') {
this.rules.standName[0].required = false
this.rules.standEnName[0].required = true;
this.rules.standNature[0].required = false
} else {
this.rules.standName[0].required = true
this.rules.standNature[0].required = true
this.rules.standEnName[0].required = false;
}
this.standardSearchForm.standType = val === '0' ? 'INLAND' : 'FOREIGN'
},
@@ -2607,31 +2606,49 @@ export default {
/**
* @description: 动态表单读取
*/
// getFormFieldList(item) {
// this.$nextTick(() => {
// this.form = JSON.parse(JSON.stringify(item))
// this.defaultCheckedKeys = [this.form.standSystem];
// this.defaultCheckedKeys1 = [this.form.cycvppsbm];
// this.defaultCheckedKeys2 = [this.form.kccvppsbm];
// this.defaultCheckedKeys3 = [this.form.dybxh];
// this.treeCheckedKeys = this.form.treeListId.split(',')
// this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
// this.form.standYear = this.form.standYear ? this.form.standYear : ''
// this.form.prcNum = this.prcNum
// this.form.prcName = this.prcName
// this.form['id'] = item.id
//
//
// // 遍历对象
// for (const p in this.form) {
// if (typeof (this.form[p]) != "function") {
// this.initializeFileList(p, this.form[p]);
// }
// }
//
// this.$forceUpdate()
// })
// },
getFormFieldList(item) {
this.$nextTick(() => {
this.form = JSON.parse(JSON.stringify(item))
this.defaultCheckedKeys = [this.form.standSystem];
this.defaultCheckedKeys1 = [this.form.cycvppsbm];
this.defaultCheckedKeys2 = [this.form.kccvppsbm];
this.defaultCheckedKeys3 = [this.form.dybxh];
this.treeCheckedKeys = this.form.treeListId.split(',')
this.defaultCheckedKeys = [this.form.standSystem]
this.defaultCheckedKeys1 = [this.form.cycvppsbm]
this.defaultCheckedKeys2 = [this.form.kccvppsbm]
this.defaultCheckedKeys3 = [this.form.dybxh]
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
this.form.standYear = this.form.standYear ? this.form.standYear : ''
if (this.form.country !== undefined && this.form.country !== null && this.form.country !== '') {
this.form.country = this.form.country.split(",");
}
this.form.prcNum = this.prcNum
this.form.prcName = this.prcName
this.form['id'] = item.id
// 遍历对象
for (const p in this.form) {
if (typeof (this.form[p]) != "function") {
this.initializeFileList(p, this.form[p]);
}
}
this.$forceUpdate()
})
}, initializeFileList(property, value) {
},
initializeFileList(property, value) {
switch (property) {
case 'xgd':
this.getFileList(value, this.xgdFileList);
@@ -2939,11 +2956,9 @@ export default {
if (this.form.standInData === '1') {
this.rules.standYear[0].required = false;
this.rules.standName[0].required = false
this.rules.standNature[0].required = false
} else {
this.rules.standYear[0].required = true;
this.rules.standName[0].required = true
this.rules.standNature[0].required = true
}
}
},
@@ -680,6 +680,8 @@ export default {
reviewer: "",
draftTime: "",
isSubTime: "",
resPerson: "", // 评审责任人
drafter: "", // 起草人
planStatus: "0",
mergeReason: "",
company: "",
@@ -988,12 +990,12 @@ export default {
unIdList.push(item)
}
})
if(this.roleType === '1'){
if(this.type === '1'){
this.$set(this.qbfsForm, 'drafter', idList)
this.$set(this.qbfsForm, 'drafterName', nameList)
this.$set(this.qbfsForm, 'unit', unIdList.join(','))
this.$set(this.qbfsForm, 'unitName', unNameList.join(','))
}else if(this.roleType === '2'){
}else if(this.type === '2'){
this.$set(this.qbfsForm, 'resPerson', idList)
this.$set(this.qbfsForm, 'resPersonName', nameList)
}