| | |
| | | url: this.serverUrl + '/Web/GetEmployeeList_Json', |
| | | data: { |
| | | Employee: '', |
| | | HGroupID: 0 |
| | | HGroupID: 0, |
| | | HDeptID: uni.getStorageSync("HDeptID") |
| | | }, |
| | | success: (res) => { |
| | | if (res.data.count == 1) { |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | validCheck() { |
| | | if(this.hform.HEquipID == 0) { |
| | | return { |
| | | message: "设备数据为空,不允许提交。", |
| | | type: false |
| | | } |
| | | } |
| | | |
| | | if(this.hform.HShiftsName == '') { |
| | | return { |
| | | message: "生产班次为空,不允许提交。", |
| | | type: false |
| | | } |
| | | } |
| | | |
| | | return { |
| | | message: "", |
| | | type: true |
| | | } |
| | | }, |
| | | submit() { |
| | | let {message, type} = this.validCheck() |
| | | if(!type){ |
| | | CommonUtils.showTips({ |
| | | title: '', |
| | | message: message |
| | | }) |
| | | |
| | | return |
| | | } |
| | | |
| | | this.hform.HInterID = 0 |
| | | for (let i = 0; i < this.hform.HRoles.length; i++) { |
| | | this.hform.HSignRemark = this.hform.HSignRemark + this.hform.HRoles[i] + "," |