From 33319826e3e15baf14f2476efe5f37f7cfdd53b3 Mon Sep 17 00:00:00 2001 From: zhangdingyu <974548713@qq.com> Date: Fri, 11 Jan 2019 17:52:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=B7=A5=E8=BF=9B=E5=BA=A6=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManufacturingCenter/ProcessingStatus.js | 8 +-- .../ProductionCapacityBalance.js | 4 +- .../ProcessingStatus/index.vue | 59 +++++++------------ 3 files changed, 27 insertions(+), 44 deletions(-) diff --git a/src/api/ManufacturingCenter/ProcessingStatus.js b/src/api/ManufacturingCenter/ProcessingStatus.js index e445996c..c3140183 100644 --- a/src/api/ManufacturingCenter/ProcessingStatus.js +++ b/src/api/ManufacturingCenter/ProcessingStatus.js @@ -11,15 +11,15 @@ export function getNames() { } }) } - -export function getMachines(gongyi) { +// 机床名称 +export function getMachines() { return request({ url: '', method: 'post', data: { type: '1', - name: '车间生产管理工艺_传递后_机床名称_查询数据_查询所有机床', - param: '项目流水号=' + gongyi + '=int' + name: '车间生产管理工艺_传递后_机床名称_根据机床查询', + param: '是否传递=2=int&考核状态=6=int&工艺任务分配状态=2=int&定额任务分配状态=2=int&单件是否外协=1=int' } }) } diff --git a/src/api/ManufacturingCenter/ProductionCapacityBalance.js b/src/api/ManufacturingCenter/ProductionCapacityBalance.js index 65c9d804..4d63337f 100644 --- a/src/api/ManufacturingCenter/ProductionCapacityBalance.js +++ b/src/api/ManufacturingCenter/ProductionCapacityBalance.js @@ -11,8 +11,8 @@ export function getEntryNameValue() { } }) } -// 项目名称 -export function getToolNum(num) { +// 机床名称 +export function getToolNum() { return request({ url: '', method: 'post', diff --git a/src/views/ManufacturingCenter/ProcessingStatus/index.vue b/src/views/ManufacturingCenter/ProcessingStatus/index.vue index 80dc229d..144c8ffd 100644 --- a/src/views/ManufacturingCenter/ProcessingStatus/index.vue +++ b/src/views/ManufacturingCenter/ProcessingStatus/index.vue @@ -2,42 +2,30 @@
- 项目名称: - - - 机床号: - + + :value="item.value"> +
{{ item.label }}
+
{{ item.value2 }}
+
组号: - + -
- - - - 零件图号: 查询 + + 进度颜色: 拖期 即将拖期 @@ -372,7 +360,7 @@ export default { } }, created() { - this.fetchData() + this.getMachine() this.getTableData() }, methods: { @@ -394,16 +382,15 @@ export default { this.Machines = [] this.Group = '' this.Groups = [] - if (this.project !== '') { - getMachines(this.project).then(response => { - for (let i = 0; i < response.data.length; i++) { - this.Machines.push({ - label: response.data[i].机床图号, - value: response.data[i].机床流水号 - }) - } - }) - } + getMachines().then(response => { + for (let i = 0; i < response.data.length; i++) { + this.Machines.push({ + label: response.data[i].机床图号, + value: response.data[i].机床流水号, + value2: response.data[i].项目名称 + }) + } + }) }, getGroup() { this.Group = '' @@ -420,11 +407,7 @@ export default { // 按条件查询 getTableData() { this.listLoading1 = true - if (this.project === '') { - this.checkbox_project = false - } else { - this.checkbox_project = true - } + this.checkbox_project = false if (this.Machine === '') { this.checkbox_Machine = false } else { @@ -456,7 +439,7 @@ export default { this.colorCode = [[]] this.realDate = [[]] this.length = 0 - getTable(this.checkbox_project, this.project, this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.checkbox_number, this.number, this.part, this.pageCurrent, this.pageSize).then(response => { + getTable(this.checkbox_project, this.project, this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.checkbox_number, this.number, 1, this.pageCurrent, this.pageSize).then(response => { this.length = parseInt(response.data.total) for (let i = 0; i < response.data.rows.length; i++) { // 声明二维数组 this.零件图号.push(response.data.rows[i].零件图号) @@ -471,7 +454,7 @@ export default { } if (this.零件图号.length !== 0) { for (let i = 0; i < this.零件图号.length; i++) { - getTable2(this.checkbox_project, this.project, this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.零件图号[i], this.part).then(response => { + getTable2(this.checkbox_project, this.project, this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.零件图号[i], 1).then(response => { this.liushuihao = response.data[0].工艺计划流水号 for (let k = 0; k < response.data.length; k++) { if (response.data[k].工艺计划流水号 === this.liushuihao) {