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

This commit is contained in:
super_liu
2022-05-10 15:23:33 +08:00
6 changed files with 74 additions and 41 deletions
@@ -2146,6 +2146,8 @@ export default {
standYear: '', // 标准年份 standYear: '', // 标准年份
standInData: data.standInData ? data.standInData : '0', // 标准类型 standInData: data.standInData ? data.standInData : '0', // 标准类型
standSort: data.standSort ? data.standSort : '', // 标准类别 standSort: data.standSort ? data.standSort : '', // 标准类别
country: data.country ? data.country : '', // 国家
standSystem: data.standSystem ? data.standSystem : '', // 标准体系
standNumber: data.standNumber ? data.standNumber : '', // 标准编号 standNumber: data.standNumber ? data.standNumber : '', // 标准编号
standNature: data.standNature ? data.standNature : '', // 标准性质 standNature: data.standNature ? data.standNature : '', // 标准性质
standEnName: data.standEnName ? data.standEnName : '', // 英文名称 standEnName: data.standEnName ? data.standEnName : '', // 英文名称
@@ -2153,7 +2155,6 @@ export default {
signFlag: data.signFlag ? data.signFlag : '1', // 是否需要会签 signFlag: data.signFlag ? data.signFlag : '1', // 是否需要会签
issueTime: '', // 发布时间 issueTime: '', // 发布时间
isRelateAccess: '', // 是否纳入认证清单 isRelateAccess: '', // 是否纳入认证清单
standSystem: '',// 标准体系
standSystemName: '',// 标准体系名称 standSystemName: '',// 标准体系名称
gxhbq: '', // 标签 gxhbq: '', // 标签
// 实施日期 // 实施日期
@@ -1127,6 +1127,7 @@ export default {
pId: this.pId pId: this.pId
}).then(res => { }).then(res => {
if (res) { if (res) {
console.log(res);
const processForm = JSON.parse(res.mesg) const processForm = JSON.parse(res.mesg)
this.xgdFileId = processForm.xgd this.xgdFileId = processForm.xgd
this.fbgbjbdFileId = processForm.fbgbjbd this.fbgbjbdFileId = processForm.fbgbjbd
@@ -2628,6 +2628,12 @@ export default {
console.log(item); console.log(item);
this.$nextTick(() => { this.$nextTick(() => {
this.form = JSON.parse(JSON.stringify(item)) this.form = JSON.parse(JSON.stringify(item))
// 遍历对象
for (const p in this.form) {
if (typeof (this.form[p]) != "function") {
this.initializeFileList(p, this.form[p]);
}
}
this.defaultCheckedKeys = [this.form.standSystem]; this.defaultCheckedKeys = [this.form.standSystem];
this.defaultCheckedKeys1 = [this.form.cycvppsbm]; this.defaultCheckedKeys1 = [this.form.cycvppsbm];
this.defaultCheckedKeys2 = [this.form.kccvppsbm]; this.defaultCheckedKeys2 = [this.form.kccvppsbm];
@@ -2639,14 +2645,6 @@ export default {
this.form.prcName = this.prcName this.form.prcName = this.prcName
this.form['id'] = item.id this.form['id'] = item.id
this.form.country = item.country.split(',') this.form.country = item.country.split(',')
// 遍历对象
for (const p in this.form) {
if (typeof (this.form[p]) != "function") {
this.initializeFileList(p, this.form[p]);
}
}
this.$forceUpdate() this.$forceUpdate()
}) })
}, },
@@ -2668,6 +2666,7 @@ export default {
// }) // })
// }, // },
initializeFileList(property, value) { initializeFileList(property, value) {
console.log('执行文件方法');
switch (property) { switch (property) {
case 'xgd': case 'xgd':
this.getFileList(value, this.xgdFileList); this.getFileList(value, this.xgdFileList);
@@ -857,46 +857,75 @@ export default {
this.handleSubmit() this.handleSubmit()
}, },
handleSubmit() { handleSubmit() {
this.getRule()
const val = this.form.country; const val = this.form.country;
if (val !== '' && val !== null && typeof (val) !== 'undefined') { if (val !== "" && val !== null && typeof (val) !== "undefined") {
if (val instanceof Array) { if (val instanceof Array) {
this.form.country = val.join(","); this.form.country = val.join(",");
} else { } else {
this.form.country = val this.form.country = val;
} }
} else if (val === '') { } else if (val === "") {
this.form.country = [] this.form.country = [];
} }
this.$refs['formTongGuo'].validate((valid) => { this.isSubmit = true;
if (valid) { this.form.commentText = this.commentText;
this.isSubmit = true this.form.approvalOpinion = this.formTongGuo.approvalOpinion;
this.form.commentText = this.formTongGuo.commentText if (this.form.syrz.length === 0) {
this.form.approvalOpinion = this.formTongGuo.approvalOpinion this.form.syrz = "";
const json = JSON.stringify(this.form); }
this.$http.post('lawss/activiti/completeTask', { if (this.form.nylx.length === 0) {
taskIds: this.taskIds, this.form.nylx = "";
userId: this.userId, }
json: json if (this.form.zrbm.length === 0) {
}, { this.form.zrbm = "";
_this: this }
}, res => { if (this.form.qcdw.length === 0) {
if (res.success) { this.form.qcdw = "";
console.log("this.formTongGuo.approvalOpinion", this.formTongGuo.approvalOpinion); }
if (this.formTongGuo.approvalOpinion == '1') { if (this.form.cllx.length === 0) {
console.log("shibai"); this.form.cllx = "";
this.$message.warning("驳回成功") }
this.isSubmit = false if (this.form.sycpx.length === 0) {
// 流程提交之后,应该流转至待办任务页面 this.form.sycpx = "";
this.$router.push("/processCenter"); }
} else { if (this.form.zrgcs.length === 0) {
console.log("hello"); this.form.zrgcs = "";
this.processCreateStand(json) }
} let qcdwName = []
if(this.form.qcdw && this.form.qcdw.length > 0){
this.form.qcdw.map(item => {
this.qcdwOptions.forEach(items => {
if(item === items.value){
qcdwName.push(items.label)
} }
}) })
})
}
this.form.standType = this.form.standInData === '0' ? 'INLAND' : 'FOREIGN'
this.form.menuIds = this.form.treeListId;
this.form.BBFDTBZ = this.form.bfbdtbzh
this.form.qcdw = qcdwName
this.form.qcdw = qcdwName.splice(',')
const json = JSON.stringify(this.form);
this.$http.post("lawss/activiti/completeTask", {
taskIds: this.taskIds,
userId: this.userId,
json: json
}, {
_this: this
}, res => {
if (res.success) {
if (this.formTongGuo.approvalOpinion == "1") {
this.$message.warning("驳回成功");
this.isSubmit = false;
this.formTongGuo.commentText = "";
// 流程提交之后,应该流转至待办任务页面
this.$router.push({ path: "/processCenter?tabsName=ProcessCenter" });
} else {
this.processCreateStand(json);
}
} }
}) });
}, },
/** /**
@@ -1110,7 +1110,7 @@ export default {
if (this.energyKindOptions[i].value === k[m]) { if (this.energyKindOptions[i].value === k[m]) {
k[m] = this.energyKindOptions[i].label; k[m] = this.energyKindOptions[i].label;
} }
item.sycx = k.join(","); item.typeApplicable = k.join(",");
} }
} }
} }
@@ -3753,6 +3753,9 @@ export default {
}) })
let nameNew=Array.from(arr).join(',') let nameNew=Array.from(arr).join(',')
if(nameNew.length > 0){
nameNew = nameNew.replace("undefined","").replace(",,",",")
}
this.$set(this.sarBussionessStandEO, 'QCDW', nameNew) this.$set(this.sarBussionessStandEO, 'QCDW', nameNew)
if (this.sarBussionessStandEO.QCRBUSS) { if (this.sarBussionessStandEO.QCRBUSS) {