chenrui 3 éve
szülő
commit
dc27598db9
1 módosított fájl, 3 hozzáadás és 15 törlés
  1. 3 15
      src/views/salesManagement/salesQuery/edit.vue

+ 3 - 15
src/views/salesManagement/salesQuery/edit.vue

@@ -35,18 +35,6 @@
                 <a-icon style="color: #FF9900;" type="bell" /> 已选产品可参加<span>{{ activeName }}</span>的促销活动,促销产品为指定产品
               </div>
             </a-col>
-            <!-- <a-col :span="6">
-              <div style="float:right;overflow: hidden;">
-                <a-button size="small" id="salesEdit-dru">导入明细</a-button>
-                <a-button
-                  size="small"
-                  type="primary"
-                  @click="delSalerDetailAll"
-                  :loading="delLoading"
-                  style="margin-left: 10px"
-                  id="salesEdit-del-all">整单删除</a-button>
-              </div>
-            </a-col> -->
           </a-row>
         </div>
         <!-- 总计 -->
@@ -70,7 +58,7 @@
           :columns="columns"
           :data="loadData"
           :defaultLoadData="false"
-          :scroll="{ x:840, y: 300 }"
+          :scroll="{ y: 300 }"
           bordered>
           <!-- 产品名称 -->
           <template slot="productName" slot-scope="text, record">
@@ -182,14 +170,14 @@ export default {
       nowData: null,
       // 表头
       columns: [
-        { title: '序号', dataIndex: 'no', width: 70, align: 'center' },
+        { title: '序号', dataIndex: 'no', width: 50, align: 'center' },
         { title: '产品编码', dataIndex: 'productEntity.code', width: 120, align: 'center', customRender: function (text) { return text || '--' }, sorter: true },
         { title: '产品名称', dataIndex: 'productEntity.name', scopedSlots: { customRender: 'productName' }, align: 'center' },
         { title: '售价', dataIndex: 'price', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
         { title: '销售数量', scopedSlots: { customRender: 'salesNums' }, width: 100, align: 'center' },
         { title: '单位', dataIndex: 'productEntity.unit', width: 60, align: 'center', customRender: function (text) { return text || '--' } },
         { title: '售价小计', dataIndex: 'totalAmount', width: 80, align: 'center', customRender: function (text) { return ((text || text == 0) ? text : '--') } },
-        { title: '操作', scopedSlots: { customRender: 'action' }, width: 170, align: 'center', fixed: 'right' }
+        { title: '操作', scopedSlots: { customRender: 'action' }, width: 170, align: 'center' }
       ],
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {