From bb2ed2e56da26a6b79575f5be9f60ca2d90774d0 Mon Sep 17 00:00:00 2001
From: 小小儁爺 <1694218219@qq.com>
Date: 星期四, 01 八月 2024 17:17:32 +0800
Subject: [PATCH] 1.工序、工价界面优化
---
src/views/sopManager/sopRoute.vue | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/views/sopManager/sopRoute.vue b/src/views/sopManager/sopRoute.vue
index 07345d7..ca8c8ea 100644
--- a/src/views/sopManager/sopRoute.vue
+++ b/src/views/sopManager/sopRoute.vue
@@ -203,7 +203,7 @@
<el-option
v-for="item in partcodeArr"
:key="item.partcode"
- :label="item.partname"
+ :label="item.partname+' / '+item.partcode"
:value="item.partcode"
/>
</el-select>
@@ -279,6 +279,7 @@
:on-exceed="handleExceed"
:auto-upload="false"
:multiple="false"
+ accept=".mp4,.pdf,.png,.jpeg,.jpg,.svg,.txt,.xlsx,.xls"
>
<!-- accept=".mp4,.pdf"-->
<el-button
@@ -525,6 +526,11 @@
this.$message.info('璇烽�夋嫨鏂囦欢涓婁紶锛�')
}
+ const isLt100M = this.$refs.uploadFileRef.uploadFiles[0].size / 1024 / 1024 <= 1024
+ if (!isLt100M) {
+ return this.$message.info('璇锋鏌ワ紝涓婁紶鏂囦欢澶у皬涓嶈兘瓒呰繃1024MB!')
+ }
+
this.$refs.dialogForm.validate(valid => {
if (valid) {
const formData = new FormData()
--
Gitblit v1.9.3