Commit 0cc139c9 by 王志慧

Merge branch 'v3.11.1' into v3.12.0

2 parents b0cb5eca fd8d2a21
...@@ -772,6 +772,7 @@ export default { ...@@ -772,6 +772,7 @@ export default {
}, },
{ {
label: '', label: '',
isHide: true,
name: 'giveEquityCard', name: 'giveEquityCard',
addHtml: 'giveEquityCard' addHtml: 'giveEquityCard'
} }
...@@ -970,12 +971,14 @@ export default { ...@@ -970,12 +971,14 @@ export default {
// 从域名判断是不是广汇的 // 从域名判断是不是广汇的
diffHost() { diffHost() {
let href = window.location.host let href = window.location.host
this.showGh = href.indexOf('cgacar') !== -1 this.showGh = href.indexOf('cgacar') != -1
if (this.showGh) { if (this.showGh) {
let idx = this.externalFormList[0].editFormData.findIndex(item => item.name == 'erpMaterialNo') let idx = this.externalFormList[0].editFormData.findIndex(item => item.name == 'erpMaterialNo')
let serviceCodeIdx = this.externalFormList[0].editFormData.findIndex(item => item.name == 'serviceCode') let serviceCodeIdx = this.externalFormList[0].editFormData.findIndex(item => item.name == 'serviceCode')
let equityCodeIdx = this.externalFormList[1].editFormData.findIndex(item => item.name == 'giveEquityCard')
this.externalFormList[0].editFormData[idx].isHide = !this.showGh this.externalFormList[0].editFormData[idx].isHide = !this.showGh
this.externalFormList[0].editFormData[serviceCodeIdx].isHide = !this.showGh this.externalFormList[0].editFormData[serviceCodeIdx].isHide = !this.showGh
this.externalFormList[1].editFormData[equityCodeIdx].isHide = !this.showGh
this.externalFormList[0].editRule.erpMaterialNo[0].required = this.showGh this.externalFormList[0].editRule.erpMaterialNo[0].required = this.showGh
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!