| | |
| | | HInterID: 0, |
| | | HDate: dayjs(new Date()).format("YYYY-MM-DD"), |
| | | HDeptName: getUserInfo().HDeptName, |
| | | HDeptID: getUserInfo().HDeptID, |
| | | HDeptID: getUserInfo().HDeptID, |
| | | HEmpName: getUserInfo().HEmpName, |
| | | HEmpID: getUserInfo().HEmpID, |
| | | HManagerName: getUserInfo().HManagerName, |
| | |
| | | async getConkType() { |
| | | try { |
| | | let res = await CommonUtils.doRequest2Async({ |
| | | url: "/Gy_ConkType/List_PDA", |
| | | url: '/Gy_ConkType/List_PDA2', |
| | | data: { |
| | | sWhere: ``, |
| | | user: getUserInfo()['Czymc'] |
| | | sWhere: '', |
| | | user: getUserInfo()['Czymc'], |
| | | mode: 'Equip' |
| | | } |
| | | }) |
| | | |
| | |
| | | } |
| | | if (this.hform.HManagerID == 0) { |
| | | return { |
| | | Message: "负责人不得为空!", |
| | | Message: "验收人不得为空!", |
| | | state: false |
| | | } |
| | | } |
| | |
| | | // 获取职员数据 |
| | | async getEmpList() { |
| | | try { |
| | | let sWhere= " where 1=1 " |
| | | if(this.hform.HDeptName && uni.getStorageSync("Organization") == '宁波市华舟包装有限公司'){ |
| | | let sWhere = " where 1=1 " |
| | | if (this.hform.HDeptName && uni.getStorageSync("Organization") == '宁波市华舟包装有限公司') { |
| | | sWhere += ` and HDeptName = '${this.hform.HDeptName}'` |
| | | } |
| | | |
| | | |
| | | let res = await CommonUtils.doRequest2Async({ |
| | | url: '/PublicPageMethod/UserList', |
| | | data: { |
| | |
| | | count |
| | | } = res.data |
| | | if (count == 1) { |
| | | console.log('data: ',data); |
| | | console.log('data: ', data); |
| | | Object.assign(this.hform, { |
| | | HDeptID: data[0]["HDeptID"], |
| | | HDeptName: data[0]["使用部门"], |