From f41d550719df21412191aff4e67acd67b63932b5 Mon Sep 17 00:00:00 2001 From: bb_pan Date: Thu, 24 Jul 2025 17:00:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=86=E6=96=99=E5=8D=95=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/ma/base.js | 8 ++++ .../lease/apply/component/homeApply.vue | 34 +++++++++++---- .../material/lease/materialConfirm/index.vue | 35 ++++++++++++---- src/views/material/lease/outBound/index.vue | 41 +++++++++++++------ src/views/material/ma/type/index.vue | 27 ++++++++++-- 5 files changed, 112 insertions(+), 33 deletions(-) diff --git a/src/api/ma/base.js b/src/api/ma/base.js index d6f936f9..8db50930 100644 --- a/src/api/ma/base.js +++ b/src/api/ma/base.js @@ -245,4 +245,12 @@ export function getPartTreeApi(data) { method: 'get', params: data }) +} + +// 班组长列表 +export function getUserListApi() { + return request({ + url: '/material/ma_type/getUserList', + method: 'get', + }) } \ No newline at end of file diff --git a/src/views/material/lease/apply/component/homeApply.vue b/src/views/material/lease/apply/component/homeApply.vue index f5a6c45f..2c11abcd 100644 --- a/src/views/material/lease/apply/component/homeApply.vue +++ b/src/views/material/lease/apply/component/homeApply.vue @@ -305,16 +305,24 @@
-
审核:
+
审核:
- +
+ +
-
领料:
@@ -358,6 +366,14 @@
制单:
+
+ +
@@ -502,7 +518,8 @@ export default { showView: false, titleView: '', getListViewInfo: [], - kgSignList: [] // 库管签名 + kgSignList: [], // 库管签名 + approveSignList: [], // 审核签名 } }, created() { @@ -670,6 +687,7 @@ export default { this.outSignList = res.data.outSignList || [] console.log('🚀 ~ handleLld ~ this.outSignList:', this.outSignList) this.kgSignList = res.data.kgSignList || [] + this.approveSignList = res.data.approveSignList || [] console.log('🚀 ~ handleLld ~ this.kgSignList:', this.kgSignList) }, diff --git a/src/views/material/lease/materialConfirm/index.vue b/src/views/material/lease/materialConfirm/index.vue index 48a5b9f8..b723f9ad 100644 --- a/src/views/material/lease/materialConfirm/index.vue +++ b/src/views/material/lease/materialConfirm/index.vue @@ -277,14 +277,23 @@
-
审核:
-
- +
审核:
+
+
+ +
@@ -339,6 +348,14 @@
制单:
+
+ +
@@ -506,6 +523,7 @@ export default { leaseApplyDetails: [], kgSignList: [], outSignList: [], + approveSignList: [], confirmSign: {}, showView: false, getListViewInfo: [], @@ -639,6 +657,7 @@ export default { this.kgSignList = res.data.kgSignList || [] this.outSignList = res.data.outSignList || [] this.confirmSign = res.data.confirmSign || {} + this.approveSignList = res.data.approveSignList || [] this.open = true }) }, diff --git a/src/views/material/lease/outBound/index.vue b/src/views/material/lease/outBound/index.vue index 9a1b9344..e8d77147 100644 --- a/src/views/material/lease/outBound/index.vue +++ b/src/views/material/lease/outBound/index.vue @@ -503,19 +503,24 @@
-
审核:
- +
+ +
+
领料:
@@ -558,7 +563,15 @@
- 制单: +
制单:
+
+ +
@@ -766,7 +779,8 @@ export default { idTemp: '', publishTask: '', kgSignList: [], - outSignList: [] + outSignList: [], + approveSignList: [], } }, created() { @@ -1063,6 +1077,7 @@ export default { this.leaseApplyData = res.data.leaseApplyInfo this.kgSignList = res.data.kgSignList || [] this.outSignList = res.data.outSignList || [] + this.approveSignList = res.data.approveSignList || [] }, //出库检验单打印 diff --git a/src/views/material/ma/type/index.vue b/src/views/material/ma/type/index.vue index 8e7f71cb..731d2524 100644 --- a/src/views/material/ma/type/index.vue +++ b/src/views/material/ma/type/index.vue @@ -687,6 +687,13 @@ + + + + + + + @@ -716,7 +723,8 @@ import { addMaType, updateMaType, getUserTypeList, - updatePartType + updatePartType, + getUserListApi } from "@/api/ma/base"; import { getKeeperIds} from "@/api/ma/typeConfigKeeper"; import { getRepairIds } from "@/api/ma/typeConfigRepair"; @@ -860,9 +868,10 @@ export default { label: "", typeName: "", companyId: 101, - isEnter: '' + isEnter: '', + keeperUserId: '', }, - + teamLeaderList: [], addFormParamsRules: { typeName: [ { @@ -1306,10 +1315,19 @@ export default { }) .catch(() => {}); }, + // 获取班组长列表 + getTeamLeaderList() { + getUserListApi().then((res) => { + this.teamLeaderList = res.data + }) + }, /* 树节点修改 */ editTreeNode(data) { console.log('🚀 ~ editTreeNode ~ data:', data) this.levelTemp = data.level; + if (this.levelTemp === 2) { + this.getTeamLeaderList() + } console.log('🚀 ~ editTreeNode ~ this.levelTemp:', this.levelTemp) this.idTemp = data.id; this.parentId = data.parentId; @@ -1321,7 +1339,7 @@ export default { }, /* 确定 */ onSubmit() { - const { id, typeName, isEnter } = this.addFormParams; + const { id, typeName, isEnter, keeperUserId } = this.addFormParams; console.log("level", this.levelTemp); console.log("idTemp", this.idTemp); const addParams = { @@ -1338,6 +1356,7 @@ export default { parentId: this.parentId, typeId: id, isEnter, + keeperUserId }; this.$refs["addFormParamsRef"].validate(async (valid) => {