Commit fd8d2a21 by 王志慧

fixed

1 parent c7b2a032
......@@ -971,12 +971,14 @@ export default {
// 从域名判断是不是广汇的
diffHost() {
let href = window.location.host
this.showGh = href.indexOf('cgacar') !== -1
this.showGh = href.indexOf('cgacar') != -1
if (this.showGh) {
let idx = this.externalFormList[0].editFormData.findIndex(item => item.name == 'erpMaterialNo')
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[serviceCodeIdx].isHide = !this.showGh
this.externalFormList[1].editFormData[equityCodeIdx].isHide = !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!