| | |
| | | "HConkReasonCode": "", |
| | | "HConkReasonName": "", |
| | | "HConkExplanation": "", |
| | | "HManagerID": "", |
| | | "HManagerID": "0", |
| | | "HManagerCode": "", |
| | | "HManagerName": "", |
| | | "HRemark": " " |
| | |
| | | }, |
| | | // 提交数据有效性校验 |
| | | ValidCheck() { |
| | | if (this.hform.HEquipID == 0) { |
| | | if (this.hform.HEquipID == 0 || this.hform.HEquipID === undefined) { |
| | | return { |
| | | Message: this.$t('Sb_EquipConkBookBill.noEquipInfo') == 'Sb_EquipConkBookBill.noEquipInfo' ? '未录入设备信息,请先录入设备信息!' : this.$t('Sb_EquipConkBookBill.noEquipInfo'), |
| | | state: false |
| | | } |
| | | } |
| | | if (this.hform.HDeptID == 0) { |
| | | if (this.hform.HDeptID == 0 || this.hform.HDeptID === undefined) { |
| | | return { |
| | | Message: this.$t('Sb_EquipConkBookBill.deptRequired') == 'Sb_EquipConkBookBill.deptRequired' ? '部门不得为空!' : this.$t('Sb_EquipConkBookBill.deptRequired'), |
| | | state: false |
| | | } |
| | | } |
| | | if (this.hform.HEmpID == 0) { |
| | | if (this.hform.HEmpID == 0 || this.hform.HEmpID === undefined) { |
| | | return { |
| | | Message: this.$t('Sb_EquipConkBookBill.discovererRequired') == 'Sb_EquipConkBookBill.discovererRequired' ? '发现人不得为空!' : this.$t('Sb_EquipConkBookBill.discovererRequired'), |
| | | state: false |
| | | } |
| | | } |
| | | if (this.hform.HManagerID == 0) { |
| | | if (this.hform.HManagerID === 0 || this.hform.HManagerID === undefined) { |
| | | return { |
| | | Message: this.$t('Sb_EquipConkBookBill.checkerRequired') == 'Sb_EquipConkBookBill.checkerRequired' ? '验收人不得为空!' : this.$t('Sb_EquipConkBookBill.checkerRequired'), |
| | | state: false |
| | | } |
| | | } |
| | | if (this.hform.HConkReasonID == 0) { |
| | | if (this.hform.HConkReasonID == 0 || this.hform.HConkReasonID === undefined) { |
| | | return { |
| | | Message: this.$t('Sb_EquipConkBookBill.reasonRequired') == 'Sb_EquipConkBookBill.reasonRequired' ? '故障原因不得为空!' : this.$t('Sb_EquipConkBookBill.reasonRequired'), |
| | | state: false |
| | | } |
| | | } |
| | | if (this.hform.HConkTypeID == 0) { |
| | | if (this.hform.HConkTypeID == 0 || this.hform.HConkTypeID === undefined) { |
| | | return { |
| | | Message: this.$t('Sb_EquipConkBookBill.typeRequired') == 'Sb_EquipConkBookBill.typeRequired' ? '故障类别不得为空!' : this.$t('Sb_EquipConkBookBill.typeRequired'), |
| | | state: false |