shish 2 tahun lalu
induk
melakukan
22e97ba8a4
2 mengubah file dengan 12 tambahan dan 13 penghapusan
  1. 11 12
      ghs/src/views/in/ghs.vue
  2. 1 1
      ghsApp/src/manifest.json

+ 11 - 12
ghs/src/views/in/ghs.vue

@@ -31,7 +31,7 @@
 
 
 			<template #table-header-debtAmount>
 			<template #table-header-debtAmount>
 				<div class="set-sort">
 				<div class="set-sort">
-				<span style="color:blue;">待结欠款</span>
+				<span style="color:blue;">欠款</span>
 				</div>
 				</div>
 			</template>
 			</template>
 			<template #table-column-debtAmount="{scope}">
 			<template #table-column-debtAmount="{scope}">
@@ -63,8 +63,6 @@
 			
 			
 			<template #slot-billing>
 			<template #slot-billing>
 				<el-button type="primary" size="mini" style="margin-left:60px;" @click="addGhs()">添加供货商</el-button>
 				<el-button type="primary" size="mini" style="margin-left:60px;" @click="addGhs()">添加供货商</el-button>
-				<el-button type="primary" size="mini" style="margin-left:60px;" @click="billing()">开单</el-button>
-				<el-button type="primary" size="mini" style="margin-left:60px;" @click="newCg()">新增采购</el-button>
 			</template>
 			</template>
 
 
 			<template #table-column-name="{scope}">
 			<template #table-column-name="{scope}">
@@ -84,6 +82,10 @@
 				<el-button size="small" type="success" @click="">欠款变动明细</el-button>
 				<el-button size="small" type="success" @click="">欠款变动明细</el-button>
 			</template>
 			</template>
 
 
+			<template #slot-total-debt-amount>
+				<span style="font-size:15px;font-weight:bold;">累计欠款:{{ totalDebtAmount }}</span>
+			</template>
+
 		</x-crud>
 		</x-crud>
 
 
 		<!-- 详情 -->
 		<!-- 详情 -->
@@ -133,14 +135,9 @@ export default {
 			tabIndex: '0',
 			tabIndex: '0',
 			tabsData: [
 			tabsData: [
 				{
 				{
-					text: '全部列表',
+					text: '全部',
 					key: '0',
 					key: '0',
 					val: 0
 					val: 0
-				},
-				{
-					text: '欠款排行',
-					key: '2',
-					val: 0
 				}
 				}
 			],
 			],
 			modalData: {},
 			modalData: {},
@@ -152,7 +149,8 @@ export default {
 			rechargeCustom:{},
 			rechargeCustom:{},
 			name1:'',
 			name1:'',
 			mobile1:'',
 			mobile1:'',
-			confirmMobile1:''
+			confirmMobile1:'',
+			totalDebtAmount:0
 		};
 		};
 	},
 	},
 	computed: {
 	computed: {
@@ -244,7 +242,7 @@ export default {
 						},
 						},
 						{
 						{
 							prop: 'debtNum',
 							prop: 'debtNum',
-							label: '欠款笔数',
+							label: '笔数',
 							align: 'center',
 							align: 'center',
 							width: 90
 							width: 90
 						},
 						},
@@ -284,12 +282,13 @@ export default {
 					['slot-tabs'],
 					['slot-tabs'],
 					['search-key','slot-billing'],
 					['search-key','slot-billing'],
 					['data-table'],
 					['data-table'],
-					['flex1', 'pagination']
+					['slot-total-debt-amount','flex1', 'pagination']
 				])
 				])
 				.on('refresh', async (params, { next }) => {
 				.on('refresh', async (params, { next }) => {
 					let result = await next(params);
 					let result = await next(params);
 					this.tabsData[0].val = result.totalUser
 					this.tabsData[0].val = result.totalUser
 					this.tabsData[1].val = result.mayGatheringNum
 					this.tabsData[1].val = result.mayGatheringNum
+					this.totalDebtAmount = result.totalDebtAmount?result.totalDebtAmount:0
 				})
 				})
 				.done();
 				.done();
 			app.refresh({ type: this.tabIndex });
 			app.refresh({ type: this.tabIndex });

+ 1 - 1
ghsApp/src/manifest.json

@@ -211,7 +211,7 @@
             }
             }
         },
         },
         "devServer" : {
         "devServer" : {
-            "port" : 88,
+            "port" : 81,
             "proxy" : {
             "proxy" : {
                 "/api" : {
                 "/api" : {
                     "target" : "http://api.shop.hzghd.com",
                     "target" : "http://api.shop.hzghd.com",