From 54ae433c6164582f02e047693d9051b41faa6cbc Mon Sep 17 00:00:00 2001
From: Vergil <974548713@qq.com>
Date: Wed, 20 May 2020 14:38:31 +0800
Subject: [PATCH] =?UTF-8?q?=E5=A7=9C=E7=A6=8F=E5=A3=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/Outsourcing/OutsourcingQCSearch.js | 262 +++++-
.../ProductionPlanQuery/index.vue | 5 +-
.../Outsourcing/OutsourcingQCSearch/index.vue | 836 ++++++++++++++----
.../FundApproval2/index.vue | 6 +-
4 files changed, 932 insertions(+), 177 deletions(-)
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/ManufacturingCenter/ProductionPlanQuery/index.vue b/src/views/ManufacturingCenter/ProductionPlanQuery/index.vue
index 925c603f..ac2a1bf7 100644
--- a/src/views/ManufacturingCenter/ProductionPlanQuery/index.vue
+++ b/src/views/ManufacturingCenter/ProductionPlanQuery/index.vue
@@ -39,7 +39,6 @@
-
{{ scope.row.零件图号 }}
@@ -143,6 +142,10 @@ export default {
})
},
machineChange() {
+ this.total = 0
+ this.pageSize = 20
+ this.pageCurrent = 1
+ this.tableData = []
this.searchTable()
},
exportTable() {
diff --git a/src/views/Outsourcing/OutsourcingQCSearch/index.vue b/src/views/Outsourcing/OutsourcingQCSearch/index.vue
index 942a7e79..09742ffb 100644
--- a/src/views/Outsourcing/OutsourcingQCSearch/index.vue
+++ b/src/views/Outsourcing/OutsourcingQCSearch/index.vue
@@ -1,115 +1,218 @@
-
-
-
- 查询
-
-
-
+
+
+
+ {{ item.label }}
+ {{ item.name }}
+
+
+
+
+
+
+
+
+ ~
+
+
+
+
+
+ 查询
+
+ 导出
+
+
+
+
+
+
- {{ scope.row.外协到货单编号 }}
+ {{ scope.row.机床图号 }}
-
+
- {{ scope.row.外协厂家名称 }}
+ {{ scope.row.机床名称 }}
-
+
- {{ scope.row.操作日期.split(' ')[0] }}
+ {{ scope.row.组号 }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- {{ scope.row.零件名称 }}
-
-
-
+
{{ scope.row.零件图号 }}
-
+
- {{ scope.row.批次数量 }}
+ {{ scope.row.零件名称 }}
-
+
+
+ {{ scope.row.零件数量 }}
+
+
+
+
+ {{ scope.row.规格或材料 }}
+
+
+
+
+ {{ scope.row.工艺名称 }}
+
+
+
+
+
+
+
+
{{ scope.row.姓名 }}
-
+
- {{ scope.row.数量 || 0 }}
+
+
+
+
+ {{ scope.row.数量 }}
+
-
+
- {{ scope.row.不合格数量 || 0 }}
+
+
+
+
+
+
+ {{ scope.row.是否合格 ===1 ? '合格' : '不合格' }}
+
-
+
- {{ scope.row.不合格原因文本 }}
+
+
+
+
+ {{ scope.row.不合格数量 = '' }}
+
+
+ {{ scope.row.不合格数量 }}
+
-
+
- {{ scope.row.不合格处理文本 }}
+
+
+
+
+
+
+ {{ scope.row.不合格原因 = null }}
+
+
+ {{ scope.row.不合格原因文本 }}
+
-
+
- {{ scope.row.操作时间.split(' ')[0] || '—' }}
+
+
+
+
+
+
+ {{ scope.row.处理结果 = null }}
+
+
+ {{ scope.row.不合格处理文本 }}
+
-
+
+
+ {{ scope.row.操作工姓名 }}
+
+
+
+
+ {{ scope.row.操作时间 }}
+
+
+
+
+
+
+
+
+ {{ scope.row.备注 }}
+
+
+
+
+
+ {{ scope.row.编辑人 }}
+
+
+
+
+ {{ scope.row.编辑时间 ? scope.row.编辑时间.split(' ')[0] : scope.row.编辑时间 }}
+
+
+
-
-
-
-
- {{ scope.row.类别 }}
-
-
-
-
- {{ scope.row.数值 }}
-
-
-
-
- {{ scope.row.零件数量 }}
-
-
-
- 形位
-
-
-
-
-
-
-
+
- 尺寸
+ 形位
-
+
-
+
- 外观
+ 尺寸
+
+
+
+
+ 外观
+
+
+
+
+
+ 查看图片
+
+
+
+
+
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 @@
- 查看详情
+ 查看详情
- 通过
- 不通过
+ 通过
+ 不通过