chenrui 2 anni fa
parent
commit
f38798f6f1
1 ha cambiato i file con 15 aggiunte e 16 eliminazioni
  1. 15 16
      src/views/salesManagement/salesQueryNew/list.vue

+ 15 - 16
src/views/salesManagement/salesQueryNew/list.vue

@@ -85,15 +85,6 @@
                   <v-select code="FLAG" id="salesManagementList-distributionFlag" v-model="queryParam.distributionFlag" allowClear placeholder="请选择是否铺货出库"></v-select>
                 </a-form-model-item>
               </a-col>
-              <a-col :span="12" style="margin:10px 0;">
-                <a-checkbox v-model="isByCustQuery" id="sales-byCustQuery">按客户查询</a-checkbox>
-                <a-popover placement="right">
-                  <template slot="content">
-                    使用此查询时,时间可清空,必须选择一个客户
-                  </template>
-                  <a-icon type="question-circle" />
-                </a-popover>
-              </a-col>
             </template>
             <a-col :span="24" style="display:flex;justify-content: center;align-items: center;">
               <a-button type="primary" :disabled="disabled" @click="searchForm">查询</a-button>
@@ -119,18 +110,26 @@
     <a-card size="small" :bordered="false">
       <a-spin :spinning="spinning" tip="Loading...">
         <!-- 操作按钮 -->
-        <div style="display: flex;align-items: center;margin-bottom:10px;">
-          <div>
+        <div class="table-operator">
+          <a-button type="primary" class="button-error" v-if="$hasPermissions('B_salesNews')" @click="handleAdd(0)">新增(零售)</a-button>
+          <a-button type="primary" class="button-warning" v-if="$hasPermissions('B_salesNews')" @click="handleAdd(1)">新增(铺货)</a-button>
+          <a-checkbox style="margin-left:10px;" v-model="isByCustQuery" id="sales-byCustQuery">按客户查询</a-checkbox>
+          <a-popover placement="right">
+            <template slot="content">
+              使用此查询时,时间可清空,必须选择一个客户
+            </template>
+            <a-icon type="question-circle" />
+          </a-popover>
+
+        </div>
+        <a-alert type="info" style="margin-bottom:10px">
+          <div slot="message">
             总售价:<strong>{{ totalData&&(totalData.totalAmount || totalData.totalAmount==0) ? toThousands(totalData.totalAmount) : '--' }}</strong>元;
             总单数:<strong>{{ totalData&&(totalData.totalRecord || totalData.totalRecord==0) ? totalData.totalRecord : '--' }}</strong>;
             总款数:<strong>{{ totalData&&(totalData.totalCategory || totalData.totalCategory==0) ? totalData.totalCategory : '--' }}</strong>;
             总数量:<strong>{{ totalData&&(totalData.totalQty || totalData.totalQty==0) ? totalData.totalQty : '--' }}</strong>;
           </div>
-          <div style="flex:1;text-align: right;">
-            <a-button type="primary" class="button-error" v-if="$hasPermissions('B_salesNews')" @click="handleAdd(0)">新增(零售)</a-button>
-            <a-button type="primary" class="button-warning" v-if="$hasPermissions('B_salesNews')" @click="handleAdd(1)">新增(铺货)</a-button>
-          </div>
-        </div>
+        </a-alert>
         <!-- 列表 -->
         <s-table
           class="sTable fixPagination"