王英杰 hace 1 año
padre
commit
b3eec0e445

+ 2 - 1
app.json

@@ -87,7 +87,8 @@
                 "pages/customer-collection/refund/refund",
                 "pages/customer-collection/refund/refund",
                 "pages/customer-collection/refund-detail/refund-detail",
                 "pages/customer-collection/refund-detail/refund-detail",
                 "pages/sales-tracking-report/sales-tracking-report",
                 "pages/sales-tracking-report/sales-tracking-report",
-                "pages/sales-tracking-report/detail/detail"
+                "pages/sales-tracking-report/detail/detail",
+                "pages/order-sum-report/order-sum-report"
             ]
             ]
         },
         },
         {
         {

+ 1 - 1
config/config.js

@@ -3,7 +3,7 @@ const profiles = 'dev';
 const configListObj = {
 const configListObj = {
   // 北京东科企信软件有限公司 本地开发
   // 北京东科企信软件有限公司 本地开发
   dev: {
   dev: {
-    server_add: 'http://192.168.0.57',     server_port: '7001',
+    server_add: 'http://192.168.0.55',     server_port: '7001',
     upload_url:'https://s.dev01.dkiboss.com:7000/api/mdm-server/file/upload',
     upload_url:'https://s.dev01.dkiboss.com:7000/api/mdm-server/file/upload',
     image_url:'https://s.dev01.dkiboss.com:7000/file',
     image_url:'https://s.dev01.dkiboss.com:7000/file',
     corpid: 'ww796c5d1684937b2f', //企业微信corpid
     corpid: 'ww796c5d1684937b2f', //企业微信corpid

+ 1 - 0
i18n/zh-CN.js

@@ -108,6 +108,7 @@ const mac = {
   factPrice: '优惠后单价',
   factPrice: '优惠后单价',
   factAmt: '优惠后金额',
   factAmt: '优惠后金额',
   warningSetting: '预警设置', 
   warningSetting: '预警设置', 
+  goods: '商品', 
 }
 }
 
 
 const ivt = {
 const ivt = {

+ 122 - 0
package-sales/pages/order-sum-report/order-sum-report.js

@@ -0,0 +1,122 @@
+/*******************************************************************************
+ * Copyright(c) 2022 dongke All rights reserved. / Confidential
+ * 类的信息:
+ *		1.程序名称:
+ *		2.销售汇总表
+ * 编辑履历:
+ *		作者				日期					版本				修改内容
+ *		王英杰		        2022-0-12	            1.00		   	    
+ *******************************************************************************/
+const Constants = require('@/utils/Constants.js');
+const util = require('@/utils/util.js')
+const app = getApp()
+const mixins = require('@/mixins/index.js')
+Page({
+  mixins: [mixins],
+  /**
+   * 页面的初始数据
+   */
+  data: {
+    // 查询条件
+    searchContent: [{
+        code: 'makeTime',
+        title: mixins.$t('pastThirthtyDays'),
+        defaultValue: 5,
+        searchType: Constants.searchType.date
+      },
+      {
+        code: 'sort', title: '排序',searchType:Constants.searchType.radio, value:1, options: [
+          {
+            "text": "升序",
+            "value": 1
+          },
+          {
+            "text": "降序",
+            "value": 2
+          }
+        ],
+      },
+      {
+        code: 'choose',
+        title: mixins.$t('choose'),
+        searchType: Constants.searchType.pick
+      }
+    ],
+
+    // 查询条件-筛选
+    pullMenuList: [{
+        code: 'orderNo',
+      }, {
+        code: 'cusName',
+      }, {
+        code: 'cusPhone',
+      }, {
+        code: 'addressFull',
+        title: mixins.$t('address')
+      }, 
+      {
+        code: 'viewVoidedDocuments',
+        dataType: 'checkbox'
+      },
+    ],
+    tagList: [
+      { title: mixins.$t("goods"), code: mixins.$t("goods") }, 
+      { title: mixins.$t("customer"), code: mixins.$t("customer") }]
+  },
+
+  /**
+   * 生命周期函数--监听页面加载
+   */
+  onLoad(options) {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面初次渲染完成
+   */
+  onReady() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面显示
+   */
+  onShow() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面隐藏
+   */
+  onHide() {
+
+  },
+
+  /**
+   * 生命周期函数--监听页面卸载
+   */
+  onUnload() {
+
+  },
+
+  /**
+   * 页面相关事件处理函数--监听用户下拉动作
+   */
+  onPullDownRefresh() {
+
+  },
+
+  /**
+   * 页面上拉触底事件的处理函数
+   */
+  onReachBottom() {
+
+  },
+
+  /**
+   * 用户点击右上角分享
+   */
+  onShareAppMessage() {
+
+  }
+})

+ 3 - 0
package-sales/pages/order-sum-report/order-sum-report.json

@@ -0,0 +1,3 @@
+{
+    "usingComponents": {}
+}

+ 32 - 0
package-sales/pages/order-sum-report/order-sum-report.wxml

@@ -0,0 +1,32 @@
+<!-- 前台导入wxmlUtil.wxs -->
+<wxs src='/utils/wxmlUtil.wxs' module="wxmlUtil"></wxs>
+<loading wx:if="{{loading}}"></loading>
+<van-dialog id="van-dialog" />
+<van-sticky scroll-top="0">
+  <!-- 查询条件 -->
+  <dk-dropdown-menu model:value="{{searchForm}}" menuList="{{searchContent}}" pullMenuList="{{pullMenuList}}" navBarHeight="{{navBarHeight}}" bind:search="searchData" searchTextPlaceholder="{{wxmlUtil.setSearchPlaceholder($t,['customerName','orderNo','telephone','adddress'])}}">
+  </dk-dropdown-menu> 
+  <dk-tabs active="{{active}}" list="{{tagList}}" bind:onChange="onChangeTabs"> </dk-tabs>
+</van-sticky>
+
+ <!-- 总头 -->
+ <view class="item-card">
+    <view class="card-title">
+      <view style="flex: 1;">
+        <view class="title"> 11111</view> 
+      </view>
+      <view style="flex: 1;">
+        <view class="title"> 3333</view> 
+      </view>
+    </view>
+    <view class="card-content"  >
+      <view style="flex: 1;">
+        <dk-cell left="0rpx" height="45rpx" contentRight="{{false}}" contentFontSize="14" contentColor="#A5814A"
+              contentFontWeight="bold" content="1111"></dk-cell>
+      </view>
+      <view style="flex: 1;">
+        <dk-cell left="0rpx" height="45rpx" contentRight="{{false}}" contentFontSize="14" contentColor="#A5814A"
+              contentFontWeight="bold" content="22222"></dk-cell>
+      </view>
+    </view>
+  </view>

+ 27 - 0
package-sales/pages/order-sum-report/order-sum-report.wxss

@@ -0,0 +1,27 @@
+.item-card{
+  border-radius: 16rpx;
+  margin-top: 32rpx;
+  background: linear-gradient(152.98deg, #FFF9EC 15.09%, #FFFFFF 45.02%);
+  box-shadow: 0px 10px 20px 0px #0000000D;
+  box-shadow: 0px -6px 20px 0px #0000000D;
+  padding: 32rpx 32rpx 40rpx 32rpx;
+}
+.card-title{
+  width: 100%;
+  display: flex;
+  flex-direction: row;
+  justify-content: space-between;
+  align-items: center;
+}
+.card-content{
+  width: 100%;
+  display: flex !important;
+  
+  padding-top: 20rpx;
+}
+.title{
+  font-size: 30rpx;
+  font-weight: 600;
+  color: #1B365D;
+  text-align: center;
+}