瀏覽代碼

修改bug

chenrui 1 年之前
父節點
當前提交
1bf0fe97ba
共有 1 個文件被更改,包括 13 次插入3 次删除
  1. 13 3
      src/views/salesManagement/salesOrderWarehouse/list.vue

+ 13 - 3
src/views/salesManagement/salesOrderWarehouse/list.vue

@@ -12,7 +12,7 @@
             </a-col>
             </a-col>
             <a-col :md="6" :sm="24">
             <a-col :md="6" :sm="24">
               <a-form-item label="客户名称">
               <a-form-item label="客户名称">
-                <a-input id="salesOrderWarehouseList-buyerSn" v-model.trim="queryParam.buyerSn" allowClear placeholder="请输入客户名称"/>
+                <dealerSubareaScopeList ref="dealerSubareaScopeList" id="salesManagementList-buyerName" @change="custChange" />
               </a-form-item>
               </a-form-item>
             </a-col>
             </a-col>
             <a-col :md="6" :sm="24">
             <a-col :md="6" :sm="24">
@@ -83,6 +83,8 @@
         </template>
         </template>
       </s-table>
       </s-table>
     </a-spin>
     </a-spin>
+    <!-- 导出提示框 -->
+    <reportModal :visible="showExport" @close="showExport=false"></reportModal>
   </a-card>
   </a-card>
 </template>
 </template>
 
 
@@ -92,14 +94,16 @@ import moment from 'moment'
 import rangeDate from '@/views/common/rangeDate.vue'
 import rangeDate from '@/views/common/rangeDate.vue'
 import getDate from '@/libs/getDate.js'
 import getDate from '@/libs/getDate.js'
 import Area from '@/views/common/area.js'
 import Area from '@/views/common/area.js'
+import reportModal from '@/views/common/reportModal.vue'
 import { STable, VSelect } from '@/components'
 import { STable, VSelect } from '@/components'
 import chooseWarehouse from '@/views/common/chooseWarehouse'
 import chooseWarehouse from '@/views/common/chooseWarehouse'
 import { queryPageForWarehouse, queryCountForWarehouse, exportForWarehouse } from '@/api/sales'
 import { queryPageForWarehouse, queryCountForWarehouse, exportForWarehouse } from '@/api/sales'
+import dealerSubareaScopeList from '@/views/common/dealerSubareaScopeList.vue'
 import { hdExportExcel } from '@/libs/exportExcel'
 import { hdExportExcel } from '@/libs/exportExcel'
 export default {
 export default {
   name: 'SalesOrderWarehouseList',
   name: 'SalesOrderWarehouseList',
   mixins: [commonMixin],
   mixins: [commonMixin],
-  components: { STable, VSelect, rangeDate, Area, chooseWarehouse },
+  components: { STable, VSelect, rangeDate, Area, chooseWarehouse, reportModal, dealerSubareaScopeList },
   data () {
   data () {
     return {
     return {
       spinning: false,
       spinning: false,
@@ -121,6 +125,7 @@ export default {
       disabled: false, //  查询、重置按钮是否可操作
       disabled: false, //  查询、重置按钮是否可操作
       loading: false,
       loading: false,
       totalData: null,
       totalData: null,
+      showExport: false,
       // 加载数据方法 必须为 Promise 对象
       // 加载数据方法 必须为 Promise 对象
       loadData: parameter => {
       loadData: parameter => {
         this.disabled = true
         this.disabled = true
@@ -164,6 +169,9 @@ export default {
     }
     }
   },
   },
   methods: {
   methods: {
+    custChange (val) {
+      this.queryParam.buyerSn = val.key
+    },
     // 获取总数量
     // 获取总数量
     getCount (params) {
     getCount (params) {
       queryCountForWarehouse(params).then(res => {
       queryCountForWarehouse(params).then(res => {
@@ -179,9 +187,10 @@ export default {
       const _this = this
       const _this = this
       _this.exportLoading = true
       _this.exportLoading = true
       _this.spinning = true
       _this.spinning = true
-      hdExportExcel(exportForWarehouse, _this.queryParam, '销售单仓库明细', function () {
+      hdExportExcel(exportForWarehouse, _this.queryParam, '仓库销售单明细', function () {
         _this.exportLoading = false
         _this.exportLoading = false
         _this.spinning = false
         _this.spinning = false
+        _this.showExport = true
       })
       })
     },
     },
     //  时间  change
     //  时间  change
@@ -192,6 +201,7 @@ export default {
     //  重置
     //  重置
     resetSearchForm () {
     resetSearchForm () {
       this.$refs.rangeDate.resetDate(this.time)
       this.$refs.rangeDate.resetDate(this.time)
+      this.$refs.dealerSubareaScopeList.resetForm()
       this.queryParam.beginDate = getDate.getThreeMonthDays().starttime
       this.queryParam.beginDate = getDate.getThreeMonthDays().starttime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
       this.queryParam.endDate = getDate.getCurrMonthDays().endtime
       this.queryParam.buyerSn = ''
       this.queryParam.buyerSn = ''