Просмотр исходного кода

经营概况-体验收发存假数据修改

changhaoning 1 год назад
Родитель
Сommit
792dedb388

+ 3 - 4
package-business-analysis/pages/business-overview-experience/business-overview-experience.js

@@ -28,10 +28,9 @@ Page({
                 this.setData({
                     userEndDate: app.globalData.company.userEndDate
                 })
-            } else {
-                //获取服务器的最新时间
-                this.getCurrentDate()
-            }
+            } 
+            //获取服务器的最新时间
+            this.getCurrentDate()
         }, 200)
     },
 

+ 18 - 7
package-business-analysis/pages/business-overview-experience/business-overview-experience.wxml

@@ -11,8 +11,11 @@
 					<view class="title">从入库到出库,全程透明</view>
 					<view class="title">收发存汇总,助力企业精准运营每一步。</view>
 					<view class="video-title">
-						<view style="font-size: 20px;text-align: center;width: 80%;">视频介绍</view>
-						<view style="width: 20%;color: blue;font-size: 14px;" data-item="INT" catchtap="handleTitleBtn">体验一下</view>
+						<view style="font-size: 20px;width: 100%;text-align: center;display: flex;justify-content: center;">
+							<view>视频介绍</view>
+							<image round src="{{imageUrl + 'btn-hand-begin.png'}}" style="height: 40rpx;width:40rpx;" />
+						</view>
+						<view style="color: blue;font-size: 14px;text-align: right;position: absolute;right: 0px;bottom: 10rpx;" data-item="INT" catchtap="handleTitleBtn">体验一下</view>
 					</view>
 					<!-- <video id="myVideo" src="{{videoSrc}}" class="van-uploader__preview-image" muted show-mute-btn show-fullscreen-btn enable-progress-gesture="{{false}}" autoplay="{{false}}" loop show-progress show-bottom-progress show-play-btn></video> -->
 				</view>
@@ -30,8 +33,11 @@
 					<view class="title">洞悉欠款,控财财务未来</view>
 					<view class="title">精准数据,智慧决策,共创辉煌!</view>
 					<view class="video-title">
-						<view style="font-size: 20px;text-align: center;width: 80%;">视频介绍</view>
-						<view style="width: 20%;color: blue;font-size: 14px;" data-item="CUS" catchtap="handleTitleBtn">体验一下</view>
+						<view style="font-size: 20px;width: 100%;text-align: center;display: flex;justify-content: center;">
+							<view>视频介绍</view>
+							<image round src="{{imageUrl + 'btn-hand-begin.png'}}" style="height: 40rpx;width:40rpx;" />
+						</view>
+						<view style="color: blue;font-size: 14px;text-align: right;position: absolute;right: 0px;bottom: 10rpx;" data-item="CUS" catchtap="handleTitleBtn">体验一下</view>
 					</view>
 					<!-- <video id="myVideo" src="{{videoSrc}}" class="van-uploader__preview-image" muted show-mute-btn show-fullscreen-btn enable-progress-gesture="{{false}}" autoplay="{{false}}" loop show-progress show-bottom-progress show-play-btn></video> -->
 				</view>
@@ -49,8 +55,11 @@
 					<view class="title">用数据赋能,以利润证明</view>
 					<view class="title">专业报表,见证每一次成功背后的智慧决策!</view>
 					<view class="video-title">
-						<view style="font-size: 20px;text-align: center;width: 80%;">视频介绍</view>
-						<view style="width: 20%;color: blue;font-size: 14px;" data-item="SAL" catchtap="handleTitleBtn">体验一下</view>
+						<view style="font-size: 20px;width: 100%;text-align: center;display: flex;justify-content: center;">
+							<view>视频介绍</view>
+							<image round src="{{imageUrl + 'btn-hand-begin.png'}}" style="height: 40rpx;width:40rpx;" />
+						</view>
+						<view style="color: blue;font-size: 14px;text-align: right;position: absolute;right: 0px;bottom: 10rpx;" data-item="SAL" catchtap="handleTitleBtn">体验一下</view>
 					</view>
 					<!-- <video id="myVideo" src="{{videoSrc}}" class="van-uploader__preview-image" muted show-mute-btn show-fullscreen-btn enable-progress-gesture="{{false}}" autoplay="{{false}}" loop show-progress show-bottom-progress show-play-btn></video> -->
 				</view>
