shish преди 2 години
родител
ревизия
432b6bf823
променени са 1 файла, в които са добавени 12 реда и са изтрити 0 реда
  1. 12 0
      ghs/src/views/in/due.vue

+ 12 - 0
ghs/src/views/in/due.vue

@@ -18,6 +18,10 @@
 				<span style="font-size:15px;font-weight:bold;">累计金额:{{ totalAmount }}</span>
 			</template>
 
+			<template #slot-export-due>
+				<el-button type="primary" size="mini" style="margin-left:60px;" @click="exportDue()">导出数据</el-button>
+			</template>
+
 		</x-crud>
 	</div>
 </template>
@@ -66,6 +70,13 @@ export default {
 		...mapGetters(['shopInfo']),
 	},
 	methods: {
+		exportDue(){
+			this.$service.purchaseOrder.dueList({searchTime:this.searchTime,startTime:this.startTime,endTime:this.endTime,debt:this.debt,export:1}).then(res => {
+				if(res.file){
+					window.location.href = res.file
+				}
+			})
+		},
 		onLoad({ ctx, app }) {
                 this.app = app;
                 ctx.service({
@@ -111,6 +122,7 @@ export default {
 					[   'slot-date-select',
                         'slot-order-debt',
 						'flex1',
+                        'slot-export-due',
 						'refresh-btn',
 					],
 					[ 'data-table' ],