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

This commit is contained in:
super_liu
2022-02-21 12:34:49 +08:00
7 changed files with 19 additions and 18 deletions
+1 -5
View File
@@ -204,11 +204,7 @@ router.beforeEach(function (to, from, next) {
} }
} else if (prcType === '6') { } else if (prcType === '6') {
//标准项目合规评估 项目维度 //标准项目合规评估 项目维度
if (path === "/xmpg2Step1" || path === "/xmpg2Step2" || path === "/xmpg2Step1-2") { extracted("xmpgStep1-5");
extracted("xmpg2Step1-2");
} else {
extracted("xmpg2Step1-12");
}
} else if (prcType === '8') { } else if (prcType === '8') {
// 未符合项整改 // 未符合项整改
extracted("wfhxzgStep5-1"); extracted("wfhxzgStep5-1");
@@ -2072,7 +2072,7 @@ export default {
this.defaultCheckedKeys3 = [this.form.dybxh] this.defaultCheckedKeys3 = [this.form.dybxh]
this.treeCheckedKeys = this.form.treeListId.split(',') this.treeCheckedKeys = this.form.treeListId.split(',')
this.form.standType = this.form.standInData === "0" ? 'INLAND' : 'FOREIGN' this.form.standType = this.form.standInData === "0" ? 'INLAND' : 'FOREIGN'
this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : '' this.form.standYear = this.form.standYear ? this.form.standYear : ''
if (this.form.country !== undefined && this.form.country !== null && this.form.country !== '') { if (this.form.country !== undefined && this.form.country !== null && this.form.country !== '') {
this.form.country = this.form.country.split(","); this.form.country = this.form.country.split(",");
} }
@@ -2211,7 +2211,7 @@ export default {
this.key2++ this.key2++
this.key3++ this.key3++
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
this.form.standYear = bringData.standYear ? parseInt(bringData.standYear) : '' this.form.standYear = bringData.standYear ? bringData.standYear : ''
this.form.prcNum = this.prcNum this.form.prcNum = this.prcNum
this.form.prcName = this.prcName this.form.prcName = this.prcName
this.form['id'] = bringData.id this.form['id'] = bringData.id
@@ -1091,7 +1091,7 @@ export default {
this.defaultCheckedKeys2 = [this.form.kccvppsbm] this.defaultCheckedKeys2 = [this.form.kccvppsbm]
this.defaultCheckedKeys3 = [this.form.dybxh] this.defaultCheckedKeys3 = [this.form.dybxh]
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : '' this.form.standYear = this.form.standYear ? this.form.standYear : ''
this.form.prcNum = this.prcNum this.form.prcNum = this.prcNum
this.form.prcName = this.prcName this.form.prcName = this.prcName
if( this.form.country !== undefined && this.form.country !== null && this.form.country !== ''){ if( this.form.country !== undefined && this.form.country !== null && this.form.country !== ''){
@@ -2540,11 +2540,14 @@ export default {
}).then(res => { }).then(res => {
if (res) { if (res) {
const processForm = JSON.parse(res.mesg) const processForm = JSON.parse(res.mesg)
console.log(processForm);
console.log(this.form);
// this.commentText = processForm.commentText // this.commentText = processForm.commentText
if (processForm.form === undefined) { if (processForm.form === undefined) {
this.getFormFieldList(processForm) this.getFormFieldList(processForm)
} else { } else {
//表单文件处理 //表单文件处理
console.log(2);
this.getFormFieldList(processForm.form) this.getFormFieldList(processForm.form)
} }
} }
@@ -2565,7 +2568,7 @@ export default {
this.defaultCheckedKeys3 = [this.form.dybxh]; this.defaultCheckedKeys3 = [this.form.dybxh];
this.treeCheckedKeys = this.form.treeListId.split(',') this.treeCheckedKeys = this.form.treeListId.split(',')
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN' this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
this.form.standYear = this.form.standYear ? parseInt(this.form.standYear) : '' this.form.standYear = this.form.standYear ? this.form.standYear : ''
this.form.prcNum = this.prcNum this.form.prcNum = this.prcNum
this.form.prcName = this.prcName this.form.prcName = this.prcName
this.form['id'] = item.id this.form['id'] = item.id
@@ -666,6 +666,11 @@ export default {
_this: this _this: this
}, res => { }, res => {
this.listForm.breakdownList = res.data; this.listForm.breakdownList = res.data;
this.listForm.breakdownList.map(item =>{
if(item.termsConditions){
item.termsConditions = ''
}
})
}); });
}, },
//标准的多选框改变 //标准的多选框改变
@@ -827,7 +832,6 @@ export default {
bpnId: this.$route.query.bpnId bpnId: this.$route.query.bpnId
}).then(res => { }).then(res => {
let mes = JSON.parse(res.mes); let mes = JSON.parse(res.mes);
console.log(mes);
if(mes.form.projectNumber){ if(mes.form.projectNumber){
this.addShow = false this.addShow = false
} }
@@ -334,6 +334,8 @@ export default {
key: item.standId, key: item.standId,
id: item.id, id: item.id,
standId: item.id, standId: item.id,
// standType: item.standType,
// zrbm: item.zrbm,
itemsNum: item.itemsNum, itemsNum: item.itemsNum,
itemsName: item.itemsName, itemsName: item.itemsName,
xcxssrq: item.xcxssrq, xcxssrq: item.xcxssrq,
@@ -772,11 +772,11 @@ export default {
this.dataList = dataListChildren; this.dataList = dataListChildren;
this.total = this.dataList.length; this.total = this.dataList.length;
} else { } else {
this.listForm = item.form;
this.commentText = item.commentText;
let dataChildren = []; let dataChildren = [];
let dataListChildren = []; let dataListChildren = [];
this.dataList = item.dataList; this.listForm = item.form
this.commentText = item.commentText
this.dataList = item.form.dataList;
this.dataList.forEach(item =>{ this.dataList.forEach(item =>{
if(item.children){ if(item.children){
item.children.forEach(items =>{ item.children.forEach(items =>{
@@ -795,9 +795,6 @@ export default {
} }
}) })
}) })
this.listForm.dataList.forEach(item => {
dataChildren.push(item.children);
});
dataChildren.forEach((item, index) => { dataChildren.forEach((item, index) => {
dataListChildren = dataListChildren.concat(item); dataListChildren = dataListChildren.concat(item);
}); });
@@ -808,9 +805,8 @@ export default {
if(index > -1){ if(index > -1){
dataListChildren.splice(index, 1) dataListChildren.splice(index, 1)
} }
this.dataList = dataListChildren;
this.total = this.dataList.length; this.total = this.dataList.length;
// this.dataList = item.form.dataList[0].children;
// this.total = item.form.dataList[0].children.length;
} }
}); });