Ver Fonte

fix: 政策排版调整

zh há 2 anos atrás
pai
commit
4bfeece763

+ 14 - 14
src/views/sales_policy/components/Examine.vue

@@ -475,50 +475,50 @@
                 label="经销商编号
 "
                 align="left"
-                width="300"
+                min-width="300"
               >
                 <template slot-scope="scope">
                   <CopyButton :copy-text="scope.row.customerNumber" />
                   <span>{{ scope.row.customerNumber }}</span>
                 </template>
               </el-table-column>
-              <el-table-column prop="customerName" label="经销商名称" align="left" width="300">
+              <el-table-column prop="customerName" label="经销商名称" align="left" min-width="300">
                 <template slot-scope="scope">
                   <CopyButton :copy-text="scope.row.customerName" />
                   <span>{{ scope.row.customerName }}</span>
                 </template>
               </el-table-column>
-              <el-table-column prop="minBuyNum" label="最小提货数量" align="left" width="200">
+              <el-table-column prop="minBuyNum" label="最小提货数量" align="left" min-width="200">
                 <template slot-scope="scope">
                   {{ scope.row.minBuyNum }}
                 </template>
               </el-table-column>
-              <el-table-column prop="maxBuyNum" label="最大提货数量" align="left" width="200">
+              <el-table-column prop="maxBuyNum" label="最大提货数量" align="left" min-width="200">
                 <template slot-scope="scope">
                   {{ scope.row.maxBuyNum }}
                 </template>
               </el-table-column>
-              <el-table-column prop="materialName" label="物料名称" align="left" width="200">
+              <el-table-column prop="materialName" label="物料名称" align="left" min-width="200">
                 <template slot-scope="scope">
                   {{ scope.row.materialName }}
                 </template>
               </el-table-column>
-              <el-table-column prop="materialNumber" label="物料编号" align="left" width="200">
+              <el-table-column prop="materialNumber" label="物料编号" align="left" min-width="200">
                 <template slot-scope="scope">
                   {{ scope.row.materialNumber }}
                 </template>
               </el-table-column>
-              <el-table-column prop="limitQty" label="订货上限" align="left" width="200">
+              <el-table-column prop="limitQty" label="订货上限" align="left" min-width="200">
                 <template slot-scope="scope">
                   {{ scope.row.limitQty }}
                 </template>
               </el-table-column>
-              <el-table-column prop="orderNums" label="已下订单数" align="left" width="200">
+              <el-table-column prop="orderNums" label="已下订单数" align="left" min-width="200">
                 <template slot-scope="scope">
                   {{ scope.row.orderNums }}
                 </template>
               </el-table-column>
-              <el-table-column prop="examineOrderNums" label="已审订单数" align="left" width="200">
+              <el-table-column prop="examineOrderNums" label="已审订单数" align="left" min-width="200">
                 <template slot-scope="scope">
                   {{ scope.row.examineOrderNums }}
                 </template>
@@ -585,26 +585,26 @@
                       label="经销商编号
 "
                       align="left"
-                      width="300"
+                      min-width="300"
                     >
                       <template slot-scope="scope">
                         <CopyButton :copy-text="scope.row.customerNumber" />
                         <span>{{ scope.row.customerNumber }}</span>
                       </template>
                     </el-table-column>
-                    <el-table-column prop="customerName" label="经销商名称" align="left" width="300">
+                    <el-table-column prop="customerName" label="经销商名称" align="left" min-width="300">
                       <template slot-scope="scope">
                         <CopyButton :copy-text="scope.row.customerName" />
                         <span>{{ scope.row.customerName }}</span>
                       </template>
                     </el-table-column>
 
-                    <el-table-column prop="groupLimitNum" label="配提上限组数" align="left" width="200">
+                    <el-table-column prop="groupLimitNum" label="配提上限组数" align="left" min-width="200">
                       <template slot-scope="scope">
                         {{ scope.row.groupLimitNum }}
                       </template>
                     </el-table-column>
-                    <el-table-column prop="orderNums" label="配提上限已下订单数" align="left" width="200">
+                    <!-- <el-table-column prop="orderNums" label="配提上限已下订单数" align="left" width="200">
                       <template slot-scope="scope">
                         {{ scope.row.orderNums }}
                       </template>
@@ -613,7 +613,7 @@
                       <template slot-scope="scope">
                         {{ scope.row.examineOrderNums }}
                       </template>
-                    </el-table-column>
+                    </el-table-column> -->
                   </el-table>
                 </div>
                 <!-- 分页 -->

+ 28 - 16
src/views/sales_policy/components/TabelTransfer.vue

@@ -202,7 +202,7 @@
                   handelBatchData()
                 }"
               >批量修改上限</el-button>
