From 8c5e786d164cd1ffc1edeab60412b2a3b1187969 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?yinjinlu-pc=5C=E5=B0=B9=E9=87=91=E8=B7=AF?=
<411641505@qq.com>
Date: Sun, 24 Nov 2024 21:13:56 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E8=BD=AC=E5=8D=A1=E7=95=8C=E9=9D=A2?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/mes/pro/procard/index.vue | 56 ++++++++++++++++++++++++---
src/views/mes/pro/workorder/index.vue | 2 +-
2 files changed, 52 insertions(+), 6 deletions(-)
diff --git a/src/views/mes/pro/procard/index.vue b/src/views/mes/pro/procard/index.vue
index 57f14e8..400b87a 100644
--- a/src/views/mes/pro/procard/index.vue
+++ b/src/views/mes/pro/procard/index.vue
@@ -47,6 +47,32 @@
+
+
+ 新增
+
+
+ 删除
+
+
+
+
+
@@ -88,7 +114,7 @@
-
+
@@ -98,9 +124,12 @@
-
-
+
+
+
+
+
@@ -168,10 +197,11 @@
import { listProcard, getProcard, delProcard, addProcard, updateProcard } from "@/api/mes/pro/procard";
import BarcodeImg from "@/components/barcodeImg/index.vue"
import Procardprocess from "./process.vue"
+import WorkorderSelect from "@/components/workorderSelect/single.vue"
import { getToken } from "@/utils/auth";
export default {
name: "Procard",
- components: {BarcodeImg,Procardprocess},
+ components: {BarcodeImg,Procardprocess,WorkorderSelect},
data() {
return {
optType: null,
@@ -311,7 +341,23 @@ export default {
this.download('pro/procard/export', {
...this.queryParams
}, `procard_${new Date().getTime()}.xlsx`)
- }
+ },
+ //选择生产工单
+ handleWorkorderSelect(){
+ this.$refs.woSelect.showFlag = true;
+ },
+ onWorkorderSelected(row){
+ if(row != undefined && row != null){
+ this.form.workorderId = row.workorderId;
+ this.form.workorderCode = row.workorderCode;
+ this.form.workorderName = row.workorderName;
+ this.form.itemId = row.productId;
+ this.form.itemCode = row.productCode;
+ this.form.itemName = row.productName;
+ this.form.specification = row.specification;
+ this.form.unitOfMeasure = row.unitOfMeasure;
+ }
+ },
}
};
diff --git a/src/views/mes/pro/workorder/index.vue b/src/views/mes/pro/workorder/index.vue
index 8ec4d47..a6045b0 100644
--- a/src/views/mes/pro/workorder/index.vue
+++ b/src/views/mes/pro/workorder/index.vue
@@ -546,7 +546,7 @@ export default {
listWorkorder().then(response => {
this.workorderOptions = [];
const data = { workorderId: 0, workorderName: '顶级节点', children: [] };
- data.children = this.handleTree(response.data, "workorderId", "parentId");
+ data.children = this.handleTree(response.rows, "workorderId", "parentId");
this.workorderOptions.push(data);
});
},