diff --git a/src/api/Outsourcing/InterBudgetaryBudgets.js b/src/api/Outsourcing/InterBudgetaryBudgets.js index 50046a4e..ee365243 100644 --- a/src/api/Outsourcing/InterBudgetaryBudgets.js +++ b/src/api/Outsourcing/InterBudgetaryBudgets.js @@ -10,14 +10,13 @@ export function machine() { } }) } -export function getToolNum(num) { +export function getToolNum() { return request({ url: '', method: 'post', data: { type: '1', - name: '车间生产管理工艺_传递后_机床名称_查询数据_查询所有机床', - param: '项目流水号=' + num + name: '车间生产管理工艺_零件工艺计划_序间外协预算机床查询' } }) } diff --git a/src/api/Outsourcing/PreorderAssociation.js b/src/api/Outsourcing/PreorderAssociation.js index f421df05..eabfa6ff 100644 --- a/src/api/Outsourcing/PreorderAssociation.js +++ b/src/api/Outsourcing/PreorderAssociation.js @@ -10,14 +10,13 @@ export function machine() { } }) } -export function getToolNum(num) { +export function getToolNum() { return request({ url: '', method: 'post', data: { type: '1', - name: '车间生产管理工艺_传递后_机床名称_查询数据_查询所有机床', - param: '项目流水号=' + num + name: '车间生产管理工艺_零件工艺计划_序间外协机床查询' } }) } diff --git a/src/views/Outsourcing/InterBudgetaryBudgets/index.vue b/src/views/Outsourcing/InterBudgetaryBudgets/index.vue index f0c7bbee..a5ae2b45 100644 --- a/src/views/Outsourcing/InterBudgetaryBudgets/index.vue +++ b/src/views/Outsourcing/InterBudgetaryBudgets/index.vue @@ -3,26 +3,36 @@ - + 未编制 已编制 - 项目名称: - - - + + + + + + + + 机床名称: - + + :value="item.value"> +
{{ item.label }}
+
{{ item.value2 }}
+
+ + + + + + + 分组: { + getToolNum().then(response => { for (let i = 0; i < response.data.length; i++) { this.toolNum.push({ label: response.data[i].机床图号, - value: response.data[i].机床流水号 + value: response.data[i].机床流水号, + value2: response.data[i].项目名称 }) } }) diff --git a/src/views/Outsourcing/PreorderAssociation/index.vue b/src/views/Outsourcing/PreorderAssociation/index.vue index 8ad46881..db9112cd 100644 --- a/src/views/Outsourcing/PreorderAssociation/index.vue +++ b/src/views/Outsourcing/PreorderAssociation/index.vue @@ -2,22 +2,32 @@
- 项目名称: - - - + + + + + + + + 机床名称: - + + :value="item.value"> +
{{ item.label }}
+
{{ item.value2 }}
+
+ + + + + + + 分组: { + getToolNum().then(response => { for (let i = 0; i < response.data.length; i++) { this.toolNum.push({ label: response.data[i].机床图号, - value: response.data[i].机床流水号 + value: response.data[i].机床流水号, + value2: response.data[i].项目名称 }) } })