-              <el-button
+              <!-- <el-button
                 v-if="list.length"
                 type="primary"
                 size="mini"
@@ -210,7 +210,7 @@
                   maxBuyNumVisible = true
                   handelBatchData()
                 }"
-              >批量修改组数</el-button>
+              >批量修改组数</el-button> -->
             </template>
           </el-col>
         </el-row>
@@ -238,50 +238,50 @@
               label="经销商编号
 "
               align="left"
-              width="300"
+              min-width="300"
             >
               <template slot-scope="scope">
                 <CopyButton :copy-text="scope.row.customerNumber" />
                 <span>{{ scope.row.customerNumber }}</span>
               </template>
             </el-table-column>
-            <el-table-column prop="customerName" label="经销商名称" align="left" width="300">
+            <el-table-column prop="customerName" label="经销商名称" align="left" min-width="300">
               <template slot-scope="scope">
                 <CopyButton :copy-text="scope.row.customerName" />
                 <span>{{ scope.row.customerName }}</span>
               </template>
             </el-table-column>
-            <el-table-column prop="minBuyNum" label="最小提货数量" align="left" width="200">
+            <el-table-column prop="minBuyNum" label="最小提货数量" align="left" min-width="200">
               <template slot-scope="scope">
                 {{ scope.row.minBuyNum }}
               </template>
             </el-table-column>
-            <el-table-column prop="maxBuyNum" label="最大提货数量" align="left" width="200">
+            <el-table-column prop="maxBuyNum" label="最大提货数量" align="left" min-width="200">
               <template slot-scope="scope">
                 {{ scope.row.maxBuyNum }}
               </template>
             </el-table-column>
-            <el-table-column prop="materialName" label="物料名称" align="left" width="200">
+            <el-table-column prop="materialName" label="物料名称" align="left" min-width="200">
               <template slot-scope="scope">
                 {{ scope.row.materialName }}
               </template>
             </el-table-column>
-            <el-table-column prop="materialNumber" label="物料编号" align="left" width="200">
+            <el-table-column prop="materialNumber" label="物料编号" align="left" min-width="200">
               <template slot-scope="scope">
                 {{ scope.row.materialNumber }}
               </template>
             </el-table-column>
-            <el-table-column prop="limitQty" label="订货上限" align="left" width="200">
+            <el-table-column prop="limitQty" label="订货上限" align="left" min-width="200">
               <template slot-scope="scope">
                 {{ scope.row.limitQty }}
               </template>
             </el-table-column>
-            <el-table-column prop="orderNums" label="已下订单数" align="left" width="200">
+            <el-table-column prop="orderNums" label="已下订单数" align="left" min-width="200">
               <template slot-scope="scope">
                 {{ scope.row.orderNums }}
               </template>
             </el-table-column>
-            <el-table-column prop="examineOrderNums" label="已审订单数" align="left" width="200">
+            <el-table-column prop="examineOrderNums" label="已审订单数" align="left" min-width="200">
               <template slot-scope="scope">
                 {{ scope.row.examineOrderNums }}
               </template>
@@ -359,26 +359,26 @@
                 label="经销商编号
 "
                 align="left"
-                width="300"
+                min-width="300"
               >
                 <template slot-scope="scope">
                   <CopyButton :copy-text="scope.row.customerNumber" />
                   <span>{{ scope.row.customerNumber }}</span>
                 </template>
               </el-table-column>
-              <el-table-column prop="customerName" label="经销商名称" align="left" width="300">
+              <el-table-column prop="customerName" label="经销商名称" align="left" min-width="300">
                 <template slot-scope="scope">
                   <CopyButton :copy-text="scope.row.customerName" />
                   <span>{{ scope.row.customerName }}</span>
                 </template>
               </el-table-column>
 
-              <el-table-column prop="groupLimitNum" label="配提上限组数" align="left">
+              <el-table-column prop="groupLimitNum" label="配提上限组数" align="left" min-width="200">
                 <template slot-scope="scope">
                   {{ scope.row.groupLimitNum }}
                 </template>
               </el-table-column>
-              <el-table-column prop="orderNums" label="配提上限已下订单数" align="left">
+              <!-- <el-table-column prop="orderNums" label="配提上限已下订单数" align="left">
                 <template slot-scope="scope">
                   {{ scope.row.orderNums }}
                 </template>
@@ -387,7 +387,7 @@
                 <template slot-scope="scope">
                   {{ scope.row.examineOrderNums }}
                 </template>
-              </el-table-column>
+              </el-table-column> -->
             </el-table>
           </div>
           <!-- 分页 -->
@@ -696,6 +696,18 @@ export default {
             label: '经销商名称',
             prop: 'customerName'
           }
+        },
+        {
+          columnAttributes: {
+            label: '物料名称',
+            prop: 'materialName'
+          }
+        },
+        {
+          columnAttributes: {
+            label: '物料编号',
+            prop: 'materialNumber'
+          }
         }
       ]
     }

