|
@@ -29,6 +29,7 @@
|
|
:opts="opts"
|
|
:opts="opts"
|
|
:ontouch="true"
|
|
:ontouch="true"
|
|
:chartData="chartData"
|
|
:chartData="chartData"
|
|
|
|
+ @complete="complete"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -56,6 +57,7 @@
|
|
:opts="opts1"
|
|
:opts="opts1"
|
|
:ontouch="true"
|
|
:ontouch="true"
|
|
:chartData="chartData1"
|
|
:chartData="chartData1"
|
|
|
|
+ @complete="complete"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -83,6 +85,7 @@
|
|
:opts="opts2"
|
|
:opts="opts2"
|
|
:ontouch="true"
|
|
:ontouch="true"
|
|
:chartData="chartData2"
|
|
:chartData="chartData2"
|
|
|
|
+ @complete="complete"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -111,11 +114,9 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
- import chooseShelf from './chooseShelf.vue'
|
|
|
|
import { salesStatistics } from '@/api/sales.js'
|
|
import { salesStatistics } from '@/api/sales.js'
|
|
import getDate from '@/libs/getDate.js'
|
|
import getDate from '@/libs/getDate.js'
|
|
export default {
|
|
export default {
|
|
- components: { chooseShelf },
|
|
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
customerSn: '',
|
|
customerSn: '',
|
|
@@ -126,7 +127,7 @@
|
|
opts: {},
|
|
opts: {},
|
|
opts1:{},
|
|
opts1:{},
|
|
opts2:{},
|
|
opts2:{},
|
|
- allData: null,
|
|
|
|
|
|
+ allData: {xprhFlag:true},
|
|
showSearch: false,
|
|
showSearch: false,
|
|
showDate: false,
|
|
showDate: false,
|
|
dateArray: '',
|
|
dateArray: '',
|
|
@@ -180,6 +181,7 @@
|
|
this.customerSn = data.customerSn
|
|
this.customerSn = data.customerSn
|
|
this.curCustomerName = data.customerName
|
|
this.curCustomerName = data.customerName
|
|
this.queryPramas.buyerSn = data.customerSn
|
|
this.queryPramas.buyerSn = data.customerSn
|
|
|
|
+ this.getServerData()
|
|
})
|
|
})
|
|
//#ifdef APP-PLUS
|
|
//#ifdef APP-PLUS
|
|
this.webView = this.$mp.page.$getAppWebview();
|
|
this.webView = this.$mp.page.$getAppWebview();
|
|
@@ -240,6 +242,9 @@
|
|
this.showSearch = false
|
|
this.showSearch = false
|
|
this.getServerData()
|
|
this.getServerData()
|
|
},
|
|
},
|
|
|
|
+ complete(data){
|
|
|
|
+ console.log(data)
|
|
|
|
+ },
|
|
// 查询
|
|
// 查询
|
|
handleSearch(){
|
|
handleSearch(){
|
|
if(this.curTab == 6){
|
|
if(this.curTab == 6){
|
|
@@ -312,7 +317,7 @@
|
|
}
|
|
}
|
|
salesStatistics(Object.assign(this.queryPramas,params)).then(res => {
|
|
salesStatistics(Object.assign(this.queryPramas,params)).then(res => {
|
|
if(res.status == 200){
|
|
if(res.status == 200){
|
|
- this.allData = res.data
|
|
|
|
|
|
+ this.allData = JSON.parse(JSON.stringify(res.data))
|
|
this.chartData = this.getFormatData(res.data.salesDateList,res.data.salesAmountList,"销售金额")
|
|
this.chartData = this.getFormatData(res.data.salesDateList,res.data.salesAmountList,"销售金额")
|
|
this.opts = this.getOpts(res.data.salesDateList)
|
|
this.opts = this.getOpts(res.data.salesDateList)
|
|
this.chartData1 = this.getFormatData(res.data.orderDateList,res.data.orderAmountList,"取货产品金额")
|
|
this.chartData1 = this.getFormatData(res.data.orderDateList,res.data.orderAmountList,"取货产品金额")
|