Commit 72392759 by zhangxw

合同主体剥离广汇配置

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