+ 25 - 13
src/views/sales_policy/components/details.vue

@@ -527,50 +527,50 @@
                       label="经销商编号
 "
                       align="left"
-                      width="300"
+                      min-width="300"
                     >
                       <template slot-scope="scope">
                         <CopyButton :copy-text="scope.row.customerNumber" />
                         <span>{{ scope.row.customerNumber }}</span>
                       </template>
                     </el-table-column>
-                    <el-table-column prop="customerName" label="经销商名称" align="left" width="300">
+                    <el-table-column prop="customerName" label="经销商名称" align="left" min-width="300">
                       <template slot-scope="scope">
                         <CopyButton :copy-text="scope.row.customerName" />
                         <span>{{ scope.row.customerName }}</span>
                       </template>
                     </el-table-column>
-                    <el-table-column prop="minBuyNum" label="最小提货数量" align="left" width="200">
+                    <el-table-column prop="minBuyNum" label="最小提货数量" align="left" min-width="200">
                       <template slot-scope="scope">
                         {{ scope.row.minBuyNum }}
                       </template>
                     </el-table-column>
-                    <el-table-column prop="maxBuyNum" label="最大提货数量" align="left" width="200">
+                    <el-table-column prop="maxBuyNum" label="最大提货数量" align="left" min-width="200">
                       <template slot-scope="scope">
                         {{ scope.row.maxBuyNum }}
                       </template>
                     </el-table-column>
-                    <el-table-column prop="materialName" label="物料名称" align="left" width="200">
+                    <el-table-column prop="materialName" label="物料名称" align="left" min-width="200">
                       <template slot-scope="scope">
                         {{ scope.row.materialName }}
                       </template>
                     </el-table-column>
-                    <el-table-column prop="materialNumber" label="物料编号" align="left" width="200">
+                    <el-table-column prop="materialNumber" label="物料编号" align="left" min-width="200">
                       <template slot-scope="scope">
                         {{ scope.row.materialNumber }}
                       </template>
                     </el-table-column>
-                    <el-table-column prop="limitQty" label="购买量上限" align="left" width="200">
+                    <el-table-column prop="limitQty" label="购买量上限" align="left" min-width="200">
                       <template slot-scope="scope">
                         {{ scope.row.limitQty }}
                       </template>
                     </el-table-column>
-                    <el-table-column prop="orderNums" label="已下订单数" align="left" width="200">
+                    <el-table-column prop="orderNums" label="已下订单数" align="left" min-width="200">
                       <template slot-scope="scope">
                         {{ scope.row.orderNums }}
                       </template>
                     </el-table-column>
-                    <el-table-column prop="examineOrderNums" label="已审订单数" align="left" width="200">
+                    <el-table-column prop="examineOrderNums" label="已审订单数" align="left" min-width="200">
                       <template slot-scope="scope">
                         {{ scope.row.examineOrderNums }}
                       </template>
@@ -650,19 +650,19 @@
                         <span>{{ scope.row.customerNumber }}</span>
                       </template>
                     </el-table-column>
-                    <el-table-column prop="customerName" label="经销商名称" align="left" width="300">
+                    <el-table-column prop="customerName" label="经销商名称" align="left" min-width="300">
                       <template slot-scope="scope">
                         <CopyButton :copy-text="scope.row.customerName" />
                         <span>{{ scope.row.customerName }}</span>
                       </template>
                     </el-table-column>
 
-                    <el-table-column prop="groupLimitNum" label="配提上限组数" align="left" width="200">
+                    <el-table-column prop="groupLimitNum" label="配提上限组数" align="left" min-width="200">
                       <template slot-scope="scope">
                         {{ scope.row.groupLimitNum }}
                       </template>
                     </el-table-column>
-                    <el-table-column prop="orderNums" label="配提上限已下订单数" align="left" width="200">
+                    <!-- <el-table-column prop="orderNums" label="配提上限已下订单数" align="left" width="200">
                       <template slot-scope="scope">
                         {{ scope.row.orderNums }}
                       </template>
@@ -671,7 +671,7 @@
                       <template slot-scope="scope">
                         {{ scope.row.examineOrderNums }}
                       </template>
-                    </el-table-column>
+                    </el-table-column> -->
                   </el-table>
                 </div>
                 <!-- 分页 -->
@@ -929,6 +929,18 @@ export default {
             label: '经销商名称',
             prop: 'customerName'
           }
+        },
+        {
+          columnAttributes: {
+            label: '物料名称',
+            prop: 'materialName'
+          }
+        },
+        {
+          columnAttributes: {
+            label: '物料编号',
+            prop: 'materialNumber'
+          }
         }
       ]
     }