Commit 72392759 by zhangxw

合同主体剥离广汇配置

1 parent d7d7a8c1
...@@ -268,7 +268,6 @@ export default { ...@@ -268,7 +268,6 @@ export default {
created(){ created(){
this.diffHost() this.diffHost()
this.initContractObj()
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft this.footerLeft = document.querySelector('.base-container-right').offsetLeft
...@@ -314,6 +313,7 @@ export default { ...@@ -314,6 +313,7 @@ export default {
this.showGh = true this.showGh = true
}else{ }else{
this.showGh = false this.showGh = false
this.initContractObj()
} }
// console.log(href); // console.log(href);
// console.log(this.showGh); // console.log(this.showGh);
...@@ -453,13 +453,15 @@ export default { ...@@ -453,13 +453,15 @@ export default {
this.first = !!arrs[i]?.isChecked this.first = !!arrs[i]?.isChecked
} }
} }
const contractSubjectType = res.contractSubjectType == 0 ? 3 : res.contractSubjectName == '深圳市嘀加智慧云服务有限公司' ? 2 : res.contractSubjectName == '深圳广联数科科技有限公司' ? 1 : '' // 主体类型 0自定义(将值做转换,方便交互处理) if (!this.showGh) {
this.contractObj.contractSubjectType = contractSubjectType const contractSubjectType = res.contractSubjectType == 0 ? 3 : res.contractSubjectName == '深圳市嘀加智慧云服务有限公司' ? 2 : res.contractSubjectName == '深圳广联数科科技有限公司' ? 1 : '' // 主体类型 0自定义(将值做转换,方便交互处理)
this.contractObj.typeData[contractSubjectType - 1] = { this.contractObj.contractSubjectType = contractSubjectType
contractSubjectName: res.contractSubjectName, this.contractObj.typeData[contractSubjectType - 1] = {
contractImportantClause: res.contractImportantClause, contractSubjectName: res.contractSubjectName,
contractLogoUrl: res.contractLogoUrl, contractImportantClause: res.contractImportantClause,
contractSealUrl: res.contractSealUrl contractLogoUrl: res.contractLogoUrl,
contractSealUrl: res.contractSealUrl
}
} }
}) })
}, },
...@@ -531,7 +533,7 @@ export default { ...@@ -531,7 +533,7 @@ export default {
params.push({packageCode, servicePeriod: packageServicePeriod, cardName}) params.push({packageCode, servicePeriod: packageServicePeriod, cardName})
} }
}) })
if (!this.contractObj.typeData[this.contractObj.contractSubjectType - 1].contractSubjectName) { if (!this.contractObj.typeData[this.contractObj.contractSubjectType - 1].contractSubjectName && !this.showGh) {
return this.$message.error('请输入合同主体名称') return this.$message.error('请输入合同主体名称')
} }
let targetParams = { let targetParams = {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!