diff --git a/dist.zip b/dist.zip deleted file mode 100644 index b2fbb400..00000000 Binary files a/dist.zip and /dev/null differ diff --git a/src/api/Assembly/SparePartsOutStockRecord.js b/src/api/Assembly/SparePartsOutStockRecord.js index 09a480be..535fd937 100644 --- a/src/api/Assembly/SparePartsOutStockRecord.js +++ b/src/api/Assembly/SparePartsOutStockRecord.js @@ -24,14 +24,14 @@ export function searchgroup(num) { }) } // 车间生产管理工艺_备料管理_备料出库记录_视图_查询数据 -export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, pageCurrent, pageSize) { +export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, pageCurrent, pageSize, ordername, order) { return request({ url: '', method: 'post', data: { type: '1', name: '车间生产管理工艺_备料管理_备料出库记录_视图_查询数据', - param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&零件图号_check=' + check3 + '&零件图号=' + value3 + '&开始时间_check=' + check4 + '&开始时间=' + value4 + '&结束时间_check=' + check5 + '&结束时间=' + value5, + param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&零件图号_check=' + check3 + '&零件图号=' + value3 + '&开始时间_check=' + check4 + '&开始时间=' + value4 + '&结束时间_check=' + check5 + '&结束时间=' + value5 + '&排序名称=' + ordername + '&排序方式=' + order, Pagination: pageCurrent + '&' + pageSize } }) diff --git a/src/api/BasicData/SystemRrolemaintenance.js b/src/api/BasicData/SystemRrolemaintenance.js index c7d85663..fd345e26 100644 --- a/src/api/BasicData/SystemRrolemaintenance.js +++ b/src/api/BasicData/SystemRrolemaintenance.js @@ -21,15 +21,14 @@ export function deleteData(code) { } }) } -export function searchTable(num, pageCurrent, pageSize) { +export function searchTable(num) { return request({ url: '', method: 'post', data: { type: '1', name: '菜单系统模块_项目角色_查询数据_MESWORK', - param: '角色功能=' + num + '=string', - Pagination: pageCurrent + '&' + pageSize + param: '角色功能=' + num + '=string' } }) } diff --git a/src/api/ManufacturingCenter/InitialProduction.js b/src/api/ManufacturingCenter/InitialProduction.js index 6ea74d70..daf3800f 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, UrgentItem) { +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, IsUrgentItem) { 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&是否加急=' + UrgentItem + '=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&是否加急件=' + IsUrgentItem + '=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, UrgentItem) { +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, IsUrgentItem) { 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&是否加急=' + UrgentItem + '=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&是否加急件=' + IsUrgentItem + '=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, UrgentItem) { +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, IsUrgentItem) { 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&是否加急=' + UrgentItem + '=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&是否加急件=' + IsUrgentItem + '=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, UrgentItem) { +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, IsUrgentItem) { 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&是否加急=' + UrgentItem + '=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&是否加急件=' + IsUrgentItem + '=int' } }) } @@ -170,3 +170,14 @@ export function edit(num) { } }) } +// 用于提醒 +export function searchUrgentItem() { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: '车间生产管理工艺_零件工艺计划_加急件未打印条数查询' + } + }) +} diff --git a/src/api/ManufacturingCenter/PartAssignment.js b/src/api/ManufacturingCenter/PartAssignment.js index a0b27598..f5a9001c 100644 --- a/src/api/ManufacturingCenter/PartAssignment.js +++ b/src/api/ManufacturingCenter/PartAssignment.js @@ -11,6 +11,18 @@ export function initProject() { } }) } +// 三表下达时间查询 +export function DeliveryTimeSelect(num) { + return request({ + url: '', + method: 'post', + data: { + type: '1', + name: 'PDM_三表下达时间_查询数据', + param: '组件流水号=' + num + } + }) +} // 组件查询 export function searchgroup(num) { return request({ diff --git a/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js b/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js index 470c27a3..428d589e 100644 --- a/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js +++ b/src/api/ManufacturingCenter/WorkshopEquipmentManagement.js @@ -7,8 +7,8 @@ export function getData(check, equipmentName, pageCurrent, pageSize) { data: { type: '1', name: '设备管理_设备加工能力_查询数据_设备维护NEW', - param: '设备名称_check=' + check + '=int&设备名称=' + equipmentName, - pagination: pageCurrent + '&' + pageSize + param: '设备名称_check=' + check + '=int&设备名称=' + equipmentName + // pagination: pageCurrent + '&' + pageSize } }) } diff --git a/src/api/Outsourcing/OutsourcingTaskQuery.js b/src/api/Outsourcing/OutsourcingTaskQuery.js index 9fc5abcd..1ce240e4 100644 --- a/src/api/Outsourcing/OutsourcingTaskQuery.js +++ b/src/api/Outsourcing/OutsourcingTaskQuery.js @@ -13,14 +13,14 @@ export function shouhuo(num) { }) } // 初始化获取已生成的外协加工任务单初始化获取已生成的外协加工任务单 -export function getTable(checked, contractNumber, checked1, manufacturers, checked2, time1, time2, num, pageCurrent, pageSize) { +export function getTable(checked, contractNumber, pageCurrent, pageSize) { return request({ url: '', method: 'post', data: { type: '1', - name: '车间生产管理_外协加工任务单_查询数据_查询页', - param: '外协加工任务单_check=0&外协加工任务单流水号=null&表单号_check=' + checked + '&表单号=' + contractNumber + '&外协厂家_check=' + checked1 + '&外协厂家=' + manufacturers + '&任务下达日期_时间段=' + checked2 + '&开始时间=' + time1 + '&结束时间=' + time2 + '&单据状态_check=0&单据状态=1&外协员编号_check=0&外协员编号=' + num, + name: '车间生产管理工艺_外协执行_查询外协任务单', + param: '厂家或表单号_check=' + checked + '&厂家或表单号=' + contractNumber, Pagination: pageCurrent + '&' + pageSize } }) @@ -156,14 +156,14 @@ export function deleteData1(Number) { }) } // 零件到货 -export function Arrival(Number, Num) { +export function Arrival(num1, Number, Num) { return request({ url: '', method: 'post', data: { type: '2', name: '车间生产管理_外协零件_到货', - param: `外协加工任务单明细流水号组=${Number}&工艺计划流水号组=${Num}` + param: '外协加工任务单流水号=' + num1 + `&外协加工任务单明细流水号组=${Number}&工艺计划流水号组=${Num}` } }) } @@ -174,7 +174,7 @@ export function getParts(Number) { method: 'post', data: { type: '1', - name: '车间生产管理_外协加工任务单明细_查询数据', + name: '车间生产管理工艺_外协加工任务单明细_查询数据', param: '外协加工任务单流水号=' + Number + '=int' } }) diff --git a/src/api/Outsourcing/PreorderAssociation.js b/src/api/Outsourcing/PreorderAssociation.js index 273dbc85..1bbfcebe 100644 --- a/src/api/Outsourcing/PreorderAssociation.js +++ b/src/api/Outsourcing/PreorderAssociation.js @@ -39,7 +39,7 @@ export function searchTable(num1, num2, num3, num4, num5, num6, check, num7, pag method: 'post', data: { type: '1', - name: '车间生产管理工艺_零件工艺计划_查询数据_状态_新', + name: '车间生产管理工艺_序间外协_查询零件', param: '项目流水号_check=' + num1 + '&项目流水号=' + num2 + '&机床流水号_check=' + num3 + '&机床流水号=' + num4 + '&组件流水号_check=' + num5 + '&组件流水号=' + num6 + '&零件图号_check=' + check + '&零件图号=' + num7 + '&考核状态_check=0&考核状态=0&单件是否外协_check=1&单件是否外协=1&时间=0&机加工开始时间=0&机加工结束时间=0&零件类型=0', Pagination: pageCurrent + '&' + pageSize } diff --git a/src/api/WorkshopProcurement/NewArrivalList.js b/src/api/WorkshopProcurement/NewArrivalList.js index 3c169558..56698104 100644 --- a/src/api/WorkshopProcurement/NewArrivalList.js +++ b/src/api/WorkshopProcurement/NewArrivalList.js @@ -62,14 +62,14 @@ export function searchLxMateriel(num, check, num1) { }) } // 查询到货单 -export function searchArriveOrder(num8, num9, num6, num7, pageCurrent, pageSize) { +export function searchArriveOrder(num8, num9, num6, num7, datecheck, starttime, endtime, pageCurrent, pageSize) { return request({ url: '', method: 'post', data: { type: '1', name: '备料管理_到货单查询_新', - param: `供应商流水号_check=${num8}&供应商流水号=${num9}&是否关联_check=${num6}&是否关联=${num7}`, + param: `供应商流水号_check=${num8}&供应商流水号=${num9}&是否关联_check=${num6}&是否关联=${num7}&日期check=${datecheck}&开始时间=${starttime}&结束时间=${endtime}`, Pagination: pageCurrent + '&' + pageSize } }) diff --git a/src/api/WorkshopProcurement/OfflineProcurement.js b/src/api/WorkshopProcurement/OfflineProcurement.js index 7b693454..5ff7f799 100644 --- a/src/api/WorkshopProcurement/OfflineProcurement.js +++ b/src/api/WorkshopProcurement/OfflineProcurement.js @@ -109,14 +109,14 @@ export function getGroups(stepNumber) { }) } -export function getTable(checkbox_Machine, Machine, checkbox_Group, Group, checkbox_number, number, k, m, pageCurrent, pageSize) { +export function getTable(checkbox_Machine, Machine, checkbox_Group, Group, checkbox_number, number, k, m, pageCurrent, pageSize, ordername, order) { return request({ url: '', method: 'post', data: { type: '1', name: '车间生产管理工艺_零件工序_查询数据_已编制工序的全部零件及工序_横向赋值新建存储过程_新', - param: '项目流水号_check=0=string&机床流水号_check=' + checkbox_Machine + '=string&机床流水号=' + Machine + '=string&组件流水号_check=' + checkbox_Group + '=string&组件流水号=' + Group + '=string&零件图号_check=' + checkbox_number + '=string&零件图号=' + number + '=string&是否查询全部数据=1=string&单件是否外协=1=string&考核状态=6=int&开始时间_check=0&开始时间=' + k + '&结束时间_check=0&结束时间=' + m, + param: '项目流水号_check=0=string&机床流水号_check=' + checkbox_Machine + '=string&机床流水号=' + Machine + '=string&组件流水号_check=' + checkbox_Group + '=string&组件流水号=' + Group + '=string&零件图号_check=' + checkbox_number + '=string&零件图号=' + number + '=string&是否查询全部数据=1=string&单件是否外协=1=string&考核状态=6=int&开始时间_check=0&开始时间=' + k + '&结束时间_check=0&结束时间=' + m + '&排序名称=' + ordername + '&排序方式=' + order, Pagination: pageCurrent + '&' + pageSize } }) diff --git a/src/utils/request.js b/src/utils/request.js index 31f47928..5948c0da 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -18,7 +18,7 @@ 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 +export const ExcelWaiGou = 'http://192.168.0.106:8045/submit/excel.ashx' // 导出excel // 技术中心程序发布时要更改下面所有的IP到0段 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 diff --git a/src/views/Assembly/SparePartsOutStockRecord/index.vue b/src/views/Assembly/SparePartsOutStockRecord/index.vue index 19e20790..2f7b7a27 100644 --- a/src/views/Assembly/SparePartsOutStockRecord/index.vue +++ b/src/views/Assembly/SparePartsOutStockRecord/index.vue @@ -40,33 +40,33 @@ type="date" placeholder="选择日期"/> - 查询 + 查询 - - - - + + + + + + - + - + - + @@ -105,7 +105,7 @@ export default { tableData1: [], loading: false, total: null, // 总条数 - pageSize: 20, // 每页显示条数 + pageSize: 40, // 每页显示条数 pageCurrent: 1 // 后台获取页 } }, @@ -116,6 +116,26 @@ export default { this.initProject() }, methods: { + sortChange(column) { + console.log(column + '-' + column.prop + '-' + column.order, 11111) + if (column.prop === '零件名称') { + this.ordername = 1 + } else if (column.prop === '零件图号') { + this.ordername = 2 + } else if (column.prop === '出库时间') { + this.ordername = 3 + } else { + this.ordername = '' + } + if (column.order === 'ascending') { + this.order = 1 + } else if (column.order === 'descending') { this.order = 2 } else { + this.order = '' + } + console.log(this.ordername, 9990999, this.order) + + this.selecttable() + }, initProject() { initProject().then(response => { for (let i = 0; i < response.data.length; i++) { @@ -146,7 +166,7 @@ export default { if (this.PartDrawingNumber !== '' && this.PartDrawingNumber !== null) { this.check3 = 1 } else { this.check3 = 0 } if (this.startTime === '' || this.startTime === null) { this.startTime_check = 0 } else { this.startTime_check = 1 } if (this.endTime === '' || this.endTime === null) { this.endTime_check = 0 } else { this.endTime_check = 1 } - selecttable(this.check1, this.machineNumberValue, this.check2, this.groupNumberValue, this.check3, this.PartDrawingNumber, this.startTime_check, this.startTime, this.endTime_check, this.endTime, this.pageCurrent, this.pageSize).then(response => { + selecttable(this.check1, this.machineNumberValue, this.check2, this.groupNumberValue, this.check3, this.PartDrawingNumber, this.startTime_check, this.startTime, this.endTime_check, this.endTime, this.pageCurrent, this.pageSize, this.ordername, this.order).then(response => { this.tableData1 = response.data.rows this.loading = false this.total = response.data.total diff --git a/src/views/BasicData/SystemRrolemaintenance/index.vue b/src/views/BasicData/SystemRrolemaintenance/index.vue index 595fea12..6116e022 100644 --- a/src/views/BasicData/SystemRrolemaintenance/index.vue +++ b/src/views/BasicData/SystemRrolemaintenance/index.vue @@ -3,7 +3,7 @@ - 查询 + 查询 增加 @@ -99,9 +99,6 @@ export default { data() { return { RoleFunctioning: '', - pageCurrent: 1, - pageSize: 10, - total: null, loading: false, tableData: [], dialogFormVisible1: false, @@ -134,9 +131,8 @@ export default { }, searchData() { this.loading = true - searchTable(this.RoleFunctioning, this.pageCurrent, this.pageSize).then(response => { - this.tableData = response.data.rows - this.total = response.data.total + searchTable(this.RoleFunctioning).then(response => { + this.tableData = response.data this.loading = false console.log(response.data) }) diff --git a/src/views/Inventory/InventoryManagement/index.vue b/src/views/Inventory/InventoryManagement/index.vue index b18e0f50..79c95e6f 100644 --- a/src/views/Inventory/InventoryManagement/index.vue +++ b/src/views/Inventory/InventoryManagement/index.vue @@ -421,14 +421,18 @@ export default { // 编辑 handleEdit(index, row, formName) { this.temp = 2 - this.dialogFormVisible = true this.form.WarehouseNumber = row.仓库编号 this.form.WarehouseName = row.仓库名称 this.form.WarehouseDescription = row.仓库描述 this.form.Address = row.地址 - this.form.ContactpeopleValue = row.人员编号 + if (this.role !== '15') { + this.form.ContactpeopleValue = this.Contactpeople[0].value + } else { + this.form.ContactpeopleValue = parseInt(row.人员编号) + } this.form.Note = row.备注 this.HouseNumber = row.仓库流水号 + this.dialogFormVisible = true }, // 执行修改 chaEdit() { diff --git a/src/views/ManufacturingCenter/CreatePreparationBill/index.vue b/src/views/ManufacturingCenter/CreatePreparationBill/index.vue index db98467d..ba2627e9 100644 --- a/src/views/ManufacturingCenter/CreatePreparationBill/index.vue +++ b/src/views/ManufacturingCenter/CreatePreparationBill/index.vue @@ -20,7 +20,6 @@ 导出 - 导出 @@ -51,39 +50,38 @@ 未分配 - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
{ - 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 { + 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) { diff --git a/src/views/ManufacturingCenter/InitialProduction/index.vue b/src/views/ManufacturingCenter/InitialProduction/index.vue index 359e85f7..5fe39080 100644 --- a/src/views/ManufacturingCenter/InitialProduction/index.vue +++ b/src/views/ManufacturingCenter/InitialProduction/index.vue @@ -91,6 +91,7 @@ - + @@ -147,17 +148,19 @@ {{ scope.row.零件类型名称 }} - + @@ -455,27 +458,27 @@ export default { 'id' ]) }, - watch: { - // 如果路由有变化,会再次执行该方法 - '$route'(to) { - const _this = this - console.log(to, 2222) - if (to.name === 'InitialProduction') { - _this.typeChange() - } - } - // '$route': { - // handler(route) { - // const _this = this - // console.log(route.name) - // if (route.name === 'InitialProduction') { - // _this.typeChange() - // } - // } - // } - }, + // watch: { + // // 如果路由有变化,会再次执行该方法 + // '$route'(to) { + // const _this = this + // console.log(to, 2222) + // if (to.name === 'InitialProduction') { + // _this.typeChange() + // } + // } + // // '$route': { + // // handler(route) { + // // const _this = this + // // console.log(route.name) + // // if (route.name === 'InitialProduction') { + // // _this.typeChange() + // // } + // // } + // // } + // }, created() { - // this.typeChange() + this.typeChange() this.getCurrentTime() this.getNowTime() }, @@ -615,6 +618,7 @@ export default { 数据类型: response.data.rows[i].数据类型, 零件备注: response.data.rows[i].零件备注, 规格: response.data.rows[i].规格, + 是否加急件: response.data.rows[i].是否加急件, 材料流水号: response.data.rows[i].材料流水号, checked_dailiao: false, checked_waixie: false, @@ -845,6 +849,7 @@ export default { 投产类型流水号: response.data.rows[i].投产类型流水号, 数据类型: response.data.rows[i].数据类型, 零件备注: response.data.rows[i].零件备注, + 是否加急件: response.data.rows[i].是否加急件, 规格: response.data.rows[i].规格, 材料流水号: response.data.rows[i].材料流水号, checked_dailiao: false, @@ -923,7 +928,7 @@ export default { } else { this.checked_baitu = 1 } - production2(this.multipleSelection[i].零件图号, this.multipleSelection[i].规格, this.toolNumValue, this.multipleSelection[i].数据类型, this.multipleSelection[i].投产总数量, this.time_planStart, this.time_planFinish, this.time_gongyiStart, this.time_gongyiFinish, this.time_dingeStart, this.time_dingeFinish, this.time_planpinghengStart, this.time_planpinghengFinish, this.time_machiningStart, this.time_machiningFinish, this.time_planStart, this.multipleSelection[i].checked_waixie, this.multipleSelection[i].checked_dailiao, this.id, this.multipleSelection[i].材料流水号, this.radio, this.checked_gaonandu, this.multipleSelection[i].checked_zhaoji, this.checked_baitu, this.UrgentItem).then(response => { + production2(this.multipleSelection[i].零件图号, this.multipleSelection[i].规格, this.toolNumValue, this.multipleSelection[i].数据类型, this.multipleSelection[i].投产总数量, this.time_planStart, this.time_planFinish, this.time_gongyiStart, this.time_gongyiFinish, this.time_dingeStart, this.time_dingeFinish, this.time_planpinghengStart, this.time_planpinghengFinish, this.time_machiningStart, this.time_machiningFinish, this.time_planStart, this.multipleSelection[i].checked_waixie, this.multipleSelection[i].checked_dailiao, this.id, this.multipleSelection[i].材料流水号, this.radio, this.checked_gaonandu, this.multipleSelection[i].checked_zhaoji, this.checked_baitu, this.UrgentItem, this.multipleSelection[i].是否加急件).then(response => { this.result += parseInt(response.data[0].result) if (this.result === this.multipleSelection.length) { this.$message.success('投产成功') @@ -971,7 +976,7 @@ export default { } else { this.checked_baitu = 1 } - production(this.multipleSelection[i].组件零件基本件流水号, this.multipleSelection[i].投产类型流水号, this.multipleSelection[i].数据类型, this.multipleSelection[i].投产总数量, this.time_planStart, this.time_planFinish, this.time_gongyiStart, this.time_gongyiFinish, this.time_dingeStart, this.time_dingeFinish, this.time_planpinghengStart, this.time_planpinghengFinish, this.time_machiningStart, this.time_machiningFinish, this.time_planStart, this.multipleSelection[i].checked_waixie, this.multipleSelection[i].checked_dailiao, this.id, this.multipleSelection[i].材料流水号, this.radio, this.checked_gaonandu, this.multipleSelection[i].checked_zhaoji, this.checked_baitu, this.UrgentItem).then(response => { + production(this.multipleSelection[i].组件零件基本件流水号, this.multipleSelection[i].投产类型流水号, this.multipleSelection[i].数据类型, this.multipleSelection[i].投产总数量, this.time_planStart, this.time_planFinish, this.time_gongyiStart, this.time_gongyiFinish, this.time_dingeStart, this.time_dingeFinish, this.time_planpinghengStart, this.time_planpinghengFinish, this.time_machiningStart, this.time_machiningFinish, this.time_planStart, this.multipleSelection[i].checked_waixie, this.multipleSelection[i].checked_dailiao, this.id, this.multipleSelection[i].材料流水号, this.radio, this.checked_gaonandu, this.multipleSelection[i].checked_zhaoji, this.checked_baitu, this.UrgentItem, this.multipleSelection[i].是否加急件).then(response => { this.result += parseInt(response.data[0].result) if (this.result === this.multipleSelection.length) { this.$message.success('投产成功') @@ -1043,7 +1048,7 @@ export default { } else { this.checked_baitu = 1 } - production20(this.multipleSelection[i].零件图号, this.multipleSelection[i].规格, this.toolNumValue, this.multipleSelection[i].数据类型, this.multipleSelection[i].投产总数量, this.time_planStart, this.time_planFinish, this.time_gongyiStart, this.time_gongyiFinish, this.time_dingeStart, this.time_dingeFinish, this.time_planpinghengStart, this.time_planpinghengFinish, this.time_machiningStart, this.time_machiningFinish, this.time_planStart, this.multipleSelection[i].checked_waixie, this.multipleSelection[i].checked_dailiao, this.id, this.multipleSelection[i].材料流水号, this.radio, this.checked_gaonandu, this.multipleSelection[i].checked_zhaoji, this.checked_baitu, this.UrgentItem).then(response => { + production20(this.multipleSelection[i].零件图号, this.multipleSelection[i].规格, this.toolNumValue, this.multipleSelection[i].数据类型, this.multipleSelection[i].投产总数量, this.time_planStart, this.time_planFinish, this.time_gongyiStart, this.time_gongyiFinish, this.time_dingeStart, this.time_dingeFinish, this.time_planpinghengStart, this.time_planpinghengFinish, this.time_machiningStart, this.time_machiningFinish, this.time_planStart, this.multipleSelection[i].checked_waixie, this.multipleSelection[i].checked_dailiao, this.id, this.multipleSelection[i].材料流水号, this.radio, this.checked_gaonandu, this.multipleSelection[i].checked_zhaoji, this.checked_baitu, this.UrgentItem, this.multipleSelection[i].是否加急件).then(response => { this.result += parseInt(response.data[0].result) if (this.result === this.multipleSelection.length) { this.$message.success('投产成功') @@ -1091,7 +1096,7 @@ export default { } else { this.checked_baitu = 1 } - production10(this.multipleSelection[i].组件零件基本件流水号, this.multipleSelection[i].投产类型流水号, this.multipleSelection[i].数据类型, this.multipleSelection[i].投产总数量, this.time_planStart, this.time_planFinish, this.time_gongyiStart, this.time_gongyiFinish, this.time_dingeStart, this.time_dingeFinish, this.time_planpinghengStart, this.time_planpinghengFinish, this.time_machiningStart, this.time_machiningFinish, this.time_planStart, this.multipleSelection[i].checked_waixie, this.multipleSelection[i].checked_dailiao, this.id, this.multipleSelection[i].材料流水号, this.radio, this.checked_gaonandu, this.multipleSelection[i].checked_zhaoji, this.checked_baitu, this.UrgentItem).then(response => { + production10(this.multipleSelection[i].组件零件基本件流水号, this.multipleSelection[i].投产类型流水号, this.multipleSelection[i].数据类型, this.multipleSelection[i].投产总数量, this.time_planStart, this.time_planFinish, this.time_gongyiStart, this.time_gongyiFinish, this.time_dingeStart, this.time_dingeFinish, this.time_planpinghengStart, this.time_planpinghengFinish, this.time_machiningStart, this.time_machiningFinish, this.time_planStart, this.multipleSelection[i].checked_waixie, this.multipleSelection[i].checked_dailiao, this.id, this.multipleSelection[i].材料流水号, this.radio, this.checked_gaonandu, this.multipleSelection[i].checked_zhaoji, this.checked_baitu, this.UrgentItem, this.multipleSelection[i].是否加急件).then(response => { this.result += parseInt(response.data[0].result) if (this.result === this.multipleSelection.length) { this.$message.success('投产成功') @@ -1140,6 +1145,11 @@ export default { } } }, + tableRowClassName({ row }) { + if (row.是否加急件 === '1') { + return 'IsUrgentItem' + } + }, // 打回档案 handleDele(index, row, formName) { this.count2 = this.count2 + 1 @@ -1248,3 +1258,8 @@ export default { /*margin-left: 120px;*/ } + diff --git a/src/views/ManufacturingCenter/MaterialArrival/index.vue b/src/views/ManufacturingCenter/MaterialArrival/index.vue index 640fa768..d4dafd3d 100644 --- a/src/views/ManufacturingCenter/MaterialArrival/index.vue +++ b/src/views/ManufacturingCenter/MaterialArrival/index.vue @@ -20,7 +20,7 @@ 查询 - 完成 + 完成 diff --git a/src/views/ManufacturingCenter/PartAssignment/index.vue b/src/views/ManufacturingCenter/PartAssignment/index.vue index 8e79bcae..060763bd 100644 --- a/src/views/ManufacturingCenter/PartAssignment/index.vue +++ b/src/views/ManufacturingCenter/PartAssignment/index.vue @@ -1,6 +1,6 @@ - + - + @@ -228,11 +228,11 @@ - + - + @@ -269,13 +269,13 @@ @@ -34,7 +36,7 @@ 未结算 - + @@ -44,12 +46,12 @@ {{ scope.row.日期.split(' ')[0] }} - + - + - + @@ -71,8 +71,8 @@
- 离线采购计划编号: - + 离线备料单号: + 供应商: { + getTable(this.checkbox_Machine, this.Machine, this.checkbox_Group, this.Group, this.checkbox_number, this.number, '', '', this.pageCurrent10, this.pageSize10, this.ordername, this.order).then(response => { if (response.data.rows.length !== 0) { for (let i = 0; i < response.data.rows.length; i++) { this.tableData10.push({ diff --git a/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue b/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue index 49d42f0f..8592ba4f 100644 --- a/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue +++ b/src/views/WorkshopProcurement/OutsourcingMaterialsInvoice/index.vue @@ -121,7 +121,7 @@ :disabled="Number(scope.row.是否请款)===1" type="text" size="mini" - icon="el-icon-delete" + icon="el-icon-right" style="margin-left: 20px" @click="deleteTable1(scope.row)"/> @@ -142,7 +142,7 @@ - +