From 5a417735d3e98acf2c623e4b8484cd9ad8119152 Mon Sep 17 00:00:00 2001
From: gaojs <757918719@qq.com>
Date: Tue, 30 Apr 2024 11:47:41 +0800
Subject: [PATCH] =?UTF-8?q?Mes=20PDA=20=E5=B7=A5=E5=BA=8F=E8=B4=A8?=
=?UTF-8?q?=E6=A3=80=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/mes/workScheduling/index.ts | 6 +-
src/pages.json | 8 +-
src/pages/mes/workScheduling/qaForm.vue | 267 ++++++++++++++++++
.../reportWorkQualityInspection.vue | 14 +-
4 files changed, 289 insertions(+), 6 deletions(-)
create mode 100644 src/pages/mes/workScheduling/qaForm.vue
diff --git a/src/api/mes/workScheduling/index.ts b/src/api/mes/workScheduling/index.ts
index eb11c1f..eb3da07 100644
--- a/src/api/mes/workScheduling/index.ts
+++ b/src/api/mes/workScheduling/index.ts
@@ -37,7 +37,6 @@ export function getWorkSchedulingInfo(number) {
}
export function getWorkSchedulingDetail(number) {
- //return http.get('/eam/item-apply-request-main/appGetByNumber?number=' + number)
return http.get('/mes/work-scheduling-detail/get-info?schedulingCode=' + number)
}
@@ -60,6 +59,11 @@ export function getEquipmentInfoList(params) {
export function updateWorkSchedulingInfo(params) {
return http.post('/mes/complete-inspect/update', params)
}
+
+export function getQaFormPage(params) {
+ return http.get('/mes/work-scheduling-qaform/page', {params})
+}
+
export interface getConfigProcessWorkerVO {
planDayCode: string
processCode: string
diff --git a/src/pages.json b/src/pages.json
index ffa060b..428418f 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -1949,6 +1949,12 @@
"navigationBarTitleText": "报工质检",
"enablePullDownRefresh": true
}
+ },{
+ "path": "pages/mes/workScheduling/qaForm",
+ "style": {
+ "navigationBarTitleText": "报工质检",
+ "enablePullDownRefresh": true
+ }
},{
"path": "pages/mes/workScheduling/processReportPeopleCheck",
"style": {
@@ -1961,7 +1967,7 @@
"navigationBarTitleText": "工序报工",
"enablePullDownRefresh": true
}
- },,
+ },
{
"path": "pages/mes/productOffline/index",
"style": {
diff --git a/src/pages/mes/workScheduling/qaForm.vue b/src/pages/mes/workScheduling/qaForm.vue
new file mode 100644
index 0000000..3d63049
--- /dev/null
+++ b/src/pages/mes/workScheduling/qaForm.vue
@@ -0,0 +1,267 @@
+
+
+
+
+
+
+
+
+
+
+
+ {{item.qaFormNo}}
+
+
+ {{`${$time.formatDate(item.createTime)}`}}
+
+
+
+ 质检单名称:{{ item.qaFormName }}
+
+
+ 日计划单号:{{ item.planMasterCode }}
+
+
+ 任务工单号:{{ item.schedulingCode }}
+
+
+ 工序编码:{{ item.nodeCode }}
+
+
+ 质检时间:{{`${$time.formatDate(item.qaTime)}`}}
+
+
+ 质检数量:{{ item.qaCount}}
+
+
+ 合格数量:{{ item.qaCountPassed}}
+
+
+ 不合格数量:{{ item.qaCountNotpassed}}
+
+
+ 合格率:{{ item.qaPassRate}}
+
+
+ 状态:
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/mes/workScheduling/reportWorkQualityInspection.vue b/src/pages/mes/workScheduling/reportWorkQualityInspection.vue
index ba29628..1147544 100644
--- a/src/pages/mes/workScheduling/reportWorkQualityInspection.vue
+++ b/src/pages/mes/workScheduling/reportWorkQualityInspection.vue
@@ -304,16 +304,20 @@ function submitQaForm(){
proxy.$modal.alert("合格数量请输入正确的数字");
return
}
- if(form.value.qaCount > planCount.value){
+ if(parseInt(form.value.qaCount) > parseInt(planCount.value)){
proxy.$modal.alert("检查数量不能大于计划数量");
return
}
- if(form.value.qaCountPassed > planCount.value){
+ if(parseInt(form.value.qaCountPassed) > parseInt(planCount.value)){
proxy.$modal.alert("合格数量不能大于计划数量");
return
}
- if(form.value.qaCountPassed > form.value.qaCount){
- proxy.$modal.alert("合格数量不能大于检测数量数量");
+ if(parseInt(form.value.qaCountPassed) > parseInt(planCount.value)){
+ proxy.$modal.alert("合格数量不能大于计划数量");
+ return
+ }
+ if(parseInt(form.value.qaCountPassed) > parseInt(form.value.qaCount)){
+ proxy.$modal.alert("合格数量不能大于检测数量");
return
}
@@ -323,6 +327,8 @@ function submitQaForm(){
loading.value = true
//报工质检状态完成
form.value.qaStatus = '1'
+ //报工质检单状态完成
+ form.value.status = '1'
qaFormApi.create(form.value).then((res) => {
proxy.$modal.closeLoading()
if (res.data) {