From e2c3d91242be8953c5d73ddddc04839b22a9f1e1 Mon Sep 17 00:00:00 2001
From: zouyu <2723363702@qq.com>
Date: 星期二, 14 十一月 2023 14:56:45 +0800
Subject: [PATCH] 	new file:   src/const/crud/customerOrder/customerOrderForm.js 	modified:   src/views/common/ztt-table.vue 	modified:   src/views/plan/customerorder/index.vue 	modified:   src/views/plan/customerorder/sample-customerorder-form.vue

---
 src/views/common/ztt-table.vue |   26 ++++++++++++++++++--------
 1 files changed, 18 insertions(+), 8 deletions(-)

diff --git a/src/views/common/ztt-table.vue b/src/views/common/ztt-table.vue
index e947f8b..1127f78 100644
--- a/src/views/common/ztt-table.vue
+++ b/src/views/common/ztt-table.vue
@@ -327,6 +327,9 @@
               <template v-else>
                 <template v-if="!item.render">
                   <template v-if="item.formatter">
+                    <span v-if="item.isTag">
+                      <el-tag type="success">aaa</el-tag>
+                    </span>
                     <span
                       v-html="
                         item.formatter(scope.row, item, scope.row[item.prop])
@@ -480,10 +483,10 @@
     </el-dialog>
     <el-dialog title="瀵煎叆" :visible.sync="importDialogVisible" width="22%">
       <span>
-        <div>
-          <div>
+        <div style="width: 100%;">
+          <div style="width: 100%;">
             <el-upload
-              style="margin-left:8px;display: inline;"
+              style="margin-left:8px;display: inline;width: 100%;"
               class="upload-demo"
               drag
               :headers="headers"
@@ -503,7 +506,7 @@
               <i class="el-icon-upload"></i>
               <div class="el-upload__text"><em>鐐瑰嚮瀵煎叆鏁版嵁</em></div>
               <div class="el-upload__tip" slot="tip">
-                鍙兘涓婁紶xlsx/xls鏂囦欢锛屼笖涓嶈秴杩�10M<el-button
+                鍙兘涓婁紶xlsx/xls鏂囦欢锛屼笖涓嶈秴杩�30M<el-button
                   type="text"
                   style="font-size:15px;text-decoration: underline;"
                   @click="downDataTemplate"
@@ -1540,14 +1543,14 @@
       this.colSelectDialogVisible = true
       this.handleCheckedCol()
     },
-    // 闄愬埗鏂囦欢涓婁紶澶у皬锛岀洰鍓嶉檺鍒朵负10M锛堝彟鍙互鍔犵被鍨嬮檺鍒讹級
+    // 闄愬埗鏂囦欢涓婁紶澶у皬锛岀洰鍓嶉檺鍒朵负30M锛堝彟鍙互鍔犵被鍨嬮檺鍒讹級
 
     beforeAvatarUpload(file) {
       const fileName = file.name
       const fileType = fileName.substring(fileName.lastIndexOf('.') + 1)
-      const isLt10M = file.size / 1024 / 1024 < 10
-      if (fileType !== 'xlsx' && fileType !== 'xls') {
-        this.$message.error('鏂囦欢鏍煎紡鍙兘涓簒lsx鎴杧ls,璇峰垹闄ゅ悗閲嶆柊涓婁紶')
+      const isLt10M = file.size / 1024 / 1024 < 30
+      if (fileType !== 'xlsx' && fileType !== 'xls'&&fileType!=='csv') {
+        this.$message.error('鏂囦欢鏍煎紡鍙兘涓簒lsx鎴杧ls銆乧sv,璇峰垹闄ゅ悗閲嶆柊涓婁紶')
       }
       if (!isLt10M) {
         this.$message({
@@ -1568,6 +1571,7 @@
           type: 'success'
         })
         this.getDataList()
+        this.importDialogVisible=false
       }
       this.$refs.uploadScan.clearFiles()
     },
@@ -1873,4 +1877,10 @@
   font-size: 14px;
   visibility: hidden;
 }
+.upload-demo{
+  width: 100%;
+}
+.el-upload-dragger {
+  width: 300px !important;
+}
 </style>

--
Gitblit v1.9.3