Browse Source

no message

feature/v2.0
xpz2018 4 years ago
parent
commit
aee06c2966
36 changed files with 600 additions and 18 deletions
  1. 3
      app.json
  2. 132
      components/swipe-cell/index.js
  3. 3
      components/swipe-cell/index.json
  4. 13
      components/swipe-cell/index.wxml
  5. 1
      components/swipe-cell/index.wxss
  6. 30
      pages/home/customer-info/index.js
  7. 5
      pages/home/customer-info/index.wxml
  8. 3
      pages/home/index/index.wxml
  9. 2
      pages/login/index.js
  10. 4
      pages/message/card-list/index.js
  11. 1
      pages/message/card-list/index.json
  12. 5
      pages/message/card-list/index.wxml
  13. 11
      pages/message/card-list/index.wxss
  14. 2
      pages/process/index/index.wxml
  15. 43
      pages/storage/index/index.wxml
  16. 2
      project.config.json
  17. 15
      xtends/statics/agent-report/index.js
  18. 5
      xtends/statics/agent-report/index.json
  19. 8
      xtends/statics/agent-report/index.wxml
  20. 11
      xtends/statics/agent-report/index.wxss
  21. 15
      xtends/statics/gross-report/index.js
  22. 5
      xtends/statics/gross-report/index.json
  23. 8
      xtends/statics/gross-report/index.wxml
  24. 11
      xtends/statics/gross-report/index.wxss
  25. 99
      xtends/statics/index/index.js
  26. 7
      xtends/statics/index/index.json
  27. 84
      xtends/statics/index/index.wxml
  28. 12
      xtends/statics/index/index.wxss
  29. 15
      xtends/statics/purchase-report/index.js
  30. 5
      xtends/statics/purchase-report/index.json
  31. 8
      xtends/statics/purchase-report/index.wxml
  32. 11
      xtends/statics/purchase-report/index.wxss
  33. 15
      xtends/statics/sale-report/index.js
  34. 5
      xtends/statics/sale-report/index.json
  35. 8
      xtends/statics/sale-report/index.wxml
  36. 11
      xtends/statics/sale-report/index.wxss

3
app.json

@ -69,7 +69,8 @@
{
"root": "xtends/",
"pages": [
"statics/index/index"
"statics/index/index",
"statics/purchase-report/index"
]
}
],

132
components/swipe-cell/index.js

@ -0,0 +1,132 @@
import { VantComponent } from '../common/component';
import { touch } from '../mixins/touch';
import { range } from '../common/utils';
const THRESHOLD = 0.3;
let ARRAY = [];
VantComponent({
props: {
disabled: Boolean,
leftWidth: {
type: Number,
value: 0,
observer(leftWidth = 0) {
if (this.offset > 0) {
this.swipeMove(leftWidth);
}
},
},
rightWidth: {
type: Number,
value: 0,
observer(rightWidth = 0) {
if (this.offset < 0) {
this.swipeMove(-rightWidth);
}
},
},
asyncClose: Boolean,
name: {
type: null,
value: '',
},
},
mixins: [touch],
data: {
catchMove: false,
wrapperStyle: '',
},
created() {
this.offset = 0;
ARRAY.push(this);
},
destroyed() {
ARRAY = ARRAY.filter((item) => item !== this);
},
methods: {
open(position) {
const { leftWidth, rightWidth } = this.data;
const offset = position === 'left' ? leftWidth : -rightWidth;
this.swipeMove(offset);
this.$emit('open', {
position,
name: this.data.name,
});
},
close() {
this.swipeMove(0);
},
swipeMove(offset = 0) {
this.offset = range(offset, -this.data.rightWidth, this.data.leftWidth);
const transform = `translate3d(${this.offset}px, 0, 0)`;
const transition = this.dragging
? 'none'
: 'transform .6s cubic-bezier(0.18, 0.89, 0.32, 1)';
this.setData({
wrapperStyle: `
-webkit-transform: ${transform};
-webkit-transition: ${transition};
transform: ${transform};
transition: ${transition};
`,
});
},
swipeLeaveTransition() {
const { leftWidth, rightWidth } = this.data;
const { offset } = this;
if (rightWidth > 0 && -offset > rightWidth * THRESHOLD) {
this.open('right');
} else if (leftWidth > 0 && offset > leftWidth * THRESHOLD) {
this.open('left');
} else {
this.swipeMove(0);
}
this.setData({ catchMove: false });
},
startDrag(event) {
if (this.data.disabled) {
return;
}
this.startOffset = this.offset;
this.touchStart(event);
},
noop() {},
onDrag(event) {
if (this.data.disabled) {
return;
}
this.touchMove(event);
if (this.direction !== 'horizontal') {
return;
}
this.dragging = true;
ARRAY.filter(
(item) => item !== this && item.offset !== 0
).forEach((item) => item.close());
this.setData({ catchMove: true });
this.swipeMove(this.startOffset + this.deltaX);
},
endDrag() {
if (this.data.disabled) {
return;
}
this.dragging = false;
this.swipeLeaveTransition();
},
onClick(event) {
const { key: position = 'outside' } = event.currentTarget.dataset;
this.$emit('click', position);
if (!this.offset) {
return;
}
if (this.data.asyncClose) {
this.$emit('close', {
position,
instance: this,
name: this.data.name,
});
} else {
this.swipeMove(0);
}
},
},
});

