lilei 1 ano atrás
pai
commit
d9c78afa5f
2 arquivos alterados com 25 adições e 13 exclusões
  1. 1 1
      public/version.json
  2. 24 12
      src/views/salesManagement/salesQueryNew/list.vue

+ 1 - 1
public/version.json

@@ -1,5 +1,5 @@
 {
   "message": "发现有新版本发布,确定更新系统?",
   "vendorJsVersion": "",
-  "version": 1719819035032
+  "version": 1719968802703
 }

+ 24 - 12
src/views/salesManagement/salesQueryNew/list.vue

@@ -7,12 +7,18 @@
           <a-row type="flex" justify="start" :gutter="15">
             <a-col :span="6">
               <a-form-item label="创建时间">
-                <rangeDate :allowClear="isByCustQuery" :hasDisabledAreaTime="false" ref="rangeDate" :value="time" @change="dateChange" />
+                <rangeDate
+                  id="salesManagementList-creatdate"
+                  :allowClear="isByCustQuery"
+                  :hasDisabledAreaTime="false"
+                  ref="rangeDate"
+                  :value="time"
+                  @change="dateChange" />
               </a-form-item>
             </a-col>
             <a-col :span="6">
               <a-form-item label="客户名称" :label-col="{ span:7 }" :wrapper-col="{ span:17}" :required="isByCustQuery">
-                <custList ref="custList" @change="custChange"></custList>
+                <custList id="salesManagementList-custList" ref="custList" @change="custChange"></custList>
               </a-form-item>
             </a-col>
             <a-col :span="6" v-if="advanced">
@@ -39,7 +45,7 @@
             </a-col>
             <a-col :span="6">
               <a-form-item label="审核时间">
-                <rangeDate ref="auditRangeDate" v-model="auditTime" @change="auditDateChange" />
+                <rangeDate id="salesManagementList-auditDate" ref="auditRangeDate" v-model="auditTime" @change="auditDateChange" />
               </a-form-item>
             </a-col>
             <a-col :span="6">
@@ -71,7 +77,7 @@
             </a-col>
             <a-col :span="6" v-if="advanced">
               <a-form-item label="出库时间">
-                <rangeDate ref="outWareRangeDate" v-model="outWareTime" @change="outWareDateChange" />
+                <rangeDate id="salesManagementList-chukushijian" ref="outWareRangeDate" v-model="outWareTime" @change="outWareDateChange" />
               </a-form-item>
             </a-col>
             <a-col :span="6" v-if="advanced">
@@ -95,8 +101,8 @@
                 </a-popover>
               </div>
               <div style="text-align:left;margin-left: -120px;width:50%;">
-                <a-button type="primary" :disabled="disabled" @click="searchForm">查询</a-button>
-                <a-button style="margin-left: 5px" :disabled="disabled" @click="resetSearchForm()">重置</a-button>
+                <a-button id="salesManagementList-search" type="primary" :disabled="disabled" @click="searchForm">查询</a-button>
+                <a-button id="salesManagementList-reset" style="margin-left: 5px" :disabled="disabled" @click="resetSearchForm()">重置</a-button>
                 <a-button
                   type="primary"
                   v-if="$hasPermissions('B_salesExport')"
@@ -105,7 +111,7 @@
                   :disabled="disabled"
                   :loading="exportLoading"
                   id="salesManagementList-export">导出</a-button>
-                <a @click="advanced=!advanced" style="margin-left: 5px">
+                <a @click="advanced=!advanced" style="margin-left: 5px" id="salesManagementList-advanced">
                   {{ advanced ? '收起' : '展开' }}
                   <a-icon :type="advanced ? 'up' : 'down'"/>
                 </a>
@@ -118,7 +124,7 @@
 
     <a-card size="small" :bordered="false">
       <a-spin :spinning="spinning" tip="Loading...">
-        <!-- 操作按钮 -->
+        <!-- 统计 -->
         <div class="table-operator" style="display:flex;align-items:center;justify-content: space-between;">
           <div class="alert-message">
             合计:
@@ -132,13 +138,13 @@
             </span>
           </div>
           <div class="action-buttons">
-            <a-button type="primary" class="button-error" v-if="$hasPermissions('B_salesNews')" @click="handleAdd(0)"><a-icon type="plus" /> 新增(零售)</a-button>
-            <a-button type="primary" class="button-error" v-if="$hasPermissions('B_salesNews')" @click="handleAdd(1)"><a-icon type="plus" /> 新增(铺货)</a-button>
+            <a-button id="salesManagementList-add0" type="primary" class="button-error" v-if="$hasPermissions('B_salesNews')" @click="handleAdd(0)"><a-icon type="plus" /> 新增(零售)</a-button>
+            <a-button id="salesManagementList-add1" type="primary" class="button-error" v-if="$hasPermissions('B_salesNews')" @click="handleAdd(1)"><a-icon type="plus" /> 新增(铺货)</a-button>
             <a-dropdown v-model="showCell">
               <a-button type="link" class="button-default"> <a-icon type="setting" />  显示</a-button>
               <a-menu slot="overlay">
                 <a-menu-item>
-                  <a-checkbox v-model="showDiscount" id="salesQuery-edit-discount">折后总售价</a-checkbox>
+                  <a-checkbox v-model="showDiscount" id="salesManagementList-discount">折后总售价</a-checkbox>
                 </a-menu-item>
               </a-menu>
             </a-dropdown>
@@ -159,7 +165,7 @@
           bordered>
           <!-- 销售单号 -->
           <template slot="salesBillNo" slot-scope="text, record">
-            <span class="table-td-link" v-if="$hasPermissions('B_salesDetail')" @click="handleDetail(record)">{{ record.salesBillNo }}</span>
+            <span class="table-td-link" :id="'salesManagementList-detail-'+record.id" v-if="$hasPermissions('B_salesDetail')" @click="handleDetail(record)">{{ record.salesBillNo }}</span>
             <span v-else>{{ record.salesBillNo }}</span>
             <a-badge count="改" :number-style="{ zoom:'80%',marginLeft:'5px' }" v-if="record.billStatus=='SUPERIOR_CHANGE'"></a-badge>
           </template>
@@ -183,6 +189,7 @@
           <!-- 操作 -->
           <template slot="action" slot-scope="text, record">
             <a-button
+              :id="'salesManagementList-audit-'+record.id"
               size="small"
               type="link"
               class="button-primary"
@@ -190,6 +197,7 @@
               @click="handleEexamine(record)"
             >审核</a-button>
             <a-button
+              :id="'salesManagementList-outStock-'+record.id"
               size="small"
               type="link"
               v-if="record.billStatus == 'WAIT_OUT_WAREHOUSE' && $hasPermissions('B_salesStockOut')"
@@ -197,6 +205,7 @@
               @click="handleSend(record)"
             >出库</a-button>
             <a-button
+              :id="'salesManagementList-edit-'+record.id"
               size="small"
               type="link"
               class="button-primary"
@@ -206,6 +215,7 @@
               编辑
             </a-button>
             <a-button
+              :id="'salesManagementList-del-'+record.id"
               size="small"
               type="link"
               class="button-error"
@@ -215,6 +225,7 @@
               删除
             </a-button>
             <a-button
+              :id="'salesManagementList-editUp-'+record.id"
               size="small"
               type="link"
               class="button-primary"
@@ -224,6 +235,7 @@
               改单
             </a-button>
             <a-button
+              :id="'salesManagementList-cancel-'+record.id"
               size="small"
               type="link"
               class="button-error"