diff --git a/dist.zip b/dist.zip new file mode 100644 index 00000000..b2fbb400 Binary files /dev/null and b/dist.zip differ diff --git a/src/api/ManufacturingCenter/Enter0therData.js b/src/api/ManufacturingCenter/Enter0therData.js index 9f328a07..3dd9b6c8 100644 --- a/src/api/ManufacturingCenter/Enter0therData.js +++ b/src/api/ManufacturingCenter/Enter0therData.js @@ -21,25 +21,25 @@ export function fetchDate(month) { } }) } -export function saveDate(time, num, partNum, partName, procedure, num1, num2, num3, number, time1) { +export function saveDate(num, partNum, procedure, num3, number, time1) { return request({ url: '', method: 'post', data: { type: '2', name: '车间管理_其他数据_增加数据', - param: '加工日期=' + time + '&操作工流水号=' + num + '&零件图号=' + partNum + '&名称=' + partName + '&工序=' + procedure + '&责任人流水号=' + num1 + '&确认人流水号=' + num2 + '&录入人流水号=' + num3 + '&数量=' + number + '&单件工时=' + time1 + param: '操作工流水号=' + num + '&零件图号=' + partNum + '&工序=' + procedure + '&录入人流水号=' + num3 + '&数量=' + number + '&单件工时=' + time1 } }) } -export function editDate(ID, time, num, partNum, partName, procedure, num1, num2, num3, number, time1) { +export function editDate(ID, num, partNum, procedure, num3, number, time1) { return request({ url: '', method: 'post', data: { type: '2', name: '车间管理_其他数据_编辑数据', - param: 'ID=' + ID + '&加工日期=' + time + '&操作工流水号=' + num + '&零件图号=' + partNum + '&名称=' + partName + '&工序=' + procedure + '&责任人流水号=' + num1 + '&确认人流水号=' + num2 + '&录入人流水号=' + num3 + '&数量=' + number + '&单件工时=' + time1 + param: 'ID=' + ID + '&操作工流水号=' + num + '&零件图号=' + partNum + '&工序=' + procedure + '&录入人流水号=' + num3 + '&数量=' + number + '&单件工时=' + time1 } }) } diff --git a/src/api/ManufacturingCenter/InitialProduction.js b/src/api/ManufacturingCenter/InitialProduction.js index 0610629b..6ea74d70 100644 --- a/src/api/ManufacturingCenter/InitialProduction.js +++ b/src/api/ManufacturingCenter/InitialProduction.js @@ -50,50 +50,50 @@ export function getTable(num, pageList, pageSize) { }) } // 投产 -export function production(num, a, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w) { +export function production(num, a, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w, UrgentItem) { return request({ url: '', method: 'post', data: { type: '2', name: '设备管理_可安排生产计划零件排序_制定组时间_同时传递', - param: '组件零件基本件流水号=' + num + '=int&投产类型流水号=' + a + '=int&数据类型=' + b + '=int&投产批次=1=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int' + param: '组件零件基本件流水号=' + num + '=int&投产类型流水号=' + a + '=int&数据类型=' + b + '=int&投产批次=1=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int&是否加急=' + UrgentItem + '=int' } }) } // 合并投产 -export function production2(num1, num2, num, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w) { +export function production2(num1, num2, num, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w, UrgentItem) { return request({ url: '', method: 'post', data: { type: '2', name: '设备管理_可安排生产计划零件排序_制定组时间_同时传递_合并投产', - param: '零件图号=' + num1 + '&规格=' + num2 + '&机床流水号=' + num + '&投产类型流水号=' + 1 + '=int&数据类型=' + b + '=int&投产批次=1=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int' + param: '零件图号=' + num1 + '&规格=' + num2 + '&机床流水号=' + num + '&投产类型流水号=' + 1 + '=int&数据类型=' + b + '=int&投产批次=1=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int&是否加急=' + UrgentItem + '=int' } }) } // 备料投产 -export function production10(num, a, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w) { +export function production10(num, a, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w, UrgentItem) { return request({ url: '', method: 'post', data: { type: '2', name: '设备管理_可安排生产计划零件排序_制定组时间_同时传递_备料', - param: '组件零件基本件流水号=' + num + '=int&投产类型流水号=' + a + '=int&数据类型=' + b + '=int&投产批次=1=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int' + param: '组件零件基本件流水号=' + num + '=int&投产类型流水号=' + a + '=int&数据类型=' + b + '=int&投产批次=1=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int&是否加急=' + UrgentItem + '=int' } }) } // 合并备料投产 -export function production20(num1, num2, num, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w) { +export function production20(num1, num2, num, b, d, e, f, g, h, i, j, k, l, m, n, o, p, q, x, s, t, u, v, w, UrgentItem) { return request({ url: '', method: 'post', data: { type: '2', name: '设备管理_可安排生产计划零件排序_制定组时间_同时传递_合并投产_备料', - param: '零件图号=' + num1 + '&规格=' + num2 + '&机床流水号=' + num + '&投产类型流水号=' + 1 + '=int&数据类型=' + b + '=int&投产批次=1=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int' + param: '零件图号=' + num1 + '&规格=' + num2 + '&机床流水号=' + num + '&投产类型流水号=' + 1 + '=int&数据类型=' + b + '=int&投产批次=1=int&批次数量=' + d + '=string&计划开始时间=' + e + '=string&计划结束时间=' + f + '=string&工艺计划开始时间=' + g + '=string&工艺计划结束时间=' + h + '=string&定额计划开始时间=' + i + '=string&定额计划结束时间=' + j + '=string&计划编制计划开始时间=' + k + '=string&计划编制计划结束时间=' + l + '=string&机加工开始时间=' + m + '=string&机加工结束时间=' + n + '=string&单件外协时间=' + o + '=string&单件是否外协=' + p + '=int&单件是否外协分类=' + q + '=string&计划制定人员编号=' + x + '&材料流水号=' + s + '=int&是否临时件=' + t + '=int&是否难度件=' + u + '=string&是否着急=' + v + '=int&是否白图=' + w + '=int&是否加急=' + UrgentItem + '=int' } }) } diff --git a/src/api/ManufacturingCenter/ProcessPlanningNew.js b/src/api/ManufacturingCenter/ProcessPlanningNew.js index c4da0966..a3935913 100644 --- a/src/api/ManufacturingCenter/ProcessPlanningNew.js +++ b/src/api/ManufacturingCenter/ProcessPlanningNew.js @@ -322,6 +322,18 @@ export function insertOne(num0, num1) { } }) } +// 主界面主表插入功能 +export function insertOne1(num0, num1) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工序_修改数据_工艺计划流水号和工序流水号_更改', + param: '工艺计划流水号=' + num0 + '=int&工序流水号=' + num1 + '=int' + } + }) +} // 主界面主表删除功能 export function deleteOne(num0, num1) { return request({ @@ -371,14 +383,14 @@ export function saveMaterial(num0, num1) { }) } // 核准保存 -export function saveApprove(num0, num1, request0, spec, num2, outhelp, num3, num4, weight, area, num5, level) { +export function saveApprove(num0, num1, request0, spec, num2, outhelp, num3, num4, weight, area, num5, level, num6) { return request({ url: '', method: 'post', data: { type: '2', name: '车间生产管理工艺_零件工序_增加数据_同时修改工艺计划', - param: '工艺计划流水号=' + num0 + '&工艺编号=' + num1 + '&工艺要求=' + request0 + '&原材料规格=' + spec + '&工序顺序=' + num2 + '&工序间是否外协=' + outhelp + '&工序流水号=' + num3 + '&材料流水号=' + num4 + '&重量=' + weight + '&面积=' + area + '&工艺人员编号=' + num5 + '&工艺难度等级=' + level + param: '工艺计划流水号=' + num0 + '&工艺编号=' + num1 + '&工艺要求=' + request0 + '&原材料规格=' + spec + '&工序顺序=' + num2 + '&工序间是否外协=' + outhelp + '&工序流水号=' + num3 + '&材料流水号=' + num4 + '&重量=' + weight + '&面积=' + area + '&工艺人员编号=' + num5 + '&工艺难度等级=' + level + '&工艺是否更改=' + num6 } }) } @@ -492,14 +504,14 @@ export function TableAddLi1(a, b) { }) } // 已编制定额保存 -export function TableAddLi(a, b, c, num0, num1) { +export function TableAddLi(a, b, c, num0, num1, num2) { return request({ url: '', method: 'post', data: { type: '2', name: '车间生产管理工艺_零件工序_增加数据_修改数据', - param: '单件定额工时=' + a + '=string&准结定额工时=' + b + '=string&零件图号=' + c + '=string&工序流水号=' + num0 + '=int&工艺计划流水号=' + num1 + '=int' + param: '单件定额工时=' + a + '=string&准结定额工时=' + b + '=string&零件图号=' + c + '=string&工序流水号=' + num0 + '=int&工艺计划流水号=' + num1 + '=int&是否加序=' + num2 + '=int' } }) } diff --git a/src/api/ManufacturingCenter/ProcessingStatusNew.js b/src/api/ManufacturingCenter/ProcessingStatusNew.js index 3db420b9..3fa1db57 100644 --- a/src/api/ManufacturingCenter/ProcessingStatusNew.js +++ b/src/api/ManufacturingCenter/ProcessingStatusNew.js @@ -129,3 +129,26 @@ where s1.group_idx= 1` } }) } + +export function searchWorkTime(code) { + return request({ + url: '', + method: 'post', + data: { + type: 1, + name: '车间生产管理工艺_零件工艺计划_完成零件数量状态更改查询', + param: '工序流水号=' + code + '=int' + } + }) +} +export function submit2(num, num1, num2) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_零件工艺计划_完成零件数量状态更改', + param: `工序流水号=${num}&完成数量=${num1}&操作者=${num2}` + } + }) +} diff --git a/src/api/Outsourcing/OutsourcingTaskExecution.js b/src/api/Outsourcing/OutsourcingTaskExecution.js index d468a3ea..c267573e 100644 --- a/src/api/Outsourcing/OutsourcingTaskExecution.js +++ b/src/api/Outsourcing/OutsourcingTaskExecution.js @@ -47,6 +47,18 @@ export function getTable1(check, partNumber) { } }) } +// 打回 +export function getBack(processPlan) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: '车间生产管理工艺_外协零件_打回', + param: '工艺计划流水号=' + processPlan + } + }) +} // 获取零件工序信息(零件号表中) export function getprocedure(processPlan, single) { return request({ diff --git a/src/api/TechnologyCenter/ImportParts.js b/src/api/TechnologyCenter/ImportParts.js index 9a81df76..0603c068 100644 --- a/src/api/TechnologyCenter/ImportParts.js +++ b/src/api/TechnologyCenter/ImportParts.js @@ -23,6 +23,18 @@ export function isExit(projectNum, machineNum) { } }) } +// 替换 +export function updateNum(num, id) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_外购件和标准件_数据导入保存_更改物料流水号', + param: `物料流水号=${num}&id=${id}` + } + }) +} export function isExit1(projectNum, machineNum, groupNum) { return request({ url: '', diff --git a/src/api/TechnologyCenter/QueryParts.js b/src/api/TechnologyCenter/QueryParts.js index 15e93201..9e0c3f24 100644 --- a/src/api/TechnologyCenter/QueryParts.js +++ b/src/api/TechnologyCenter/QueryParts.js @@ -91,3 +91,14 @@ export function getFileData(MachineDrawValue) { } }) } +export function addUrgentItem(groupValue, partValue, partName, partMumber, basic, ID) { + return request({ + url: '', + method: 'post', + data: { + type: '2', + name: 'PDM_零件明细表_加急件_增加', + param: `图号或者型号=${partValue}&零件名称=${partName}&零件数量=${partMumber}&零件备注=${basic}&组件流水号=${groupValue}&加件人流水号=${ID}` + } + }) +} diff --git a/src/assets/img/StationLayout.jpg b/src/assets/img/StationLayout.jpg new file mode 100644 index 00000000..ffac2acc Binary files /dev/null and b/src/assets/img/StationLayout.jpg differ diff --git a/src/assets/img/StationLayout.psd b/src/assets/img/StationLayout.psd new file mode 100644 index 00000000..c5201241 Binary files /dev/null and b/src/assets/img/StationLayout.psd differ diff --git a/src/utils/request.js b/src/utils/request.js index 0db87c1c..aae52c5b 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -1,33 +1,34 @@ import axios from 'axios' -export const wsuri = `ws://192.168.1.232:61101//WebMoudule//websocket` +export const wsuri = `ws://123.56.95.229:61101//WebMoudule//websocket` export const name = `OP8888` export const name1 = `OP1000` export const name3 = `OP2000` export const name4 = `OP9999` // 创建axios实例 -export const readFile = `http://192.168.1.231:8411/webpage/file/` // invoice -export const readImg = `http://192.168.1.231:8411/webpage/img/` // delivery/MS/performancebond -export const upload = `http://192.168.1.231:8411/submit/uploadFile.ashx` // ContractInformationManagement -export const upload2 = `http://192.168.1.231:8411/submit/upload2.ashx` // delivery -export const upload3 = `http://192.168.1.231:8411/submit/upload3.ashx` // performancebond -export const uploadInvoiceScan = `http://192.168.1.231:8411/submit/uploadInvoiceScan.ashx` // invoice -export const uploadInvoiceScan1 = `http://192.168.1.231:8411/submit/uploadInvoiceScan1.ashx` // invoice(workshop) -export const download = `http://192.168.1.231:8411/submit/downloadFile.ashx` // ContractInformationManagement -export const uploadPerson = `http://192.168.1.231:8411/submit/uploadPerson.ashx` -export const uploadOP = `http://192.168.1.231:8411/submit/uploadOP.ashx` -export const url = `http://192.168.1.188:8045/submit/MESCommonBase.ashx` // 采购件入库、离线件入库 -export const ExcelDownLoad = 'http://192.168.1.188:8045/submit/downloadFile.ashx' // 导出excel -export const ExcelWaiGou = 'http://192.168.1.167:8045/submit/excel.ashx' // 导出excel + +export const readFile = `http://123.56.95.229:8010/webpage/file/` // invoice +export const readImg = `http://123.56.95.229:8010/webpage/img/` // delivery/MS/performancebond +export const upload = `http://123.56.95.229:8010/submit/uploadFile.ashx` // ContractInformationManagement +export const upload2 = `http://123.56.95.229:8010/submit/upload2.ashx` // delivery +export const upload3 = `http://123.56.95.229:8010/submit/upload3.ashx` // performancebond +export const uploadInvoiceScan = `http://123.56.95.229:8010/submit/uploadInvoiceScan.ashx` // invoice +export const uploadInvoiceScan1 = `http://123.56.95.229:8010/submit/uploadInvoiceScan1.ashx` // invoice(workshop) +export const download = `http://123.56.95.229:8010/submit/downloadFile.ashx` // ContractInformationManagement +export const uploadPerson = `http://123.56.95.229:8010/submit/uploadPerson.ashx` +export const uploadOP = `http://123.56.95.229:8010/submit/uploadOP.ashx` +export const url = `http://123.56.95.229:8010/submit/MESCommonBase.ashx` // 采购件入库、离线件入库 +export const ExcelDownLoad = 'http://123.56.95.229:8010/submit/downloadFile.ashx' // 导出excel +export const ExcelWaiGou = 'http://123.56.95.229:8010/submit/excel.ashx' // 导出excel // 技术中心程序发布时要更改下面所有的IP到0段 -export const ServerIP = `http://192.168.1.231:8411/webpage/file/` -export const uploadFileMachine = `http://192.168.1.231:8411/submit/uploadFileMachine.ashx` // 机床总图 发布时改成0.231 -export const downloadFileMachine = `http://192.168.1.231:8411/submit/downloadFileMachine.ashx` // 机床总图 发布时改成0.231 -export const MESUploadFile = `http://192.168.1.231:8411/submit/MESUploadFile.ashx` -export const MESDownloadFile = `http://192.168.1.231:8411/submit/MESDownloadFile.ashx` +export const ServerIP = `http://123.56.95.229:8010/webpage/file/` +export const uploadFileMachine = `http://123.56.95.229:8010/submit/uploadFileMachine.ashx` // 机床总图 发布时改成0.231 +export const downloadFileMachine = `http://123.56.95.229:8010/submit/downloadFileMachine.ashx` // 机床总图 发布时改成0.231 +export const MESUploadFile = `http://123.56.95.229:8010/submit/MESUploadFile.ashx` +export const MESDownloadFile = `http://123.56.95.229:8010/submit/MESDownloadFile.ashx` const service = axios.create({ - baseURL: `http://localhost:8045/submit/MESCommonBase.ashx`, + baseURL: `http://123.56.95.229:8010/submit/MESCommonBase.ashx`, timeout: 1500000 // 请求超时时间 }) export default service diff --git a/src/views/ManufacturingCenter/AddingOrder/index.vue b/src/views/ManufacturingCenter/AddingOrder/index.vue index b3fd1859..d476923f 100644 --- a/src/views/ManufacturingCenter/AddingOrder/index.vue +++ b/src/views/ManufacturingCenter/AddingOrder/index.vue @@ -321,7 +321,7 @@ export default { this.dialogFormVisible2 = true }, deleteProcess() { - this.$confirm('确定删除该合同?', '提示', { + this.$confirm('确定删除?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' diff --git a/src/views/ManufacturingCenter/CompletionOfWorkshopComponents/index.vue b/src/views/ManufacturingCenter/CompletionOfWorkshopComponents/index.vue index 1274075e..b4f2d6f7 100644 --- a/src/views/ManufacturingCenter/CompletionOfWorkshopComponents/index.vue +++ b/src/views/ManufacturingCenter/CompletionOfWorkshopComponents/index.vue @@ -173,7 +173,7 @@ export default { firstLevel.children = [] for (let j = 0; j < response.data.length; j++) { firstLevel.children.push({ - label: (response.data[j].零件图号 ? response.data[j].零件图号 : '无零件图号') + '\xa0\xa0\xa0\xa0\xa0\xa0' + (response.data[j].规格 ? response.data[j].规格 : '') + '\xa0\xa0\xa0\xa0\xa0\xa0' + (response.data[j].投产总数量 ? response.data[j].投产总数量 : '') + '..........' + (response.data[j].零件名称 ? response.data[j].零件名称 : '无零件名称') + (response.data[j].零件类型 === 1 ? '\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0' + response.data[j].考核状态名称 : (response.data[j].零件类型 === 2 ? '\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0制造采购' : '\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0外购')), + label: (response.data[j].零件图号 ? response.data[j].零件图号 : '无零件图号') + '\xa0\xa0\xa0\xa0\xa0\xa0' + (response.data[j].规格 ? response.data[j].规格 : '') + '\xa0\xa0\xa0\xa0\xa0\xa0' + (response.data[j].投产总数量 ? response.data[j].投产总数量 : '') + '..........' + (response.data[j].零件名称 ? response.data[j].零件名称 : '无零件名称') + (response.data[j].零件类型 === 1 ? '\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0自制:' + response.data[j].考核状态名称 : (response.data[j].零件类型 === 2 ? '\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0制造采购' : '\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0\xa0外购:' + response.data[j].采购状态)), value: response.data[j].工艺计划流水号, 考核状态: response.data[j].考核状态, 采购状态: response.data[j].采购状态, diff --git a/src/views/ManufacturingCenter/ContractDetailsInquiry/index.vue b/src/views/ManufacturingCenter/ContractDetailsInquiry/index.vue index 41c6b08d..2daef2e2 100644 --- a/src/views/ManufacturingCenter/ContractDetailsInquiry/index.vue +++ b/src/views/ManufacturingCenter/ContractDetailsInquiry/index.vue @@ -31,6 +31,86 @@ 计划总工时(小时): + 查询 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -48,7 +128,8 @@ export default { partValue: '', specificationValue: '', // 规格型号 totalProcessingHours: '', // 加工总工时 - totalPlannedHours: '' // 计划总工时 + totalPlannedHours: '', // 计划总工时 + tableData: [] // 详情表 } }, created() { diff --git a/src/views/ManufacturingCenter/CreatePreparationBill/index.vue b/src/views/ManufacturingCenter/CreatePreparationBill/index.vue index f4c3ea68..db98467d 100644 --- a/src/views/ManufacturingCenter/CreatePreparationBill/index.vue +++ b/src/views/ManufacturingCenter/CreatePreparationBill/index.vue @@ -20,6 +20,7 @@ 导出 + 导出 @@ -38,6 +39,7 @@ element-loading-text="拼命加载中" @sort-change="sortChange" @selection-change="handleSelectionChange"> + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
{ - console.log(response) - if (response.data.total === 0) { - this.loading = false - } else { + searchtable(this.partNamecheck, this.partName, !this.all, 0, this.pageCurrent, this.pageSize).then(response => { + console.log(response) + if (response.data.total === 0) { + this.loading = false + } else { // this.tableData.push({ // 重量: response.data.rows[0].重量 // }) - this.Data = response.data.rows - this.total = response.data.total - } - }).then(() => { - for (let i = 0; i < this.Data.length; i++) { - searchtable2(this.Data[i].工艺计划流水号).then(response => { - this.tableData.push({ - 工艺计划流水号: this.Data[i].工艺计划流水号, - 零件名称: this.Data[i].零件名称, - 零件图号: this.Data[i].零件图号, - 备料打印: this.Data[i].备料打印, - 是否外购备料: this.Data[i].是否外购备料, - 工艺要求: response.data[0].工艺要求, - 材料: this.Data[i].材料, - 重量: this.Data[i].重量, - 批次数量: this.Data[i].批次数量 + this.Data = response.data.rows + this.total = response.data.total + } + }).then(() => { + for (let i = 0; i < this.Data.length; i++) { + searchtable2(this.Data[i].工艺计划流水号).then(response => { + this.tableData.push({ + 工艺计划流水号: this.Data[i].工艺计划流水号, + 零件名称: this.Data[i].零件名称, + 零件图号: this.Data[i].零件图号, + 备料打印: this.Data[i].备料打印, + 是否外购备料: this.Data[i].是否外购备料, + 工艺要求: response.data[0].工艺要求, + 材料: this.Data[i].材料, + 重量: this.Data[i].重量, + 批次数量: this.Data[i].批次数量 + }) }) - }) - this.loading = false - } + this.loading = false + } + }) }) }, handleSelectionChange(val) { @@ -286,6 +292,7 @@ export default { this.partNamecheck = false } getExport(this.partNamecheck, this.partName, !this.all, 0).then(res => { + console.log(res.data) import('@/vendor/Export2Excel').then(excel => { const tHeader = ['备料分配', '零件名称', '零件图号', '数量', '材料', '重量', '工艺要求'] const filterVal = ['分配状态', '零件名称', '零件图号', '批次数量', '材料', '重量', '工艺要求'] diff --git a/src/views/ManufacturingCenter/Enter0therData/index.vue b/src/views/ManufacturingCenter/Enter0therData/index.vue index d810ddd5..3ba78ae4 100644 --- a/src/views/ManufacturingCenter/Enter0therData/index.vue +++ b/src/views/ManufacturingCenter/Enter0therData/index.vue @@ -2,16 +2,6 @@
- - - + 数量 单件工时 - - - - - - 保存 @@ -66,16 +41,11 @@ {{ scope.row.操作工姓名 }} - + - - - - - - - - - - + @@ -67,7 +67,7 @@ {{ scope.row.备注 }} - + @@ -132,8 +132,8 @@ export default { return } import('@/vendor/Export2Excel').then(excel => { - const tHeader = ['姓名', '图号', '跟单号', '序号', '工序名称', '录入准结工时', '实际工时', '合格数', '不合格数', '备注', '日期', '计划准结工时', '计划定额工时', '项目名称', '机床图号', '组号', '设计', '材料'] - const filterVal = ['姓名', '零件图号_短', '跟单号', '工序顺序', '工艺名称', '修补准结工时', '设备工时', '合格数', '不合格数', '备注', '操作时间', '准结定额工时', '单件定额工时', '项目名称', '机床图号', '组号', '设计者', '材料'] + const tHeader = ['日期', '姓名', '图号', '跟单号', '序号', '工序名称', '录入准结工时', '实际工时', '合格数', '不合格数', '备注', '计划准结工时', '计划定额工时', '项目名称', '机床图号', '组号', '设计', '材料'] + const filterVal = ['操作时间', '姓名', '零件图号_短', '跟单号', '工序顺序', '工艺名称', '修补准结工时', '设备工时', '合格数', '不合格数', '备注', '准结定额工时', '单件定额工时', '项目名称', '机床图号', '组号', '设计者', '材料'] const list = this.tableData const data = this.formatJson(filterVal, list) excel.export_json_to_excel({ diff --git a/src/views/ManufacturingCenter/PartAssignment/index.vue b/src/views/ManufacturingCenter/PartAssignment/index.vue index d8687e34..8e79bcae 100644 --- a/src/views/ManufacturingCenter/PartAssignment/index.vue +++ b/src/views/ManufacturingCenter/PartAssignment/index.vue @@ -95,6 +95,16 @@ {{ scope.row.机床数量 }} + + + + + + + + + + + + + + + + + +