Browse Source

应收账款页面优化

xiaohaizhao 9 months ago
parent
commit
392fa9fe96
2 changed files with 6 additions and 3 deletions
  1. 2 2
      packageA/receivables/index.js
  2. 4 1
      packageA/receivables/index.scss

+ 2 - 2
packageA/receivables/index.js

@@ -93,7 +93,7 @@ Page({
         for (const key in obj) {
           showList.push({
             name: obj[key] + '(元)',
-            value: CNY(res.data[0][key])
+            value: res.data[0][key] >= 10000 ? (CNY(res.data[0][key] / 10000) + '万') : res.data[0][key]
           })
         }
       } else {
@@ -139,7 +139,7 @@ Page({
     if (e.detail.value == 0) {
       this.data.table[0] = {
         title: '部门',
-        width: 330,
+        width: 230,
         key: 'depname',
         fun: 'toDetail'
       }

+ 4 - 1
packageA/receivables/index.scss

@@ -67,7 +67,8 @@ page {
 	padding-top: 10rpx;
 	background-color: #fff;
 	margin-top: 8rpx;
-	text-align: center;
+	box-sizing: border-box;
+	// text-align: center;
 
 	.table-head {
 		position: sticky;
@@ -81,6 +82,8 @@ page {
 		view {
 			flex-shrink: 0;
 			background-color: #F2F2F2;
+			padding: 0 10rpx;
+			box-sizing: border-box;
 		}
 	}