diff --git a/src/views/flowManagement/addDialog.vue b/src/views/flowManagement/addDialog.vue index 3c49b9f2..25f9921b 100644 --- a/src/views/flowManagement/addDialog.vue +++ b/src/views/flowManagement/addDialog.vue @@ -550,9 +550,10 @@ export default { }, mounted() { this.openShow = this.visible; + this.getDeplLists(); // this.getRoleUserList(); this.getDictionary(); - this.getDeplList(); + if (this.title === '详情' || this.title === '修改') { this.getDetails(); this.getExecuteResultList(); @@ -610,15 +611,15 @@ export default { // } }, // 获取部门列表 - getDeplList() { + getDeplLists() { getDeplList().then(res => { - // console.log(res.data.data, 'res'); - if (res.data.data.children.length > 0) { - this.deplList = res.data.data.children; - } else { - this.deplList = []; - } - // this.deplList = res.data.data; + let data = res.data.data + data.forEach(item => { + if (item.deptName == '热表分厂') { + console.log(item.children, 'item.deptName'); + this.deplList = item.children||[]; + } + }); }); }, // 获取人员 diff --git a/src/views/productionManagement/workReportingManagement/components/wordReporting.vue b/src/views/productionManagement/workReportingManagement/components/wordReporting.vue index 98c411b7..65d06b1a 100644 --- a/src/views/productionManagement/workReportingManagement/components/wordReporting.vue +++ b/src/views/productionManagement/workReportingManagement/components/wordReporting.vue @@ -57,7 +57,7 @@ placeholder="请搜索选择" api-url="/blade-desk/BA/TeamSet/list?descs=TS_CODE" echo-api="/blade-desk/BA/TeamSet/list?descs=TS_CODE" - echoParamsKey="ids" + echoParamsKey="id" echo-method="get" api-method="get" list-key="records" @@ -100,16 +100,18 @@ 保存 --> - - + + + - 旧班组:{{ data[0].prWorkOrder.makeTeam.tsName }} - + 转班后,车间订单需排产后再生产! + 4 +