Selaa lähdekoodia

Fix: 显示问题

chris 3 vuotta sitten
vanhempi
commit
15da2a5ed3

+ 15 - 13
src/views/modules/cus/communicate-add-or-update.vue

@@ -47,7 +47,7 @@
       </el-row>
       <el-row class="my-row">
         <el-form-item label="备注说明">
-            <el-input v-model="dataForm.code" :disabled="display" placeholder="备注说明"></el-input>
+            <el-input v-model="dataForm.code" :disabled="display"></el-input>
           </el-form-item>
       </el-row>
       <el-row class="my-row">
@@ -65,9 +65,9 @@
           :limit="5"
           :on-exceed="handleExceed"
           :auto-upload="false">
-          <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
-          <el-button style="margin-left: 10px;" size="small" type="success" @click="submitUpload">开始上传</el-button>
-          <div slot="tip" class="el-upload__tip">只能上传jpg/png文件,最多5张图片,且每张图片不超过10M</div>
+          <el-button v-show="!display" slot="trigger" size="small" type="primary">选取文件</el-button>
+          <el-button v-show="!display" style="margin-left: 10px;" size="small" type="success" @click="submitUpload">开始上传</el-button>
+          <div v-show="!display" slot="tip" class="el-upload__tip">只能上传jpg/png文件,最多5张图片,且每张图片不超过10M</div>
         </el-upload>
       </el-row>
       <div class="title"><span style="color: red">*</span> 订单产品明细</div>
@@ -229,16 +229,18 @@
                 id: item.url
               })
             })
-            data.data.cusRCommProductVOS.forEach((item) => {
-              this.cusRCommProductVOS.push({
-                cnt: item.cnt,
-                price: item.price,
-                productId: item.productId,
-                rate: item.rate,
-                productName: item.productName,
-                notes: item.notes
+            if (data.data.cusRCommProductVOS) {
+              data.data.cusRCommProductVOS.forEach((item) => {
+                this.cusRCommProductVOS.push({
+                  cnt: item.cnt,
+                  price: item.price,
+                  productId: item.productId,
+                  rate: item.rate,
+                  productName: item.productName,
+                  notes: item.notes
+                })
               })
-            })
+            }
           }
         })
       },

+ 5 - 1
src/views/modules/cus/communicate.vue

@@ -24,13 +24,16 @@
         prop="coCode"
         header-align="center"
         align="center"
-        min-width="100"
+        min-width="120"
+        :show-tooltip-when-overflow="true"
         label="沟通编码">
       </el-table-column>
       <el-table-column
         prop="customerName"
         header-align="center"
         align="center"
+        min-width="120"
+        :show-tooltip-when-overflow="true"
         label="客户名称">
       </el-table-column>
       <el-table-column
@@ -56,6 +59,7 @@
         prop="createTime"
         header-align="center"
         align="center"
+        min-width="140"
         label="创建时间">
       </el-table-column>
       <el-table-column

+ 3 - 0
src/views/modules/cus/customer.vue

@@ -37,6 +37,8 @@
         prop="customerName"
         header-align="center"
         align="center"
+        min-width="120"
+        :show-tooltip-when-overflow="true"
         label="客户名称">
       </el-table-column>
       <el-table-column
@@ -63,6 +65,7 @@
         header-align="center"
         align="center"
         width="200"
+        :show-tooltip-when-overflow="true"
         label="地址">
       </el-table-column>
       <el-table-column

+ 5 - 2
src/views/modules/warehouse/stock-order.vue

@@ -80,26 +80,29 @@
         prop="approver"
         header-align="center"
         align="center"
+        width="120"
+        :show-tooltip-when-overflow="true"
         label="当前审批员">
       </el-table-column>
       <el-table-column
         prop="createTime"
         header-align="center"
         align="center"
-        min-width="160"
+        min-width="140"
         label="申请时间">
       </el-table-column>
       <el-table-column
         prop="recordTime"
         header-align="center"
         align="center"
-        min-width="160"
+        min-width="140"
         label="入库时间">
       </el-table-column>
       <el-table-column
         prop="applicant"
         header-align="center"
         align="center"
+        min-width="100"
         label="申请人">
       </el-table-column>
       <el-table-column