diff --git a/src/api/Inventory/SelfMadePartsWarehouseOut.js b/src/api/Inventory/SelfMadePartsWarehouseOut.js index 51723651..e726036e 100644 --- a/src/api/Inventory/SelfMadePartsWarehouseOut.js +++ b/src/api/Inventory/SelfMadePartsWarehouseOut.js @@ -45,7 +45,7 @@ export function searchgroup(num, pageCurrent, pageSize) { }) } // 获取表单 -export function searchdata(entryNameValue_check, entryNameValue, machineToolValue_check, machineToolValue, groupNumberValue_check, groupNumberValue, partNumber_check, partNumber, pageCurrent, pageSize) { +export function searchdata(entryNameValue_check, entryNameValue, machineToolValue_check, machineToolValue, groupNumberValue_check, groupNumberValue, partNumber_check, partNumber, time_check, time1, time2, pageCurrent, pageSize) { return request({ url: '', method: 'post', @@ -54,7 +54,7 @@ export function searchdata(entryNameValue_check, entryNameValue, machineToolValu ModularID: router.currentRoute.path, type: '1', name: '自制件出库_查询数据', - param: '项目流水号_check=' + entryNameValue_check + '&项目流水号=' + entryNameValue + '&机床流水号_check=' + machineToolValue_check + '&机床流水号=' + machineToolValue + '&组件流水号_check=' + groupNumberValue_check + '&组件流水号=' + groupNumberValue + '&零件图号_check=' + partNumber_check + '&零件图号=' + partNumber, + param: '项目流水号_check=' + entryNameValue_check + '&项目流水号=' + entryNameValue + '&机床流水号_check=' + machineToolValue_check + '&机床流水号=' + machineToolValue + '&组件流水号_check=' + groupNumberValue_check + '&组件流水号=' + groupNumberValue + '&零件图号_check=' + partNumber_check + '&零件图号=' + partNumber + '&入库时间_check=' + time_check + '&入库时间开始=' + time1 + '&入库时间结束=' + time2, Pagination: pageCurrent + '&' + pageSize } }) diff --git a/src/api/Outsourcing/OutsourcingQCSearch.js b/src/api/Outsourcing/OutsourcingQCSearch.js index aaaf8757..08802b39 100644 --- a/src/api/Outsourcing/OutsourcingQCSearch.js +++ b/src/api/Outsourcing/OutsourcingQCSearch.js @@ -2,8 +2,8 @@ import request from '@/utils/request' import state from '@/store' import router from '@/router' -// 查询外协到货单列表 -export function searchTable1(...params) { +// 初始化机床项目 +export function initProject() { return request({ url: '', method: 'post', @@ -11,13 +11,12 @@ 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]}` + name: 'PDM_项目名称_查询数据' } }) } -// 查询外协到货单明细 -export function searchTable2(...params) { +// 初始化质检类型 +export function QualityType() { return request({ url: '', method: 'post', @@ -25,8 +24,201 @@ export function searchTable2(...params) { UserID: state.state.user.id, ModularID: router.currentRoute.path, type: '1', - name: '车间生产管理_外协到货单明细_查询数据', - param: `外协到货单流水号=${params[0]}` + name: '质检管理_质检类型_查询数据' + } + }) +} +// 初始化不合格原因 +export function initReasonsForNonconformity() { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '质检管理_不合格原因_查询数据' + } + }) +} +// 初始化不合格处理 +export function initDisqualificationTreatment() { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '质检管理_不合格处理_查询数据' + } + }) +} +// 初始化质检人员 +export function initPerson() { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '质检管理_质量情况_查询数据_质检人员' + } + }) +} +// 组件查询 +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 searchparts(num) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '质检管理_零件信息_查询数据', + param: '组件流水号=' + num + } + }) +} +// 工序查询 +export function searchprocedure(num) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '质检管理_工序信息_查询数据', + param: '工艺计划流水号=' + num + } + }) +} +// 投产数量查询 +export function searchproceductnum(num) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '质检管理_投产数量_查询数据', + param: '工艺计划流水号=' + num + } + }) +} + +// 操作工查询 +export function searchoperators(num) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '车间生产管理_工序质检_查询人员数据_电脑端', + param: '工序流水号=' + num + } + }) +} +// 新增序间检验 +export function submitTable(...param) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '2', + name: '车间生产管理_质检管理_新增', + param: `零部件流水号=${param[0]}&质检类型代码=${param[1]}&数量=${param[2]}&是否合格=${param[3]}&人员编号=${param[4]}&不合格数量=${param[5]}&不合格原因=${param[6]}&不合格处理=${param[7]}&备注=${param[8]}&操作工=${param[9]}&编辑人员编号=${param[10]}` + } + }) +} +export function confirmEdit(...param) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '2', + name: '车间生产管理_质检管理_编辑处理', + param: `质检流水号=${param[0]}&质检类型代码=${param[1]}&零部件流水号=${param[2]}&是否合格=${param[3]}&数量=${param[4]}&不合格数量=${param[5]}&不合格原因=${param[6]}&不合格处理=${param[7]}&备注=${param[8]}&编辑人员编号=${param[9]}` + } + }) +} + +export function deleterow(...param) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '2', + name: '车间生产管理_质检管理_删除处理', + param: `质检流水号=${param[0]}&质检类型代码=${param[1]}&零部件流水号=${param[2]}&数量=${param[3]}` + } + }) +} +// 质检管理_质量情况_查询数据 +export function selecttable(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8, pageCurrent, pageSize) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '质检管理_工序外协件_查询数据', + param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&零件名称_check=' + check3 + '&零件名称=' + value3 + + '&质检类型代码_check=' + check4 + '&质检类型代码=' + value4 + '&开始时间_check=' + check5 + '&开始时间=' + value5 + '&结束时间_check=' + check6 + '&结束时间=' + value6 + '&质检情况_check=' + check7 + '&质检情况=' + value7 + '&人员编号_check=' + check8 + '&人员编号=' + value8 + `&PageCurrent=${pageCurrent}&PageSize=${pageSize}&PageCount=1111=int=output&ItemCount=1111=int=output` + } + }) +} +// 质检管理_质量情况_查询数据 +export function selecttable22(check1, value1, check2, value2, check3, value3, check4, value4, check5, value5, check6, value6, check7, value7, check8, value8) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '质检管理_质量情况_查询数据', + param: '机床流水号_check=' + check1 + '&机床流水号=' + value1 + '&组件流水号_check=' + check2 + '&组件流水号=' + value2 + '&零件名称_check=' + check3 + '&零件名称=' + value3 + + '&质检类型代码_check=' + check4 + '&质检类型代码=' + value4 + '&开始时间_check=' + check5 + '&开始时间=' + value5 + '&结束时间_check=' + check6 + '&结束时间=' + value6 + '&质检情况_check=' + check7 + '&质检情况=' + value7 + '&人员编号_check=' + check8 + '&人员编号=' + value8 + } + }) +} +export function searchPic(num) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '质检管理_图片_查询数据', + param: '质检流水号=' + num } }) } @@ -39,8 +231,58 @@ export function searchTableDetail(...params) { UserID: state.state.user.id, ModularID: router.currentRoute.path, type: '1', - name: '质检管理_外协质检数据_查询数据', - param: `检测类型=${params[0]}&外协到货单明细流水号=${params[1]}` + name: '质检管理_质检数据_查询数据', + param: `检测类型=${params[0]}&质检流水号=${params[1]}` + } + }) +} +export function searchData() { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '车间生产管理工艺_加工顺序调整_查询正在加工零件工序_NEW' + } + }) +} +export function searchData1() { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: 'MES_机加工MES_记录零件待加工显示_NEW' + } + }) +} +export function processingStatus(num) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '1', + name: '车间生产管理_成组配套加工进度_查询数据', + param: '工艺计划流水号=' + num + } + }) +} +export function Prohibit(num, num1) { + return request({ + url: '', + method: 'post', + data: { + UserID: state.state.user.id, + ModularID: router.currentRoute.path, + type: '2', + name: '质检管理_质检情况_禁用', + param: '质检流水号=' + num + '&质检类型代码=' + num1 } }) } diff --git a/src/views/Assembly/AssemblyPlan/index.vue b/src/views/Assembly/AssemblyPlan/index.vue index 0045fbaf..c58cdcb3 100644 --- a/src/views/Assembly/AssemblyPlan/index.vue +++ b/src/views/Assembly/AssemblyPlan/index.vue @@ -126,7 +126,6 @@ export default { }, searchTable() { this.loading = true - console.log(this.startEndDate) if (this.startEndDate === '' || this.startEndDate === null || this.startEndDate[0] === '' || this.startEndDate[1] === '') { this.check2 = 0 this.startEndDate = '' diff --git a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue index 5a42429e..02bf0b95 100644 --- a/src/views/Assembly/QualityInspectionInformationInquiry/index.vue +++ b/src/views/Assembly/QualityInspectionInformationInquiry/index.vue @@ -27,7 +27,6 @@ :label="item.label" :value="item.value"/> - - - - {{ scope.row.批次数量 }} + {{ scope.row.投产数 }} @@ -446,7 +443,7 @@ - {{ scope.row.批次数量 }} + {{ scope.row.投产数 }} @@ -770,8 +767,6 @@ export default { 'id' // 人员编号 ]) }, - created() { - }, mounted() { this.initProject() this.QualityType() @@ -782,7 +777,6 @@ export default { // 表内编辑取消 cancel(row) { row.edit = !row.edit - console.log(row, 8888) row.备注 = row.备注_原 row.不合格数量 = row.不合格数量_原 row.是否合格 = row.是否合格_原 @@ -792,7 +786,6 @@ export default { }, // 表内编辑确定 confirmEdit(row) { - console.log(this.$store.state.user.id, 787878) confirmEdit(row.质检流水号, row.质检类型代码, row.零部件流水号, row.是否合格, row.数量, row.不合格数量, row.不合格原因, row.处理结果, row.备注, this.$store.state.user.id).then(response => { if (response.data[0].result === '1') { this.$message.success('编辑成功') @@ -805,8 +798,6 @@ export default { }, // 删除质检 deleterow(row) { - // this.plan = row.计划流水号 - console.log(row, 4545) this.$confirm('是否删除该质检记录?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -949,31 +940,6 @@ export default { var Data = this.CreateData('2001', '报表_质检管理_质量情况_查询数据', param) this.exportExcel_NPOI(Data) }, - // exportExcel1() { - // if (this.machineNumberValue !== '' && this.machineNumberValue !== null) { this.check1 = 1 } else { this.check1 = 0 } - // if (this.groupNumberValue !== '' && this.groupNumberValue !== null) { this.check2 = 1 } else { this.check2 = 0 } - // if (this.SpareParts !== '' && this.SpareParts !== null) { this.check3 = 1 } else { this.check3 = 0 } - // if (this.QualityTypeValue !== '' && this.QualityTypeValue !== null) { this.check4 = 1 } else { this.check4 = 0 } - // if (this.startTime !== '' && this.startTime !== null) { this.check5 = 1 } else { this.check5 = 0 } - // if (this.endTime !== '' && this.endTime !== null) { this.check6 = 1 } else { this.check6 = 0 } - // if (this.qualityInspectionValue !== '' && this.qualityInspectionValue !== null) { this.check7 = 1 } else { this.check7 = 0 } - // if (this.personNum !== '' && this.personNum !== null) { this.check8 = 1 } else { this.check8 = 0 } - // selecttable22(this.check1, this.machineNumberValue, this.check2, this.groupNumberValue, this.check3, this.SpareParts, this.check4, this.QualityTypeValue, this.check5, this.startTime, this.check6, this.endTime, this.check7, this.qualityInspectionValue, this.check8, this.personNum).then(response => { - // import('@/vendor/Export2Excel').then(excel => { - // const tHeader = ['是否禁用', '机床图号', '机床名称', '组号', '零件图号', '零件名称', '零件数量', '规格或材料', '工序名称', '质检类型', '检验数量', '不合格数量', '不合格原因', '处理结果', '质检时间', '备注'] - // const filterVal = ['禁用情况', '机床图号', '机床名称', '组号', '零件图号', '零件名称', '零件数量', '规格或材料', '工艺名称', '质检类型', '数量', '不合格数量', '不合格原因文本', '不合格处理文本', '操作时间', '备注'] - // const list = response.data - // const data = this.formatJson(filterVal, list) - // excel.export_json_to_excel({ - // header: tHeader, - // data, - // filename: '质检情况表', - // autoWidth: true, - // bookType: 'xlsx' - // }) - // }) - // }) - // }, fetchData() { searchData().then(response => { this.tableData10 = response.data @@ -982,7 +948,6 @@ export default { }, fetchData1() { searchData1().then(response => { - console.log(response) this.tableData20 = response.data this.total2 = response.data.total }) @@ -1070,7 +1035,6 @@ export default { searchTableDetail(type, num).then(response => { this.gridData = response.data }) - console.log(type) }, selecttable() { this.loading = true @@ -1094,7 +1058,6 @@ export default { this.$set(v, '不合格原因文本_原', v.不合格原因文本) this.$set(v, '不合格处理文本_原', v.不合格处理文本) }) - console.log(this.tableData1, 8979) this.loading = false this.total = parseInt(response.data.output[0].ItemCount) }) @@ -1103,10 +1066,8 @@ export default { this.dialogFormVisible = true this.urls = [] searchPic(row.质检流水号).then(response => { - // this.URL = readFile + response.data[0].文件标识 + '.' + response.data[0].文件后缀 for (let i = 0; i < response.data.length; i++) { if (response.data[i].文件内容 !== null) { - // this.urls.push(readFile + response.data[i].文件标识 + '.' + response.data[i].文件后缀) this.urls.push('data:image/png;base64,' + response.data[i].文件内容) } } @@ -1130,24 +1091,6 @@ export default { this.pageCurrent = val this.selecttable() } - // handleSizeChange1(val) { - // this.pageCurrent1 = 1 - // this.pageSize1 = val - // this.fetchData() - // }, - // handleCurrentChange1(val) { - // this.pageCurrent1 = val - // this.fetchData() - // }, - // handleSizeChange2(val) { - // this.pageCurrent2 = 1 - // this.pageSize2 = val - // this.fetchData1() - // }, - // handleCurrentChange2(val) { - // this.pageCurrent2 = val - // this.fetchData1() - // } } } diff --git a/src/views/Inventory/SelfMadePartsWarehouseOut/index.vue b/src/views/Inventory/SelfMadePartsWarehouseOut/index.vue index 88cebc3b..7f359689 100644 --- a/src/views/Inventory/SelfMadePartsWarehouseOut/index.vue +++ b/src/views/Inventory/SelfMadePartsWarehouseOut/index.vue @@ -2,13 +2,6 @@ - - - - - - - + 查询 出库 - + @@ -54,6 +56,11 @@ {{ scope.row.零件名称 }} + + + {{ scope.row.入库时间 }} + + {{ scope.row.出库数量1 }} @@ -69,16 +76,6 @@ - - - - - - - - - - 共{{ totalnumber }}条信息,选择{{ gouxuan }}条 @@ -95,7 +92,6 @@ - diff --git a/src/views/WorkshopProcurement/FundApproval2/index.vue b/src/views/WorkshopProcurement/FundApproval2/index.vue index 3ea32627..51b405e6 100644 --- a/src/views/WorkshopProcurement/FundApproval2/index.vue +++ b/src/views/WorkshopProcurement/FundApproval2/index.vue @@ -62,10 +62,10 @@ - 查看详情 + 查看详情 - 通过 - 不通过 + 通过 + 不通过 diff --git a/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue b/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue index 2db27b80..564261b1 100644 --- a/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue +++ b/src/views/WorkshopProcurement/InvoiceSettlementApplication1/index.vue @@ -1,7 +1,6 @@ - 查询 到票 @@ -10,38 +9,6 @@ 到票结算申请单 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {{ scope.row.供应商名称 }} @@ -137,17 +104,6 @@ @current-change="handleCurrentChange1"/> - - - - - - - - - - - @@ -176,11 +132,6 @@ {{ scope.row.备注 }} - - - - - {{ scope.row.采购合同编号 || scope.row.离线合同编号 }} @@ -299,7 +250,7 @@ - + {{ scope.row.供应商名称 }} @@ -584,6 +535,7 @@ export default { if (response.data[0].result === '1') { this.$message.success('删除成功') this.searchTable1() + this.tableData2 = [] } else { this.$message.error('删除失败') } }) }).catch(() => { @@ -659,7 +611,6 @@ export default { this.supplierValue = row.供应商流水号 Number(row.是否提交申请) === 1 ? this.disabled = true : this.disabled = false searchTable2(row.发票结算申请单流水号).then(response => { - console.log(response, 123) this.tableData2 = response.data }) }, @@ -694,7 +645,6 @@ export default { searchTable02(row) { this.tableData02 = [] this.tableData03 = [] - console.log(row, 222) if (this.contractType === '采购合同') { if (row.模板类型 === 4) { this.type = row.模板类型 @@ -703,17 +653,14 @@ export default { this.$set(data, '本次到票数量', 0) data.本次到票数量 = data.已到货数量 - data.到票数量 this.tableData03.push(data) - console.log(this.tableData03, 111) }) }) } else { searchPurchaseDetail(row.采购合同流水号).then(response => { - console.log(response, 88) response.data.map(data => { this.$set(data, '本次到票数量', 0) data.本次到票数量 = data.已到货数量 - data.到票数量 this.tableData02.push(data) - console.log(this.tableData02, 111) }) }) } @@ -725,12 +672,10 @@ export default { this.tableData02.push(data) }) }) - console.log(this.tableData03, 112) } }, handleSelectionChange(val) { this.group = val - console.log(this.group, 'group') }, submitAdd2() { // 追加入库单 if (this.group.length === 0) { diff --git a/src/views/WorkshopProcurement/ProjectTotalSearch/index.vue b/src/views/WorkshopProcurement/ProjectTotalSearch/index.vue index 603b54b5..caa9d3ed 100644 --- a/src/views/WorkshopProcurement/ProjectTotalSearch/index.vue +++ b/src/views/WorkshopProcurement/ProjectTotalSearch/index.vue @@ -1,7 +1,6 @@ - - + -