diff --git a/src/api/ManufacturingCenter/ProjectPlanningManagementQuery.js b/src/api/ManufacturingCenter/ProjectPlanningManagementQuery.js new file mode 100644 index 00000000..aeb0d4fe --- /dev/null +++ b/src/api/ManufacturingCenter/ProjectPlanningManagementQuery.js @@ -0,0 +1,157 @@ +import request from '@/utils/request' +import state from '@/store' +import router from '@/router' + +// 项目 +export function getProject() { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: 'PDM_项目名称_查询数据_总计划' + } + }) +} +// 机床 +export function getToolNum(check, num) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: 'PDM_机床名称_查询数据', + param: '项目流水号_check=' + check + '=int&项目流水号=' + num + } + }) +} +// 组件查询 +export function searchgroup(num) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: 'PDM_组件名称_查询数据', + param: '机床流水号=' + num + } + }) +} +// 组件名称查询 +export function searchgroupName(num) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: 'PDM_组件名称_查询数据_查询名称', + param: '组件流水号=' + num + } + }) +} +// 客户名称 +export function getCustomerName() { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '客户关系管理系统_初始化查询_客户名称' + } + }) +} +// 查询表1 +export function searchtable(num1, num2, num3, num4, num5, num6, num7, num8, num9, num10, num11, num12, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '项目计划管理_项目总计划_查询数据', + param: `项目流水号_check=` + num1 + '&项目流水号=' + num2 + '&机床流水号_check=' + num3 + '&机床流水号=' + num4 + '&客户名称_check=' + num5 + '&客户名称=' + num6 + '&签订日期_check=' + num7 + '&签订日期开始时间=' + num8 + '&签订日期结束时间=' + num9 + '&交货期_check=' + num10 + '&交货期开始时间=' + num11 + '&交货期结束时间=' + num12, + Pagination: pageCurrent + '&' + pageSize + } + }) +} +// 编辑表1 +export function editTable(num1, num2, num3, num5, num13, num14, num15, num6, num7, num8, num9, num10, num11, num12) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '2', + name: '项目计划管理_项目总计划_编辑数据', + param: `项目流水号=` + num1 + '&机床流水号=' + num2 + '&项目编号=' + num3 + '&设计者=' + num5 + '&审图计划开始时间=' + num13 + '&审图计划完成时间=' + num14 + '&审图实际完成时间=' + num15 + '&机床设计完成时间=' + num6 + '&采购完成时间=' + num7 + '&备料完成时间=' + num8 + '&机床生产完成时间=' + num9 + '&机床装配完成时间=' + num10 + '&完成顺序=' + num11 + '&更新=' + num12 + } + }) +} +// 查询表2 +export function searchTable2(num1) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '项目计划管理_项目计划查询_查询项目详细_查询数据', + param: `机床流水号=` + num1 + } + }) +} +// 编辑表2 +export function editTable2(num1, num2, num3, num4, num5, num6, num7, num8, num9, num10) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '2', + name: '项目计划管理_项目详细计划_编辑数据', + param: `组件计划流水号=` + num1 + '&组件流水号=' + num2 + '&任务名称=' + num3 + '&负责人=' + num4 + '&接收任务时间=' + num5 + '&任务开始时间=' + num6 + '&计划完成时间=' + num7 + '&货期=' + num8 + '&实际完成时间=' + num9 + '&备注=' + num10 + } + }) +} +// 删除表2 +export function Delete(num1) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '2', + name: '项目计划管理_项目详细计划_删除数据', + param: `组件计划流水号=` + num1 + } + }) +} +// 新增表2 +export function addTable(num1, num2) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '2', + name: '项目计划管理_项目详细计划_增加数据', + param: `机床流水号=` + num1 + '&计划类型=' + num2 + } + }) +} 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] } }) } 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..f232e39c 100644 --- a/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue +++ b/src/views/ManufacturingCenter/ProjectPlanningManagementNew/index.vue @@ -21,6 +21,7 @@

客户名称:

查询 + 编辑

签订日期:

@@ -35,7 +36,7 @@ - +