Bladeren bron

bug修改

xiaohaizhao 3 maanden geleden
bovenliggende
commit
d17fd4110d

+ 4 - 1
Eservice/agent/serviceBillList/index.js

@@ -43,9 +43,12 @@ Page({
         this.setData({
             loadingTexts: ['下拉刷新', '松手刷新', '正在刷新', '刷新完成'].map(v => getApp().globalData.Language.getMapText(v))
         })
-        getApp().globalData.Language.getLanguagePackage(this, 'E-订单');
+        getApp().globalData.Language.getLanguagePackage(this, 'E-订单');
     },
     onShow() {
+        this.setData({
+            list: []
+        })
         this.listData()
     },
     onPullDownRefresh() {

+ 26 - 5
Eservice/workerLeader/orderList/index.js

@@ -1,4 +1,10 @@
-import api from '../../api/api'
+import api from '../../api/api';
+const currency = require("../../../utils/currency"),
+  CNY = num => currency(num, {
+    symbol: "¥",
+    precision: 2
+  }).format();
+
 Page({
   data: {
     param: {
@@ -7,14 +13,29 @@ Page({
       "content": {
         "pageSize": 20,
         "pageNumber": 1,
-        "sys_enterpriseid": 0
+        "sys_enterpriseid": 0,
+        where:{
+          condition:""
+        }
       }
     },
-    list: []
+    list: [],
+    value: ""
+  },
+  onSubmit(data) {
+    this.data.param.content.where.condition = data.detail.value
+    this.setData({
+      list: []
+    })
+    this.data.param.content.pageNumber = 1
+    this.listData()
   },
   async listData() {
     const res = await api._post(this.data.param)
-
+    res.data = res.data.map(v => {
+      v.sumamount = CNY(v.sumamount)
+      return v
+    })
     if (res.data.length > 0) {
       this.setData({
         list: this.data.list.concat(res.data)
@@ -51,7 +72,7 @@ Page({
     this.setData({
       loadingTexts: ['下拉刷新', '松手刷新', '正在刷新', '刷新完成'].map(v => getApp().globalData.Language.getMapText(v))
     })
-    getApp().globalData.Language.getLanguagePackage(this, 'E-订单');
+    getApp().globalData.Language.getLanguagePackage(this, 'E-订单');
   },
   onPullDownRefresh() {
     this.data.list = []

+ 2 - 1
Eservice/workerLeader/orderList/index.json

@@ -1,5 +1,6 @@
 {
   "usingComponents": {
-    "t-card":"../../components/listCard/listCard"
+    "t-card":"../../components/listCard/listCard",
+    "t-search": "tdesign-miniprogram/search/search"
   }
 }

+ 4 - 0
Eservice/workerLeader/orderList/index.scss

@@ -7,4 +7,8 @@
 }
 .card__body{
   padding-top: 10px;
+}
+.example-search {
+  background-color: #fff;
+  padding: 16rpx 32rpx;
 }

+ 18 - 2
Eservice/workerLeader/orderList/index.wxml

@@ -1,3 +1,7 @@
+<view class="example-search">
+  <t-search model:value="{{value}}" bind:submit="onSubmit" bind:clear="onSubmit" placeholder="{{language['关键字']||'搜索'}}" />
+</view>
+
 <t-pull-down-refresh
   value="{{baseRefresh.value}}"
   loadingProps="{{loadingProps}}"
@@ -19,10 +23,22 @@
       </view>
       <view class="card__body">
         <view>
-          {{language['标准订单']||'标准订单'}}:{{item.sonum}}
+          {{item.sonum}}
+        </view>
+        <view class="small colorInfo">
+          {{language['项目名称']||'项目名称'}}:{{item.projectname}}
+        </view>
+        <view class="small colorInfo">
+          {{language['订单数量']||'订单数量'}}:{{item.sumqty}}
+        </view>
+        <view class="small colorInfo">
+          {{language['订单金额']||'订单金额'}}:{{item.sumamount}}
+        </view>
+        <view class="small colorInfo">
+          {{language['单据时间']||'单据时间'}}:{{item.billdate}}
         </view>
         <view class="small colorInfo">
-          {{language['单据时间']||'单据时间'}}:{{item.billdate}}
+          {{language['业务员']||'业务员'}}:{{item.saler_name}}
         </view>
       </view>
     </view>

+ 1 - 1
project.private.config.json

@@ -20,6 +20,6 @@
     "bigPackageSizeSupport": false,
     "useIsolateContext": true
   },
-  "libVersion": "3.10.0",
+  "libVersion": "3.13.0",
   "condition": {}
 }

+ 0 - 4
utils/work/apps.js

@@ -228,10 +228,6 @@ function getedd() {
 		path: "/packageA/shipment/index",
 		icon: "work-shouhuo",
 		objectname: "sa_logistics"
-	}, {
-		name: "业绩目标",
-		path: "/packageA/target/index",
-		icon: "work-yejimubiao"
 	}, {
 		name: "账户",
 		path: "/packageA/account/index",