|
@@ -1,5 +1,6 @@
|
|
|
c<template>
|
|
|
<!-- 【单证】 订单数据 -->
|
|
|
+ <a-spin :spinning="spinIsShow" :delay="spinDelayMS">
|
|
|
<div id="orderList">
|
|
|
<a-card :bordered="false">
|
|
|
<!-- 查询区域 -->
|
|
@@ -112,6 +113,7 @@ c<template>
|
|
|
<!-- 订单数据明细 抽屉 -->
|
|
|
<orderDetail-drawer ref="orderDetailDrawer" :fatherList="getOrderList" @ok="modalFormOk"></orderDetail-drawer>
|
|
|
</div>
|
|
|
+ </a-spin>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -120,7 +122,6 @@ import JEllipsis from '@/components/jeecg/JEllipsis'
|
|
|
import moment from 'moment'
|
|
|
import OrderDetailDrawer from '@views/order/orderDetailDrawer.vue'
|
|
|
import { orderList, syncy } from '@api/document/order'
|
|
|
-
|
|
|
export default {
|
|
|
name: 'OrderList', // 【单证】 订单数据
|
|
|
mixins: [JeecgListMixin],
|
|
@@ -232,6 +233,8 @@ export default {
|
|
|
},
|
|
|
dateRange:[],
|
|
|
dataRangeMode:['date','date'],
|
|
|
+ spinDelayMS:500, // 加载框延迟时间
|
|
|
+ spinIsShow:false, // 加载框是否显示
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -241,28 +244,31 @@ export default {
|
|
|
methods: {
|
|
|
// 分页查询
|
|
|
getOrderList() {
|
|
|
+ var that = this;
|
|
|
+ that.spinIsShow = true;
|
|
|
this.$nextTick(() => {
|
|
|
orderList(this.queryParam).then(res => {
|
|
|
+ that.spinIsShow = false;
|
|
|
if (res.success) {
|
|
|
- this.orderListData = res.result.records
|
|
|
- console.log('订单数据列表', this.orderListData)
|
|
|
- this.pagination = {
|
|
|
+ that.orderListData = res.result.records;
|
|
|
+ that.pagination = {
|
|
|
total: res.result.total,
|
|
|
current: res.result.current,
|
|
|
pageSize: res.result.size
|
|
|
}
|
|
|
+ }else{
|
|
|
+ that.$message.error(res.message);
|
|
|
}
|
|
|
+
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
// 同步
|
|
|
synchronization() {
|
|
|
- console.log('订单数据--同步')
|
|
|
this.$nextTick(() => {
|
|
|
syncy().then(res => {
|
|
|
if (res.success) {
|
|
|
- this.getOrderList()
|
|
|
- console.log('订单数据--同步')
|
|
|
+ this.getOrderList();
|
|
|
}
|
|
|
})
|
|
|
})
|