3
components/swipe-cell/index.json

@ -0,0 +1,3 @@
{
"component": true
}

13
components/swipe-cell/index.wxml

@ -0,0 +1,13 @@
<view class="van-swipe-cell custom-class" data-key="cell" catchtap="onClick" bindtouchstart="startDrag"
catchtouchmove="{{ catchMove ? 'noop' : '' }}" capture-bind:touchmove="onDrag" bindtouchend="endDrag"
bindtouchcancel="endDrag">
<view style="{{ wrapperStyle }}">
<view wx:if="{{ leftWidth }}" class="van-swipe-cell__left" data-key="left" catch:tap="onClick">
<slot name="left" />
</view>
<slot />
<view wx:if="{{ rightWidth }}" class="van-swipe-cell__right" data-key="right" catch:tap="onClick">
<slot name="right" />
</view>
</view>
</view>

1
components/swipe-cell/index.wxss

@ -0,0 +1 @@
@import '../common/index.wxss';.van-swipe-cell{position:relative;overflow:hidden}.van-swipe-cell__left,.van-swipe-cell__right{position:absolute;top:0;height:100%}.van-swipe-cell__left{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.van-swipe-cell__right{right:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}

30
pages/home/customer-info/index.js

@ -19,6 +19,15 @@ Scene({
{ id: 2, name: '银行卡转账' },
{ id: 1, name: '现金支付' }
],
columns: [],
typeList: [
{ id: 1, text: '普通现结' },
{ id: 2, text: '押金+现结' },
{ id: 3, text: '押金+预付款' },
{ id: 4, text: '押金+月结' },
{ id: 5, text: '预付款' },
{ id: 6, text: '月结' }
],
visible: false,
bankList: null
},
@ -33,6 +42,10 @@ Scene({
if(!util.isEmpty(options.userId)){
result.data.userId = options.userId
}
if(util.isEmpty(result.data.customerSettleType) || Number(result.data.customerSettleType) < 1){
result.data.customerSettleType = 1
}
result.data.customerSettleName = this.data.typeList[result.data.customerSettleType - 1].text
this.setData({ form: result.data })
}).catch(err => {
wx.hideLoading()
@ -40,11 +53,10 @@ Scene({
})
}
getBankList().then(result => {
var bankList = []
this.data.bankList = []
for (let index = 0; index < result.data.length; index++) {
bankList.push(result.data[index].bank)
this.data.bankList.push(result.data[index].bank)
}
this.setData({ bankList })
})
if(options.cardNo){
this.data.form.factoryId = app.userInfo.factoryId
@ -56,7 +68,9 @@ Scene({
},
chooseMethod: function(e){
if(e.currentTarget.id == 'bankName'){
this.setData({ visible: true })
this.setData({ visible: true, columns: this.data.bankList })
} else if(e.currentTarget.id == 'settleType'){
this.setData({ visible: true, columns: this.data.typeList })
} else {
this.setData({ show: true })
}
@ -74,7 +88,13 @@ Scene({
this.setData({ visible: false })
},
onConfirm: function({detail}) {
this.setData({ visible: false, ['form.bankName']: detail.value })
console.log(typeof detail.value)
if(typeof detail.value === 'string'){
this.setData({ visible: false, ['form.bankName']: detail.value })
} else {
this.data.form.customerSettleType = detail.value.id
this.setData({ visible: false, ['form.customerSettleName']: detail.value.text })
}
},
submitForm: function(){
if (util.isEmpty(this.data.form.name)) {

5
pages/home/customer-info/index.wxml

@ -7,12 +7,15 @@
<van-field id="name" value="{{ form.name }}" label="客户姓名:" clearable placeholder="请输入客户姓名" bind:input="bindInput" />
<van-field id="mobile" value="{{ form.mobile }}" type="number" label="手机号码:" placeholder="请输入手机号码" clearable
bind:input="bindInput" />
<van-field id="settleType" value="{{ form.customerSettleName }}" readonly label="结算类型:" is-link arrow-direction="down" bindtap="chooseMethod" placeholder="结算类型" />
<van-field value="{{ form.defaultPaymentMethod == 1 ? '现金支付' : (form.defaultPaymentMethod == 2 ? '银行卡转账' : '' )}}" readonly
label="付款方式:" is-link arrow-direction="down" bindtap="chooseMethod" placeholder="请选择付款方式" />
<van-field id="bankName" value="{{ form.bankName }}" label="银行名称:" readonly is-link arrow-direction="down" placeholder="请选择银行"
bind:input="bindInput" wx:if="{{form.defaultPaymentMethod == 2}}" bindtap="chooseMethod" />
<van-field id="bankBranchName" value="{{ form.bankBranchName }}" label="开户行:" placeholder="请输入开户行"
bind:input="bindInput" clearable wx:if="{{form.defaultPaymentMethod == 2}}" />
<van-field id="bankCardName" value="{{ form.bankCardName }}" label="持卡人姓名:" placeholder="请输入持卡人姓名"
bind:input="bindInput" clearable wx:if="{{form.defaultPaymentMethod == 2}}" />
<van-field id="bankCardNo" value="{{ form.bankCardNo }}" label="银行卡号:" type="number" placeholder="请输入银行卡号" bind:input="bindInput" clearable
wx:if="{{form.defaultPaymentMethod == 2}}" />
@ -31,6 +34,6 @@
<van-action-sheet show="{{ show }}" actions="{{ actions }}" bind:cancel="onClose" bind:close="onClose"
bind:select="onSelect" cancel-text="取消" z-index="22" />
<van-popup position="bottom" show="{{ visible }}" bind:close="onHide" z-index="29">
<van-picker show-toolbar title="选择纸品" columns="{{ bankList }}" bind:cancel="onHide" bind:confirm="onConfirm" />
<van-picker show-toolbar title="{{columns.length == 6 ? '选择类型' : '选择银行'}}" columns="{{ columns }}" bind:cancel="onHide" bind:confirm="onConfirm" />
</van-popup>
<notification id="qn-notification" />

3
pages/home/index/index.wxml

@ -47,6 +47,9 @@
<van-grid-item text="智能绑卡" url="/pages/message/card-list/index">
<van-icon slot="icon" name="/assets/home/icon-card.png" size="76rpx" />
</van-grid-item>
<van-grid-item text="报表智能" url="/xtends/statics/index/index" wx:if="{{isAdmin}}">
<van-icon slot="icon" name="/assets/home/icon-card.png" size="76rpx" />
</van-grid-item>
</van-grid>
</view>
</view>

2
pages/login/index.js

@ -54,7 +54,7 @@ Page({
let custom = wx.getMenuButtonBoundingClientRect()
app.globalData.Custom = custom
// 顶部操作栏高度
// 顶部操作栏高度
app.globalData.CustomBar = custom.bottom + custom.top - e.statusBarHeight + (app.globalData.isIos ? 4 : 0)
let windowHeight = e.windowHeight * (750 / e.windowWidth)

4
pages/message/card-list/index.js

@ -84,5 +84,9 @@ Scene({
return
}
wx.navigateTo({ url: `/pages/home/customer-info/index?cardNo=${this.data.nowItem.cardNo}` })
},
onDelete: function (e) {
var item = this.data.orderList[e.currentTarget.dataset.page][e.currentTarget.dataset.index]
console.log(item.cardNo)
}
})

1
pages/message/card-list/index.json

@ -4,6 +4,7 @@
"van-divider": "/components/divider/index",
"van-loading": "/components/loading/index",
"van-cell": "/components/cell/index",
"van-swipe-cell": "/components/swipe-cell/index",
"van-action-sheet": "/components/action-sheet/index",
"notification": "/pages/message/notification/index"
}

5
pages/message/card-list/index.wxml

@ -12,7 +12,10 @@
<view class="text-empty">{{loading? '正在加载' : '暂无消息'}}</view>
</view>
<view wx:for-item="pageItem" wx:for-index="pageIndex" wx:for="{{orderList}}" wx:key="pageIndex">
<van-cell clickable is-link center wx:for="{{pageItem}}" wx:key="index" title="卡号:{{item.cardNo || ''}}" value="点击进行处理" label="时间:{{item.createTime}}" data-page="{{pageIndex}}" data-index="{{index}}" bind:click="lookItem"/>
<van-swipe-cell wx:for="{{pageItem}}" wx:key="index" right-width="{{ 65 }}">
<van-cell clickable is-link center title="卡号:{{item.cardNo || ''}}" value="点击进行处理" label="时间:{{item.createTime}}" data-page="{{pageIndex}}" data-index="{{index}}" bind:click="lookItem"/>
<view slot="right" data-page="{{pageIndex}}" data-index="{{index}}" class="van-swipe-cell__right" bindtap="onDelete">删除</view>
</van-swipe-cell>
</view>
<!--加载更多的UI-->
<van-divider content-position="center" wx:if="{{ form.pageNum > 1}}" custom-style="padding:0rpx 120rpx">

11
pages/message/card-list/index.wxss

@ -1 +1,10 @@
/* pages/storage/index/index.wxss */
/* pages/storage/index/index.wxss */
.van-swipe-cell__right {
display: inline-block;
width: 65px;
font-size: 15px;
line-height: 65px;
color: #fff;
text-align: center;
background-color: #ee0a24;
}

2
pages/process/index/index.wxml

@ -98,7 +98,7 @@
<view style="height:24rpx;width:6rpx;background:#FF8413"></view>
<view class="text-black text-sm" style="margin-left: 12rpx">待付款金额</view>
</view>
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{totalInfo.usedCreditLine || 0}}</view>
<view class="text-xxl text-bold text-blue text-price" style="margin:12rpx 0rpx">{{totalInfo.usedCreditLine || 0}}</view>
</view>
</view>
</view>

43
pages/storage/index/index.wxml

@ -2,6 +2,49 @@
<wxs module="formate" src="../../formate.wxs"></wxs>
<scroll-view scroll-y style="height: {{height}}rpx;">
<view style="padding: 0rpx 28rpx;margin-top:24rpx">
<view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx 8rpx 0rpx">
<view class="flex flex-justify" style="padding: 0rpx 28rpx">
<view class="text-black text-sg text-bold">出货统计</view>
<view class="flex flex-center" bindtap="showSheet" style="padding: 2rpx 0rpx">
<view class="text-black text-sm" style="margin-right:8rpx">{{vdateString}}</view>
</view>
</view>
<view class="flex" style="padding: 16rpx 0rpx 8rpx 0rpx">
<view style="flex:1;padding:0rpx 32rpx;margin-right:12rpx">
<view class="flex flex-center" style="justify-content: flex-start">
<view style="height:24rpx;width:6rpx;background:#007AFF"></view>
<view class="text-black text-sm" style="margin-left: 12rpx">收货重量</view>
</view>
<view class="text-xxl text-bold" style="margin:12rpx 0rpx">{{formate.formateWeight(totalInfo.totalWeight || 0)}}吨</view>
</view>
<view style="flex:1;padding:0rpx 32rpx;margin-left:12rpx">
<view class="flex flex-center" style="justify-content: flex-start">
<view style="height:24rpx;width:6rpx;background:#FF8413"></view>
<view class="text-black text-sm" style="margin-left: 12rpx">收货金额</view>
</view>
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{formate.formateAmount(totalInfo.totalMoney || 0)}}</view>
</view>
</view>
<view class="flex" style="padding: 16rpx 0rpx 8rpx 0rpx">
<view style="flex:1;padding:0rpx 32rpx;margin-right:12rpx">
<view class="flex flex-center" style="justify-content: flex-start">
<view style="height:24rpx;width:6rpx;background:#007AFF"></view>
<view class="text-black text-sm" style="margin-left: 12rpx">收货重量</view>
</view>
<view class="text-xxl text-bold" style="margin:12rpx 0rpx">{{formate.formateWeight(totalInfo.totalWeight || 0)}}吨</view>
</view>
<view style="flex:1;padding:0rpx 32rpx;margin-left:12rpx">
<view class="flex flex-center" style="justify-content: flex-start">
<view style="height:24rpx;width:6rpx;background:#FF8413"></view>
<view class="text-black text-sm" style="margin-left: 12rpx">收货金额</view>
</view>
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{formate.formateAmount(totalInfo.totalMoney || 0)}}</view>
</view>
</view>
</view>
</view>
<view style="padding: 0rpx 28rpx;margin-top:24rpx">
<view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx">
<view class="flex flex-justify" style="padding: 0rpx 28rpx 8rpx 28rpx">

2
project.config.json

@ -4,7 +4,7 @@
"ignore": []
},
"setting": {
"urlCheck": true,
"urlCheck": false,
"es6": true,
"enhance": true,
"postcss": true,

15
xtends/statics/agent-report/index.js

@ -0,0 +1,15 @@
import Scene from '../../../pages/index/scene'
Scene({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
}
})

5
xtends/statics/agent-report/index.json

@ -0,0 +1,5 @@
{
"usingComponents": {
"notification": "/pages/message/notification/index"
}
}

8
xtends/statics/agent-report/index.wxml

@ -0,0 +1,8 @@
<!--xtends//statics/index/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">代卖报表</view>
</cu-custom>
<notification id="qn-notification"/>

11
xtends/statics/agent-report/index.wxss

@ -0,0 +1,11 @@
/* xtends//statics/index/index.wxss */
.qiun-charts {
width: 750rpx;
height: 500rpx;
background-color: #FFFFFF;
}
.charts {
width: 750rpx;
height: 500rpx;
background-color: #FFFFFF;
}

15
xtends/statics/gross-report/index.js

@ -0,0 +1,15 @@
import Scene from '../../../pages/index/scene'
Scene({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
}
})

5
xtends/statics/gross-report/index.json

@ -0,0 +1,5 @@
{
"usingComponents": {
"notification": "/pages/message/notification/index"
}
}

8
xtends/statics/gross-report/index.wxml

@ -0,0 +1,8 @@
<!--xtends//statics/index/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">毛利报表</view>
</cu-custom>
<notification id="qn-notification"/>

11
xtends/statics/gross-report/index.wxss

@ -0,0 +1,11 @@
/* xtends//statics/index/index.wxss */
.qiun-charts {
width: 750rpx;
height: 500rpx;
background-color: #FFFFFF;
}
.charts {
width: 750rpx;
height: 500rpx;
background-color: #FFFFFF;
}

99
xtends/statics/index/index.js

@ -1,18 +1,111 @@
// xtends//statics/index/index.js
import Scene from '../../../pages/index/scene'
import uCharts from '../../libs/u-charts';
const math = require('../../../utils/math')
const app = getApp()
var that;
var canvaColumn = null;
var windowWidth = 0;
Scene({
/**
* 页面的初始数据
*/
data: {
cWidth: '',
cHeight: '',
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
that = this
windowWidth = wx.getSystemInfoSync().windowWidth
this.data.cWidth = windowWidth - this.rpx2px(100)
// math.divide
this.data.cHeight = this.rpx2px(400)
this.getServerData()
},
rpx2px: function(rpx) {
return rpx / 750 * windowWidth;
},
getServerData: function() {
wx.request({
url: 'https://www.ucharts.cn/data.json',
success: function (res) {
let Column = { categories: [], series: [] };
Column.categories = res.data.data.Pie.categories;
Column.series = res.data.data.Pie.series;
// 自定义标签颜色和字体大小
// Column.series[1].textColor = 'red';
// Column.series[1].textSize = 18;
that.showColumn("canvasColumn", Column);
},
fail: () => {
console.log("请点击右上角【详情】,启用不校验合法域名");
},
})
},
showColumn(canvasId, chartData) {
let ctx = wx.createCanvasContext(canvasId, this);
canvaColumn = new uCharts({
type: 'ring',
context: ctx,
// fontSize: 11,
background: '#FFFFFF',
pixelRatio: 1,
// animation: true,
// categories: chartData.categories,
series: chartData.series,
color: [
"#1890FF",
"#91CB74",
"#FAC858",
"#EE6666",
"#73C0DE",
"#3CA272",
"#FC8452",
"#9A60B4",
"#ea7ccc"
],
dataLabel: true,
width: that.data.cWidth,
height: that.data.cHeight,
legend: {
show: true,
position: "right",
float: "center",
padding: 5,
margin: 5,
fontSize: 13,
fontColor: "#666666",
lineHeight: 25,
hiddenColor: "#CECECE",
itemGap: 10
},
extra: {
ring: {
ringWidth: 30,
centerColor: "#FFFFFF",
activeOpacity: 0.5,
activeRadius: 10,
offsetAngle: 0,
customRadius: 0,
labelWidth: 15,
border: true,
borderWidth: 3,
borderColor: "#FFFFFF",
linearType: "none"
}
}
});
},
touchColumn(e) {
canvaColumn.showToolTip(e, {
formatter: function (item) {
return item.name + ':' + item.data
}
});
}
})

7
xtends/statics/index/index.json

@ -1,3 +1,8 @@
{
"usingComponents": {}
"usingComponents": {
"van-grid": "/components/grid/index",
"van-grid-item": "/components/grid-item/index",
"van-icon": "/components/icon/index",
"notification": "/pages/message/notification/index"
}
}

84
xtends/statics/index/index.wxml

@ -1,4 +1,86 @@
<!--xtends//statics/index/index.wxml-->
<wxs module="formate" src="../../../pages/formate.wxs"></wxs>
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">收货统计</view>
<view slot="content">报表智能</view>
</cu-custom>
<view style="padding: 0rpx 28rpx;margin-top:24rpx">
<view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx 12rpx 0rpx">
<van-grid column-num="4" border="{{fasle}}">
<van-grid-item text="采购报表" url="/xtends/statics/purchase-report/index">
<van-icon slot="icon" name="/assets/home/icon-employe.png" size="76rpx" />
</van-grid-item>
<van-grid-item text="销售报表" url="/xtends/statics/sale-report/index">
<van-icon slot="icon" name="/assets/home/icon-customer.png" size="76rpx" />
</van-grid-item>
<van-grid-item text="毛利报表" url="/xtends/statics/gross-report/index">
<van-icon slot="icon" name="/assets/home/icon-cate.png" size="76rpx" />
</van-grid-item>
<van-grid-item text="代卖报表" url="/xtends/statics/agent-report/index">
<van-icon slot="icon" name="/assets/home/icon-card.png" size="76rpx" />
</van-grid-item>
</van-grid>
</view>
</view>
<view style="padding: 0rpx 28rpx;margin-top:24rpx">
<view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx">
<view class="flex flex-justify" style="padding: 0rpx 28rpx 8rpx 28rpx">
<view class="text-black text-sg text-bold">收货统计</view>
</view>
<view style="padding:0rpx 24rpx 0rpx 24rpx">
<canvas canvas-id="canvasColumn" id="canvasColumn" class="charts" bindtouchstart="touchColumn">
</canvas>
</view>
<view class="flex flex-justify" style="padding:0rpx 30rpx">
<view class="text-black text-sg">收货总重量</view>
<view class="text-black text-sg">收货总金额</view>
</view>
</view>
</view>
<view style="padding: 0rpx 28rpx;margin-top:24rpx">
<view class="bg-white" style="border-radius: 20rpx;padding: 24rpx 0rpx 8rpx 0rpx">
<view class="flex flex-justify" style="padding: 0rpx 28rpx">
<view class="text-black text-sg text-bold">出货统计</view>
<view class="flex flex-center" bindtap="showSheet" style="padding: 2rpx 0rpx">
<view class="text-black text-sm" style="margin-right:8rpx">{{vdateString}}</view>
</view>
</view>
<view class="flex" style="padding: 16rpx 0rpx 8rpx 0rpx">
<view style="flex:1;padding:0rpx 32rpx;margin-right:12rpx">
<view class="flex flex-center" style="justify-content: flex-start">
<view style="height:24rpx;width:6rpx;background:#007AFF"></view>
<view class="text-black text-sm" style="margin-left: 12rpx">收货重量</view>
</view>
<view class="text-xxl text-bold" style="margin:12rpx 0rpx">{{formate.formateWeight(totalInfo.totalWeight || 0)}}吨</view>
</view>
<view style="flex:1;padding:0rpx 32rpx;margin-left:12rpx">
<view class="flex flex-center" style="justify-content: flex-start">
<view style="height:24rpx;width:6rpx;background:#FF8413"></view>
<view class="text-black text-sm" style="margin-left: 12rpx">收货金额</view>
</view>
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{formate.formateAmount(totalInfo.totalMoney || 0)}}</view>
</view>
</view>
<view class="flex" style="padding: 16rpx 0rpx 8rpx 0rpx">
<view style="flex:1;padding:0rpx 32rpx;margin-right:12rpx">
<view class="flex flex-center" style="justify-content: flex-start">
<view style="height:24rpx;width:6rpx;background:#007AFF"></view>
<view class="text-black text-sm" style="margin-left: 12rpx">收货重量</view>
</view>
<view class="text-xxl text-bold" style="margin:12rpx 0rpx">{{formate.formateWeight(totalInfo.totalWeight || 0)}}吨</view>
</view>
<view style="flex:1;padding:0rpx 32rpx;margin-left:12rpx">
<view class="flex flex-center" style="justify-content: flex-start">
<view style="height:24rpx;width:6rpx;background:#FF8413"></view>
<view class="text-black text-sm" style="margin-left: 12rpx">收货金额</view>
</view>
<view class="text-xxl text-bold text-price" style="margin:12rpx 0rpx">{{formate.formateAmount(totalInfo.totalMoney || 0)}}</view>
</view>
</view>
</view>
</view>
<view style="height:24rpx"></view>
<notification id="qn-notification"/>

12
xtends/statics/index/index.wxss

@ -1 +1,11 @@
/* xtends//statics/index/index.wxss */
/* xtends//statics/index/index.wxss */
.qiun-charts {
width: 750rpx;
height: 500rpx;
background-color: #FFFFFF;
}
.charts {
width: 100%;
height: 400rpx;
background-color: #FFFFFF;
}

15
xtends/statics/purchase-report/index.js

@ -0,0 +1,15 @@
import Scene from '../../../pages/index/scene'
Scene({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
}
})

