diff --git a/src/api/ManufacturingCenter/CreatePreparationBill.js b/src/api/ManufacturingCenter/CreatePreparationBill.js index 68838bd2..836545fd 100644 --- a/src/api/ManufacturingCenter/CreatePreparationBill.js +++ b/src/api/ManufacturingCenter/CreatePreparationBill.js @@ -1,14 +1,14 @@ import request from '@/utils/request' // 查询零件 -export function searchtable(num1, num2, num3, num4, pageCurrent, pageSize) { +export function searchtable(num1, num2, num3, num4, pageCurrent, pageSize, ordername, order) { return request({ url: '', method: 'post', data: { type: '1', name: '车间生产管理工艺_零件工艺计划_编制工艺_备料零件查询', - param: '零件图号_check=' + num1 + '&零件图号=' + num2 + '&备料打印_check=' + num3 + '&备料打印=' + num4 + '&备料到货=0', + param: '零件图号_check=' + num1 + '&零件图号=' + num2 + '&备料打印_check=' + num3 + '&备料打印=' + num4 + '&备料到货=0' + '&排序名称=' + ordername + '&排序方式=' + order, Pagination: pageCurrent + '&' + pageSize } }) diff --git a/src/api/MarketingCenter/CreateProject.js b/src/api/MarketingCenter/CreateProject.js index d8ddfc41..56b739f1 100644 --- a/src/api/MarketingCenter/CreateProject.js +++ b/src/api/MarketingCenter/CreateProject.js @@ -17,8 +17,7 @@ export function searchTable1(pageCurrent, pageSize, num1, num3, num5, num6, num7 data: { type: '1', name: '合同信息管理_合同信息_制造部_查询_新', - param: '合同ID=' + num1 + '=int&项目流水号_check=' + num3 + '=int&开始日期_check=' + num5 + '=int&结束日期_check=' + num6 + '=int&开始日期=' + num7 + '=date&结束日期=' + num8 + '=date&机床型号_check=' + num9 + '=int&机床型号=' + num10 + '=string&合同编号_check=' + num11 + '=int&合同编号=' + num12 + '=string', - Pagination: pageCurrent + '&' + pageSize + param: '合同ID=' + num1 + '=int&项目流水号_check=' + num3 + '=int&开始日期_check=' + num5 + '=int&结束日期_check=' + num6 + '=int&开始日期=' + num7 + '=date&结束日期=' + num8 + '=date&机床型号_check=' + num9 + '=int&机床型号=' + num10 + '=string&合同编号_check=' + num11 + '=int&合同编号=' + num12 + '=string' } }) } diff --git a/src/api/WorkshopProcurement/CreatingPurchasingMaterials.js b/src/api/WorkshopProcurement/CreatingPurchasingMaterials.js index ef771d11..86973603 100644 --- a/src/api/WorkshopProcurement/CreatingPurchasingMaterials.js +++ b/src/api/WorkshopProcurement/CreatingPurchasingMaterials.js @@ -64,15 +64,15 @@ export function searchPurchasedMaterials(check1, name) { }) } // 查询采购单 -export function searchPurchaseOrder(pageCurrent, pageSize, check1, num, check2, name, check3, name2) { +export function searchPurchaseOrder(check1, num, check2, name, check3, name2, checktime, starttime, endtime) { return request({ url: '', method: 'post', data: { type: '1', name: '备料管理_采购计划_查询数据', - param: `采购单号_check=${check1}&采购单号=${num}&供应商名称_check=${check2}&供应商名称=${name}&供应商流水号_check=${check3}&供应商流水号=${name2}`, - Pagination: pageCurrent + '&' + pageSize + param: `采购单号_check=${check1}&采购单号=${num}&供应商名称_check=${check2}&供应商名称=${name}&供应商流水号_check=${check3}&供应商流水号=${name2}&时间_check=${checktime}&开始时间=${starttime}&结束时间=${endtime}` + // Pagination: pageCurrent + '&' + pageSize } }) } diff --git a/src/utils/request.js b/src/utils/request.js index 924cfa7a..aae52c5b 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -7,6 +7,7 @@ export const name3 = `OP2000` export const name4 = `OP9999` // 创建axios实例 + 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 @@ -19,6 +20,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 // 技术中心程序发布时要更改下面所有的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/ManufacturingCenter/CreatePreparationBill/index.vue b/src/views/ManufacturingCenter/CreatePreparationBill/index.vue index a6e55c52..595f97a0 100644 --- a/src/views/ManufacturingCenter/CreatePreparationBill/index.vue +++ b/src/views/ManufacturingCenter/CreatePreparationBill/index.vue @@ -19,13 +19,27 @@ 打印自家备料单 + 导出 导出 - + + 未分配 - + - + + @@ -133,13 +148,30 @@ export default { tableData: [], // 表格数据 total: null, // 总条数 pageSize: 30, // 每页显示条数 - pageCurrent: 1 // 后台获取页 + pageCurrent: 1, // 后台获取页 + ordername: '', + order: '' } }, created() { this.searchTable() }, methods: { + sortChange(column, prop, order) { + console.log(column + '-' + column.prop + '-' + column.order, 11111) + if (column.prop === '零件名称') { + this.ordername = 1 + } else if (column.prop === '零件图号') { this.ordername = 2 } else { + this.ordername = '' + } + console.log(this.ordername, 9990999) + if (column.order === 'ascending') { + this.order = 1 + } else if (column.order === 'descending') { this.order = 2 } else { + this.order = '' + } + this.searchTable() + }, exportTable() { if (this.tableData2.length === 0) { this.$message.warning('暂无数据') @@ -164,8 +196,7 @@ export default { } else { this.partNamecheck = false } - searchtable(this.partNamecheck, this.partName, !this.all, 0, this.pageCurrent, this.pageSize).then(response => { - console.log(response) + searchtable(this.partNamecheck, this.partName, !this.all, 0, this.pageCurrent, this.pageSize, this.ordername, this.order).then(response => { if (response.data.total === 0) { this.loading = false } else { diff --git a/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue b/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue index f55d2415..f42b1569 100644 --- a/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue +++ b/src/views/ManufacturingCenter/MonthEndHourAccounting/index.vue @@ -69,7 +69,7 @@ diff --git a/src/views/MarketingCenter/CreateProject/index.vue b/src/views/MarketingCenter/CreateProject/index.vue index 892d0b23..4201b2bf 100644 --- a/src/views/MarketingCenter/CreateProject/index.vue +++ b/src/views/MarketingCenter/CreateProject/index.vue @@ -9,7 +9,16 @@ :label="item.label" :value="item.value"/> - + + + @@ -34,6 +43,7 @@ 新增 + @@ -45,7 +55,7 @@ :row-key="getRowKeys" :expand-row-keys="expands" style="width: 100%" - height="500" + height="700" border stripe size="mini" @@ -95,16 +105,16 @@ -
- -
+ + + + + + + + + + @@ -131,12 +141,12 @@ size="mini" type="text" icon="el-icon-edit" - @click="editMachine(scope.row);flag = 2">编辑 + @click="editMachine(scope.row);flag = 2"/> 删除 + @click="deleteMachine(scope.row)"/> @@ -221,6 +231,7 @@ export default { machine: '', startTime: '', endTime: '', + date: null, PageCurrent: 1, PageSize: 10, total: null, @@ -266,7 +277,7 @@ export default { }, created() { this.init() - this.fetchTableData1() + // this.fetchTableData1() }, methods: { init() { @@ -282,13 +293,37 @@ export default { this.fetchTableData1() }, fetchTableData1() { + if (this.date !== null) { + this.startTime = this.datetoYYMMDD(this.date[0]) + this.endTime = this.datetoYYMMDD(this.date[1]) + } else { + this.startTime = '' + this.endTime = '' + } if (this.contractNumber === '' || this.contractNumber === null) { this.contractNumber_check = 0 } else { this.contractNumber_check = 1 } if (this.entryNameValue === '' || this.entryNameValue === null) { this.entryNameValue_check = 0 } else { this.entryNameValue_check = 1 } 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 } if (this.machine === '' || this.machine === null) { this.machine_check = 0 } else { this.machine_check = 1 } this.listLoading = true - this.getTable(searchTable1, [this.PageCurrent, this.PageSize, this.entryNameValue, this.entryNameValue_check, this.startTime_check, this.endTime_check, this.startTime, this.endTime, this.machine_check, this.machine, this.contractNumber_check, this.contractNumber], ['tableData1', 'total', 'listLoading']) + searchTable1(this.PageCurrent, this.PageSize, this.entryNameValue, this.entryNameValue_check, this.startTime_check, this.endTime_check, this.startTime, this.endTime, this.machine_check, this.machine, this.contractNumber_check, this.contractNumber).then(response => { + this.tableData1 = response.data + this.listLoading = false + }) + // this.getTable(searchTable1, [this.PageCurrent, this.PageSize, this.entryNameValue, this.entryNameValue_check, this.startTime_check, this.endTime_check, this.startTime, this.endTime, this.machine_check, this.machine, this.contractNumber_check, this.contractNumber], ['tableData1', 'total', 'listLoading']) + }, + // 标准时间转年月日 + datetoYYMMDD(date) { + var y = date.getFullYear() + var m = date.getMonth() + 1 + m = m < 10 ? ('0' + m) : m + var d = date.getDate() + d = d < 10 ? ('0' + d) : d + // var h = date.getHours() + // var minute = date.getMinutes() + // minute = minute < 10 ? ('0' + minute) : minute + // return y + '-' + m + '-' + d + ' ' + h + ':' + minute + return y + '-' + m + '-' + d }, selectMachine(row) { this.projectNum = row.项目流水号 @@ -421,7 +456,21 @@ export default { diff --git a/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue b/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue index cbb498da..0aaae272 100644 --- a/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue +++ b/src/views/WorkshopProcurement/CreatingPurchasingMaterials/index.vue @@ -57,7 +57,7 @@
- + + 日期 + + 查询 新增 选入 - 保存 + 保存
- + - + - + + - + + + + + + + + + + + +
- +