From 4d1b80b9405e8081050eb314233a6a705af8a6ce Mon Sep 17 00:00:00 2001
From: huangli865118801 <865118801@qq.com>
Date: Mon, 16 Aug 2021 16:51:59 +0800
Subject: [PATCH] ddd
---
api/user.js | 3 ++-
pages/index/index.vue | 4 +--
pages/rawMaterialInfo/rawMaterialInfo.vue | 32 +++++++++++++++--------
3 files changed, 25 insertions(+), 14 deletions(-)
diff --git a/api/user.js b/api/user.js
index fe5f7a5..ccaa80f 100644
--- a/api/user.js
+++ b/api/user.js
@@ -513,4 +513,5 @@ export function staff(data) {
method: "get",
data
});
-}
\ No newline at end of file
+}
+
diff --git a/pages/index/index.vue b/pages/index/index.vue
index c00d2b7..78a4a2c 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -67,12 +67,12 @@
成品巡检
-
+
diff --git a/pages/rawMaterialInfo/rawMaterialInfo.vue b/pages/rawMaterialInfo/rawMaterialInfo.vue
index d3dba19..0009e2a 100644
--- a/pages/rawMaterialInfo/rawMaterialInfo.vue
+++ b/pages/rawMaterialInfo/rawMaterialInfo.vue
@@ -66,7 +66,7 @@
抽样标准:
点击查看
-
+
{{item.standard}}
@@ -94,24 +94,24 @@
-
-
+
+
检验结果:
- {{result[froms.result-1]}}
+ {{result[resltIds]}}
-
+
检验不合格描述:
-
+
@@ -127,8 +127,10 @@
export default {
data() {
return {
+ info:{},
itemList: [],
result: ["合格", "不合格"],
+ resltIds:0,
detectionMode: ["全检", "抽检"],
detectionModeIndex: 0,
determine: ["合格", "不合格"],
@@ -168,9 +170,9 @@
onLoad(e) {
this.CyInfo = JSON.parse(decodeURIComponent(e.planInfo));
this.type = this.CyInfo.examine_status
- this.check_status = this.CyInfo.check_status
+ this.check_status = this.CyInfo.m_id
this.getitem()
- if (this.check_status == 2) {
+ if (this.check_status) {
this.getInfo()
}
console.log('检验项', this.jyxItem)
@@ -183,7 +185,7 @@
this.item.push({
check_item: res.item[b],
standard: res.standard[b],
- check_number: 0,
+ check_number: '',
status: 0,
check_result: '',
check_tool: '',
@@ -197,7 +199,14 @@
rawFormDetail({
purchase_id: this.CyInfo.id
}).then(res => {
-
+ this.info=res
+ this.item=this.info.item;
+ this.froms.dimensional_inspection=this.info.dimensional_inspection
+ this.froms.order_no=this.info.data.order_no
+ this.froms.arrival_quantity=this.info.data.arrival_quantity
+ this.froms.number_of_inspections=this.info.data.number_of_inspections
+ this.resltIds=this.info.data.result-1
+ console.log("原材料检验详情",res)
})
},
bindDetectionMode: function(e) {
@@ -210,7 +219,7 @@
this.item[index].status = e.target.value
},
bindResult(e) {
- this.froms.result = e.target.value + 1
+ this.resltIds = e.target.value
},
checkBtn(index) {
this.item[index].check == false ? this.item[index].check = true : this
@@ -225,6 +234,7 @@
this.froms.purchase_id = this.CyInfo.id;
this.froms.check_type = this.detectionModeIndex + 1
this.froms.item = this.item;
+ this.froms.result=this.resltIds+1;
this.item.map(item => {
delete item.check;
delete item.standard