@@ -64,7 +73,9 @@
 <view class="bottom-class">
 	<view class="view-margin">
 		<view style="display: flex;justify-content: space-between;align-items: center;">
-			<view>订单详情 <van-icon slot="label-icon" name="question-o" data-item="{{item}}" catchtap="showTip" /></view>
+			<view>订单详情 
+			<van-icon slot="label-icon" name="question-o" data-item="{{item}}" catchtap="showTip" />
+			</view>
 			<view>{{userEndDateString}}</view>
 		</view>
 	</view>

+ 1 - 1
package-business-analysis/pages/business-overview-experience/business-overview-experience.wxss

@@ -74,7 +74,7 @@
 	font-size: 20px;
 	color: #95A8CB;
 	text-align: center;
-	display: flex;
+	position: relative;
 }
 
 .scan-class {

+ 33 - 9
package-inventory/pages/ivt-sum-report/detail/detail.js

@@ -33,12 +33,29 @@ Page({
   * @author : 姜永辉
   */
   onChangeTabs(e) {
-    let index = e.detail.detail.index
-    this.setData({
-      active: index,
-    })
-
-    this.searchData()
+    //体验跳转过来的
+    if(this.data.item.params && this.data.item.params.testFlag){
+      let index = e.detail.detail.index
+      this.setData({
+        active: index,
+      })
+      if(index == 1){
+        this.setData({
+          tableData:Data.falseIvtReportItemDataOUT
+        })
+      }else{
+        this.setData({
+          tableData:Data.falseIvtReportItemDataIN
+        })
+      }
+    }else{
+      let index = e.detail.detail.index
+      this.setData({
+        active: index,
+      })
+  
+      this.searchData()
+    }
   },
 
   /**
@@ -63,9 +80,16 @@ Page({
   getData(params) {
     //体验跳转过来的
     if(this.data.item.params && this.data.item.params.testFlag){
-      this.setData({
-        tableData:Data.falseIvtReportItemData
-      })
+      let index = this.data.active
+      if(index == 1){
+        this.setData({
+          tableData:Data.falseIvtReportItemDataOUT
+        })
+      }else{
+        this.setData({
+          tableData:Data.falseIvtReportItemDataIN
+        })
+      }
       return
     }else{
       return this.excute(this.data.service, this.data.service.getIvtItemReport, params);

+ 102 - 44
utils/data.js

@@ -2,19 +2,27 @@ module.exports = {
   //收发存汇总表
   falseIvtSumReportData: [{
     brandName: "测试",
-    currentIntoAmt: 100,
+    //入库金额
+    currentIntoAmt: 200,
+    //入库数量
     currentIntoQty: 100,
-    currentOutAmt: 100,
-    currentOutQty: 100,
+    //出库金额
+    currentOutAmt: 60,
+    //出库数量
+    currentOutQty: 30,
     decimalPlaces: 0,
-    endingIvtAmt: 100,
-    endingIvtQty: 100,
+    //期末金额
+    endingIvtAmt: 340,
+    //期末数量
+    endingIvtQty: 170,
     imagesUrl: "https://s.dev01.dkiboss.com:7000/file/dc91014c58d4d/t_mst_goods_sku/2024-06/27/aa556141-2f8a-49fe-b7a7-b45b44760b32.png",
     invId: "10112024-0625-0000-0000-000460f23129",
     nonStdCode: "-",
-    openingIvtAmt: 100,
+    //期初金额
+    openingIvtAmt: 200,
+    //期初数量
     openingIvtQty: 100,
-    packBox: 8,
+    packBox: 5,
     seriesName: "测试数据",
     shortName: "测试",
     skuImages: [{
@@ -28,41 +36,92 @@ module.exports = {
     skuName: "测试数据",
     skuSpec: "测试数据",
     subUnitName: "箱",
-    unitName: "",
+    unitName: "",
     whName: "主仓",
   }],
-  //收发存明细
-  falseIvtReportItemData: [{
-    brandName: "东鹏",
-    costAmt: 100,
+
+  //收发存明细-入库
+  falseIvtReportItemDataIN: [{
+    //入库成本金额
+    intoAmt: 30,
+    //入库日期
+    intoDate: "2024-04-02",
+    //入库单号
+    intoNo: "NO98-123123-111111",
+    //入库数量
+    intoQty: 20,
+    //入库类型
+    intoTypeName: "采购入库",
+    skuBoxCurrent: "4箱0片",
+  }, {
+    //入库成本金额
     intoAmt: 100,
-    decimalPlaces: 0,
-    flgSubUnit: true,
-    imagesUrl: undefined,
-    makeStaffName: "1333333333",
-    nonStdCode: "-",
-    outAmt: 0,
-    outDate: "2024-07-01",
+    //入库日期
+    intoDate: "2024-05-08",
+    //入库单号
+    intoNo: "NO98-123123-222222",
+    //入库数量
+    intoQty: 50,
+    //入库类型
+    intoTypeName: "其他入库",
+    skuBoxCurrent: "10箱0片",
+  }, {
+    //入库成本金额
+    intoAmt: 70,
+    //入库日期
     intoDate: "2024-07-02",
-    outNo: "NO98-240701-111111",
-    intoNo: "NO98-240702-222222",
-    outQty: 100,
-    intoQty: 100,
-    outTypeName: "其他出库",
+    //入库单号
+    intoNo: "NO98-123123-333333",
+    //入库数量
+    intoQty: 30,
+    //入库类型
     intoTypeName: "采购入库",
-    priceOut: 0,
-    returnAmt: 0,
-    returnQty: 0,
-    shortName: "东鹏",
-    skuBox: 0,
-    skuBoxCurrent: "12箱4个",
-    skuCode: "D9804465EB",
-    skuModel: "A001",
-    skuPiece: "2",
-    skuSpec: "1001*111",
-    unitName: "个",
-    whName: "主仓",
+    skuBoxCurrent: "6箱0片",
   }],
+
+
+  //收发存明细-出库
+  falseIvtReportItemDataOUT: [{
+    //出库成本金额
+    costAmt: 30,
+    //出库日期
+    outDate: "2024-05-03",
+    //出库单号
+    outNo: "NO98-123123-444444",
+    //出库数量
+    outQty: 20,
+    //出库类型
+    outTypeName: "销售出库",
+    skuBoxCurrent: "4箱0片",
+  }, {
+    //出库成本金额
+    costAmt: 10,
+    //出库日期
+    outDate: "2024-06-06",
+    //出库单号
+    outNo: "NO98-123123-55555",
+    //出库数量
+    outQty: 10,
+    //出库类型
+    outTypeName: "其他出库",
+    skuBoxCurrent: "1箱0片",
+  }, {
+    //出库成本金额
+    costAmt: 10,
+    //出库日期
+    outDate: "2024-06-07",
+    //出库单号
+    outNo: "NO98-123123-666666",
+    //出库数量
+    outQty: 5,
+    //出库类型
+    outTypeName: "销售出库",
+    skuBoxCurrent: "1箱0片",
+  }],
+
+
+
+
   //客户收支表
   falseCusRecPayReportData: [{
     facAmt: 1000
@@ -186,7 +245,7 @@ module.exports = {
     makeTime: "2024-06-22 16:35:53",
     orderId: "10112024-0622-0000-0000-0004538d0901",
     orderItemResponseList: [{
-      imagesUrl:"https://s.dev01.dkiboss.com:7000/file/dc91014c58d4d/t_mst_goods_sku/2024-07/08/21fc795e-f8fd-4d72-9265-1f7d655cbf7d.jpg",
+      imagesUrl: "https://s.dev01.dkiboss.com:7000/file/dc91014c58d4d/t_mst_goods_sku/2024-07/08/21fc795e-f8fd-4d72-9265-1f7d655cbf7d.jpg",
       amtStd: 0,
       brandName: "百特",
       cpId: 332,
@@ -551,11 +610,10 @@ module.exports = {
       profit: 90000
     }],
     staffProfit: [{
-        staffName: "李某",
-        profitRate: 107.06,
-        profit: 90000
-      },
-    ],
+      staffName: "李某",
+      profitRate: 107.06,
+      profit: 90000
+    }, ],
     skuProfit: [{
       skuName: "P001",
       profitRate: 111.01,
@@ -571,13 +629,13 @@ module.exports = {
     orgName: "运营中心",
     profit: 90000,
     profitRate: 90.00,
-  },],
+  }, ],
   //业务员利润排行
   falseStaffProfitData: [{
     profit: 90000,
     profitRate: 90.00,
     staffName: "张三",
-  },],
+  }, ],
   //商品利润排行
   falseSkuProfitData: [{
     profit: 40000,