5
xtends/statics/purchase-report/index.json

@ -0,0 +1,5 @@
{
"usingComponents": {
"notification": "/pages/message/notification/index"
}
}

8
xtends/statics/purchase-report/index.wxml

@ -0,0 +1,8 @@
<!--xtends//statics/index/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">采购报表</view>
</cu-custom>
<notification id="qn-notification"/>

11
xtends/statics/purchase-report/index.wxss

@ -0,0 +1,11 @@
/* xtends//statics/index/index.wxss */
.qiun-charts {
width: 750rpx;
height: 500rpx;
background-color: #FFFFFF;
}
.charts {
width: 750rpx;
height: 500rpx;
background-color: #FFFFFF;
}

15
xtends/statics/sale-report/index.js

@ -0,0 +1,15 @@
import Scene from '../../../pages/index/scene'
Scene({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
}
})

5
xtends/statics/sale-report/index.json

@ -0,0 +1,5 @@
{
"usingComponents": {
"notification": "/pages/message/notification/index"
}
}

8
xtends/statics/sale-report/index.wxml

@ -0,0 +1,8 @@
<!--xtends//statics/index/index.wxml-->
<cu-custom bgColor="bg-white" isBack="{{true}}">
<view slot="content">销售报表</view>
</cu-custom>
<notification id="qn-notification"/>

11
xtends/statics/sale-report/index.wxss

@ -0,0 +1,11 @@
/* xtends//statics/index/index.wxss */
.qiun-charts {
width: 750rpx;
height: 500rpx;
background-color: #FFFFFF;
}
.charts {
width: 750rpx;
height: 500rpx;
background-color: #FFFFFF;
}
Loading…
Cancel
Save