apply-clients 3.4.2-FuGu-24 → 3.4.2-FuGu-25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "apply-clients",
3
- "version": "3.4.2-FuGu-24",
3
+ "version": "3.4.2-FuGu-25",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -478,6 +478,28 @@ export default {
478
478
  }
479
479
  }))
480
480
  },
481
+ // 获取施工负责人
482
+ async getWorker () {
483
+ let data = {
484
+ source: 'this.getParentByType($organization$).getChildByName($安装员$).getChildren()',
485
+ userid: this.$login.f.id
486
+ }
487
+
488
+ let http = new HttpResetClass()
489
+ let res = await http.load(
490
+ 'POST',
491
+ `${this.$androidUtil.getProxyUrl()}/rs/search`,
492
+ {data: data},
493
+ {resolveMsg: null, rejectMsg: '施工负责人查询失败!!!'}
494
+ )
495
+
496
+ return res.data.map(item => {
497
+ return {
498
+ label: item.name,
499
+ value: item.name
500
+ }
501
+ })
502
+ },
481
503
  async streetChange () {
482
504
  if (isEmpty(this.show_data.f_street)) {
483
505
  return
@@ -443,7 +443,7 @@ export default {
443
443
  }
444
444
  })
445
445
  },
446
- // 获取片区
446
+ // 获取施工负责人
447
447
  async getWorker () {
448
448
  let data = {
449
449
  source: 'this.getParentByType($organization$).getChildByName($安装员$).getChildren()',