From 21c865a6026ab65ce6cfa6c72d8a1ec652b3c336 Mon Sep 17 00:00:00 2001
From: lion <120344285@qq.com>
Date: Mon, 9 Feb 2026 15:31:25 +0800
Subject: [PATCH] =?UTF-8?q?=E5=85=A5=E5=BA=93=E8=AE=B0=E5=BD=95=E5=8D=95?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/stocks/component/showRuku.vue | 35 ++++++++++++++++++++++---
src/views/stocks/index.vue | 2 +-
2 files changed, 33 insertions(+), 4 deletions(-)
diff --git a/src/views/stocks/component/showRuku.vue b/src/views/stocks/component/showRuku.vue
index 4007c5a..6623847 100644
--- a/src/views/stocks/component/showRuku.vue
+++ b/src/views/stocks/component/showRuku.vue
@@ -28,7 +28,7 @@
-
点击上传
@@ -50,7 +50,7 @@
入库记录单
-
点击上传
@@ -71,8 +71,9 @@
-
+
+
@@ -100,6 +101,15 @@
import printRuku from './printRuku.vue'
export default {
components: { printRuku },
+ props: {
+ roleName: { type: String, default: '' },
+ isCkName: { type: String, default: '' }
+ },
+ computed: {
+ canEditAttachments() {
+ return this.form.zhuangtai === 3 && (this.roleName === '系统管理员' || this.isCkName === '仓库管理员')
+ }
+ },
data() {
return {
id: '',
@@ -352,6 +362,25 @@
this.isShow = false
})
},
+ saveAttachments() {
+ const rukutupianArr = []
+ for (var k of this.fileList) {
+ rukutupianArr.push(k?.response?.id)
+ }
+ const rukujiludanArr = []
+ for (var k of this.rukujiludanFileList) {
+ rukujiludanArr.push(k?.response?.id)
+ }
+ saveStock({
+ id: this.id,
+ rukutupian: rukutupianArr,
+ rukujiludan: rukujiludanArr
+ }).then(res => {
+ this.$message.success('保存成功')
+ this.$emit('refresh')
+ this.isShow = false
+ })
+ },
//
async getDetail() {
const res = await showStock({
diff --git a/src/views/stocks/index.vue b/src/views/stocks/index.vue
index 67a934f..22b6d4d 100644
--- a/src/views/stocks/index.vue
+++ b/src/views/stocks/index.vue
@@ -91,7 +91,7 @@
-
+