From f06e221a61569d4c8fcfcdff774549177373b791 Mon Sep 17 00:00:00 2001
From: Vergil <974548713@qq.com>
Date: Thu, 12 Mar 2020 09:52:18 +0800
Subject: [PATCH 1/6] =?UTF-8?q?=E5=88=98=E7=92=90=E7=8F=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/Assembly/MakeAssemblyPlan/index.vue | 4 +-
src/views/Assembly/MakeColdWorkPlan/index.vue | 4 +-
.../Assembly/MakeElectricalAssembly/index.vue | 4 +-
src/views/Assembly/MakePaintPlan/index.vue | 4 +-
.../Inventory/CreatePickingList/index.vue | 35 +++---
.../ProjectPlanningManagement/index.vue | 102 +++++++++---------
.../ProjectPlanningManagementNew/index.vue | 80 ++++++++++----
7 files changed, 140 insertions(+), 93 deletions(-)
diff --git a/src/views/Assembly/MakeAssemblyPlan/index.vue b/src/views/Assembly/MakeAssemblyPlan/index.vue
index fe0b89ba..89cd429c 100644
--- a/src/views/Assembly/MakeAssemblyPlan/index.vue
+++ b/src/views/Assembly/MakeAssemblyPlan/index.vue
@@ -14,7 +14,7 @@
增加装配计划
- 删除
+ 删除
@@ -106,8 +106,8 @@
+
确定
-
取消
diff --git a/src/views/Assembly/MakeColdWorkPlan/index.vue b/src/views/Assembly/MakeColdWorkPlan/index.vue
index 3bfcb215..8b8b816d 100644
--- a/src/views/Assembly/MakeColdWorkPlan/index.vue
+++ b/src/views/Assembly/MakeColdWorkPlan/index.vue
@@ -14,7 +14,7 @@
增加装配计划
- 删除
+ 删除
@@ -100,7 +100,7 @@
确定
-
+
取消
diff --git a/src/views/Assembly/MakeElectricalAssembly/index.vue b/src/views/Assembly/MakeElectricalAssembly/index.vue
index e2bfe1a7..3b41ae67 100644
--- a/src/views/Assembly/MakeElectricalAssembly/index.vue
+++ b/src/views/Assembly/MakeElectricalAssembly/index.vue
@@ -14,7 +14,7 @@
增加装配计划
- 删除
+ 删除
@@ -100,7 +100,7 @@
确定
-
+
取消
diff --git a/src/views/Assembly/MakePaintPlan/index.vue b/src/views/Assembly/MakePaintPlan/index.vue
index 854765ed..c8b948a5 100644
--- a/src/views/Assembly/MakePaintPlan/index.vue
+++ b/src/views/Assembly/MakePaintPlan/index.vue
@@ -14,7 +14,7 @@
增加装配计划
- 删除
+ 删除
@@ -100,7 +100,7 @@
确定
-
+
取消
diff --git a/src/views/Inventory/CreatePickingList/index.vue b/src/views/Inventory/CreatePickingList/index.vue
index 1bc0dbee..5bf8e4b3 100644
--- a/src/views/Inventory/CreatePickingList/index.vue
+++ b/src/views/Inventory/CreatePickingList/index.vue
@@ -3,7 +3,7 @@
-
+
{{ item.name }}
-
+
查询
+ 查询
+ style="margin-left: 5px"
+ @change="searchTable()"/>
已领用
@@ -578,7 +580,13 @@ export default {
},
// 查三表
searchTable() {
- if (this.machineNumberValue !== '' && this.machineNumberValue !== null) {
+ console.log(this.PartType, this.machineNumberValue)
+ if (this.PartType === '离线采购件') {
+ this.machineNumberValue = ''
+ this.groupNumberValue = ''
+ this.searchTable4()
+ }
+ if ((this.machineNumberValue !== '' && this.machineNumberValue !== null) || this.PartType === '离线采购件') {
this.multipleSelection = []
this.multipleSelection1 = []
if (this.PartType === '标准件') {
@@ -587,8 +595,6 @@ export default {
this.searchTable1()
} else if (this.PartType === '基本件') {
this.searchTable2()
- } else if (this.PartType === '离线采购件') {
- this.searchTable4()
}
} else {
this.$message.warning('请选择机床后再查询')
@@ -627,16 +633,17 @@ export default {
if (this.PickingValue === false) {
this.loading1 = true
searchTable(check1, this.machineNumberValue, check2, this.groupNumberValue, check3, this.Name, 1, 0, this.pageCurrent1, this.pageSize1, 2).then(response => {
- this.tableData0 = response.data.rows
- this.total0 = response.data.total
+ console.log(response, 2)
+ this.tableData1 = response.data.rows
+ this.total1 = response.data.total
this.loading1 = false
}).catch(() => {
this.loading1 = false
})
} else {
searchTable(check1, this.machineNumberValue, check2, this.groupNumberValue, check3, this.Name, 1, 1, this.pageCurrent1, this.pageSize1, 2).then(response => {
- this.tableData0 = response.data.rows
- this.total0 = response.data.total
+ this.tableData1 = response.data.rows
+ this.total1 = response.data.total
})
}
},
@@ -650,16 +657,16 @@ export default {
if (this.PickingValue === false) {
this.loading2 = true
searchTable(check1, this.machineNumberValue, check2, this.groupNumberValue, check3, this.Name, 1, 0, this.pageCurrent2, this.pageSize2, 3).then(response => {
- this.tableData0 = response.data.rows
- this.total0 = response.data.total
+ this.tableData2 = response.data.rows
+ this.total2 = response.data.total
this.loading2 = false
}).catch(() => {
this.loading2 = false
})
} else {
searchTable(check1, this.machineNumberValue, check2, this.groupNumberValue, check3, this.Name, 1, 1, this.pageCurrent2, this.pageSize2, 3).then(response => {
- this.tableData0 = response.data.rows
- this.total0 = response.data.total
+ this.tableData2 = response.data.rows
+ this.total2 = response.data.total
})
}
},
diff --git a/src/views/ManufacturingCenter/ProjectPlanningManagement/index.vue b/src/views/ManufacturingCenter/ProjectPlanningManagement/index.vue
index a9fad44e..e4080737 100644
--- a/src/views/ManufacturingCenter/ProjectPlanningManagement/index.vue
+++ b/src/views/ManufacturingCenter/ProjectPlanningManagement/index.vue
@@ -454,57 +454,57 @@ export default {
this.loading = false
} else {
for (let i = 0; i < response.data.rows.length; i++) {
- if (response.data.rows[i].合同签订日期 !== '' && response.data.rows[i].合同签订日期 !== null) {
- response.data.rows[i].合同签订日期 = response.data.rows[i].合同签订日期.split(' ')[0]
- }
- if (response.data.rows[i].发货节点 !== '' && response.data.rows[i].发货节点 !== null) {
- response.data.rows[i].发货节点 = response.data.rows[i].发货节点.split(' ')[0]
- }
- if (response.data.rows[i].设备预验收节点 !== '' && response.data.rows[i].设备预验收节点 !== null) {
- response.data.rows[i].设备预验收节点 = response.data.rows[i].设备预验收节点.split(' ')[0]
- }
- if (response.data.rows[i].安装调试节点 !== '' && response.data.rows[i].安装调试节点 !== null) {
- response.data.rows[i].安装调试节点 = response.data.rows[i].安装调试节点.split(' ')[0]
- }
- if (response.data.rows[i].机床设计完成时间 !== '' && response.data.rows[i].机床设计完成时间 !== null) {
- response.data.rows[i].机床设计完成时间 = response.data.rows[i].机床设计完成时间.split(' ')[0]
- }
- if (response.data.rows[i].采购完成时间 !== '' && response.data.rows[i].采购完成时间 !== null) {
- response.data.rows[i].采购完成时间 = response.data.rows[i].采购完成时间.split(' ')[0]
- }
- if (response.data.rows[i].备料完成时间 !== '' && response.data.rows[i].备料完成时间 !== null) {
- response.data.rows[i].备料完成时间 = response.data.rows[i].备料完成时间.split(' ')[0]
- }
- if (response.data.rows[i].机床生产完成时间 !== '' && response.data.rows[i].机床生产完成时间 !== null) {
- response.data.rows[i].机床生产完成时间 = response.data.rows[i].机床生产完成时间.split(' ')[0]
- }
- if (response.data.rows[i].机床装配完成时间 !== '' && response.data.rows[i].机床装配完成时间 !== null) {
- response.data.rows[i].机床装配完成时间 = response.data.rows[i].机床装配完成时间.split(' ')[0]
- }
- if (response.data.rows[i].机床设计实际完成时间 !== '' && response.data.rows[i].机床设计实际完成时间 !== null) {
- response.data.rows[i].机床设计实际完成时间 = response.data.rows[i].机床设计实际完成时间.split(' ')[0]
- }
- if (response.data.rows[i].采购实际完成时间 !== '' && response.data.rows[i].采购实际完成时间 !== null) {
- response.data.rows[i].采购实际完成时间 = response.data.rows[i].采购实际完成时间.split(' ')[0]
- }
- if (response.data.rows[i].备料实际完成时间 !== '' && response.data.rows[i].备料实际完成时间 !== null) {
- response.data.rows[i].备料实际完成时间 = response.data.rows[i].备料实际完成时间.split(' ')[0]
- }
- if (response.data.rows[i].机床生产实际完成时间 !== '' && response.data.rows[i].机床生产实际完成时间 !== null) {
- response.data.rows[i].机床生产实际完成时间 = response.data.rows[i].机床生产实际完成时间.split(' ')[0]
- }
- if (response.data.rows[i].机床装配实际完成时间 !== '' && response.data.rows[i].机床装配实际完成时间 !== null) {
- response.data.rows[i].机床装配实际完成时间 = response.data.rows[i].机床装配实际完成时间.split(' ')[0]
- }
- if (response.data.rows[i].审图计划开始时间 !== '' && response.data.rows[i].审图计划开始时间 !== null) {
- response.data.rows[i].审图计划开始时间 = response.data.rows[i].审图计划开始时间.split(' ')[0]
- }
- if (response.data.rows[i].审图计划完成时间 !== '' && response.data.rows[i].审图计划完成时间 !== null) {
- response.data.rows[i].审图计划完成时间 = response.data.rows[i].审图计划完成时间.split(' ')[0]
- }
- if (response.data.rows[i].审图实际完成时间 !== '' && response.data.rows[i].审图实际完成时间 !== null) {
- response.data.rows[i].审图实际完成时间 = response.data.rows[i].审图实际完成时间.split(' ')[0]
- }
+ // if (response.data.rows[i].合同签订日期 !== '' && response.data.rows[i].合同签订日期 !== null) {
+ // response.data.rows[i].合同签订日期 = response.data.rows[i].合同签订日期.split(' ')[0]
+ // }
+ // if (response.data.rows[i].发货节点 !== '' && response.data.rows[i].发货节点 !== null) {
+ // response.data.rows[i].发货节点 = response.data.rows[i].发货节点.split(' ')[0]
+ // }
+ // if (response.data.rows[i].设备预验收节点 !== '' && response.data.rows[i].设备预验收节点 !== null) {
+ // response.data.rows[i].设备预验收节点 = response.data.rows[i].设备预验收节点.split(' ')[0]
+ // }
+ // if (response.data.rows[i].安装调试节点 !== '' && response.data.rows[i].安装调试节点 !== null) {
+ // response.data.rows[i].安装调试节点 = response.data.rows[i].安装调试节点.split(' ')[0]
+ // }
+ // if (response.data.rows[i].机床设计完成时间 !== '' && response.data.rows[i].机床设计完成时间 !== null) {
+ // response.data.rows[i].机床设计完成时间 = response.data.rows[i].机床设计完成时间.split(' ')[0]
+ // }
+ // if (response.data.rows[i].采购完成时间 !== '' && response.data.rows[i].采购完成时间 !== null) {
+ // response.data.rows[i].采购完成时间 = response.data.rows[i].采购完成时间.split(' ')[0]
+ // }
+ // if (response.data.rows[i].备料完成时间 !== '' && response.data.rows[i].备料完成时间 !== null) {
+ // response.data.rows[i].备料完成时间 = response.data.rows[i].备料完成时间.split(' ')[0]
+ // }
+ // if (response.data.rows[i].机床生产完成时间 !== '' && response.data.rows[i].机床生产完成时间 !== null) {
+ // response.data.rows[i].机床生产完成时间 = response.data.rows[i].机床生产完成时间.split(' ')[0]
+ // }
+ // if (response.data.rows[i].机床装配完成时间 !== '' && response.data.rows[i].机床装配完成时间 !== null) {
+ // response.data.rows[i].机床装配完成时间 = response.data.rows[i].机床装配完成时间.split(' ')[0]
+ // }
+ // if (response.data.rows[i].机床设计实际完成时间 !== '' && response.data.rows[i].机床设计实际完成时间 !== null) {
+ // response.data.rows[i].机床设计实际完成时间 = response.data.rows[i].机床设计实际完成时间.split(' ')[0]
+ // }
+ // if (response.data.rows[i].采购实际完成时间 !== '' && response.data.rows[i].采购实际完成时间 !== null) {
+ // response.data.rows[i].采购实际完成时间 = response.data.rows[i].采购实际完成时间.split(' ')[0]
+ // }
+ // if (response.data.rows[i].备料实际完成时间 !== '' && response.data.rows[i].备料实际完成时间 !== null) {
+ // response.data.rows[i].备料实际完成时间 = response.data.rows[i].备料实际完成时间.split(' ')[0]
+ // }
+ // if (response.data.rows[i].机床生产实际完成时间 !== '' && response.data.rows[i].机床生产实际完成时间 !== null) {
+ // response.data.rows[i].机床生产实际完成时间 = response.data.rows[i].机床生产实际完成时间.split(' ')[0]
+ // }
+ // if (response.data.rows[i].机床装配实际完成时间 !== '' && response.data.rows[i].机床装配实际完成时间 !== null) {
+ // response.data.rows[i].机床装配实际完成时间 = response.data.rows[i].机床装配实际完成时间.split(' ')[0]
+ // }
+ // if (response.data.rows[i].审图计划开始时间 !== '' && response.data.rows[i].审图计划开始时间 !== null) {
+ // response.data.rows[i].审图计划开始时间 = response.data.rows[i].审图计划开始时间.split(' ')[0]
+ // }
+ // if (response.data.rows[i].审图计划完成时间 !== '' && response.data.rows[i].审图计划完成时间 !== null) {
+ // response.data.rows[i].审图计划完成时间 = response.data.rows[i].审图计划完成时间.split(' ')[0]
+ // }
+ // if (response.data.rows[i].审图实际完成时间 !== '' && response.data.rows[i].审图实际完成时间 !== null) {
+ // response.data.rows[i].审图实际完成时间 = response.data.rows[i].审图实际完成时间.split(' ')[0]
+ // }
this.tableData.push({
edit: false,
项目编号: response.data.rows[i].项目编号,
diff --git a/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue b/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue
index 400a7ed3..813ea972 100644
--- a/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue
+++ b/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue
@@ -35,7 +35,7 @@
-
+
@@ -232,7 +232,53 @@
- sadasd
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -358,6 +404,15 @@ import { getProject, getCustomerName, getToolNum, searchtable, editTable, search
export default {
data() {
return {
+ 设计者: '',
+ 审图开始: '',
+ 审图结束: '',
+ 发图完成: '',
+ 采购完成: '',
+ 备料完成: '',
+ 制造完成: '',
+ 装配完成: '',
+ 更新时间: '',
machineNum: '',
jichuang: '',
title: '',
@@ -415,7 +470,6 @@ export default {
groupChange(row, index) {
if (row.组件流水号 !== '') {
searchgroupName(row.组件流水号).then(response => {
- console.log(response.data)
this.tableData2[index].任务名称 = response.data[0].组件名称
})
}
@@ -702,12 +756,6 @@ export default {
+
diff --git a/src/views/layout/components/TagsView.vue b/src/views/layout/components/TagsView.vue
index 208fee51..48cf1003 100644
--- a/src/views/layout/components/TagsView.vue
+++ b/src/views/layout/components/TagsView.vue
@@ -67,6 +67,9 @@ export default {
case 'ProjectPlanningManagementNew': // 项目计划管理
document.getElementById('app-main').style.width = '1710px'
break
+ case 'ProjectPlanningManagementQuery': // 项目计划管理
+ document.getElementById('app-main').style.width = '1710px'
+ break
default:
document.getElementById('app-main').style.width = '1380px'
}
From cd81b0fdc4affadecb1e06df6f54a5476c8bd201 Mon Sep 17 00:00:00 2001
From: Vergil <974548713@qq.com>
Date: Thu, 12 Mar 2020 16:42:38 +0800
Subject: [PATCH 4/6] =?UTF-8?q?=E5=88=98=E7=92=90=E7=8F=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/PurchasingCenter/PurchaseSituationSearch.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/src/api/PurchasingCenter/PurchaseSituationSearch.js b/src/api/PurchasingCenter/PurchaseSituationSearch.js
index e7c59a93..db0c01dc 100644
--- a/src/api/PurchasingCenter/PurchaseSituationSearch.js
+++ b/src/api/PurchasingCenter/PurchaseSituationSearch.js
@@ -38,9 +38,9 @@ export function searchTable1(...params) {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
- name: '采购管理_采购部采购_查询物料_分配后_加供应商_新',
- param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}&零件类型=${params[6]}&物料名称_check=${params[7]}&物料名称=${params[8]}&物料规格_check=${params[9]}&物料规格=${params[10]}&物料型号_check=${params[11]}&物料型号=${params[12]}&时间_check=${params[13]}&开始时间=${params[14]}&结束时间=${params[15]}`,
- Pagination: params[4] + '&' + params[5]
+ name: '采购管理_采购部采购_查询物料_分配后_加供应商_新_LLJ',
+ param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}&零件类型=${params[6]}&物料名称_check=${params[7]}&物料名称=${params[8]}&物料规格_check=${params[9]}&物料规格=${params[10]}&物料型号_check=${params[11]}&物料型号=${params[12]}&时间_check=${params[13]}&开始时间=${params[14]}&结束时间=${params[15]}&PageCurrent=${params[4]}=int&PageSize=${params[5]}=int&PageCount=1=int=output&ItemCount=1=int=output`
+ // Pagination: params[4] + '&' + params[5]
}
})
}
@@ -53,9 +53,9 @@ export function searchTable2(...params) {
UserID: state.state.user.id,
ModularID: router.currentRoute.path,
type: '1',
- name: '采购管理_采购部采购_查询物料_基本件_分配后_加供应商_新',
- param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}&零件名称_check=${params[6]}&零件名称=${params[7]}&零件规格_check=${params[8]}&零件规格=${params[9]}&零件图号_check=${params[10]}&零件图号=${params[11]}&时间_check=${params[12]}&开始时间=${params[13]}&结束时间=${params[14]}`,
- Pagination: params[4] + '&' + params[5]
+ name: '采购管理_采购部采购_查询物料_基本件_分配后_加供应商_新_LLJ',
+ param: `机床流水号_check=${params[0]}&机床流水号=${params[1]}&组件流水号_check=${params[2]}&组件流水号=${params[3]}&零件名称_check=${params[6]}&零件名称=${params[7]}&零件规格_check=${params[8]}&零件规格=${params[9]}&零件图号_check=${params[10]}&零件图号=${params[11]}&时间_check=${params[12]}&开始时间=${params[13]}&结束时间=${params[14]}&PageCurrent=${params[4]}=int&PageSize=${params[5]}=int&PageCount=1=int=output&ItemCount=1=int=output`
+ // Pagination: params[4] + '&' + params[5]
}
})
}
From 733a1b191947bd97f6b3b69f71eaa4acdaf9cb86 Mon Sep 17 00:00:00 2001
From: Vergil <974548713@qq.com>
Date: Thu, 12 Mar 2020 17:01:34 +0800
Subject: [PATCH 5/6] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=AE=A1=E5=88=92?=
=?UTF-8?q?=E6=9F=A5=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ProjectPlanningManagementQuery/index.vue | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/views/ManufacturingCenter/ProjectPlanningManagementQuery/index.vue b/src/views/ManufacturingCenter/ProjectPlanningManagementQuery/index.vue
index 5d2fff77..0bffd59c 100644
--- a/src/views/ManufacturingCenter/ProjectPlanningManagementQuery/index.vue
+++ b/src/views/ManufacturingCenter/ProjectPlanningManagementQuery/index.vue
@@ -223,7 +223,7 @@
{{ scope.row.组号 }}
-
+
{{ scope.row.任务名称 }}
@@ -243,7 +243,7 @@
{{ scope.row.计划完成时间 ? scope.row.计划完成时间.split(' ')[0] : '-' }}
-
+
{{ scope.row.货期 }}
@@ -253,6 +253,11 @@
{{ scope.row.实际完成时间 ? scope.row.实际完成时间.split(' ')[0] : '-' }}
+
+
+ {{ scope.row.实际完成时间 ? scope.row.实际工期 : '-' }}
+
+
From 627c1b924f7d2f3d1717b5ae04587fb072378d17 Mon Sep 17 00:00:00 2001
From: Vergil <974548713@qq.com>
Date: Thu, 12 Mar 2020 17:26:27 +0800
Subject: [PATCH 6/6] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E8=AE=A1=E5=88=92?=
=?UTF-8?q?=E6=9F=A5=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../ProjectPlanningManagementQuery/index.vue | 34 ++++++++++++++++---
1 file changed, 30 insertions(+), 4 deletions(-)
diff --git a/src/views/ManufacturingCenter/ProjectPlanningManagementQuery/index.vue b/src/views/ManufacturingCenter/ProjectPlanningManagementQuery/index.vue
index 0bffd59c..53bbc31c 100644
--- a/src/views/ManufacturingCenter/ProjectPlanningManagementQuery/index.vue
+++ b/src/views/ManufacturingCenter/ProjectPlanningManagementQuery/index.vue
@@ -212,10 +212,10 @@
-
+
- {{ scope.row.计划名称 }}
+ {{ scope.row.计划类型名称 }}
@@ -429,6 +429,20 @@ export default {
this.loading2 = false
})
},
+ // 考核状态变色
+ tableRowClassName({ row, rowIndex }) {
+ if (row.计划类型名称 === '设计') {
+ return 'PPMQHairDrawing'
+ } else if (row.计划类型名称 === '采购') {
+ return 'PPMQPurchase'
+ } else if (row.计划类型名称 === '备料') {
+ return 'PPMQSpareParts'
+ } else if (row.计划类型名称 === '制造') {
+ return 'PPMQManufacture'
+ } else if (row.计划类型名称 === '装配') {
+ return 'PPMQassembling'
+ }
+ },
// 分页
handleSizeChange(val) {
this.pageCurrent = 1
@@ -451,8 +465,20 @@ export default {
}